
357
Command Details
Section 6-3
EX: SWITCH #DW0000;
CASE 0;
ABL MOVE [J03]-100.00 [J04]-50.00;
BREAK;
CASE 1;
INC MOVE [J01]-200.00 [J02]50.00;
BREAK;
DEFAULT;
INC MOVE [J01]0.00 [J02]0.00 [J03]0.00 [J04]0.00;
SEND;
Operand
Description
• If Conditional variable specified in SWITCH command matches Condi-
tional constant specified in CASE command, only processing between
CASE command with the matching constant and BREAK command will
be executed.
• If Conditional variable does not match Conditional constant in any of
CASE commands, processing between DEFAULT and SEND commands
will be executed. If DEFAULT block is omitted, nothing will be executed.
• CASE command within processing 1, 2, and N is ignored, which means
that the same processing can be executed under a different condition.
• There is no limit on the number of CASE commands (actually, the number
of blocks per program limits it).
• SWITCH command cannot be used within processing 1, 2, and N (selec-
tive branches can not be nested).
• Processing 1, 2, and N can be described over multiple lines.
Operand
Setting range
Decimal
Variable specification
INC/ ABL
influ-
ence
Bit
Word
Long
word
Real
number
Indirect
specifi-
cation
Conditional Variable
Variable
No
No
No
No
No
No
No
Conditional constant
Operation
numerical value
range
Yes
No
No
No
No
No
No
Summary of Contents for CS1W-MCH71 -
Page 2: ...CS1W MCH71 CJ1W MCH71 Motion Control Unit Operation Manual Revised June 2008 ...
Page 3: ...iv ...
Page 29: ...xxx ...
Page 33: ...xxxiv ...
Page 35: ...xxxvi ...
Page 39: ...xl ...
Page 69: ...24 Performance Section 1 7 ...
Page 99: ...54 Connecting MECHATROLINK Devices Section 3 5 ...
Page 283: ...238 Saving Data Section 5 4 ...
Page 417: ...372 Command Details Section 6 3 ...