RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 51 of 85
Aug.31.2020
5.25 R_MTR_SetActualPositionUnits
This function sets the current position (number counted).
Format
void R_MTR_SetActualPositionUnits (int32_t s4_position_units)
Parameters
Position command value [count]
Return Values
None
Properties
The prototypes are declared in r_mtr_driver_ecat_acces.h.
Description
The position command value is a signed value (number counted).
This function is only for setting the value for the current position but does not control the motor.
It can be used for setting an offset in the initial position in homing mode.
Example
/* Set current position */
R_MTR_SetActualPosition(2000);