#==============================================================================
#
# Abs:  Database template for plcinfo.
#
# Name: ab-plc-info.template
#
# Macros:
#       CR          Panel or crate number
#       NUM_CHANS   Total number of channels
#       UNIT        Unit number of the PLC   
#       LOCA        Location of the PLC
#       LOCATION    Location of the panel
#==============================================================================
record(stringin, "PLC:${LOCA}:${UNIT}:CR${CR}_LOC") {
    field(VAL, "${LOCATION}")
}

record(longout, "PLC:${LOCA}:${UNIT}:CR${CR}_NUM_CHANS") {
    field(VAL, "${NUM_CHANS}")
}
