
MCO 305 Design Guide
__ Software Reference __
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
111
ENABLE ... interrupts
Summary
Enables locked interrupts.
Syntax
ENABLE
inttyp
NB!:
ENABLE cannot be called up during interrupt procedures. (The system automati-
cally switches back to enabled after an interrupt.)
Parameter
inttyp = ALL
INT
COMBIT
STATBIT
PARAM
PERIOD
TIME
POSINT (ON APOS, ON MAPOS, ON MCPOS)
Description
ENABLE switches all or explicitly specified interrupts on again.
NB!:
During the execution of an interrupt subroutine at first a DISABLE ALL and at the
end an ENABLE ALL will automatically be done internally. Therefore the execution
of the commands DISABLE ALL and ENABLE ALL within an interrupt is not
necessary and not meaningful, too.
Please see the command DISABLE …interrupts for more details about interrupt
blockings and how blocked interrupts are handled after the ENABLE command.
Command Group
INT
Cross Reference
ON INT, ON COMBIT, ON STATBIT, ON PARAM, ON PERIOD, ON TIME, DISABLE
…interrupts
Syntax Examples
ENABLE ALL
/* Switch on all interrupts */
ENABLE COMBIT
/* Switch on the interrupt for the communication bit */
ERRCLR
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.)
Description
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-corrected error occurs, then only the first
error will be canceled.
ERRCLR also resets FC 300 alarms by means of Bit 7 of the control word.
Command Group
INI,
CON
Cross Index
ON ERROR GOSUB, ERRNO, CONTINUE, MOTOR ON,
Warnings and Error Messages
Syntax Example
ERRCLR
/* erase actual error alarm */
Program Sample
ERROR_01.M, IF_01.M, INDEX_01.M
Summary of Contents for MCO 305
Page 4: ......