Danfoss VLT5000 SyncPos Operating Instructions Manual page 111

Motion controller for danfoss vlt5000 series; danfoss vlt 5000flux series
Table of Contents

Advertisement

■ ■ ■ ■ ■ DISABLE ... interrupts
DISABLE switches off all or explicitly specified
interrupts – apart from ON ERROR. If the function
DISABLE.. is used in the main program, it can pre-
vent interrupts of the corresponding type.
This is particularly useful if a variable, which is set in
an interrupt procedure, is used in the main program.
To do this you should first switch off the correspon-
ding (or all) interrupts in the main program
DISABLE.. alter the variable and then switch the cor-
responding (or all) interrupts back on with ENABLE..
Summary
Switches interrupts off
Syntax
DISABLE inttyp
NB!
DISABLE cannot be called up during interrupt
procedures. (The system automatically swit-
ches back to enabled after an interrupt.)
Parameter
inttyp =
ALL
INT
COM BIT
STATB IT
PARAM
PE R IOD
T I M E
POSINT
NB!
DISABLE ALL = all except ON ERROR:
in addition the pending interrupts are execu-
ted after the release with ENABLE ALL.
110
Programmable SyncPos motion controller
NB!
If an interrupt is disabled it still exist, but is not
processed anymore (Exception: DISABLE
ALL).
The detection is still running in the background and
the interrupt is captured in case of a non (!) edge-
sensitive or a message-oriented interrupt (ON
PERIOD, ON APOS, ON PARAM etc.). If the interrupt
is ENABLEd again and there was a captured (non
edge-sensitive) interrupt before, this interrupt is pro-
cessed immediately.
In case of edge-sensitive interrupts (e.g. ON INT, ON
COMBIT, ON STATBIT), all interrupts, which take
place during the DISABLEd phase are not proces-
sed, even not after switching on ENABLE again.
These interrupts have no memory in case of
DISABLEd state. Edge-sensitive interrupts which take
place after the anew ENABLEing are still processed
again.
NB!
Exception: DISABLE ALL
In opposite to the selective disabling of edge-
sensitive interrupts (e.g. DISABLE INT) – these will
be ignored and not executed after enabling – in
case of DISABLE ALL the request is stored (edge-
sensitive interrupts too) and the interrupt are still
executed after enabling (ENABLE ALL)!
Command group
I NT
Cross Index
ON INT, ON COMBIT, ON STATBIT, ON PARAM, ON
PERIOD, ON TIME, ENABLE .. Interrupts
Syntax example
DISABLE ALL
/* Switch off all interrupts */
DISABLE STATBIT
/* Switch off the interrupt for the status bit */
MG. 1 0.J8.02 – VLT is a registered Danfoss trade mark

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents