libximc
2.12.5
|
Control position settings(is only used with stepper motor). More...
Data Fields | |
unsigned int | CTPMinError |
Minimum contrast steps from step motor encoder position, wich set STATE_CTP_ERROR flag. | |
unsigned int | CTPFlags |
Position control flags. |
Control position settings(is only used with stepper motor).
When controlling the step motor with encoder (CTP_BASE 0) it is possible to detect the loss of steps. The controller knows the number of steps per revolution (GENG :: StepsPerRev) and the encoder resolution (GFBS :: IPT). When the control (flag CTP_ENABLED), the controller stores the current position in the footsteps of SM and the current position of the encoder. Further, at each step of the position encoder is converted into steps and if the difference is greater CTPMinError, a flag STATE_CTP_ERROR and set ALARM state. When controlling the step motor with speed sensor (CTP_BASE 1), the position is controlled by him. The active edge of input clock controller stores the current value of steps. Further, at each turn checks how many steps shifted. When a mismatch CTPMinError a flag STATE_CTP_ERROR and set ALARM state.
unsigned int CTPFlags |
unsigned int CTPMinError |
Minimum contrast steps from step motor encoder position, wich set STATE_CTP_ERROR flag.
Measured in steps step motor.