
18
– 7
CALC
[Function]
This command is used to call a subroutine of a specified tag No. when the
specified counter contents agree with the setting condition.
[Explanation]
The program proceeds to the next step when the contents of the specified
counter do not meet the setting conditions.
This command is used in the program with the command used to set the
counter value (CNT) and the command to increment (CNT+) or decrement
(CNT
) the counter value.
Five comparisons are available: (=), (<), (>), (
), (
).
Refer to the CAL command for the relation of the main routine and
subroutine.
[Key operation]
STEP 1
Press
CAL
4
three times.
NOP changes to CALC.
press
ENT
.
STEP 2
Use the numeric keypad to enter the tag No. to
be called. Press
ENT
.
(Input range: 1 to 999.)
STEP 3
Use the numeric keypad to enter the counter
No. and press
ENT
.
(Input range: 1 to 99.)
NOTE
The tag No. for STEP 2 can be set to "0" as a temporary value. However, if the
command is executed with that value, the "NO TAG FOUND" error will occur.
When using multitasking, a tag No. in another task cannot be called.
STEP 4
Press
ALT
to display operators (=, <, >, < =,
>=). Select one and press
ENT
.
STEP 5
Use the numeric keypad to enter the counter
value to be compared and press
ENT
.
(Input range: 0 to 9999.)
[
P
R
G
M
]
0
0
0
1 0
0
0
C
A
L
C [
0
1
]
= 0
0
0
0
[
P
R
G
M
]
0
0
0
1 0
0
0
C
A
L
C [
0
1
]
= 0
0
0
0
Counter Conditional Call
[
P
R
G
M
]
0
0
0
1
N
O
P
Summary of Contents for CA20-M10
Page 2: ......
Page 14: ...XII 21 6 Spare parts 21 5 21 6 1 Controller spare parts 21 5 21 6 2 Axis spare parts 21 5...
Page 24: ...1 10 This page is blank...
Page 104: ...4 20 This page is blank...
Page 112: ...5 8 This page is blank...
Page 152: ...7 20 This page is blank...
Page 190: ...10 20 This page is blank...
Page 234: ...11 44 This page is blank...
Page 244: ...12 10 This page is blank...
Page 286: ...15 4 This page is blank...
Page 300: ...17 12 This page is blank...
Page 352: ...18 52 This page is blank...
Page 382: ...21 6 This page is blank...
Page 383: ......
Page 384: ...Back cover Q3178E 03 APR 20...