
Command Descriptions
149
Error Status — Bit #14
: Bit #14 is set if the input state or position relationship specified in the
GOWHEN
command is already true when the
GO
,
FGADV
,
FSHFC
, or
FSHFD
command is issued. The
error status is monitored and reported only if you enable error-checking bit #14 with the
ERROR
command (e.g.,
ERROR.14-1
). NOTE: When the error occurs, the drive will branch to the error
program (assigned with the
ERRORP
command). To clear this error condition, issue another
GOWHEN
command; or issue a
!K
command and check the program logic (use the
TRACE
and
STEP
features if
necessary).
ER.14
..... Assignment & comparison operator — use in a conditional expression (see
AS
).
TERF
....... Full text description of each status bit. (see “
Gowhen condition true
” line item)
TER
......... Binary report of each status bit (bits 1-32 from left to right). See bit #14.
GOWHEN
.
.
. on a Trigger Input: Use
aTRGFNc1
If you wish motion to be triggered with a trigger input, use the
TRGFNc1
command. The
TRGFNc1
command executes in the same manner as the
GOWHEN
command, except that motion is executed
when the specified trigger input (
c
) is activated. For more information, refer to the
TRGFN
command
description.
GOWHEN
vs.
WAIT
:
A
WAIT
will cause program flow to halt (except for execution of immediate commands) until the
condition specified is satisfied. Common uses for this function include delaying subsequent I/O
activation until the master has achieved a required position or an object has been sensed.
By contrast, a
GOWHEN
will suspend the motion profile until the specified condition is met. It does
not
affect program flow. If you wish motion to be triggered with a trigger input, use the
TRGFNc1
command. The
TRGFNc1
command executes in the same manner as the
GOWHEN
command, except
that motion is executed when the specified trigger input (
c
) is activated (see
TRGFN
command
description for details). In addition,
GOWHEN
expressions are limited to the operands listed above;
WAIT
can use additional operands such as
FS
(Following status) and
VMAS
(velocity of master).
Factors Affecting
GOWHEN
Execution:
If a second
GOWHEN
command is executed
before
a start-motion command (
GO
,
FGADV
,
FSHFC
, or
FSHFD
), then the first
GOWHEN
is over-written by the second
GOWHEN
command. (
GOWHEN
commands
are not nested.) An error is not generated when a
GOWHEN
command is over-written by another
GOWHEN
.
While waiting for a
GOWHEN
condition to be met
and
a start-motion command
has
been issued, if a
second
GOWHEN
command is encountered, then the first sequence is disabled and another start-motion
command is needed to re-arm the second
GOWHEN
sequence.
A new
GOWHEN
command must be issued for each start-motion command (
GO
,
FGADV
,
FSHFC
, or
FSHFD
). That is, once a
GOWHEN
condition is met and the motion command is executed, subsequent
motion commands will not be affected by the same
GOWHEN
command.
If the
GOWHEN
and start-motion commands are issued, the motion profile is delayed until the
GOWHEN
condition is met. If a second start-motion command is encountered, the second start-motion command
will override the
GOWHEN
command and start motion. If this override situation is not desired, it can be
avoided by using a
WAIT
condition between the first start-motion command and the second start-
motion command.
It is probable that the
GOWHEN
command, the
GO
command, and the
GOWHEN
condition becoming true
may be separated in time, and by other commands. Situations may arise, or commands may be given
which make the
GOWHEN
invalid or inappropriate. In these cases, the
GOWHEN
condition is cleared, and
any motion pending the
GOWHEN
condition becoming true is canceled. These situations include
execution of the
JOG
,
JOY
,
HOM
,
PRUN
, and
DRIVEØ
commands, as well motion being stopped due to
hard or soft limits, a drive fault, an immediate stop (
!S
), or an immediate kill (
!K
or
^K
).
www.comoso.com
Содержание Gemini GT6K
Страница 24: ...www comoso com ...
Страница 40: ...www comoso com ...
Страница 344: ...www comoso com ...
Страница 350: ...www comoso com ...