ocssw
V2022
|
APID198.py
Go to the documentation of this file.
9 Fields = np.dtype([
37 #myDict['SADA_STP_ERR_FLG'] = bits[2] # NOT USED FOR PACE Step Error pace_tsade_sht_dscFlag, 00=No Error, 01=Error
39 myDict['SADA_STEP_PROFILE'] = as_int(bits[4:4+2]) # 00=Cardinal Stepping, 01=Smoothed Cardinal Stepping, 10=Sinusoidal
41 myDict['SADA_LAST_COMM_STATE']= as_int(bits[7:7+3]) # 001=State 1, 010=State 2, 011=State 3, 100=Sate 4, 101=State 5, 110 State 6, 000 & 111=Not Valid
42 myDict['SADA_LAST_STP_HOLD_TIME_STAT'] = bits[10] # 0=Disabled (mtr pwr on full time), 1=Enabled (mtr pwr off @ end of step)
44 myDict['SADA_PWR_LVL'] = as_int(bits[12:12+2]) # 00=50% maxV, 01=60% maxV, 10=80% maxV, 11=100% maxV
51 # x'3C4A'--x'7FFF' (-130 to -0.0075 degrees from home), x'8000' = home, x'8001--x'C3B6 = 0.0075 to 130
62 # D'15=Index track, D'14=Sine track, D'13=Cosine track, D'12=Hemisphere track, D'11=Almost Home track, D'10=Tavle limits track
74 myDict['SADA_LED_CMD_PWR_LVL']= as_int(bits[13:13+3]) # Motor 0 (SADA) LED Commanded Power Level, 0-011=commanded current lvl, 100-111=encoder off
81 myDict['TILT_SPCL_LOC'] = as_int(bits[0:0+2]) # 00=Not a special location, 01=at home, 10=CW end of travel, 11, CCW end of travel
84 myDict['TILT_STEP_PROFILE'] = as_int(bits[4:4+2]) # 00=cardinal step, 01=smoothed cardinal stepping, 10=Sinusoidal
86 myDict['TILT_LAST_COMM_STATE']= as_int(bits[7:7+3]) # 001=State 1, 010=State 2, 011=State 3, 100=Sate 4, 101=State 5, 110 State 6, 000 & 111=Not Valid
87 myDict['TILT_LAST_STP_HOLD_TIME_STAT'] = bits[10] # 0=Disabled (mtr pwr on full time), 1=Enabled (mtr pwr off @ end of step)
89 myDict['TILT_PWR_LVL'] = as_int(bits[12:12+2]) # 00=50% maxV, 01=60% maxV, 10=80% maxV, 11=100% maxV
98 # x'3C4A'--x'7FFF' (-130 to -0.0075 degrees from home), x'8000' = home, x'8001--x'C3B6 = 0.0075 to 130
110 # D'15=Index track, D'14=Sine track, D'13=Cosine track, D'12=Hemisphere track, D'11=Almost Home track, D'10=Tavle limits track
122 myDict['TILT_LED_CMD_PWR_LVL']= as_int(bits[13:13+3]) # Motor 1 (TILT) LED Commanded Power Level
133 # Command Echo 0, 9 CMD words from last 1553 received cmd to the MCE RT, valid and invalid cmds are echoed
147 # Number of i cmds received by MCE, x'0000' - x'FFFF'], can be cmd type or invalid parameter, or cmd when mtr not initialized
148 myDict['CMDS_VLD_SINCE_START'] = as_int(bits[8:16]) # Number of valid cmds received by MCE, x'0000' - x'FFFF'
153 myDict['TILT_SADA_CURRENT_AF']= bits[2] # TILT & SADA Current action flag, if true, disables H-Bridge
163 myDict['TILT_ERR_FLG'] = as_int(bits[12:12+2]) # Motor 1 (TILT) error flag, 00=no error, 01=No home detected, 10=No right position
164 #myDict['W27_RSVD2'] = bits[14] # Motor 1 (TILT) time contorl, 1=time cntrl enabled, 0=time cntrl disabled
169 myDict['ERR_CTR_NO_HOME_WHEN_TILT'] = as_int(bits[0:0+4]) # Error Counter no home detected when tilt
170 myDict['ERR_CTR_NIT_NOT_INIT_POS_WHTILT'] = as_int(bits[4:4+4]) # Error Counter not init position when tilt
171 myDict['NUM_OF_TILT_FSM_CMDS_DECODED'] = as_int(bits[8:8+8]) # Number of TILT FSM Commands Decoded