############################################################################
# File: aerotechController.template
# Description: Contains aerotech specific pv`s
# Macros: 
#        $(U) - MOC:B34:MC01
#        $(PORT) - asyn port name
###########################################################################
record(stringout, "$(U):LOCA") {
  field(DESC, "Location")
  field(VAL,"")
  info(autosaveFields, "VAL")
}
record(stringout, "$(U):RESET") {
  field(DESC, "Aerotech controller Reset")
  field(DTYP, "stream")
  field(OUT, "@aerotech.proto reset $(PORT)")
}

record(stringout, "$(U):ACKALL") {
  field(DESC, "Aerotech controller Acknowledge All")
  field(DTYP, "stream")
  field(OUT, "@aerotech.proto ackAll $(PORT)")
}

record(stringout, "$(U):TASK1START") {
  field(DESC, "Aerotech task restart")
  field(DTYP, "stream")
  field(OUT, "@aerotech.proto taskWsManagerRestart $(PORT)")
}

record(stringout, "$(U):TASK4START") {
  field(DESC, "Aerotech task restart")
  field(DTYP, "stream")
  field(OUT, "@aerotech.proto taskFaultRestart $(PORT)")
}

record(stringout, "$(U):TASK1STOP") {
  field(DESC, "AeroBasic Task1 Stop")
  field(DTYP, "stream")
  field(OUT,  "@aerotech.proto programStop(1) $(PORT)")
}

record(stringout, "$(U):TASK2STOP") {
  field(DESC, "AeroBasic Task2 Stop")
  field(DTYP, "stream")
  field(OUT,  "@aerotech.proto programStop(2) $(PORT)")
}

record(stringout, "$(U):TASK3STOP") {
  field(DESC, "AeroBasic Task3 Stop")
  field(DTYP, "stream")
  field(OUT,  "@aerotech.proto programStop(3) $(PORT)")
}

record(stringout, "$(U):TASK4STOP") {
  field(DESC, "AeroBasic Task4 Stop")
  field(DTYP, "stream")
  field(OUT,  "@aerotech.proto programStop(4) $(PORT)")
}

record(stringout, "$(U):TASK5STOP") {
  field(DESC, "AeroBasic Task5 Stop")
  field(DTYP, "stream")
  field(OUT,  "@aerotech.proto programStop(5) $(PORT)")
}


record(ao,"$(U):AXISCOUNT"){
  field(DESC, "Aerotech controller axis count")
  field(VAL,"")
  info(autosaveFields, "VAL")
}
