-
Notifications
You must be signed in to change notification settings - Fork 2
Schneider PLC
Freddie Akeroyd edited this page Aug 17, 2022
·
5 revisions
These are controlled by the SCHNDR
iocs and are used on various instruments, such as to monitor value status or pressure (a TPG300 can for example feed data into the PLC inputs). Communication is by modbus protocol using EPICS modbus support.
Relevant IOC config macros are:
-
MODE
:TCP
,RTU
orASCII
to specify PLC connection mode. We generally use eitherTCP
orRTU
. -
PORT
: Serial COM Port of PLC forRTU
orASCII
mode -
IPADDR
: IP address of PLC forTCP
mode -
IPPORT
: TCP will connect on default modbus 502 port, set this if different.
To configure EPICS records for PLC specific variables, set macros such as DEVCMD1
to a CMD file base name in the devices
subdirectory which should be loaded. For example on GEM we set DEVCMD1
to GEMGateValve
to load devices/GEMGateValve.cmd
. Currently there is only DEVCMD1
but if there were cross instrument files that were useful to load, or a plc talked to multiple separate devices, then adding DEVCMD2
may be useful in future