RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 33 of 85
Aug.31.2020
5.7 R_MTR_SetPositionStatus
This function sets the input method of the position command value.
Format
void R_MTR_SetPositionStatus(uint8_t u1_pos_status)
Parameters
u1_pos_status
Input method
MTR_POS_CONST(0): 0 command
MTR_POS_STEP(1): Direct input (step input)
MTR_POS_TRAPEZOID(2): Command value creation
Return Values
None
Properties
The prototypes are declared in r_mtr_driver_acces.h.
Description
The default value for the input method of the sample program is MTR_POS_TRAPEZOID.
Example
/* set position state "STEP"*/ /
R_MTR_SetPositionStatus(MTR_POS_STEP);