RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 28 of 85
Aug.31.2020
5.2 R_MTR_InitControl
This function initializes the motor control program. This function must be executed before any other API
function is called.
Format
void R_MTR_InitControl (uint8_t u1_id)
Parameters
u1_id
Specifies the ID of the motor to be controlled.
Note: The sample program can only control a single motor.
MTR_ID_A /* Motor A*/
Return Values
None
Properties
The prototypes are declared in r_mtr_driver_acces.h.
Description
This function initializes the state of system operation and sets the default values of the motor control
parameters.
Example
/* Initialize motor FOC control by ID "MTR_ID_A" */
R_MTR_InitControl(MTR_ID_A);