Don't make plc object when in simulated mode.

r2243 | ffr | 2007-11-07 15:54:45 +1100 (Wed, 07 Nov 2007) | 2 lines
This commit is contained in:
Ferdi Franceschini
2007-11-07 15:54:45 +11:00
committed by Douglas Clowes
parent 6c63380822
commit bc19061460
2 changed files with 10 additions and 4 deletions

View File

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

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