CHAPTER 3 SOFTWARE CONFIGURATION
Application Note U17209EJ1V0AN
59
3.5 Common Areas
The following table shows the major common areas used by the reference system.
Table 3-2. Common Area List
Symbol Type Usage Set Value
error_flag unsigned char Error flag
0: No error
ERR_NO1: Overcurrent
ERR_NO3: Speed difference error
init_flag unsigned char Indicates initial revolution
ON: Initial revolution in progress
OFF: Stop or normal revolution in progress
cont_time unsigned short Interrupt processing time 1
µ
s units
cont_time1 unsigned short Operation time 1
µ
s units
disp_co unsigned short Average speed counter for display
volume unsigned short Speed volume value
timer_count unsigned short Time wait counter 10 ms units
accel_count unsigned short
Acceleration/deceleration operation time
counter
10 ms units
stop_flag unsigned short Stop flag
ON: Stopped
OFF: Revolving
before_posi[21][2] signed short Position buffer
total_sa signed short Position total difference
sum_speed unsigned int
Total value area for average speed
calculation
0, 1, …
speed_co unsigned int Counter for average speed calculation 0, 1, …
now_speed signed int Present speed rpm
object_speed signed int Target speed rpm
d_speed signed int Display speed rpm
iua signed short U-phase current
iva signed short V-phase current
o_iqai signed int Speed integral value
base_position signed int Speed estimation reference point
sa_time unsigned int For speed measurement
timer_count unsigned short Time wait counter
init_co unsigned short
Output selection monitor counter during
initial revolution
0, 1, …
init_pat unsigned char Initial revolution output pattern number 0 to 5
init_upco unsigned short Initial revolution output table number 0 to 10
int_co unsigned int U, V, W interrupt counter 0, 1, …
pwm_value signed int PWM output value Output bit pattern