
122
Gemini GV6K/GT6K Command Reference
When an error condition occurs and the associated error-checking bit has been enabled with the
ERROR
command, the Gem6K will branch to the error program. Depending on the error condition, the branch may
be either a GOTO or GOSUB. If the error condition calls for a GOSUB, then after the
ERRORP
program is
executed, program control returns to the point at which the error occurred. If you do not want to return to
the point at which the error occurred, you can use the
HALT
command to end program execution or you can
use the
GOTO
command to go to a different program. If the error condition calls for a GOTO, there is no
way to return to the point at which the error occurred.
MULTI-TASKING
If you are operating multiple tasks, be aware that you must enable error conditions (
ERROR
) and
specify an error program (
ERRORP
) for each task (e.g.,
2%ERROR.2-1
and
2%ERRORP
FIX
for
Task 2). Each task has its own error status register (reported with
ER
,
TER
, and
TERF
).
The
ERRORP
assignment is not saved in battery-backed RAM. To ensure that the
ERRORP
assignment is
retained when you cycle power or issue a
RESET
command
, put the
ERRORP
command in the
startup
program assigned with the
STARTP
command.
WHEN TO BRANCH
If you wish the branch to the error program to occur at the time the error condition is
detected, use the continuous command execution mode (
COMEXC1
). Otherwise, the
branch will not occur until motion has stopped.
Canceling the Branch to the Error Program:
The error program will be continuously called/repeated
until you cancel the branch to the error program. (This is true for all cases except error condition #9, enable
input activated, in which case the error program is called only once.) There are three ways to cancel the
branch:
•
Disable the error-checking bit with the
ERROR.n-0
command, where "
n
" is the number of the error-
checking bit you wish to disable. For example, to disable error checking for the kill input activation (bit
#6), issue the
ERROR.6-0
command. To re-enable the error-checking bit, issue the
ERROR.n-1
command.
•
Delete the program assigned as the
ERRORP
program (
DEL
<name
of
program>
).
•
Satisfy the
How to Remedy the Error
requirement identified in the table below.
NOTE
In addition to canceling the branch to the error program, you must also remedy the cause
of the error; otherwise, the error program will be called again when you resume
operation. Refer to the
How to Remedy the Error
column in the table below for details.
ERROR
Bit #
Cause of the Error
Branch Type to
ERRORP
How to Remedy the Error
1
Stepper axes only:
Stall detected (Stall Detection and
Kill On Stall must be enabled
first—see
ESTALL
or
DSTALL
,
respectively—and
ESK1
enabled)
Gosub
Issue a
GO
command.
2
Hard Limit Hit. An input defined as
an end-of-travel input (
LIMFNC
or
INFNC
) became active. Hard limits
must be enabled (see
LH
).
If
COMEXLØ
, then Goto;
If
COMEXL1
, then Gosub
Change direction & issue
GO
command; or
issue
LHØ
.
3
Soft Limit Hit (soft limits must
be enabled first—see
LS
)
If
COMEXLØ
, then Goto;
If
COMEXL1
, then Gosub
Change direction & issue
GO
command; or
issue
LSØ
.
4
Drive Fault (Detected only if drive
enabled –
DRIVE1
).
Goto
Check the cause with
TASX
, remedy the fault
condition, then issue a
DRIVE1
command.
www.comoso.com
Содержание Gemini GV6K
Страница 24: ...www comoso com...
Страница 40: ...www comoso com...
Страница 344: ...www comoso com...
Страница 350: ...www comoso com...