RL78/G1G Sensorless Speed control of 120-degree conducting controlled permanent magnetic synchronous motor (Implementation)
R01AN3582EJ0100 Rev.1.00
Page 30 of 46
Jan 13, 2017
Table 3-18 List of variables [2/4]
Variable name
Type
Scale
Content
Remarks
g_u2_run_mode
uint16
-
Operation mode management
0x00: Initialize mode
0x01: Boot mode
0x02: Drive mode
0x03: Analysis mode
0x04: Tune mode
g_u2_error_status
uint16
-
Error status management
0x00: None error
0x01: Overcurrent error
0x02: Over voltage error
0x04: Over speed error
0x08: Hall signal time out error
0x10: BEMF time out error
0x20: Hall pattern error
0x40: BEMF pattern error
0x80: Under voltage error
0xFF: Undefined error
g_u1_mode_system
uint8
-
State management
0x00: Inactive mode
0x01: Active mode
0x02: Error mode
g_u1_state_v_offset
uint8
-
State management of voltage
offset process
0x00: None
0x01: Measure with PWM off
0x02: Measure with PWM on
0x03: Finish measurement
(Reflect offset value)
g_u1_state_draw_in
uint8
-
State management of draw-in at
start-up
0x00: None
0x01: Draw-in 1
st
time
0x02: Draw-in 2
nd
time
0x03: Finish
g_u2_state_voltage_ref
uint16
-
State management of voltage
setting
0: Voltage zero
1: Increase voltage
2: Voltage constant
3: Open loop
4: PI output
g_u2_state_speed_ref
uint16
-
State management of speed
setting
0: Speed zero
1: Open loop mode1
2: Open loop mode2
3: Open loop mode3
4: Speed controlled
g_u2_sensor_conf
uint16
-
Sensor configuration
0x01: Sensorless
0x02: Hall sensor
0x04: Encoder
0x08: Resolver
g_u2_method_conf
uint16
-
Control method configuration
0x00: FOC (Fields Oriented Control)
0x01: 180 degree control
0x02: Wide angle electricity control
0x03: 120 degree control