JLC test
Dependencies: PinDetect libmDot mbed-rtos mbed
globals.cpp@2:376af6a70e8a, 2016-01-30 (annotated)
- Committer:
- tmulrooney
- Date:
- Sat Jan 30 17:02:23 2016 +0000
- Revision:
- 2:376af6a70e8a
- Parent:
- 1:96c429800568
using UART 2 - not working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tmulrooney | 1:96c429800568 | 1 | /* ======================================== |
tmulrooney | 1:96c429800568 | 2 | * Filename: globals.c |
tmulrooney | 1:96c429800568 | 3 | * |
tmulrooney | 1:96c429800568 | 4 | * Description: global variables and structures |
tmulrooney | 1:96c429800568 | 5 | * |
tmulrooney | 1:96c429800568 | 6 | * Copyright J-Factor Embedded Technologies 2015 |
tmulrooney | 1:96c429800568 | 7 | * Copyright TJM Embedded Software 2015 |
tmulrooney | 1:96c429800568 | 8 | * All Rights Reserved |
tmulrooney | 1:96c429800568 | 9 | * UNPUBLISHED, LICENSED SOFTWARE. |
tmulrooney | 1:96c429800568 | 10 | * |
tmulrooney | 1:96c429800568 | 11 | * CONFIDENTIAL AND PROPRIETARY INFORMATION |
tmulrooney | 1:96c429800568 | 12 | * WHICH IS THE PROPERTY OF J-Factor Embedded Technologies. |
tmulrooney | 1:96c429800568 | 13 | * |
tmulrooney | 1:96c429800568 | 14 | * ======================================== |
tmulrooney | 1:96c429800568 | 15 | */ |
tmulrooney | 1:96c429800568 | 16 | /** \file |
tmulrooney | 1:96c429800568 | 17 | * \brief global variables needed by other files. |
tmulrooney | 1:96c429800568 | 18 | */ |
tmulrooney | 1:96c429800568 | 19 | //#include <project.h> |
tmulrooney | 1:96c429800568 | 20 | #include <time.h> |
tmulrooney | 1:96c429800568 | 21 | #include "common.h" |
tmulrooney | 1:96c429800568 | 22 | |
tmulrooney | 1:96c429800568 | 23 | /* globals */ |
tmulrooney | 1:96c429800568 | 24 | char* c_time_string; //!< relatine time and date string |
tmulrooney | 1:96c429800568 | 25 | char time_string[10] = "00:00:00"; //!< relatine time only string |
tmulrooney | 1:96c429800568 | 26 | time_t epoch; //!< time in seconds since epoch |
tmulrooney | 1:96c429800568 | 27 | int32 iVref; //!< voltage across reference resistor |
tmulrooney | 1:96c429800568 | 28 | int32 iVtherm; //!< Voltages across thermistor |
tmulrooney | 1:96c429800568 | 29 | uint32 iRes; //!< Resistance of Thermistor |
tmulrooney | 1:96c429800568 | 30 | int32 iTemp; //!< Temperature value (x 100) in degrees C |
tmulrooney | 1:96c429800568 | 31 | int32 iCurrent0; //!< current in AMUX 0 |
tmulrooney | 1:96c429800568 | 32 | int32 iCurrent1; //!< current in AMUX 1 |
tmulrooney | 1:96c429800568 | 33 | int32 iCurrent2; //!< current in AMUX 2 |
tmulrooney | 1:96c429800568 | 34 | int32 iCurrent3; //!< current in AMUX 3 |
tmulrooney | 1:96c429800568 | 35 | uint8 lampTestStatus; //!< lamp test status |
tmulrooney | 1:96c429800568 | 36 | uint16 lampTestTime; //!< running lamp test time |
tmulrooney | 1:96c429800568 | 37 | uint16 lampTestTimeSet; //!< reset lamp test time |
tmulrooney | 1:96c429800568 | 38 | uint8 runStatus; //!< 0 - not running control mode, 1 = running in control mode |
tmulrooney | 1:96c429800568 | 39 | uint8 pendantPresent; //!< pendant present flag after lamp test |
tmulrooney | 1:96c429800568 | 40 | uint8 checkPendant; //!< check pendant state inside lamp test |
tmulrooney | 1:96c429800568 | 41 | uint8 pendantTestStatus; //!< pendant test status |
tmulrooney | 1:96c429800568 | 42 | uint16 pendantTestTime; //!< running pendant test time |
tmulrooney | 1:96c429800568 | 43 | uint16 pendantTestTimeSet; //!< reset pendant test time |
tmulrooney | 1:96c429800568 | 44 | uint8 phaseUV; //!< phase under voltage bit 0-AB, 1-AC, 2-BC |
tmulrooney | 1:96c429800568 | 45 | uint8 tempFailed; //!< temperature above set point |
tmulrooney | 1:96c429800568 | 46 | uint8 v5Failed; //!< 5 volt failuer |
tmulrooney | 1:96c429800568 | 47 | uint8 v24Failed; //!< 24 volt failuer |
tmulrooney | 1:96c429800568 | 48 | uint8 HVState; //!< high voltage state |
tmulrooney | 1:96c429800568 | 49 | uint32 HVStateMsg; //!< high voltage state message flags |
tmulrooney | 1:96c429800568 | 50 | uint8 engHVSwitchStatus; //!< HV engaged switch NO and NC |
tmulrooney | 1:96c429800568 | 51 | float ampsPerVolt; //!< voltage to current translation |
tmulrooney | 1:96c429800568 | 52 | uint16 tempSampleRate; //!< running temperature sample rate |
tmulrooney | 1:96c429800568 | 53 | uint16 oneSecond; //!< running second timer |
tmulrooney | 1:96c429800568 | 54 | uint16 engagedSwitchTimeOn; //!< running engaged switch time |
tmulrooney | 1:96c429800568 | 55 | uint16 engagedSwitchTimeOff; //!< running engaged switch time |
tmulrooney | 1:96c429800568 | 56 | uint16 ignitionTestTime; //!< running ignition test time |
tmulrooney | 1:96c429800568 | 57 | uint16 ignitionTestTimeSet; //!< reset ignition test time |
tmulrooney | 1:96c429800568 | 58 | uint16 softStartTestTime; //!< running soft start test time |
tmulrooney | 1:96c429800568 | 59 | uint16 softStartTestTimeSet; //!< reset soft start test time |
tmulrooney | 1:96c429800568 | 60 | uint16 currentSampleTime; //!< running current sample time |
tmulrooney | 1:96c429800568 | 61 | uint16 currentSampleTimeSet; //!< reset current sample test time |
tmulrooney | 1:96c429800568 | 62 | uint16 currentStableTestTime; //!< running current stable test time |
tmulrooney | 1:96c429800568 | 63 | uint16 currentStableTestTimeSet;//!< reset current stable test time |
tmulrooney | 1:96c429800568 | 64 | uint16 currentStartTestTime; //!< running current start test time |
tmulrooney | 1:96c429800568 | 65 | uint16 currentStartTestTimeSet; //!< reset current start test time |
tmulrooney | 1:96c429800568 | 66 | uint16 currentMinTestTime; //!< running current start test time |
tmulrooney | 1:96c429800568 | 67 | uint16 currentMinTestTimeSet; //!< reset current start test time |
tmulrooney | 1:96c429800568 | 68 | uint16 currentRampRate; //!< running current ramp rate |
tmulrooney | 1:96c429800568 | 69 | uint16 currentRampRateTerminate;//!< running current ramp rate for termination |
tmulrooney | 1:96c429800568 | 70 | uint16 currentRampRateFoldback; //!< running current ramp rate for foldback |
tmulrooney | 1:96c429800568 | 71 | uint16 currentRampRateEncoder; //!< running current ramp rate for encoder |
tmulrooney | 1:96c429800568 | 72 | uint16 currentRampRateSet; //!< reset current ramp rate |
tmulrooney | 1:96c429800568 | 73 | uint8 currentRampMode; //!< current ramp direction |
tmulrooney | 1:96c429800568 | 74 | uint16 encoderSampleRate; //!< running encoder sample rate |
tmulrooney | 1:96c429800568 | 75 | uint16 encoderSampleRateSet; //!< reset encoder sample rate |
tmulrooney | 1:96c429800568 | 76 | uint16 bridgeOCFlagTime; //!< bridge_oc_flag valid time |
tmulrooney | 1:96c429800568 | 77 | uint16 outputOCFlagTime; //!< output_oc_flag valid time |
tmulrooney | 1:96c429800568 | 78 | uint16 utilOCFlagTime; //!< util_oc_flag valid time |
tmulrooney | 1:96c429800568 | 79 | uint16 eStopTime; //!< E_STOP valid time |
tmulrooney | 1:96c429800568 | 80 | uint8 eStopSeen; //!< E_STOP seen |
tmulrooney | 1:96c429800568 | 81 | uint16 phaseABFlagTime; //!< phase_ab_uv valid time |
tmulrooney | 1:96c429800568 | 82 | uint16 phaseBCFlagTime; //!< phase_bc_uv valid time |
tmulrooney | 1:96c429800568 | 83 | uint16 phaseACFlagTime; //!< phase_ac_uv valid time |
tmulrooney | 1:96c429800568 | 84 | uint16 contactorTestTime; //!< output_oc_flag valid time |
tmulrooney | 1:96c429800568 | 85 | uint8 waitForPowerCycle; //!< wait for power cycle after a failure |
tmulrooney | 1:96c429800568 | 86 | float analogTemp; //!< analog temperature value |
tmulrooney | 1:96c429800568 | 87 | int16 encoderValue; //!< last sampled encoder value |
tmulrooney | 1:96c429800568 | 88 | int16 encoderDiff; //!< last sampled encoder value differnce from current |
tmulrooney | 1:96c429800568 | 89 | uint8 encoderChanged; //!< encoder value changed since last sample |
tmulrooney | 1:96c429800568 | 90 | uint8 pendantFailed; //!< pendant failure |
tmulrooney | 1:96c429800568 | 91 | uint16 flashCtrlSys; //!< CTRL SYS flash rate |
tmulrooney | 1:96c429800568 | 92 | uint8 currentBelowMin; //!< current below minimum in normal operation |
tmulrooney | 1:96c429800568 | 93 | uint8 outputOCSeen; //!< output_oc_flag seen |
tmulrooney | 1:96c429800568 | 94 | uint8 lampTestInitFail; //!< initla tests fail before lamptest |
tmulrooney | 1:96c429800568 | 95 | uint16 initFailType; //!< initial test failure type |
tmulrooney | 1:96c429800568 | 96 | float currentStableMin; //!< current stable min |
tmulrooney | 1:96c429800568 | 97 | float currentStableMax; //!< current stable max |
tmulrooney | 1:96c429800568 | 98 | uint8 utilOCSeen; //!< util_oc flag change seen |
tmulrooney | 1:96c429800568 | 99 | uint16 currentIndex; //!< current source index |
tmulrooney | 1:96c429800568 | 100 | uint8 currentOffMaxIndex; //!< current off max parameter index |
tmulrooney | 1:96c429800568 | 101 | uint8 tempSetIndex; //!< temperature set index |
tmulrooney | 1:96c429800568 | 102 | uint16 bytesRead; |
tmulrooney | 1:96c429800568 | 103 | |
tmulrooney | 1:96c429800568 | 104 | char *engagedState[] = {"HV Engaged Unknown", "HV Engaged On", "HV Engaged Off", "HV Engaged Unknown"}; |
tmulrooney | 1:96c429800568 | 105 | char *autoState[] = {"Neither","Auto","Manual","Both"}; |
tmulrooney | 1:96c429800568 | 106 | |
tmulrooney | 1:96c429800568 | 107 | /** \brief array of structures of valid parameters */ |
tmulrooney | 1:96c429800568 | 108 | struct parameterInfo parameters[] = |
tmulrooney | 1:96c429800568 | 109 | { |
tmulrooney | 1:96c429800568 | 110 | {"spi","NA","","SPI Register",REGISTER,"C",READWRITE,80,20,80,0.0,0.0,0.0,NULL,readSPIReg,NULL,writeSPIReg,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 111 | {"i2c","NA","","I2C Register",REGISTER,"C",READWRITE,80,20,80,0.0,0.0,0.0,NULL,readI2CReg,NULL,writeI2CReg,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 112 | #if 0 |
tmulrooney | 1:96c429800568 | 113 | {"I5V0_PG","P1.3","NA","5 Volt Power Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,I5V0_PG_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 114 | {"I24V0_PG","P1.4","J3-1","24 Volt Power Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,I24V0_PG_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 115 | {"HV_CONTACTOR_CTRL","P15.2","J6-1,2","HV Contactor Control Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,HV_CONTACTOR_CTRL_Read,HV_CONTACTOR_CTRL_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 116 | {"HV_ENABLE","P6.4","J1-9","HV Enable Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,HV_ENABLE_Read,HV_ENABLE_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 117 | {"HV_ENABLE_N","P6.5","J1-8","HV Enable Not Output",BINARY,"",READWRITE,1,0,1,0.0,0.0,0.0,HV_ENABLE_N_Read,HV_ENABLE_N_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 118 | {"TRIAC_IGN_CTRL","P5.2","J2-9","TRIAC Ignition Control Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,TRIAC_IGN_CTRL_Read,TRIAC_IGN_CTRL_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 119 | {"PHASE_AB_UV","P6.7","J2-5","Phase AB Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,PHASE_AB_UV_Read_cmd,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 120 | {"PHASE_AC_UV","P5.1","J2-7","Phase AC Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,PHASE_AC_UV_Read_cmd,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 121 | {"PHASE_BC_UV","P5.0","J2-6","Phase BC Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,PHASE_BC_UV_Read_cmd,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 122 | {"UTIL_OC_FLAG","P6.6","J2-4","Utility Over Current Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,UTIL_OC_FLAG_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 123 | {"BRIDGE_OC_FLAG","P2.5","J1-2","Bridge Over Current Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,BRIDGE_OC_FLAG_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 124 | {"OUTPUT_OC_FLAG","P2.6","J1-3","Output Over Current Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,OUTPUT_OC_FLAG_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 125 | {"HV_ENGAGED","P2.1","J10-1","HV Engaged Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,HV_ENGAGED_Read,HV_ENGAGED_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 126 | {"HV_NOT_ENGAGED","P2.0","J10-1","HV Not Engaged Output",BINARY,"",READWRITE,1,0,1,0.0,0.0,0.0,HV_NOT_ENGAGED_Read,HV_NOT_ENGAGED_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 127 | {"SOFT_START_RELAY_CTRL","P5.3","J2-11","Soft Start Relay Control Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,SOFT_START_RELAY_CTRL_Read,SOFT_START_RELAY_CTRL_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 128 | {"BRIDGE_OC_ER","P5.7","J4-1","Bridge Over Current Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,BRIDGE_OC_ER_Read,BRIDGE_OC_ER_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 129 | {"OUTPUT_OC_ER","P5.6","J4-2","Output Over Current Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,OUTPUT_OC_ER_Read,OUTPUT_OC_ER_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 130 | {"CUS_PERIM_INTLCK","P15.6","J4-3","Customer Perimeter Interlock Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,CUS_PERIM_INTLCK_Read,CUS_PERIM_INTLCK_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 131 | {"CURRENT_FLDBCK_STATUS","P5.5","J4-4","Current Foldback Status Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,CURRENT_FLDBCK_STATUS_Read,CURRENT_FLDBCK_STATUS_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 132 | {"IGN_FAIL_ER","P15.7","J4-5","Ignition Failure Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,IGN_FAIL_ER_Read,IGN_FAIL_ER_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 133 | {"LOW_INP_PHA_VOLT","P5.4","J4-6","Low Input Phase Voltage Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,LOW_INP_PHA_VOLT_Read,LOW_INP_PHA_VOLT_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 134 | {"QUENCH_STATUS","P15.0","J4-7","Quench Status Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,QUENCH_STATUS_Read,QUENCH_STATUS_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 135 | {"E_STOP_FLG","P12.7","J4-8","E Stop Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,E_STOP_FLG_Read,E_STOP_FLG_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 136 | {"CTRL_SYS_FAULT","P15.1","J4-9","Control Sysytem Fault Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,CTRL_SYS_FAULT_Read,CTRL_SYS_FAULT_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 137 | {"DRIVER_BRD_OTEMP","P12.6","J4-10","Driver Board Over Temperature Output",BINARY,"",READWRITE,0,0,1,0.0,0.0,0.0,DRIVER_BRD_OTEMP_Read,DRIVER_BRD_OTEMP_Write,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 138 | {"TEMP","P0-0,1,2","J11-1,2","Thermistor temperature",ANALOG,"C",READONLY,0,0,100,0.0,0.0,0.0,readTemp,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 139 | {"TEMP_SET","NA","","Thermistor temperature trigger value",DIGITAL,"C",READWRITE,80,20,80,0.0,0.0,0.0,readTempSet,NULL,writeTempSet,NULL}, |
tmulrooney | 1:96c429800568 | 140 | {"PWM_DC","P2.7","J1-6","PWM Duty Cycle Output",DIGITAL,"%",READWRITE,25,0,99,0.0,0.0,0.0,readPWMDC,NULL,writePWMDC,NULL}, |
tmulrooney | 1:96c429800568 | 141 | {"PWM_DC_MIN","P2.7","J1-6","PWM Duty Cycle Minimum Output",DIGITAL,"%",READWRITE,0,0,99,0.0,0.0,0.0,readPWMDCMin,NULL,writePWMDCMin,NULL}, |
tmulrooney | 1:96c429800568 | 142 | {"PWM_DC_MAX","P2.7","J1-6","PWM Duty Maximum Cycle Output",DIGITAL,"%",READWRITE,99,0,99,0.0,0.0,0.0,readPWMDCMax,NULL,writePWMDCMax,NULL}, |
tmulrooney | 1:96c429800568 | 143 | {"CURRENT_SOURCE","Px.x","","Current Source",DIGITAL,"",READWRITE,2,0,3,0.0,0.0,0.0,readCurrentSource,NULL,writeCurrentSource,NULL}, |
tmulrooney | 1:96c429800568 | 144 | {"CURRENT_OFF_MAX","Px.x","","Current OFF Maximum Limit",ANALOG,"A",READWRITE,0,0,0,0.75,0.0,1.0,readCurrentOffMax,NULL,NULL,writeCurrentOffMax}, |
tmulrooney | 1:96c429800568 | 145 | {"CURRENT_STARTUP_MIN","Px.x","","Current Startup Minimum Limit",ANALOG,"A",READWRITE,0,0,0,3.0,1.0,4.0,readCurrentStartupMin,NULL,NULL,writeCurrentStartupMin}, |
tmulrooney | 1:96c429800568 | 146 | {"CURRENT_STABLE_MIN","Px.x","","Current Startup Minimum Limit",ANALOG,"A",READWRITE,0,0,0,2.0,0.5,5.0,readCurrentStableMin,NULL,NULL,writeCurrentStableMin}, |
tmulrooney | 1:96c429800568 | 147 | {"CURRENT_STABLE_MAX","Px.x","","Current Startup Minimum Limit",ANALOG,"A",READWRITE,0,0,0,10.0,1.0,12.0,readCurrentStableMax,NULL,NULL,writeCurrentStableMax}, |
tmulrooney | 1:96c429800568 | 148 | {"CURRENT0","Px.x","","Current 0 command register",ANALOG,"A",READWRITE,0,0,0,0.0,0.0,12.0,readCurrent0,NULL,NULL,writeCurrent0}, |
tmulrooney | 1:96c429800568 | 149 | {"CURRENT1","Px.x","","Current 1 command register",ANALOG,"A",READWRITE,0,0,0,0.0,0.0,12.0,readCurrent1,NULL,NULL,writeCurrent1}, |
tmulrooney | 1:96c429800568 | 150 | {"CURRENT2","P0-5-6","J5-4","Current 2 command register",ANALOG,"A",READONLY,0,0,0,0.0,0.1,1.02,readCurrent2,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 151 | {"CURRENT3","P0-5-6","J5-5","Current 3 command register",ANALOG,"A",READONLY,0,0,0,0.0,0.1,1.02,readCurrent3,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 152 | {"CURRENT_SAMPLE_RATE","NA","","current sample rate",DIGITAL,"ms",READWRITE,10,10,60000,0.0,0.0,0.0,readCurrentSampleRate,NULL,writeCurrentSampleRate,NULL}, |
tmulrooney | 1:96c429800568 | 153 | {"AMPS_PER_VOLT","Px.x","","Amps per volt",ANALOG,"Amps/Volt",READWRITE,0,0,0,2.5,1.0,4.5,readAmpsPerVolt,NULL,NULL,writeAmpsPerVolt}, |
tmulrooney | 1:96c429800568 | 154 | {"AUTO_AUTO_MAN_IGN_SELECT","P3.2","J8-1","Auto Ignition Switch Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,AUTO_AUTO_MAN_IGN_SELECT_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 155 | {"MAN_AUTO_MAN_IGN_SELECT","P3.3","J8-2","Manual Ignition Switch Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,MAN_AUTO_MAN_IGN_SELECT_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 156 | {"MAN_IGN_CTRL","P3.4","J8-4","Manual Ignition Control Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,MAN_IGN_CTRL_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 157 | {"E_STOP","P3.5","J8-6","Emergency Stop Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,E_STOP_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 158 | {"ENG_HV_NO_SW","P3.6","J8-7","Engage HV Normally Open Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,ENG_HV_NO_SW_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 159 | {"ENG_HV_NC_SW","P3.7","J8-8","Engage HV Normally Closed Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,ENG_HV_NC_SW_Read,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 160 | {"PEND_INC_CURRENT","P4.2","J9-3","Pendant Increment Current Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,PEND_INC_CURRENT_Read_INV,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 161 | {"PEND_DEC_CURRENT","P4.3","J9-4","Pendant Decrement Current Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,PEND_DEC_CURRENT_Read_INV,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 162 | {"PEND_HV_NO_SW","P4.4","J9-5","Pendant HV Normally Open Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,PEND_HV_NO_SW_Read_INV,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 163 | {"PEND_HV_NC_SW","P4.5","J9-6","Pendant HV Normally Closed Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,PEND_HV_NC_SW_Read_INV,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 164 | {"PEND_DISENGAGE_HV","P4.6","J9-7","Pendant Disengage HV Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,PEND_DISENGAGE_HV_Read_INV,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 165 | {"PEND_PRESENT","P4.7","J9-8","Pendant Present Input",BINARY,"",READONLY,0,0,1,0.0,0.0,0.0,PEND_PRESENT_Read_CMD,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 166 | {"ENCODER_COUNTER","P3.0,1","J7-2,3","Encoder Counter",DIGITAL,"Counts",READWRITE,0,0,65535,0.0,0.0,0.0,readEncoderCounter,NULL,ENCODER_COUNTER_WriteCounter,NULL}, |
tmulrooney | 1:96c429800568 | 167 | {"LAMP_TEST_TIME","NA","","Lamp Test Time",DIGITAL,"ms",READWRITE,1000,100,60000,0.0,0.0,0.0,readLampTestTime,NULL,writeLampTestTime,NULL}, |
tmulrooney | 1:96c429800568 | 168 | {"PENDANT_TEST_TIME","NA","","Lamp Test Time",DIGITAL,"us x 100",READWRITE,5,5,20,0.0,0.0,0.0,readPendantTestTime,NULL,writePendantTestTime,NULL}, |
tmulrooney | 1:96c429800568 | 169 | {"IGNITION_TIME","NA","","Ignition Time",DIGITAL,"ms",READWRITE,1000,100,3000,0.0,0.0,0.0,readIgnitionTime,NULL,writeIgnitionTime,NULL}, |
tmulrooney | 1:96c429800568 | 170 | {"SOFT_START_TIME","NA","","Ignition Time",DIGITAL,"ms",READWRITE,200,200,2500,0.0,0.0,0.0,readSoftStartTime,NULL,writeSoftStartTime,NULL}, |
tmulrooney | 1:96c429800568 | 171 | {"CURRENT_STABLE_TIME","NA","","Current Stable Time",DIGITAL,"ms",READWRITE,2000,200,3000,0.0,0.0,0.0,readCurrentStableTime,NULL,writeCurrentStableTime,NULL}, |
tmulrooney | 1:96c429800568 | 172 | {"CURRENT_START_TIME","NA","","Current Start Time",DIGITAL,"ms",READWRITE,10,200,3000,0.0,0.0,0.0,readCurrentStartTime,NULL,writeCurrentStartTime,NULL}, |
tmulrooney | 1:96c429800568 | 173 | {"CURRENT_MIN_TIME","NA","","Current Minimum Test Time",DIGITAL,"ms",READWRITE,200,200,3000,0.0,0.0,0.0,readCurrentMinTime,NULL,writeCurrentMinTime,NULL}, |
tmulrooney | 1:96c429800568 | 174 | {"CURRENT_RAMP_RATE_TERMINATE","NA","","Current Ramp Rate for terminate",DIGITAL,"us x 100",READWRITE,5000,200,50000,0.0,0.0,0.0,readCurrentRampRateTerminate,NULL,writeCurrentRampRateTerminate,NULL}, |
tmulrooney | 1:96c429800568 | 175 | {"CURRENT_RAMP_RATE_FOLDBACK","NA","","Current Ramp Rate for foldback",DIGITAL,"us x 100",READWRITE,3000,200,50000,0.0,0.0,0.0,readCurrentRampRateFoldback,NULL,writeCurrentRampRateFoldback,NULL}, |
tmulrooney | 1:96c429800568 | 176 | {"CURRENT_RAMP_RATE_ENCODER","NA","","Current Ramp Rate for encoder",DIGITAL,"us x 100",READWRITE,1000,200,50000,0.0,0.0,0.0,readCurrentRampRateEncoder,NULL,writeCurrentRampRateEncoder,NULL}, |
tmulrooney | 1:96c429800568 | 177 | {"ENCODER_SAMPLE_RATE","NA","","Encoder Sample Rate",DIGITAL,"us x 100",READWRITE,1000,200,30000,0.0,0.0,0.0,readEncoderSampleRate,NULL,writeEncoderSampleRate,NULL}, |
tmulrooney | 1:96c429800568 | 178 | #endif |
tmulrooney | 1:96c429800568 | 179 | {"End","","","",BINARY,"",READONLY,0,0,0,0,0,0,NULL,NULL,NULL,NULL}, |
tmulrooney | 1:96c429800568 | 180 | }; |
tmulrooney | 1:96c429800568 | 181 | /* [] END OF FILE */ |