Script for adding a PLC from file.
Adds a PLC defined in FILE. Also adds PLC specific EPICS PVs, i.e. for enable/disable.
Niko Kivel
FILE PLC definition file, i.e. ./plc/homeSlit.plc
AX_ID (optional) Ax number, default 0
PLC_MACROS (optional) Substitution macros for PLC code
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)).
SUBST_FILE (optional) custom substitution file otherwise ecmccfg default will be loaded
Example call:
${SCRIPTEXEC} ${ecmccfg_DIR}loadAxisPLCFile.cmd, "AX_ID=1, FILE=./plc/homeSlit.plc"