RL78/G1G Sensorless Speed control of 120-degree conducting controlled permanent magnetic synchronous motor (Implementation)
R01AN3582EJ0100 Rev.1.00
Page 32 of 46
Jan 13, 2017
Table 3-20 List of variables [4/4]
Variable name
Type
Scale
Content
Remarks
g_u2_bemf_timer_cnt
uint16
-
Free run timer count
g_u2_pre_bemf_timer_cnt
uint16
-
Previous free run timer count
g_u2_timer_cnt_sum
uint16
-
Sum of free runt timer count as 2
π
g_u2_timer_cnt_buf[6]
uint16
-
Free run timer count buffer for 6 times
g_u1_timer_cnt_num
uint8
-
Counter for g_u2_timer_cnt_buf
g_u2_bemf_delay
uint16
-
Delay counts for change pattern from the zero-
cross detected
g_s2_angle_shift_adjust
int16
-
Adjustment value for delay from zero-cross
detected
g_u2_cnt_carrier
uint16
-
Carrier cycle interruption counter
g_u2_pre_cnt_carrier
uint16
-
Previous carrier interruption counter value
g_u1_v_pattern_num
uint8
-
Control number for forced conduction pattern at
open loop
g_u1_v_pattern_open[2][7]
uint8
-
Array of forced conduction patterns at open loop
g_u2_offset_calc_time
uint16
-
Counts for measurement of voltage offset
g_u2_offset_calc_cnt
uint16
-
Counter for measurement of voltage offset
g_u2_offset_vu
uint16
-
Voltage offset value of U phase at PWM on
g_u2_offset_vv
uint16
-
Voltage offset value of V phase at PWM on
g_u2_offset_vw
uint16
-
Voltage offset value of W phase at PWM on
g_u2_offset_off_vu
uint16
-
Voltage offset value of U phase at PWM off
g_u2_offset_off_vv
uint16
-
Voltage offset value of V phase at PWM off
g_u2_offset_off_vw
uint16
-
Voltage offset value of W phase at PWM off
g_u2_sum_vu_ad
uint16
-
Sum of voltage offset value of U phase
g_u2_sum_vv_ad
uint16
-
Sum of voltage offset value of V phase
g_u2_sum_vw_ad
uint16
-
Sum of voltage offset value of W phase
g_u4_inv_offset_calc
uint32
-
Variable to calculate voltage offset
Inverse of
g_u2_offset_calc_time