SPRUJH1 August 2025 F29H850TU
The structure motorVars_M1 has references to most variables that are related to controlling the servo drive. Table 2-6 is a recommended list to populate the CCS watch window.
| Variable | Description |
|---|---|
| motorVars_M1.ISRCount | Increments once each motor ISR execution |
| systemVars.flagEnableSystem | Transitions from 0 to 1 automatically |
| motorVars_M1.flagEnableRunAndIdentify |
|
| motorVars_M1.flagRunIdentAndOnLine | Changes to 1 if there are no faults |
| motorVars_M1.motorState | Shows the current state of the motor control such as:
|
| motorVars_M1.estimatorMode | ESTIMATOR_MODE_ENC for incremental encoder |
| motorVars_M1.faultMtrUse.all | Value is non-zero if there is an over-current fault |
| motorVars_M1.faultMtrUse.bit | Expand and check for fault flags. Of the faults that can turn off the motor, these are currently active. (faultMtrMask applied to faultMtrNow) |
| motorVars_M1.faultMtrNow.bit | Of all possible faults, these are currently active. |
| motorVars_M1.faultMtrMask.bit | Of the possible faults, these are the ones that can turn off the motor. |
| motorVars_M1.senseData.VdcBus_V | The near the DC bus voltage |
| motorVars_M1.senseData.offset_I |
|
| motorVars_M1.speedRef_Hz |
|
| motorVars_M1.speed_Hz | Current spee of the motor. Not used in build level 1. |
| motorVars_M1.overCurrent_A | By decreasing the value, the fault protection by the CMPSS modules can be verified. |