Handle simulated PLC

r2486 | dcl | 2008-04-24 12:11:51 +1000 (Thu, 24 Apr 2008) | 2 lines
This commit is contained in:
Douglas Clowes
2008-04-24 12:11:51 +10:00
parent 1eda12ffb6
commit 0937bc2ba2

View File

@@ -1,5 +1,8 @@
MakeAsyncQueue plc_chan SafetyPLC 137.157.204.65 30002
MakeSafetyPLC plc plc_chan 0
set sim_mode [SplitReply [plc_simulation]]
if {$sim_mode == "false"} {
MakeAsyncQueue plc_chan SafetyPLC 137.157.204.65 30002
MakeSafetyPLC plc plc_chan 0
}
source $cfPath(plc)/plc_common_1.tcl