#
# File: aerotech_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
# M 		- Axis name
# 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):$(M):P$(Port)IN$(In)") {
  field(DESC, "Port 0 Input 0")
  field(INP,  "$(U):$(M):DIN_S$(Word).B$(Bit) CP NMS")
  field(ZNAM, "Off")
  field(ONAM, "On")
}

