Download MITSUBISHI

Transcript
10. Simulation
10.2.2. Calculating the tact time from the robot program
The tact time of a designated range of the robot program can be calculated. Note that the following limits will
apply.
Note: Observe the following points when calculating the tact time from the robot program.
1. The tact time for a program that falls into an infinite loop cannot be correctly calculated.
Confirm that the robot program does not fall into an infinite loop with a FOR statement or GOTO statement.
2. The tact time cannot be calculated for a program having signal input waiting, etc. Invalidate any signal input
waiting, etc., before calculating the tact time.
3. With the PC support software prior to version C1, a program containing an END statement cannot calculate
the tact time.
For example, the tact time cannot be calculated for the following types of programs.
(The sections of the program highlighted in black are set so that the tact time can be calculated.)
10 …
: :
100 MOV P01
110 MOV P02
120 MOV P03
130 GOTO 10
140 END
When the GOTO statement's
jump
destination
is
not
selected
10-154 Cycle time calculation
10 MOV P00
: :
100 GOSUB *SUB1
110 END
120 :
200 *SUB1
210 MOV P01
220 RETURN
When the subroutine's jump
destination is not selected
10 GOTO 120
20 '
30 *SUB1
40 MOV P01
50 RETURN
60 '
120 *START
130 MOV P02
140 MOV P03
150 GOSUB *SUB1
160 END