![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454275.webp)
All BASIC commands
Section 4-2
264
4-2-263 WDOG
/i
4-2-264 WHILE..WEND
/i
Type
System parameter
Syntax
WDOG
Description
The
WDOG
parameter contains the software switch which enables the
Servo Driver using the
RUN
(Servo on) input signal. The enabled Servo
Driver will control the servo motor depending on the speed and torque
reference values.
WDOG
can be turned on and off under program con-
trol, on Command Line Terminal.
The
WDOG
is also controlled by the PLC CPU. The
WDOG
can only be
switched on when the Enable Watchdog bit (
control word
n
,
bit 1) is
set.
The Servo Driver will automatically be disabled when a
MOTION_ERROR
occurs. A motion error occurs when the
AXISSTATUS
state for one of the axes matches the
ERRORMASK
set-
ting. In this case the software switch (
WDOG
) will be turned off, the
MOTION_ERROR
parameter will have value different than 0 and the
ERROR_AXIS
parameter will contain the number of the first axis to
have the error.
Also when the Enable Watchdog bit (
control word
n
,
bit 1) is reset, the
WDOG
will be switched off.
Arguments
N/A
Example
No example.
See also
AXISSTATUS
,
ERROR_AXIS
,
ERRORMASK
,
MOTION_ERROR
,
SERVO
.
Type
Program control command
Syntax
WHILE condition
commands
WEND
Description
The
WHILE ... WEND
structure allows the program segment between
the
WHILE
and the
WEND
statement to be repeated a number of times
until the condition becomes
FALSE
. In that case program execution will
continue after
WEND
.
Note:
WHILE ... WEND
loops can be nested without limit.
Arguments
•
condition
Any valid logical BASIC expression.
Example
WHILE IN(12) = OFF
MOVE(200)
WAIT IDLE
OP(10,OFF)
MOVE(-200)
WAIT IDLE
OP(10,ON)
WEND
See also
FOR..TO..STEP..NEXT
,
REPEAT..UNTIL
Содержание 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...