RX72M Group
Single-Chip Motor Control via EtherCAT Communications
R01AN5434EJ0110 Rev.1.10
Page 11 of 85
Aug.31.2020
Table 2-6 Configuration of Files for the Motor Control Program (2)
Directory
motor/
File
Description
middle/
control/
r_mtr_foc_current.h
r_mtr_foc_current.c
Current control function
definition
r_mtr_foc_speed.h
r_mtr_foc_speed.c
Velocity control function
definition
r_mtr_foc_position.h
r_mtr_foc_position.c
Position control function
definition
r_mtr_position_profiling.h
r_mtr_position_profiling.c
Function for creating position
command values
r_mtr_ipd.h
r_mtr_ipd.obj
IPD control function definition
r_mtr_speed_observer.h
r_mtr_speed_observer.obj
Velocity observer function
definition
driver/
inverter/
r_mtr_ctrl_mrssk.h
r_mtr_ctrl_mrssk.c
Inverter board dependent
function definition
mcu/
r_mtr_interrupt.c
Interrupt function definition
r_mtr_ctrl_rx72m.h
r_mtr_ctrl_rx72m.c
MCU
specific function
definition
r_mtr_ctrl_mcu.h
MCU common definition
sensor/
r_mtr_ctrl_encoder.h
r_mtr_ctrl_encoder.c
Encoder function definition
r_mtr_ctrl_hall.h
r_mtr_ctrl_hall.c
Hall function definition
config/
r_mtr_config.h
Configuration common
definition
r_mtr_motor_parameter.h
Motor parameter configuration
definition
r_mtr_inverter_parameter.h
Inverter parameter
configuration definition
r_mtr_control_parameter.h
Control parameter
configuration definition
r_mtr_encoder_parameter.h
Encoder parameter
configuration definition