
350
Command Details
Section 6-3
Sub-Program End
(RETURN)
Sub-program is ended.
Command type
Single execution command
Format
RETURN;
Ex: RETURN;
Operand
Nil
Description
• Sub-program is ended and the operation returns to the program that
called the sub-program.
• If RETURN command is not present in a sub-program, the program can-
not be loaded.
• All the axes reserved by axis declaration are returned to the main pro-
gram.
• RETURN command execution will be completed when the operation
returns the program that called the sub-program.
Dwell Time (DWELL)
The operation waits for the specified time period.
Command type
Single execution command
Format
DWELL_T<dwell time>;
Ex: DWELL_T100;
Operand
Note
Word data is extended to long word data with a sign in the MC Unit.
Description
• The operation waits for the time period specified in Dwell time. The unit is
in [ms].
• During DWELL command execution, if the motion program is stopped
(except for block stop), waiting will be cancelled. When the program is
resumed with the motion task control bit: [Start Mode] = 1 (resume from
where the operation was stopped), waiting will be resumed for the remain-
ing time.
• DWELL command is not an axis movement command, however, it is the
cancel object of STOPOP command. When it is cancelled, waiting will be
immediately cancelled and the command execution is completed.
• DWELL command execution will be completed when the specified waiting
time period elapses.
Wait for Condition to
be Met (WAIT)
The next block will not be executed until the conditional expression is satis-
fied.
Command type
Multiple execution command
Format
WAIT_<conditional expression>
Ex: WAIT_#DW0001 = = 1;
Operand
Setting range
Decimal
Variable specification
INC/ ABL
influ-
ence
Bit
Word
Long
word
Real
number
Indirect
specifi-
cation
Dwell time
0 to 60000
No
No
Yes (See
note.)
Yes
No
Yes
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 ...