111
MG.10.J8.02 – VLT is a registered Danfoss trade mark
Programmable SyncPos motion controller
Software Reference
■
■
■
■
■
ENABLE ... interrupts
ENABLE switches all or explicitly specified interrupts
on again.
Summary
Switches interrupts on
Syntax
ENABLE inttyp
NB!
ENABLE cannot be called up during interrupt
procedures. (The system automatically swit-
ches back to enabled after an interrupt.)
Parameter
inttyp =
ALL
I NT
COM BIT
STATBIT
PARAM
PERIOD
POSINT
TIM E
NB!
See the difference between the non-edge-
sensitive and message-oriented interrupts
(ON PERIOD, ON APOS, ON PARAM, etc.) and the
edge-sensitive interrupts (e.g. ON INT, ON COMBIT,
ON STATBIT) in section DISABLE…
Command group
I NT
Cross Index
ON INT, ON COMBIT, ON STATBIT, ON PARAM, ON
PERIOD, ON TIME
Syntax example
ENABLE ALL
/* Switch on all interrupts */
ENABLE COMBIT
/* Switch on the interrupt for
the communication bit */
■
■
■
■
■
ER RCLR
An option card error can be cleared via the ERRCLR
command. However, the cause of the error must be
eliminated first, otherwise the same error alarm will
occur again. If, in the meantime, another un-correc-
ted error occurs, then only the first error will be
canceled.
Summary
Error cancellation
Syntax
ERRCLR
The ERRCLR command should only be used in a
subroutine for error handling (see ON ERROR
GOSUB).
NB!
ERRCLR contains the command MOTOR ON,
which automatically turns on the control
again.
(The motor is position controlled at the current
position.)
UP TO VERSION 3.00
ERRCLR is only resetting option card errors,
VLT alarms must be reset via a digital input or
the LCP.
NEW
As of Version 3.1x ERRCLR also resets Bit 7 of the
control word of the VLT. Then the VLT messages no
longer need to be deleted.
Command group
INI, CON
Cross Index
ON ERROR GOSUB, ERRNO, CONTINUE, MOTOR
ON
Messages and Error reference
Syntax-Example
ERRCLR
/* erase actual error alarm */
Program sample
ERROR_01.M, IF_01.M, INDEX_01.M