
293
Command Overview
Section 6-2
Control
Program start
PROG_P<program number> Q<axis declaration>;
Program end
END;
Sub-program call
GOSUB_P<sub-program number>;
Sub-program End
RETURN;
Dwell time
DWELL_T<dwell time>;
Wait for condition to
be met
WAIT_<conditional expression>;
Optional end
STOPOP_<conditional expression>;
Conditional branch-
ing
IF_<conditional expression>;
<processing 1>
{ELSE;
<processing 2>}
ENDIF;
Repeat WHILE
WHILE_<conditional expression>;
<processing>
WEND;
Repeat FOR
FOR_W<work register for repeat count> L<repeat end value>S<number of increment
steps>;
<processing>;
NEXT;
Parallel execution
PARALLEL_N<number of branches>;
<processing 1>
{JOINT;
---
<processing N>}
JWAIT;
Selective execution
SWITCH_<conditional variable>;
{CASE_<conditional constant>;
<processing 1>
BREAK;
---}
{DEFAULT;}
<processing N>
SEND;
No operation (single) NOPS;
No operation (multi-
ple)
NOPM;
Simple
arithmetic
operation
Assign
<variable> = <numerical value>;
Add
<variable> = <numerical value>+<numerical value>;
Subtract
<variable> = <numerical value>-<numerical value>;
Multiply
<variable> = <numerical value>*<numerical value>;
Divide
<variable> = <numerical value>/<numerical value>;
Reminder
<variable> = <numerical value>%<numerical value>;
Exponent
<variable> = <numerical value>^<numerical value>;
Logic oper-
ation
OR (logical OR)
<variable> = <numerical value> | <numerical value>;
XOR (logical exclu-
sive OR)
<variable> = <numerical value> ~ < numerical value>;
AND (logical AND)
<variable> = <numerical value> & <numerical value>;
NOT (reverse)
<variable> = <numerical value> = ! <numerical value>;
Classifica-
tion
Name
Format
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 ...