From 0937bc2ba24636de0cf45c216bdb06c35eaf1e02 Mon Sep 17 00:00:00 2001 From: Douglas Clowes Date: Thu, 24 Apr 2008 12:11:51 +1000 Subject: [PATCH] Handle simulated PLC r2486 | dcl | 2008-04-24 12:11:51 +1000 (Thu, 24 Apr 2008) | 2 lines --- site_ansto/instrument/sans/config/plc/plc.tcl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/site_ansto/instrument/sans/config/plc/plc.tcl b/site_ansto/instrument/sans/config/plc/plc.tcl index 80ff9dfb..d7e9d32c 100644 --- a/site_ansto/instrument/sans/config/plc/plc.tcl +++ b/site_ansto/instrument/sans/config/plc/plc.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