424
G-language Commands
Section 7-3
If A1000=1 on the 20th execution in loop
A
, the program would jump to block
N100. The remaining value of 80 jumps in the number of loops would be
cleared and the number of loops would be set to the new value of 50 for block
N100.
7-3-24 G71: CONDITIONAL JUMP
Jumps to the specified block when the condition is met.
Format
G71_<jump destination block number>/<condition equation>
Operands
The following table shows the possible settings for the operands.
Description
This command jumps to the specified block when the given condition is met.
The “!” operator is the inequality operator (not equal to). The first and second
terms will be compared as real numbers, even if registers are specified.
Programming Example
The following example shows repeating until A1000 = 10.
:
:
N008
G91
N009
G63
A1000=0
N010
G00
X500
N011
G60
A1000=A1000+1
N012
G71
N010/A1000 ! 10
:
:
In this programming example, 0 is substituted for A1000 in block N009 and
then incremented by 1 in block N011 after the positioning operation in block
N010. At N012, the program jumps back to N010 and repeats blocks N010 to
N012 while A1000
≠
10. The program proceeds when A1000=10.
7-3-25 G72: SUBROUTINE JUMP
Calls the specified subroutine.
Format
G72_<subroutine number>
Operands
The following table shows the possible settings for the operands.
Description
This command calls and executes the specified subroutine. Subroutines can
be nested five times. An error will occur if a sixth subroutine is called.
If the position data number is specified for the subroutine number, the subrou-
tine stored in the position data will be called and executed (indirect calling).
A no program error will result if the position data does not satisfy the following
condition.
500
≤
Position data
≤
999
Operand
Possible settings
Destination block number
N000 to N999
Condition
equation
First term
A0000 to A1999
E00 to E31
Operator
=, <, >, or !
Second term
A0000 to A1999
E00 to E31
±
39,999,999
Operand
Possible settings
Subroutine number
P500 to P999
A0000 to A1999
Содержание 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 ...