RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 54 of 85
Aug.31.2020
5.28 R_MTR_SetSpeedUnits
This function sets the velocity command value.
Format
void R_MTR_SetSpeedUnits(int32_t s4_speed_units)
Parameters
Velocity command value [count/s]
Return Values
None
Properties
The prototypes are declared in r_mtr_driver_ecat_acces.h.
Description
The
velocity command value is a signed value (number counted per second).
The value is converted to the 16.16-bit fixed point format.
Example
/* 4 369 066 count/s is equivalent to 2000 rpm */
R_MTR_SetSpeedUinits(4369066);