Download Print this page

Danfoss MCO 305 Design Manual page 130

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
ON COMBIT .. GOSUB
Summary
Syntax
Parameter
Description
Priority
Portability
Command Group
Cross Index
Syntax Example
ON DELETE .. GOSUB
Summary
Syntax
Parameter
Description
130
__ Software Reference __
Call up a subprogram when Bit n of the communication buffer is set.
ON COMBIT n GOSUB name
n =
Bit n of communication buffer
–32 = n =32, n!= 0
name =
name of subprogram
ON COMBIT refers to the first 32 Bits of the process data memory.
The instruction ON COMBIT is used to call up a subprogram when Bit n of the
communication buffer is set.
NB!:
The subroutine to be called up must be defined within the SUBMAINPROG and
ENDPROG identified program.
During the execution of an ON COMBIT subroutine NOWAIT is set to ON.
If a number of interrupts occur simultaneously, the subprogram assigned to the
lowest bit is worked through first. The other interrupts will be processed after-
wards. If, during an interrupt subroutine, the same interrupt occurs (exception:
error interrupt), then it will be ignored and thus lost.
In the case of COMOPTGET and COMOPTSEND, the offset of 2 Word is retained for
compatibility reasons.
INT
SUBPROG .. RETURN, COMOPTGET, COMOPTSEND, Priorities of Interrupts, NOWAIT
ON COMBIT 5 GOSUB test
Deletes a position interrupt ON APOS, ON MAPOS, or ON MCPOS
ON DELETE pos GOSUB name
pos =
value
name =
name of subprogram
The command can be used to delete an ON APOS interrupt, which is defined as
follows:
ON sign APOS xxx GOSUB name
The parameter 'pos' of this command can hold any value, e.g. 0. It is not checked
and has no relevance for the deletion of the interrupt. The main importance
belongs to the parameter 'name', which has to hold the name of the subprogram
that was formerly defined in the ON APOS command. So, the 'ON DELETE pos
GOSUB name' command deletes any (!) position interrupt, which belongs to the
subprogram identified by the given name. Please see sample 1.
NB!:
Only position interrupts are deleted, but no other type of interrupt.
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
// set interrupt on field bus bit 5

Advertisement

loading