addPlcVarAnalog.cmd

description

Add an EPICS analog 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.counter -> 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 EGU=mm,PREC=3,ESLO=0.1,EOFF=0


Example call:

${SCRIPTEXEC} ${ecmccfg_DIR}addPlcVarAnalog.cmd "NAME=Counter,PLC_VAR=counter,EGU=counts,PREC=0"
${SCRIPTEXEC} ${ecmccfg_DIR}addPlcVarAnalog.cmd "NAME=Counter,PLC_VAR=counter,PLC_ID=3,EGU=counts,PREC=0"
${SCRIPTEXEC} ${ecmccfg_DIR}addPlcVarAnalog.cmd "NAME=ModeValue,PLC_VAR=modeValue,SCOPE=global,EGU=state"