423
G-language Commands
Section 7-3
7-3-23 G70: UNCONDITIONAL JUMP
Unconditionally jumps to the specified block.
Format
G70_<jump destination block number> [/L<number of loops>]
Operands
The following table shows the possible settings for the operands.
Description
This command unconditionally jumps to the specified block. A fixed number of
jumps (a loop) can be created by specifying a number of loops.
When a number of loops is specified, the destination block number must be
before the current block number.
If an UNCONDITIONAL JUMP (G70) or a CONDITIONAL JUMP (G71) com-
mand is used to exit a loop before the number of loops has counted down to
zero and the jump is to a program location after the loop, the number of loops
will be cleared when another loop is started.
A second loop cannot be executed while a loop is in progress. The following
diagram demonstrates this programming error.
Loops cannot be nested as shown above, but up to six loops can be nested by
calling subroutines containing loops. The number of loops in each subroutine
is cleared when the subroutine ends. Refer to
7-3-25 G72: SUBROUTINE
JUMP
for details.
When the number of loops is set indirectly from position data with register
specification or position data number specification, the number of loops will be
0 if the value of the position data is 0. Non-integer position data values will be
rounded off to the nearest integer value. An error will also occur if the position
data is negative.
Programming Example
The following example shows executing another loop when a given condition
occurs in the first loop
.
:
:
N020
G00
X100
N030
G71
N090/A1000=1
N040
G70
N020/L100
. . . . . . . . .
A
:
:
:
:
N090
G00
X3200
N100
G70
N090/L50
. . . . . . . . . .
B
:
:
In loop
A
, the program will jump to N020 up to 100 times while A1000
≠
1, so
blocks N020 and N030 will be executed up to 101 times.
In loop
B
, the program will jump to N090 up to 50 times, so block N090 will be
executed up to 51 times.
Operand
Possible settings
Destination block number
N000 to N999
Number of loops
1 to 39,999,999
(E00) to (E31)
A0000 to A1999
N003 G01 X100 Y100 F100
: :
N007 G70 N003/L10
: :
N010 G70 N003/L5
Содержание CS1W-MC221 -
Страница 1: ...Motion Control Units Cat No W359 E1 04 CS1W MC221 V1 421 V1 OPERATION MANUAL ...
Страница 2: ...CS1W MC221 V1 421 V1 Motion Control Units Operation Manual Revised February 2008 ...
Страница 3: ...iv ...
Страница 5: ...vi ...
Страница 11: ...xii ...
Страница 15: ...xvi ...
Страница 19: ...xx ...
Страница 27: ...xxviii Conformance to EC Directives 6 ...
Страница 133: ...106 Installation Section 2 2 2 2 4 Dimensions CS1W MC421 CS1W MC221 ...
Страница 173: ...146 Connecting Peripheral Devices Section 2 7 ...
Страница 227: ...200 Command Area Section 3 6 ...
Страница 351: ...324 Interface Specifics Section 5 4 ...
Страница 513: ...486 Absolute Encoder Interface Specifications Section 9 7 ...
Страница 575: ...548 Error Log Section 12 6 ...
Страница 589: ...562 Performance Appendix A ...
Страница 655: ...628 Control Bit Flag Timing Charts Appendix E ...
Страница 683: ...656 Origin Search Patterns Appendix F ...
Страница 685: ...658 Encoder Divider Rate and Rotation Speed for OMRON Servo Drivers Appendix G ...