RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 31 of 85
Aug.31.2020
5.5 R_MTR_ChargeCapacitor
This function sets up a wait waits for the inverter’s main line voltage to become stable. This function must be
executed before starting motor control.
Format
void R_MTR_ChargeCapacitor(uint8_t u1_id)
Parameters
u1_id
Specifies the ID of the motor to be controlled.
MTR_ID_A /* Motor A*/
Return Values
None
Properties
The prototypes are declared in r_mtr_driver_acces.h.
Description
This function checks whether the inverter’s main line voltage (VDC) has risen above 80% of 24-V DC, and
waits until it has without timing out.
Example
/* Wait for charging capacitor */
R_MTR_ChargeCapacitor(MTR_ID_A);