########################################################################## # Description: # This database gets the digital input status from the Aerotech controller # and splits it into two MBBI records. # This database also gets axis specifc status and fault pv`s # Disableallpvs PV can be used to disable all the pv`s for the device # # Macros: # U - Device prefix # PORT - Aerotech asyn port # AXIS - Aerotech axis identifier # SCAN - Desired scan rate # MAD - mad device name ########################################################################## record(ai, "$(DEVICE):DISTAT") { field(DESC, "digital inputs") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto getDINall(@$(AXIS)) $(ASYN_PORT)") field(SCAN, "1 second") } record(mbbiDirect, "$(DEVICE):DISTATS1") { field(DESC, "Digital input lower bits") field(DTYP, "Raw Soft Channel") field(INP, "$(DEVICE):DISTAT CP MS") } record(mbbiDirect, "$(DEVICE):DISTATS2") { field(DESC, "Digital input higher bits") field(DTYP, "Raw Soft Channel") field(INP, "$(DEVICE):DISTAT CP MS") field(SHFT, "16") } record(ai, "$(DEVICE):STAT") { field(DESC, "axis status") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto axisStatus(@$(AXIS)) $(ASYN_PORT)") field(SCAN, "1 second") } record(ai, "$(DEVICE):FAULT") { field(DESC, "axis fault") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto axisFault(@$(AXIS)) $(ASYN_PORT)") field(SCAN, "1 second") } record(ai, "$(DEVICE):AUTOHOMETRIGFAULT") { field(DESC, "fault to trigger autohome") field(DTYP, "stream") field(INP, "@aerotech.proto getIGLOBAL(60) $(ASYN_PORT)") field(PINI, "YES") field(SCAN,"1 second") } record(mbbiDirect, "$(DEVICE):AUTOHOMETRIGFAULTS1") { field(DESC, "fault lower bits") field(DTYP, "Raw Soft Channel") field(INP, "$(DEVICE):AUTOHOMETRIGFAULT CP MS") } record(mbbiDirect, "$(DEVICE):AUTOHOMETRIGFAULTS2") { field(DESC, "fault higher bits") field(DTYP, "Raw Soft Channel") field(INP, "$(DEVICE):AUTOHOMETRIGFAULT CP MS") field(SHFT, "16") } record(mbbiDirect, "$(DEVICE):STATS1") { field(DESC, "status lower bits") field(DTYP, "Raw Soft Channel") field(INP, "$(DEVICE):STAT CP MS") } record(mbbiDirect, "$(DEVICE):STATS2") { field(DESC, "status higher bits") field(DTYP, "Raw Soft Channel") field(INP, "$(DEVICE):STAT CP MS") field(SHFT, "16") } record(mbbiDirect, "$(DEVICE):FAULTS1") { field(DESC, "fault lower bits") field(DTYP, "Raw Soft Channel") field(INP, "$(DEVICE):FAULT CP MS") } record(mbbiDirect, "$(DEVICE):FAULTS2") { field(DESC, "fault higher bits") field(DTYP, "Raw Soft Channel") field(INP, "$(DEVICE):FAULT CP MS") field(SHFT, "16") } record(bi, "$(DEVICE):ENABLEDSTAT") { field(DESC, "Axis enabled") field(INP, "$(DEVICE):STATS1.B0 CP MS") field(ZNAM, "Disabled") field(ONAM, "Enabled") } record(bi, "$(DEVICE):HOMEDSTAT") { field(DESC, "Axis homed") field(INP, "$(DEVICE):STATS1.B1 CP MS") field(ZNAM, "Not Homed") field(ONAM, "Homed") field(ZSV, "MAJOR") field(OSV, "NO_ALARM") } # If both limit switch show as active record(calcout, "$(DEVICE):CABLESTAT_CALC") { field(DESC, "Motor Cable Status") field(INPA, "$(DEVICE):STATS2.B6 CP MS") field(INPB, "$(DEVICE):STATS2.B7 CP MS") field(CALC, "(A&&B)") field(FLNK, "$(DEVICE):CABLESTAT") } record(bo, "$(DEVICE):CABLESTAT") { field(DESC, "Motor Cable Status") field(DOL, "$(DEVICE):CABLESTAT_CALC MS") field(ONAM, "Motor cable disconnected") field(ZNAM, "OK") field(ZSV, "MAJOR") field(OSV, "NO_ALARM") } record(bi, "$(DEVICE):MOVEACTIVE") { field(DESC, "Move active") field(INP, "$(DEVICE):STATS1.B3 CP MS") field(ZNAM, "Not moving") field(ONAM, "Moving") } record(stringout, "$(DEVICE):FAULTACK") { field(DESC, "Ack fault on axis") field(DTYP, "stream") field(OUT, "@aerotech.proto axisFaultAck(@$(AXIS)) $(ASYN_PORT)") } record(stringout, "$(DEVICE):ENABLE") { field(DESC, "Enable axis") field(DTYP, "stream") field(OUT, "@aerotech.proto axisEnable(@$(AXIS)) $(ASYN_PORT)") } record(stringout, "$(DEVICE):ABORT") { field(DESC, "Abort axis") field(DTYP, "stream") field(OUT, "@aerotech.proto axisAbort(@$(AXIS)) $(ASYN_PORT)") } record(stringout, "$(DEVICE):DISABLE") { field(DESC, "Disable axis") field(DTYP, "stream") field(OUT, "@aerotech.proto axisDisable(@$(AXIS)) $(ASYN_PORT)") } record(stringout, "$(DEVICE):HOME") { field(DESC, "Home axis") field(DTYP, "stream") field(OUT, "@aerotech.proto axisHome(@$(AXIS)) $(ASYN_PORT)") } record(ai, "$(DEVICE):IDES") { field(DESC, "axis current") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto getCur(@$(AXIS)) $(ASYN_PORT)") field(SCAN, "1 second") field(PREC, 2) } record(ai, "$(DEVICE):EXTPOSN") { field(DESC, "Aux Encoder Position") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto extPos(@$(AXIS)) $(ASYN_PORT)") field(SCAN, "1 second") field(PREC, 3) field(LINR, "SLOPE") info(autosaveFields, "ESLO EOFF EGU") } record(ai, "$(DEVICE):EncOffset") { field(DESC, "$(MAD) Encoder offset") field(DTYP, "stream") field(INP, "@aerotech.proto getEncOff(@$(AXIS)) $(ASYN_PORT) ") field(PINI, "YES") field(PREC, "3") field(EGU, "mm") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP0IN0") { field(DESC, "Port 0 Input 0") field(INP, "$(DEVICE):DISTATS0.B0 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP0IN1") { field(DESC, "Port 0 Input 1") field(INP, "$(DEVICE):DISTATS0.B1 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP0IN2") { field(DESC, "Port 0 Input 2") field(INP, "$(DEVICE):DISTATS0.B2 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP0IN3") { field(DESC, "Port 0 Input 3") field(INP, "$(DEVICE):DISTATS0.B3 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP0IN4") { field(DESC, "Port 0 Input 4") field(INP, "$(DEVICE):DISTATS0.B4 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP0IN5") { field(DESC, "Port 0 Input 5") field(INP, "$(DEVICE):DISTATS0.B5 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP1IN0") { field(DESC, "Port 1 Input 0") field(INP, "$(DEVICE):DISTATS0.B8 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP1IN1") { field(DESC, "Port 1 Input 1") field(INP, "$(DEVICE):DISTATS0.B9 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP1IN2") { field(DESC, "Port 1 Input 2") field(INP, "$(DEVICE):DISTATS0.BA CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP1IN3") { field(DESC, "Port 1 Input 3") field(INP, "$(DEVICE):DISTATS0.BB CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP1IN4") { field(DESC, "Port 1 Input 4") field(INP, "$(DEVICE):DISTATS0.BC CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP1IN5") { field(DESC, "Port 1 Input 5") field(INP, "$(DEVICE):DISTATS0.BD CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP1IN6") { field(DESC, "Port 1 Input 6") field(INP, "$(DEVICE):DISTATS0.BE CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP1IN7") { field(DESC, "Port 1 Input 7") field(INP, "$(DEVICE):DISTATS0.BF CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP2IN0") { field(DESC, "Port 2 Input 0") field(INP, "$(DEVICE):DISTATS1.B0 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP2IN1") { field(DESC, "Port 2 Input 1") field(INP, "$(DEVICE):DISTATS1.B1 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP2IN2") { field(DESC, "Port 2 Input 2") field(INP, "$(DEVICE):DISTATS1.B2 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP2IN3") { field(DESC, "Port 2 Input 3") field(INP, "$(DEVICE):DISTATS1.B3 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP2IN4") { field(DESC, "Port 2 Input 4") field(INP, "$(DEVICE):DISTATS1.B4 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP2IN5") { field(DESC, "Port 2 Input 5") field(INP, "$(DEVICE):DISTATS1.B5 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP2IN6") { field(DESC, "Port 2 Input 6") field(INP, "$(DEVICE):DISTATS1.B6 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } # Borrowed # 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 - Device 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, "$(DEVICE):DIP2IN7") { field(DESC, "Port 2 Input 7") field(INP, "$(DEVICE):DISTATS1.B7 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } record(motor, "$(DEVICE):MOTR") { field(DESC, "$(MAD)") field(DTYP, "asynMotor") field(DIR, "Pos") field(VELO, "2") field(VBAS, "1") field(VMAX, "4") field(ACCL, "0.1") field(BDST, "0") field(OUT, "@asyn($(MOTOR_PORT),$(AXIS))") field(MRES, "0.00012755") field(ERES, "1") field(PREC, "4") field(EGU, "mm") field(DHLM, "0") field(DLLM, "0") field(UEIP, "1") field(TWV, "1") field(FOFF, "Frozen") field(OFF, "0") field(URIP, "0") field(RRES, "1") field(RTRY, "0") field(RDBL, "") field(RDBD, "1") field(DLY, "0") field(SCAN, "Passive") info(autosaveFields_pass0, "VAL") info(autosaveFields, "DIR DESC VMAX VBAS ACCL VELO MRES ERES PREC EGU DHLM DLLM DLY TWV RDBL RRES RTRY URIP UEIP FOFF OFF FRAC JVEL JAR HVEL HLM LLM") } record(bi,"$(DEVICE):CORRECT") { field(DESC, "CORRECT Button") field(DTYP, "Soft Channel") field(OSV, "MINOR") field(ZSV, "NO_ALARM") field(PINI, "YES") field(INP, "0") field(ZNAM, "OFF") field(ONAM, "On") } record(bi,"$(DEVICE):VERIFY") { field(DESC, "VERIFY Button") field(DTYP, "Soft Channel") field(OSV, "MINOR") field(ZSV, "NO_ALARM") field(PINI, "YES") field(INP, "0") field(ZNAM, "OFF") field(ONAM, "On") } record(bi,"$(DEVICE):SETMODEALARM") { field(DESC, "Set Button Alarm") field(DTYP, "Soft Channel") field(OSV, "MAJOR") field(ZSV, "NO_ALARM") field(PINI, "YES") field(INP, "0") field(ZNAM, "OFF") field(ONAM, "On") } ## Template for using modbus to read from LabJackT7 record(ai, "$(DEVICE):LVRAW") { field(DESC, "LVDT Raw Data") field(DTYP, "asynFloat64") field(SCAN, ".2 second") field(PREC, "6") field(FLNK, "$(DEVICE):LVRAW_AVERAGED") field(EGU, "V") field(INP, "@asyn($(LJPORT), $(AI_OFFSET), 1)FLOAT32_BE") } record(compress, "$(DEVICE):LVRAW_AVERAGED") { field(DESC, "LVDT Averaged Value") field(INP, "$(DEVICE):LVRAW MS") field(FLNK, "$(DEVICE):LVPOS_SUB") field(ALG, "N to 1 Average") field(PREC, "4") field(N, "10") } record(sub, "$(DEVICE):LVPOS_SUB") { field(DESC, " Position") field(SCAN, "Passive") field(INPA, "62.1733001334") field(INPB, "4.20916416557") field(INPC, "-0.0067172544127") field(INPD, "-0.00793465166199") field(INPE, "0.000190011136401") field(INPF, "4.3142792839e-05") field(INPG, "-2.21493374847e-06") field(INPH, "0.0") field(INPL, "$(DEVICE):LVRAW_AVERAGED MS") field(PREC, "4") field(PINI, "YES") field(INAM, "InitPoly") field(SNAM, "CalcPoly") info(autosaveFields, "A B C D E F G H") } record(ao, "$(DEVICE):LVPOS") { field(DESC, "LVDT position calculated") field(SCAN, ".1 second") field(DOL, "$(DEVICE):LVPOS_SUB.VAL") field(OMSL, "closed_loop") field(PREC, "4") field(EGU, "mm") field(HIHI, "99") field(LOLO, "30") field(HIGH, "43") field(LOW, "32") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") info(autosaveFields, "LOW LOLO HIGH HIHI HHSV LLSV HSV LSV") } record(ao, "$(DEVICE):XACT") { field(DESC, "LVDT position") field(SCAN, ".1 second") field(DOL, "$(DEVICE):MOTR.RBV") field(OMSL, "closed_loop") field(PREC, "4") field(EGU, "mm") } record(bo, "$(DEVICE):TRIM_DBG") { field(DTYP, "Raw Soft Channel") field(DESC, "Trim debug flag") field(VAL, "0") field(ZNAM, "Debug Off") field(ONAM, "Debug On") } record(sub, "$(DEVICE):POLYKACT") { field(SCAN, ".1 second") field(INAM, "InitPoly") field(SNAM, "CalcPoly") field(PINI, "YES") field(INPA, "10.0332") field(INPB, "-0.257948") field(INPC, "-0.0139218") field(INPD, "7.29779e-004") field(INPE, "-9.7100e-006") field(INPF, "-2.51544e-008") field(INPG, "1.37178e-009") field(INPH, "-8.23463e-012") field(INPL, "$(DEVICE):XACT") field(FLNK, "$(DEVICE):KACTRAW") } record(sub, "$(DEVICE):POLYXDES") { field(SCAN, "Passive") field(INAM, "InitPoly") field(SNAM, "CalcPoly") field(PINI, "YES") field(INPA, "50.1156") field(INPB, "-8.233216") field(INPC, "3.99644") field(INPD, "-9.00548") field(INPE, "-1.0518") field(INPF, "6.61893") field(INPG, "-3.16273") field(INPH, "0.455932") field(INPL, "$(DEVICE):KDES") field(FLNK, "$(DEVICE):KDESTOXDES") } record(ao, "$(DEVICE):KACTRAW") { field(PREC, "6") field(FLNK, "$(DEVICE):KACT") field(DOL, "$(DEVICE):POLYKACT") field(OMSL, "closed_loop") } record(calcout, "$(DEVICE):KACT") { field(CALC, "A") field(INPA, "$(DEVICE):KACTRAW") field(INPB, "$(DEVICE):KACTERROR.VAL NPP MS") field(PREC, "6") } record(ao, "$(DEVICE):KDES") { field(DESC, "Undulator KDES") field(PREC, "6") field(DRVH, "2.3") field(DRVL, "0") field(HOPR, "2.3") field(LOPR, "0") field(PINI, "YES") field(FLNK, "$(DEVICE):POLYXDES") } record(ao, "$(DEVICE):KCON") { field(DESC, "Und segment KCON") field(PINI, "YES") field(PREC, "6") field(DRVH, "2.3") field(DRVL, "0") field(HOPR, "2.3") field(LOPR, "0") } record(calcout, "$(DEVICE):CONTODES") { field(FLNK, "$(DEVICE):KDES") field(CALC, "A") field(INPA, "$(DEVICE):KCON") field(OUT, "$(DEVICE):KDES") } record(calcout, "$(DEVICE):ACTTODES") { field(CALC, "A") field(INPA, "$(DEVICE):KACT") field(OUT, "$(DEVICE):KDES") field(FLNK, "$(DEVICE):KDES") } record(calcout, "$(DEVICE):KACTERROR") { field(DESC, "(KACT-KDES)/KDES") field(CALC, "((B-A)/B)*(10^4)") field(INPA, "$(DEVICE):KACT") field(INPB, "$(DEVICE):KDES") field(HIHI, "40") field(LOLO, "-40") field(HIGH, "20") field(LOW, "-20") field(HHSV, "MAJOR") field(LLSV, "MAJOR") field(HSV, "MINOR") field(LSV, "MINOR") field(SCAN, ".1 second") field(PREC, "3") } record(calcout, "$(DEVICE):KCONERROR") { field(DESC, "(KACT-KDES)/KDES") field(CALC, "((B-A)/B)*(10^4)") field(INPA, "$(DEVICE):KCON") field(INPB, "$(DEVICE):KDES") field(HIGH, "2") field(LOW, "-2") field(HSV, "MINOR") field(LSV, "MINOR") field(SCAN, ".1 second") } record(ao, "$(DEVICE):KDESDELTA") { field(PINI, "YES") field(PREC, "4") field(DRVH, "1") field(DRVL, "0") field(HOPR, "1") field(LOPR, "0") field(VAL, "0.1") } record(calcout, "$(DEVICE):KDSDELTAPLUS") { field(FLNK, "$(DEVICE):KDES") field(CALC, "A+B") field(INPA, "$(DEVICE):KDESDELTA") field(INPB, "$(DEVICE):KDES") field(OUT, "$(DEVICE):KDES") } record(calcout, "$(DEVICE):KDSDELTAMINS") { field(FLNK, "$(DEVICE):KDES") field(CALC, "B-A") field(INPA, "$(DEVICE):KDESDELTA") field(INPB, "$(DEVICE):KDES") field(OUT, "$(DEVICE):KDES") } record(ao, "$(DEVICE):KDESTOXDES") { field(PREC, "4") field(EGU, "mm") field(DOL, "$(DEVICE):POLYXDES") field(OUT, "$(DEVICE):XDES") field(FLNK, "$(DEVICE):XDES") field(OMSL, "closed_loop") } record(ao, "$(DEVICE):XDES") { field(PREC, "4") field(EGU, "mm") field(DRVH, "111") field(DRVL, "31") field(HOPR, "111") field(LOPR, "31") } record(bo, "$(DEVICE):TRIM") { field(DESC, "Trim Request") field(ZNAM, "Standby") field(ONAM, "Trim ") } record(bi, "$(DEVICE):TRIMSTS") { field(DESC, "Trim status") field(ONAM, "Trim Done") field(ZNAM, "Trim Requested") } record(bi, "$(DEVICE):CORRECT_STS") { field(DESC, "readback correct status") field(ZNAM, "No Update") field(ONAM, "Readback corrected") } record(bi,"$(DEVICE):CORRECT") { field(DESC, "CORRECT Button") field(DTYP, "Soft Channel") field(OSV, "MINOR") field(ZSV, "NO_ALARM") field(PINI, "YES") field(INP, "0") field(ZNAM, "OFF") field(ONAM, "On") } record(bi,"$(DEVICE):VERIFY") { field(DESC, "VERIFY Button") field(DTYP, "Soft Channel") field(OSV, "MINOR") field(ZSV, "NO_ALARM") field(PINI, "YES") field(INP, "0") field(ZNAM, "OFF") field(ONAM, "On") } record(bi,"$(DEVICE):SETMODEALARM") { field(DESC, "Set Button Alarm") field(DTYP, "Soft Channel") field(OSV, "MAJOR") field(ZSV, "NO_ALARM") field(PINI, "YES") field(INP, "0") field(ZNAM, "OFF") field(ONAM, "On") } record(bo, "$(DEVICE):MOTR_ALRM") { field(DESC, "In Beam Alarm") field(DOL, "$(DEVICE):MOTRERROR MS") field(OMSL, "closed_loop") field(ZNAM, "IN_BEAM") field(ONAM, "OUT_OF_BEAM") field(ZSV, "MAJOR") field(OSV, "NO_ALARM") } record(calcout, "$(DEVICE):MOTRERROR") { field(CALC, "ABS(A-B)>C?0:1") field(FLNK, "$(DEVICE):MOTR_ALRM") field(SCAN, "1 second") field(INPA, "$(DEVICE):MOTR.RBV NPP MS") field(INPB, "$(DEVICE):LVPOS") field(INPC, "2") field(HIGH, "1") field(LOW, "0") field(HSV, "MAJOR") field(LSV, "NO_ALARM") info(autosaveFields, "CALC INPA INPB INPC") }