RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 47 of 85
Aug.31.2020
5.21 R_MTR_UpdatePolling
This function polls the write enable flag among the motor control parameters.
Format
void R_MTR_UpdatePolling(void)
Parameters
None
Return Values
None
Properties
The prototypes are declared in r_mtr_driver_acces.h.
Description
This function polls the write enable flag (u1_trig_enable_write) among the motor control parameters. If the
flag is set, the values in the buffer of variables for ICS input are set as the motor control parameters (by the
R_MTR_SetVariables function) and calculation of the motor control parameter gain (by the
R_MTR_CtrlGainCalc function) proceeds.
After the execution of these functions is completed, the R_MTR_UpdatePolling function clears the write
enable flag (u1_trig_enable_write) among the motor control parameters.
Example
/* Update commands and configurations when trigger flag is set */
R_MTR_UpdatePolling();