From bc19061460966c5c21d2d913d9c916b708e7a469 Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Wed, 7 Nov 2007 15:54:45 +1100 Subject: [PATCH] Don't make plc object when in simulated mode. r2243 | ffr | 2007-11-07 15:54:45 +1100 (Wed, 07 Nov 2007) | 2 lines --- site_ansto/instrument/hipd/config/plc/plc.tcl | 7 +++++-- site_ansto/instrument/hrpd/config/plc/plc.tcl | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/site_ansto/instrument/hipd/config/plc/plc.tcl b/site_ansto/instrument/hipd/config/plc/plc.tcl index 252bc63f..bd3ca42b 100644 --- a/site_ansto/instrument/hipd/config/plc/plc.tcl +++ b/site_ansto/instrument/hipd/config/plc/plc.tcl @@ -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 diff --git a/site_ansto/instrument/hrpd/config/plc/plc.tcl b/site_ansto/instrument/hrpd/config/plc/plc.tcl index 80ff9dfb..d7e9d32c 100644 --- a/site_ansto/instrument/hrpd/config/plc/plc.tcl +++ b/site_ansto/instrument/hrpd/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