RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 32 of 85
Aug.31.2020
5.6 R_MTR_GetLoopModeStatus
This function gets the current setting for the control loop mode.
Format
uint8_t R_MTR_GetLoopModeStatus(uint8_t u1_id)
Parameters
u1_id
Specifies the ID of the motor to be controlled.
MTR_ID_A /* Motor A*/
Return Values
Control loop mode
MTR_LOOP_SPEED(0): Velocity control
MTR_LOOP_POSITION(1): Position control
Properties
The prototypes are declared in r_mtr_driver_acces.h.
Description
The default value of the control loop mode in the sample program is MTR_LOOP_POSITION.
Example
uint8_t u1_status
u1_status = R_MTR_GetLoopModeStatus(MTR_ID_A);