RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 56 of 85
Aug.31.2020
5.30 R_MTR_SetDecelerationUnits
This function sets the deceleration command value in count/s
2
.
Format
void R_MTR_SetDeccelerationUnits(uint32_t u4_deceleration_units)
Parameters
Deceleration command value [count/s
2
]
Return Values
None
Properties
The prototypes are declared in r_mtr_driver_ecat_acces.h.
Description
The
deceleration command value is a signed value in count/s
2
.
The value is converted to the 16.16-bit fixed point format.
Note: The sample program does not use the deceleration command value in motor control.
Example
/* Set deceleration 10[cout/s
2
] */
R_MTR_SetDecelerationUnits (10*65536);