3 - 11
3 Operation Procedure for DriveProgramming
DriveProgramming User’s Manual (I622-E1)
3-3 Program Structure
3
3-3-3 Task Processing
• As shown in Task 3, if the “wait” command is executed, the task will be repeatedly executed until a
certain condition is met.
• As shown in Task 4, if you create a loop by using the “goto” command, the task process will be con-
tinuously repeated.
• As shown in Task 5, if the “on trip goto” command is executed once, the processing data will be
stored in the inverter.
The program jumps to the “goto” destination immediately after a trip occurred.
Programs After Compilation (Example)
Program Processing Flow
entry
• • •
on trip goto label2
label1
• • •
• • •
goto label1
label2
* * *
* * *
* * *
end
1
2
3
4
5
6
7
8
9
10
11
12
13
entry
label1
• • •
• • •
• • •
goto label1
end
1
2
3
4
5
6
7
8
9
10
11
12
13
entry
wait 1 (0.01s)
• • •
• • •
• • •
• • •
end
1
2
3
4
5
6
7
8
9
10
11
12
13
entry
• • •
• • •
• • •
• • •
• • •
end
1
2
3
4
5
6
7
8
9
10
11
12
13
entry
label1
• • •
call label2
• • •
• • •
• • •
goto label1
end
sub label2
* * *
* * *
end sub
1
2
3
4
5
6
7
8
9
10
11
12
13
Task1
Task2
Task3
Task4
Task5
Processing
time
[ms]
Task1 Task2 Task3 Task4 Task5
Line
No.
Line
No.
Line
No.
Line
No.
Line
No.
2 1 entry 1 entry 1 entry 1 entry 1 entry
4 2 label1 2 - - - 2 wait 1 (0.01s) 2 label1 2 - - -
6 3 - - - 3 - - - 2 wait 1 (0.01s) 3 - - - 3
on trip goto label2
8 4 call label2 4 - - - 2 wait 1 (0.01s) 4 - - - 4
label1 [Trip occurred]
10 10 sub label2 5 - - - 2 wait 1 (0.01s) 5 - - - 5 label2
12 11 * * * 6 - - - 2 wait 1 (0.01s) 6 goto label1 6 * * *
14 12 * * * 7 end 3 - - - 2 label1 7 * * *
16 13 end sub 4 - - - 3 - - - 2 * * *
18 5 - - - 5 - - - 4 - - - 3
end
20 6 - - - 6 - - - 5 - - - 8
22 7 - - - 7 end 6 goto label1 9
24 8 goto label1 2 label1 10
26 2 label1 3 - - - 11
28 3 - - - 4 - - - 12
30 4 call label2 5 - - -
32 10 sub label2 6 goto label1
34 11 * * * 2 label1
36 12 * * * 3 - - -
38 13 end sub 4 - - -
Label2 is executed due to
occurrence of an inverter
trip.
Program Counter (db-03) display