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:
committed by
Douglas Clowes
parent
6c63380822
commit
bc19061460
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user