Files
sics/site_ansto/instrument/dingo/config/plc/plc.tcl
Ferdi Franceschini 2df9297a3f SICS-587 Setup hostport dictionary based configuration for dingo.
Also added simulated camera server and a camtest configuration file to
run test scans against a dummy motor.
2013-06-14 10:18:45 +10:00

22 lines
459 B
Tcl

set sim_mode [SplitReply [plc_simulation]]
if {$sim_mode == "false"} {
MakeAsyncQueue plc_chan SafetyPLC [dict get $::PLC_HOSTPORT HOST] [dict get $::PLC_HOSTPORT PORT]
MakeSafetyPLC plc plc_chan 0
}
proc shutter {args} {
set cmd "set shutter=$args\r\n"
plc_chan send $cmd
}
proc focuslight {args} {
set cmd "set focuslight=$args\r\n"
plc_chan send $cmd
}
publish shutter user
publish focuslight user
source $cfPath(plc)/plc_common_1.tcl