RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 49 of 85
Aug.31.2020
5.23 R_MTR_GetPositionPFStatus
This function gets the profile state of encoder position control.
Format
uint8_t R_MTR_GetPositionPFStatus(uint8_t u1_id)
Parameters
u1_id
Specifies the ID of the motor to be controlled.
MTR_ID_A /* Motor A*/
Return Values
Profile status
MTR_POS_STEADY_STATE (0): Stable state (the current position is not changing)
MTR_POS_TRANSITION_STATE (1): Transitional state (the current position is changing)
Properties
The prototypes are declared in r_mtr_driver_ecat_acces.h.
Description
This function can be used to check whether the motor is or is not running under positional control.
Example
uint8_t u1_pos_state;
/* Get position profile status */
u1_pos_state = R_MTR_GetPositionPFStatus(MTR_ID_A);