#
# File: xleap_din_bit.template
# Author: Wayne Lewis
# Date: 2017-05-08
#
# Description:
# This database is the template for the generic Aerotech 
# digital input PVs.
#
# Macros:
# U 		- Controller prefix
# Port 	- Aerotech input port number (port is Aerotech terminology)
# In 	.	- Input number
# Word 	- MBBI word (from aerotech_din.db) 
# Bit 	- Bit number from word

record(bi, "$(U):P$(Port)IN$(In)") {
  field(DESC, "Port $(Port) Input $(In)")
  field(INP,  "$(U):DIN_S$(Word).B$(Bit) CP NMS")
  field(ZNAM, "Off")
  field(ONAM, "On")
}

