Download Drive Programming
Transcript
3 Operation Procedure for Drive Programming • As shown in Task 2, if the “end” command is executed, the task will be finished and wait for the next start. • 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 continuously 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) Task1 1 2 3 4 5 6 7 8 9 10 11 12 13 entry label1 ••• call label2 ••• ••• ••• goto label1 end sub label2 *** *** end sub Task2 1 2 3 4 5 6 7 8 9 10 11 12 13 Task3 entry ••• ••• ••• ••• ••• end 1 2 3 4 5 6 7 8 9 10 11 12 13 Task4 entry wait 1 (0.01s) ••• ••• ••• ••• end 1 2 3 4 5 6 7 8 9 10 11 12 13 Task5 entry label1 ••• ••• ••• goto label1 end 1 2 3 4 5 6 7 8 9 10 11 12 13 entry ••• on trip goto label2 label1 ••• ••• goto label1 label2 *** *** *** end Program Processing Flow Processing time [ms] Task1 Line No. Task2 Line No. Task3 Line No. Task4 Line No. Task5 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 *** 36 12 38 13 Label2 is executed due to occurrence of an inverter trip. 2 label1 *** 3 --- end sub 4 --- Program Counter (d023) display 3 - 14 Drive Programming User’s Manual (I580-E2)