record(asyn,"SIOC:B34:MC04:ASYN") { field(DTYP,"asynRecordDevice") field(PORT,"MOC_B34_3") field(ADDR,"0") field(OMAX,"200") field(IMAX,"200") } ############################################################################ # File: aerotechTask.template # Description: Contains aerotech specific task pv`s and axis name`s # Macros: # WIRE:B34:MC03:CH1 - MOC:B34:MC01 # MOC_B34_3 - asyn port name # 1 - 1 through 4 # 1 - 1 through 4 ########################################################################### record(longin, "WIRE:B34:MC03:CH1:TASK1ERROR") { field(DESC, "Aerotech controller task error") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@aerotech.proto taskError(1) MOC_B34_3") field(PINI, "YES") } record(longin, "WIRE:B34:MC03:CH1:TASK1STATRAW") { field(DESC, "Aerotech controller task state") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@aerotech.proto taskState(1) MOC_B34_3") field(PINI, "YES") field(FLNK, "WIRE:B34:MC03:CH1:TASK1CALC") } record(calcout, "WIRE:B34:MC03:CH1:TASK1CALC") { field(DESC, "Aerotech task state calculation") field(INPA, "WIRE:B34:MC03:CH1:TASK1STATRAW") field(CALC, "2^A") field(OUT, "WIRE:B34:MC03:CH1:TASK1STAT PP NMS") field(OOPT, "Every Time") } record(mbbi, "WIRE:B34:MC03:CH1:TASK1STAT") { field(DESC, "Aerotech controller task state") field(ZRST, "Inactive") field(ONST, "Idle") field(TWST, "Program Ready") field(THST, "Program Running") field(FRST, "Program Paused") field(FVST, "Program Complete") field(SXST, "Error") field(TEST, "Running Plugin") } record(stringout,"WIRE:B34:MC03:CH1:AXIS1NAME"){ field(DESC, "Aerotech controller axis name") field(VAL,"") info(autosaveFields, "VAL") } ############################################################################ # File: aerotechTask.template # Description: Contains aerotech specific task pv`s and axis name`s # Macros: # WIRE:B34:MC03:CH1 - MOC:B34:MC01 # MOC_B34_3 - asyn port name # 2 - 1 through 4 # 2 - 1 through 4 ########################################################################### record(longin, "WIRE:B34:MC03:CH1:TASK2ERROR") { field(DESC, "Aerotech controller task error") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@aerotech.proto taskError(2) MOC_B34_3") field(PINI, "YES") } record(longin, "WIRE:B34:MC03:CH1:TASK2STATRAW") { field(DESC, "Aerotech controller task state") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@aerotech.proto taskState(2) MOC_B34_3") field(PINI, "YES") field(FLNK, "WIRE:B34:MC03:CH1:TASK2CALC") } record(calcout, "WIRE:B34:MC03:CH1:TASK2CALC") { field(DESC, "Aerotech task state calculation") field(INPA, "WIRE:B34:MC03:CH1:TASK2STATRAW") field(CALC, "2^A") field(OUT, "WIRE:B34:MC03:CH1:TASK2STAT PP NMS") field(OOPT, "Every Time") } record(mbbi, "WIRE:B34:MC03:CH1:TASK2STAT") { field(DESC, "Aerotech controller task state") field(ZRST, "Inactive") field(ONST, "Idle") field(TWST, "Program Ready") field(THST, "Program Running") field(FRST, "Program Paused") field(FVST, "Program Complete") field(SXST, "Error") field(TEST, "Running Plugin") } record(stringout,"WIRE:B34:MC03:CH1:AXIS2NAME"){ field(DESC, "Aerotech controller axis name") field(VAL,"") info(autosaveFields, "VAL") } ############################################################################ # File: aerotechTask.template # Description: Contains aerotech specific task pv`s and axis name`s # Macros: # WIRE:B34:MC03:CH1 - MOC:B34:MC01 # MOC_B34_3 - asyn port name # 3 - 1 through 4 # 3 - 1 through 4 ########################################################################### record(longin, "WIRE:B34:MC03:CH1:TASK3ERROR") { field(DESC, "Aerotech controller task error") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@aerotech.proto taskError(3) MOC_B34_3") field(PINI, "YES") } record(longin, "WIRE:B34:MC03:CH1:TASK3STATRAW") { field(DESC, "Aerotech controller task state") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@aerotech.proto taskState(3) MOC_B34_3") field(PINI, "YES") field(FLNK, "WIRE:B34:MC03:CH1:TASK3CALC") } record(calcout, "WIRE:B34:MC03:CH1:TASK3CALC") { field(DESC, "Aerotech task state calculation") field(INPA, "WIRE:B34:MC03:CH1:TASK3STATRAW") field(CALC, "2^A") field(OUT, "WIRE:B34:MC03:CH1:TASK3STAT PP NMS") field(OOPT, "Every Time") } record(mbbi, "WIRE:B34:MC03:CH1:TASK3STAT") { field(DESC, "Aerotech controller task state") field(ZRST, "Inactive") field(ONST, "Idle") field(TWST, "Program Ready") field(THST, "Program Running") field(FRST, "Program Paused") field(FVST, "Program Complete") field(SXST, "Error") field(TEST, "Running Plugin") } record(stringout,"WIRE:B34:MC03:CH1:AXIS3NAME"){ field(DESC, "Aerotech controller axis name") field(VAL,"") info(autosaveFields, "VAL") } ############################################################################ # File: aerotechTask.template # Description: Contains aerotech specific task pv`s and axis name`s # Macros: # WIRE:B34:MC03:CH1 - MOC:B34:MC01 # MOC_B34_3 - asyn port name # 4 - 1 through 4 # 4 - 1 through 4 ########################################################################### record(longin, "WIRE:B34:MC03:CH1:TASK4ERROR") { field(DESC, "Aerotech controller task error") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@aerotech.proto taskError(4) MOC_B34_3") field(PINI, "YES") } record(longin, "WIRE:B34:MC03:CH1:TASK4STATRAW") { field(DESC, "Aerotech controller task state") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@aerotech.proto taskState(4) MOC_B34_3") field(PINI, "YES") field(FLNK, "WIRE:B34:MC03:CH1:TASK4CALC") } record(calcout, "WIRE:B34:MC03:CH1:TASK4CALC") { field(DESC, "Aerotech task state calculation") field(INPA, "WIRE:B34:MC03:CH1:TASK4STATRAW") field(CALC, "2^A") field(OUT, "WIRE:B34:MC03:CH1:TASK4STAT PP NMS") field(OOPT, "Every Time") } record(mbbi, "WIRE:B34:MC03:CH1:TASK4STAT") { field(DESC, "Aerotech controller task state") field(ZRST, "Inactive") field(ONST, "Idle") field(TWST, "Program Ready") field(THST, "Program Running") field(FRST, "Program Paused") field(FVST, "Program Complete") field(SXST, "Error") field(TEST, "Running Plugin") } record(stringout,"WIRE:B34:MC03:CH1:AXIS4NAME"){ field(DESC, "Aerotech controller axis name") field(VAL,"") info(autosaveFields, "VAL") } ############################################################################ # File: aerotechTask.template # Description: Contains aerotech specific task pv`s and axis name`s # Macros: # WIRE:B34:MC03:CH1 - MOC:B34:MC01 # MOC_B34_3 - asyn port name # 5 - 1 through 4 # 5 - 1 through 4 ########################################################################### record(longin, "WIRE:B34:MC03:CH1:TASK5ERROR") { field(DESC, "Aerotech controller task error") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@aerotech.proto taskError(5) MOC_B34_3") field(PINI, "YES") } record(longin, "WIRE:B34:MC03:CH1:TASK5STATRAW") { field(DESC, "Aerotech controller task state") field(SCAN, "1 second") field(DTYP, "stream") field(INP, "@aerotech.proto taskState(5) MOC_B34_3") field(PINI, "YES") field(FLNK, "WIRE:B34:MC03:CH1:TASK5CALC") } record(calcout, "WIRE:B34:MC03:CH1:TASK5CALC") { field(DESC, "Aerotech task state calculation") field(INPA, "WIRE:B34:MC03:CH1:TASK5STATRAW") field(CALC, "2^A") field(OUT, "WIRE:B34:MC03:CH1:TASK5STAT PP NMS") field(OOPT, "Every Time") } record(mbbi, "WIRE:B34:MC03:CH1:TASK5STAT") { field(DESC, "Aerotech controller task state") field(ZRST, "Inactive") field(ONST, "Idle") field(TWST, "Program Ready") field(THST, "Program Running") field(FRST, "Program Paused") field(FVST, "Program Complete") field(SXST, "Error") field(TEST, "Running Plugin") } record(stringout,"WIRE:B34:MC03:CH1:AXIS5NAME"){ field(DESC, "Aerotech controller axis name") field(VAL,"") info(autosaveFields, "VAL") } ############################################################################ # File: aerotechController.template # Description: Contains aerotech specific pv`s # Macros: # WIRE:B34:MC03:CH1 - MOC:B34:MC01 # MOC_B34_3 - asyn port name ########################################################################### record(stringout, "WIRE:B34:MC03:CH1:LOCA") { field(DESC, "Location") field(VAL,"") info(autosaveFields, "VAL") } record(stringout, "WIRE:B34:MC03:CH1:RESET") { field(DESC, "Aerotech controller Reset") field(DTYP, "stream") field(OUT, "@aerotech.proto reset MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:ACKALL") { field(DESC, "Aerotech controller Acknowledge All") field(DTYP, "stream") field(OUT, "@aerotech.proto ackAll MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:TASK1START") { field(DESC, "Aerotech task restart") field(DTYP, "stream") field(OUT, "@aerotech.proto taskWsManagerRestart MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:TASK4START") { field(DESC, "Aerotech task restart") field(DTYP, "stream") field(OUT, "@aerotech.proto taskFaultRestart MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:TASK1STOP") { field(DESC, "AeroBasic Task1 Stop") field(DTYP, "stream") field(OUT, "@aerotech.proto programStop(1) MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:TASK2STOP") { field(DESC, "AeroBasic Task2 Stop") field(DTYP, "stream") field(OUT, "@aerotech.proto programStop(2) MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:TASK3STOP") { field(DESC, "AeroBasic Task3 Stop") field(DTYP, "stream") field(OUT, "@aerotech.proto programStop(3) MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:TASK4STOP") { field(DESC, "AeroBasic Task4 Stop") field(DTYP, "stream") field(OUT, "@aerotech.proto programStop(4) MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:TASK5STOP") { field(DESC, "AeroBasic Task5 Stop") field(DTYP, "stream") field(OUT, "@aerotech.proto programStop(5) MOC_B34_3") } record(ao,"WIRE:B34:MC03:CH1:AXISCOUNT"){ field(DESC, "Aerotech controller axis count") field(VAL,"") info(autosaveFields, "VAL") } record(asyn,"WIRE:B34:MC03:CH1:ASYN") { field(DTYP,"asynRecordDevice") field(PORT,"MOC_B34_3") field(ADDR,"0") field(OMAX,"200") field(IMAX,"200") } ########################################################################## # 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, "WIRE:B34:MC03:CH1:DISTAT") { field(DESC, "digital inputs") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto getDINall(@0) MOC_B34_3") field(SCAN, "1 second") } record(mbbiDirect, "WIRE:B34:MC03:CH1:DISTATS1") { field(DESC, "Digital input lower bits") field(DTYP, "Raw Soft Channel") field(INP, "WIRE:B34:MC03:CH1:DISTAT CP MS") } record(mbbiDirect, "WIRE:B34:MC03:CH1:DISTATS2") { field(DESC, "Digital input higher bits") field(DTYP, "Raw Soft Channel") field(INP, "WIRE:B34:MC03:CH1:DISTAT CP MS") field(SHFT, "16") } record(ai, "WIRE:B34:MC03:CH1:STAT") { field(DESC, "axis status") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto axisStatus(@0) MOC_B34_3") field(SCAN, "1 second") } record(ai, "WIRE:B34:MC03:CH1:FAULT") { field(DESC, "axis fault") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto axisFault(@0) MOC_B34_3") field(SCAN, "1 second") } record(ai, "WIRE:B34:MC03:CH1:AUTOHOMETRIGFAULT") { field(DESC, "fault to trigger autohome") field(DTYP, "stream") field(INP, "@aerotech.proto getIGLOBAL(60) MOC_B34_3") field(PINI, "YES") field(SCAN,"1 second") } record(mbbiDirect, "WIRE:B34:MC03:CH1:AUTOHOMETRIGFAULTS1") { field(DESC, "fault lower bits") field(DTYP, "Raw Soft Channel") field(INP, "WIRE:B34:MC03:CH1:AUTOHOMETRIGFAULT CP MS") } record(mbbiDirect, "WIRE:B34:MC03:CH1:AUTOHOMETRIGFAULTS2") { field(DESC, "fault higher bits") field(DTYP, "Raw Soft Channel") field(INP, "WIRE:B34:MC03:CH1:AUTOHOMETRIGFAULT CP MS") field(SHFT, "16") } record(mbbiDirect, "WIRE:B34:MC03:CH1:STATS1") { field(DESC, "status lower bits") field(DTYP, "Raw Soft Channel") field(INP, "WIRE:B34:MC03:CH1:STAT CP MS") field(NOBT, "16") } record(mbbiDirect, "WIRE:B34:MC03:CH1:STATS2") { field(DESC, "status higher bits") field(DTYP, "Raw Soft Channel") field(INP, "WIRE:B34:MC03:CH1:STAT CP MS") field(SHFT, "16") field(NOBT, "16") } record(mbbiDirect, "WIRE:B34:MC03:CH1:FAULTS1") { field(DESC, "fault lower bits") field(DTYP, "Raw Soft Channel") field(INP, "WIRE:B34:MC03:CH1:FAULT CP MS") field(NOBT, "16") } record(mbbiDirect, "WIRE:B34:MC03:CH1:FAULTS2") { field(DESC, "fault higher bits") field(DTYP, "Raw Soft Channel") field(INP, "WIRE:B34:MC03:CH1:FAULT CP MS") field(SHFT, "16") field(NOBT, "16") } record(bi, "WIRE:B34:MC03:CH1:ENABLEDSTAT") { field(DESC, "Axis enabled") field(INP, "WIRE:B34:MC03:CH1:STATS1.B0 CP MS") field(ZNAM, "Disabled") field(ONAM, "Enabled") } record(bi, "WIRE:B34:MC03:CH1:HOMEDSTAT") { field(DESC, "Axis homed") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:CABLESTAT_CALC") { field(DESC, "Motor Cable Status") field(INPA, "WIRE:B34:MC03:CH1:STATS2.B6 CP MS") field(INPB, "WIRE:B34:MC03:CH1:STATS2.B7 CP MS") field(CALC, "(A&&B)") field(FLNK, "WIRE:B34:MC03:CH1:CABLESTAT") } record(bo, "WIRE:B34:MC03:CH1:CABLESTAT") { field(DESC, "Motor Cable Status") field(DOL, "WIRE:B34:MC03:CH1:CABLESTAT_CALC MS") field(ONAM, "Motor cable disconnected") field(ZNAM, "OK") field(ZSV, "MAJOR") field(OSV, "NO_ALARM") } record(bi, "WIRE:B34:MC03:CH1:MOVEACTIVE") { field(DESC, "Move active") field(INP, "WIRE:B34:MC03:CH1:STATS1.B3 CP MS") field(ZNAM, "Not moving") field(ONAM, "Moving") field(OSV, "MINOR") field(ZSV, "NO_ALARM") } # When Move Active PV transitions to 0. # Then, Move complete. # Then count up. record(calcout, "WIRE:B34:MC03:CH1:CALC_COUNTER1") { field(DESC, "Check if moving") field(CALC, "A") field(INPA, "WIRE:B34:MC03:CH1:MOVEACTIVE CP") field(OUT, "WIRE:B34:MC03:CH1:USECYCLES.PROC") # When Transition to Zero field(OOPT, "4") field(ASG, "Internal") } # Store device use in counts. # This record counts up 1 after every collimator use record(calc, "WIRE:B34:MC03:CH1:USECYCLES") { field(DESC, "Counts the times collimator is used") field(CALC, "VAL+1") field(HIHI, "900") field(HIGH, "800") field(HHSV, "MAJOR") field(HSV, "MINOR") info(autosaveFields, "VAL") } # When Move Active PV transitions to 0. # Then move is complete # Then start sequence to delay by 8 seconds # Set Done move Bit after 8 seconds # Done to compensate for slow LVDT! # Kludge record(calcout, "WIRE:B34:MC03:CH1:CALC_COUNTER2") { field(DESC, "Check if moving") field(CALC, "A") field(INPA, "WIRE:B34:MC03:CH1:MOVEACTIVE CP") field(OUT, "WIRE:B34:MC03:CH1:DONEMOVE_SEQ.PROC") # When Transition to Zero field(OOPT, "4") field(ASG, "Internal") field(FLNK, "WIRE:B34:MC03:CH1:DONEMOVE_SEQ") } record(seq, "WIRE:B34:MC03:CH1:DONEMOVE_SEQ") { field(DESC, "Done Move") field(DLY1, "8") field(DOL1, "0") field(LNK1, "WIRE:B34:MC03:CH1:DONEMOVE CA") field(ASG, "Internal") } record(bi, "WIRE:B34:MC03:CH1:DONEMOVE") { field(DESC, "Move active") field(ZNAM, "Move complete") field(ONAM, "Move active") } # When Move Active transitions to 1. # Then device active # Then set DONEMOVEPV appropriately record(calcout, "WIRE:B34:MC03:CH1:CALC_COUNTER3") { field(DESC, "Check if moving") field(CALC, "A") field(INPA, "WIRE:B34:MC03:CH1:MOVEACTIVE CP") field(OUT, "WIRE:B34:MC03:CH1:DONEMOVE CA") # When Transition to One field(OOPT, "5") field(ASG, "Internal") } record(stringout, "WIRE:B34:MC03:CH1:FAULTACK") { field(DESC, "Ack fault on axis") field(DTYP, "stream") field(OUT, "@aerotech.proto axisFaultAck(@0) MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:ENABLE") { field(DESC, "Enable axis") field(DTYP, "stream") field(OUT, "@aerotech.proto axisEnable(@0) MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:ABORT") { field(DESC, "Abort axis") field(DTYP, "stream") field(OUT, "@aerotech.proto axisAbort(@0) MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:DISABLE") { field(DESC, "Disable axis") field(DTYP, "stream") field(OUT, "@aerotech.proto axisDisable(@0) MOC_B34_3") } record(stringout, "WIRE:B34:MC03:CH1:HOME") { field(DESC, "Home axis") field(DTYP, "stream") field(OUT, "@aerotech.proto axisHome(@0) MOC_B34_3") } record(ai, "WIRE:B34:MC03:CH1:IDES") { field(DESC, "axis current") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto getCur(@0) MOC_B34_3") field(SCAN, "1 second") field(PREC, 2) } record(ai, "WIRE:B34:MC03:CH1:VFBK") { field(DESC, "axis velocity") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto getVelo(@0) MOC_B34_3") field(SCAN, "1 second") field(PREC, 2) } record(ai, "WIRE:B34:MC03:CH1:EXTPOSN") { field(DESC, "Aux Encoder Position") field(PINI, "YES") field(DTYP, "stream") field(INP, "@aerotech.proto extPos(@0) MOC_B34_3") field(SCAN, "1 second") field(PREC, 3) field(LINR, "SLOPE") info(autosaveFields, "ESLO EOFF EGU") } record(ai, "WIRE:B34:MC03:CH1:EncOffset") { field(DESC, "B34-CP2-CH1 Encoder offset") field(DTYP, "stream") field(INP, "@aerotech.proto getEncOff(@0) MOC_B34_3 ") field(PINI, "YES") field(PREC, "3") field(EGU, "mm") } # # Record set Average Current Threshold to controller # record(ao, "WIRE:B34:MC03:CH1:SET_AVG_CURRENT") { field(DESC, "Set avg current to AB") field(DTYP, "stream") field(EGU, "A") field(OUT, "@aerotech.proto setAvgCurrent(@0) MOC_B34_3") } # # RBV for Average Current Threshold # record(ai, "WIRE:B34:MC03:CH1:GET_AVG_CURRENT") { field(DESC, "RBV for avg current") field(DTYP, "stream") field(INP, "@aerotech.proto getAvgCurrent(@0) MOC_B34_3") field(EGU, "A") field(PINI, "YES") field(SCAN,"1 second") } # # Record set Max Current Clamp to controller # record(ao, "WIRE:B34:MC03:CH1:SET_MAX_CURRENT") { field(DESC, "Set Max Current Clamp") field(DTYP, "stream") field(EGU, "A") field(OUT, "@aerotech.proto setMaxCurrentClamp(@0) MOC_B34_3") } # # RBV for Max Current Clamp # record(ai, "WIRE:B34:MC03:CH1:GET_MAX_CURRENT") { field(DESC, "RBV for Max Current Clamp") field(DTYP, "stream") field(INP, "@aerotech.proto getMaxCurrentClamp(@0) MOC_B34_3") field(EGU, "A") field(PINI, "YES") field(SCAN,"1 second") } # # Commit Parameters after set parameters # record(stringout, "WIRE:B34:MC03:CH1:COMMITPARAM") { field(DESC, "Commit Parameters") field(DTYP, "stream") field(OUT, "@aerotech.proto commitParameters MOC_B34_3") } # 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, "WIRE:B34:MC03:CH1:DIP0IN0") { field(DESC, "Port 0 Input 0") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP0IN1") { field(DESC, "Port 0 Input 1") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP0IN2") { field(DESC, "Port 0 Input 2") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP0IN3") { field(DESC, "Port 0 Input 3") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP0IN4") { field(DESC, "Port 0 Input 4") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP0IN5") { field(DESC, "Port 0 Input 5") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP1IN0") { field(DESC, "Port 1 Input 0") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP1IN1") { field(DESC, "Port 1 Input 1") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP1IN2") { field(DESC, "Port 1 Input 2") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP1IN3") { field(DESC, "Port 1 Input 3") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP1IN4") { field(DESC, "Port 1 Input 4") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP1IN5") { field(DESC, "Port 1 Input 5") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP1IN6") { field(DESC, "Port 1 Input 6") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP1IN7") { field(DESC, "Port 1 Input 7") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP2IN0") { field(DESC, "Port 2 Input 0") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP2IN1") { field(DESC, "Port 2 Input 1") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP2IN2") { field(DESC, "Port 2 Input 2") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP2IN3") { field(DESC, "Port 2 Input 3") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP2IN4") { field(DESC, "Port 2 Input 4") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP2IN5") { field(DESC, "Port 2 Input 5") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP2IN6") { field(DESC, "Port 2 Input 6") field(INP, "WIRE:B34:MC03:CH1: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, "WIRE:B34:MC03:CH1:DIP2IN7") { field(DESC, "Port 2 Input 7") field(INP, "WIRE:B34:MC03:CH1:DISTATS1.B7 CP NMS") field(ZNAM, "Off") field(ONAM, "On") info(autosaveFields, "DESC") } record(motor, "WIRE:B34:MC03:CH1:MOTR") { field(DESC, "B34-CP2-CH1") 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(MOC_B34_3M,0)") field(MRES, "4e-4") 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(ASG, "$(ASG)") 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(bo, "WIRE:B34:MC03:CH1:MOTR_ALRM") { field(DESC, "In Beam Alarm") field(DOL, "WIRE:B34:MC03:CH1:MOTRERROR MS") field(OMSL, "closed_loop") field(ONAM, "IN_BEAM") field(ZNAM, "OUT_OF_BEAM") field(OSV, "MAJOR") field(ZSV, "NO_ALARM") } record(calcout, "WIRE:B34:MC03:CH1:MOTRERROR") { field(CALC, "(A>=B)?1:0") field(FLNK, "WIRE:B34:MC03:CH1:MOTR_ALRM") field(SCAN, "1 second") field(INPA, "WIRE:B34:MC03:CH1:MOTR.RBV NPP MS") field(INPB, "3000") field(INPC, "0") field(HIGH, "1") field(LOW, "0") field(HSV, "MAJOR") field(LSV, "NO_ALARM") info(autosaveFields, "CALC INPA INPB INPC") } # Init sequence record. Initialized by pressing :MOTR_INIT button. # The init_seq, # a) turns off and then turns on the motor within 0.5s # c) pushes 0 to home_check disable field and then homes the motor after 0.5s record(bo, "WIRE:B34:MC03:CH1:MOTR_INIT") { field(DESC, "Init or Re Init") field(ZNAM, "Standby") field(ONAM, "Initialize ") } record(bo, "WIRE:B34:MC03:CH1:MOTR_INIT_DBG") { field(DTYP, "Raw Soft Channel") field(DESC, "Init debug flag") field(VAL, "0") field(ZNAM, "Debug Off") field(ONAM, "Debug On") } # Error acknowledge command initiates acknowledge sequence # For linmot, disbale and then enable the motor to clear the error. record(bo, "WIRE:B34:MC03:CH1:MOTR_ERR_ACK_CMD") { field(DESC, "Error Ack CMD") field(FLNK, "WIRE:B34:MC03:CH1:FAULTACK") field(ZNAM, "NO ACK") field(ONAM, "ACK") } record(seq, "WIRE:B34:MC03:CH1:ACK_ERR_SEQ") { field(DESC, "Acknowledge error") field(DLY1, "2") field(DOL1, "0") field(LNK1, "WIRE:B34:MC03:CH1:MOTR.CNEN") field(DOL2, "1") field(LNK2, "WIRE:B34:MC03:CH1:MOTR.CNEN") field(ASG, "Internal") } # Motor switch on command # Motor can be turned on by # a) MOTR.CNEN and MOTR_SWITCH_ON_CMD # To ensure that both the commands work and not counter one another, calc records used # and both the PV`s should be updated if one does. record(bo, "WIRE:B34:MC03:CH1:MOTR_SWITCH_ON_CMD") { field(DESC, "Motor switch on CMD") field(ZNAM, "OFF") field(ONAM, "ON") } record(calcout, "WIRE:B34:MC03:CH1:CALC_ENABLE") { field(DESC, "Check ON cmd is pressed") field(CALC, "(A#B)?1:0") field(INPA, "WIRE:B34:MC03:CH1:MOTR_SWITCH_ON_CMD CP") field(INPB, "WIRE:B34:MC03:CH1:MOTR.CNEN") field(OUT, "WIRE:B34:MC03:CH1:ENABLE_BO.PROC") field(OOPT, "When Non-zero") field(ASG, "Internal") } record(bo, "WIRE:B34:MC03:CH1:ENABLE_BO") { field(DESC, "copies switch on to cnen") field(DOL, "WIRE:B34:MC03:CH1:MOTR_SWITCH_ON_CMD") field(OUT, "WIRE:B34:MC03:CH1:MOTR.CNEN PP") field(OMSL, "closed_loop") field(ASG, "Internal") } record(calcout, "WIRE:B34:MC03:CH1:CALC_CNEN") { field(DESC, "Check CNEN is pressed") field(CALC, "(A#B)?1:0") field(INPA, "WIRE:B34:MC03:CH1:MOTR.CNEN CP") field(INPB, "WIRE:B34:MC03:CH1:MOTR_SWITCH_ON_CMD") field(OUT, "WIRE:B34:MC03:CH1:CNEN_BO.PROC") field(OOPT, "When Non-zero") field(ASG, "Internal") } record(bo, "WIRE:B34:MC03:CH1:CNEN_BO") { field(DESC, "copies switch on to bo") field(DOL, "WIRE:B34:MC03:CH1:MOTR.CNEN") field(OUT, "WIRE:B34:MC03:CH1:MOTR_SWITCH_ON_CMD PP") field(OMSL, "closed_loop") field(ASG, "Internal") } # Motor home command # Motor can be homed by # a) MOTR.HOMR , HOML and MOTR_HOME_CMD # To ensure that both the commands work and not counter one another, calc records used # and both the PV`s should be updated if one does. record(bo, "WIRE:B34:MC03:CH1:MOTR_HOME_CMD") { field(DESC, "MOtor Home CMD") field(ZNAM, "OFF") field(ONAM, "HOME") } record(calcout, "WIRE:B34:MC03:CH1:CALC_HCMD") { field(DESC, "Check HOME cmd is pressed") field(CALC, "(A#B)?1:0") field(INPA, "WIRE:B34:MC03:CH1:MOTR_HOME_CMD CP") field(INPB, "WIRE:B34:MC03:CH1:MOTR.HOMR") field(OUT, "WIRE:B34:MC03:CH1:HCMD_BO.PROC") field(OOPT, "When Non-zero") field(ASG, "Internal") } record(bo, "WIRE:B34:MC03:CH1:HCMD_BO") { field(DESC, "copies home cmd to homr_bo") field(DOL, "WIRE:B34:MC03:CH1:MOTR_HOME_CMD") field(OUT, "WIRE:B34:MC03:CH1:MOTR.HOMR PP") field(OMSL, "closed_loop") field(ASG, "Internal") } record(calcout, "WIRE:B34:MC03:CH1:CALC_HOMR") { field(DESC, "Check HOMR is pressed") field(CALC, "(A#B)?1:0") field(INPA, "WIRE:B34:MC03:CH1:MOTR.HOMR CP") field(INPB, "WIRE:B34:MC03:CH1:MOTR_HOME_CMD") field(OUT, "WIRE:B34:MC03:CH1:HOMR_BO.PROC") field(OOPT, "When Non-zero") field(ASG, "Internal") } record(bo, "WIRE:B34:MC03:CH1:HOMR_BO") { field(DESC, "copies HOMR to HCMD_bo") field(DOL, "WIRE:B34:MC03:CH1:MOTR.HOMR") field(OUT, "WIRE:B34:MC03:CH1:MOTR_HOME_CMD PP") field(OMSL, "closed_loop") field(ASG, "Internal") } # Retract pv inititates the retract sequence # Retract equence homes and disables the motor record(bo, "WIRE:B34:MC03:CH1:MOTR_RETRACT") { field(DESC, "Motor Home and Disable") field(ZNAM, "Standby") field(ONAM, "Retract") } # As counter is incremental, reset counter sequence is used. # This sequence check`s if motor is homed and then resets the counter value. # To check if motor is homed, motion active status should transition to zero. # If motor record readback and external encoder readback are different # Initiates a sequence which updates teh motor readback to match encoder # Also make sure the retract position is higher than lower limit # Ensure the links are passive process. # No need for passive process for POSN. It updates as I/O interrupt record(bo, "WIRE:B34:MC03:CH1:CORRECT"){ field(DESC, "Update POSN value into MOTR value") field(FLNK, "WIRE:B34:MC03:CH1:CORRECT_SEQ") field(ZNAM, "No Update") field(ONAM, "Updating") } record(calcout, "WIRE:B34:MC03:CH1:CORRECT_CALC") { field(DESC, "Diff btw POSN and MOTR.VAL") field(CALC, "A-B+C") field(INPA, "WIRE:B34:MC03:CH1:POSN") field(INPB, "WIRE:B34:MC03:CH1:MOTR.RBV PP") field(INPC, "WIRE:B34:MC03:CH1:MOTR.OFF PP") field(ASG, "Internal") } record(seq, "WIRE:B34:MC03:CH1:CORRECT_SEQ") { field(DESC, "Update POSN value into MOTR value") field(DOL1, "1") field(LNK1, "WIRE:B34:MC03:CH1:MOTR.SET PP") field(DOL2, "WIRE:B34:MC03:CH1:CORRECT_CALC.VAL PP") field(LNK2, "WIRE:B34:MC03:CH1:MOTR.OFF") field(DLY2, "1") field(DOL3, "0") field(LNK3, "WIRE:B34:MC03:CH1:MOTR.SET PP") field(DLY3, "1") field(DLY4, "1") field(DOL4, "WIRE:B34:MC03:CH1:MOTR_RETRACT_POS_CALC PP") field(LNK4, "WIRE:B34:MC03:CH1:MOTR_RETRACT_POS.VAL PP") field(DLY5, "1") field(DOL5, "1") field(LNK5, "WIRE:B34:MC03:CH1:CORRECT_STS PP") field(ASG, "Internal") } record(calcout, "WIRE:B34:MC03:CH1:MOTR_RETRACT_POS_CALC") { field(DESC, "Diff btw lower limit and retract pos") field(CALC, "A+100") field(INPA, "WIRE:B34:MC03:CH1:MOTR.LLM PP") field(ASG, "Internal") } record(bi, "WIRE:B34:MC03:CH1:CORRECT_STS") { field(DESC, "readback correct status") field(ZNAM, "No Update") field(ONAM, "Readback corrected") } # Store control architecture record(bo, "WIRE:B34:MC03:CH1:ARCHITECTURE") { field(DESC, "set control architecture") field(SCAN, "Passive") field(ZNAM, "ATCA") field(ONAM, "APCI") field(VAL, "1") info(autosaveFields, "VAL") } # File: wirescanner_status.db # # Description: # This database is used to get the status PV on EDM # Homes and encoder # It uses the motor record to get PV`s used used by HLA # # Macros: # P - Controller prefix # M - motor record(bi, "WIRE:B34:MC03:CH1:MOTR_ENABLED_STS") { field(DESC, "Enabled status") field(ZNAM, "Not Ready for WireScan") field(ONAM, "Ready for wirescan") } record(calcout, "WIRE:B34:MC03:CH1:CALC_ENABLED_STS") { field(DESC, "Check if enabled") field(CALC, "A&&B&&C") field(INPA, "WIRE:B34:MC03:CH1:MOTR_INIT_STS CP") field(INPB, "WIRE:B34:MC03:CH1:MOTR_ON_STS CP") field(INPC, "WIRE:B34:MC03:CH1:MOTR_HOMED_STS CP") field(OUT, "WIRE:B34:MC03:CH1:MOTR_ENABLED_STS PP") } record(bi, "WIRE:B34:MC03:CH1:MOTR_INIT_STS") { field(DESC, "Init status") field(ZNAM, "Not Initialized") field(ONAM, "Initialized") } record(bi, "WIRE:B34:MC03:CH1:MOTR_ON_STS") { field(DESC, "Torque status") field(INP, "WIRE:B34:MC03:CH1:STATS1.B0 CP") field(ZNAM, "Torque OFF") field(ONAM, "Torque ON") } record(bi, "WIRE:B34:MC03:CH1:MOTR_HOMED_STS") { field(DESC, "Homed") field(INP, "WIRE:B34:MC03:CH1:STATS1.B1 CP") field(ZNAM, "Not Homed") field(ONAM, "Homed") } record(bi, "WIRE:B34:MC03:CH1:MOTR_MOTION_ACT_STS") { field(DESC, "Motion Active") field(INP, "WIRE:B34:MC03:CH1:STATS1.B3 CP") field(ZNAM, "Not Moving") field(ONAM, "Moving") } record(bi, "WIRE:B34:MC03:CH1:MOTR_ERROR_STS") { field(DESC, "Error Status") field(INP, "WIRE:B34:MC03:CH1:AXIS_ERROR_CALC CP") field(ZNAM, "No Error") field(ONAM, "ERROR") field(ZSV, "NO_ALARM") field(OSV, "MAJOR") } record(calcout, "WIRE:B34:MC03:CH1:AXIS_ERROR_CALC") { field(DESC, "Check if Axis at fault") field(CALC, "(A>0)?1:0") field(INPA, "WIRE:B34:MC03:CH1:FAULT CP") field(OUT, "WIRE:B34:MC03:CH1:MOTR_ERROR_STS PP") field(ASG, "Internal") } # Get the home position from the motor record lower limit record(ao, "WIRE:B34:MC03:CH1:MOTR_RETRACT_POS") { field(ASG, "Internal") field(DESC, "Motor retract position") field(VAL, "0") info(autosaveFields, "VAL") } record(ao, "WIRE:B34:MC03:CH1:MOTR_TIMEOUT") { field(DTYP, "Raw Soft Channel") field(DESC, "Wait time before homing") field(VAL, "30") field(EGU, "sec") info(autosaveFields, "VAL") } record(ao, "WIRE:B34:MC03:CH1:MOTR_LTIMEOUT") { field(DTYP, "Raw Soft Channel") field(DESC, "Wait time at home to turn off") field(VAL, "30") field(EGU, "sec") info(autosaveFields, "VAL") } record(bo, "WIRE:B34:MC03:CH1:MOTR_TIMEOUTEN") { field(DTYP, "Raw Soft Channel") field(DESC, "Enable timeout: retract motor") field(ZNAM, "Disabled") field(ONAM, "Enabled") info(autosaveFields, "VAL") } record(bo, "WIRE:B34:MC03:CH1:MOTR_TIMEOUT_DBG") { field(DTYP, "Raw Soft Channel") field(DESC, "Timeout debug flag") field(VAL, "0") field(ZNAM, "Debug Off") field(ONAM, "Debug On") }