Don't create a plc object when in the simulated plc mode.

r2235 | ffr | 2007-11-06 14:48:13 +1100 (Tue, 06 Nov 2007) | 2 lines
This commit is contained in:
Ferdi Franceschini
2007-11-06 14:48:13 +11:00
committed by Douglas Clowes
parent 5eaae53de0
commit 75ae6a9445

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