Script for loading a PLC from lib from file.
Adds a PLC defined in FILE. Also adds PLC specific EPICS PVs, i.e. for enable/disable.
Anders Sandström
FILE PLC definition file, i.e. ./plc/homeSlit.plc
PLC_ID (optional) PLC number, default last loaded PLC
PLC_MACROS (optional) Substitution macros for PLC code. The macros “SELF_ID”,“SELF”,M_ID, and M are reserved:
INC (optional) List of directories for include files to pass to MSI (if several paths thendivide with ‘:').
TMP_PATH (optional) directory to dump the temporary plc file after macro substitution
PRINT_PLC_FILE (optional) 1/0, printout msi parsed plc file (default enable(1)).
Example call:
${SCRIPTEXEC} ${ecmccfg_DIR}loadPLCLib.cmd, "PLC_ID=0, FILE=./plc/homeSlit.plc, SAMPLE_RATE_MS=100"