![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454273.webp)
All BASIC commands
Section 4-2
262
4-2-259 WA
/i
4-2-260 WAIT IDLE
/i
Type
System command
Syntax
WA(time)
Description
The
WA
command pauses program execution for the number of milli-
seconds specified for time. The command can only be used in a pro-
gram.
Arguments
•
time
The number of milliseconds to hold program execution.
Example
The following lines would turn ON output 7 two seconds after turning off
output 1.
OP(1,OFF)
WA(2000)
OP(7,ON)
See also
N/A
Type
System command
Syntax
WAIT IDLE
Description
The
WAIT IDLE
command suspends program execution until the base
axis has finished executing its current move and any buffered move.
The command can only be used in a program.
WAIT IDLE
works on the
default basis axis (set with
BASE
) unless
AXIS
is used to specify a tem-
porary base axis.
Note: The execution of
WAIT IDLE
does not necessarily mean that the
axis will be stationary in a servo motor system.
Arguments
N/A
Example
MOVE(1000)
WAIT IDLE
PRINT "Move Done"
The print statement is printed at the end of the movement.
Example
MOVE(1000)
WAIT UNTIL MTYPE=0
PRINT "Movement finished"
The print statement is printed, most of the times BEFORE the move-
ment starts, and sometimes, when the movement is finished.
Explanation Motion programs and motion sequence work in parallel and unsynchro-
nized. One complete cycle can occur before the movement is loaded
into the buffer. The program executes
MOVE(1000)
but the movement
is not loaded to the buffer until the start of the next "motion sequence"
so when you check
MTYPE=0
, it is
0
because the movement HAS NOT
STARTED YET, not because it has finished.
See also
AXIS
,
WAIT LOADED
.
Note
WAIT IDLE
is a command specifically designed to wait until the previous movement
has been finished so, it handles the delay from when the previous command is exe-
cuted in the program until the command is correctly loaded in the motion buffer.
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...