addPlcVarBinary.cmd

description

Add an EPICS binary record for a PLC variable.

details

DEV:NAME, where DEV defaults to IOC.

author

Anders Sandstroem


parameters

NAME Record name suffix, resulting PV is DEV:NAME PLC_VAR - plcs.plc0.static.hold -> used as-is SCOPE (optional) static or global, defaults to static PLC_ID (optional) PLC id, defaults to ECMC_PLC_ID DEV (optional) Device prefix, defaults to IOC PORT (optional) Asyn port, defaults to MC_CPU1 DB_MACROS (optional) Extra DB template macros, for example ONAM=Run,ZNAM=Stop


Example call:

${SCRIPTEXEC} ${ecmccfg_DIR}addPlcVarBinary.cmd "NAME=Hold,PLC_VAR=hold,ONAM=Hold,ZNAM=Run"
${SCRIPTEXEC} ${ecmccfg_DIR}addPlcVarBinary.cmd "NAME=Hold,PLC_VAR=hold,PLC_ID=3,ONAM=Hold,ZNAM=Run"
${SCRIPTEXEC} ${ecmccfg_DIR}addPlcVarBinary.cmd "NAME=Mode,PLC_VAR=mode,SCOPE=global,ONAM=Remote,ZNAM=Local"