RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 50 of 85
Aug.31.2020
5.24 R_MTR_SetPositionUnits
This function sets the position command value (number counted).
Format
void R_MTR_SetPositionUnits (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).
The position after initialization of the position of the motor’s magnet is 0 degrees.
Example
/* 2000 count is equivalent to 180 degrees */
R_MTR_SetPositionUnits (2000);