Download Print this page

Danfoss MCO 305 Design Manual page 137

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
ON STATBIT .. GOSUB
Summary
Syntax
Parameter
Description
Priority
Command Group
Cross Index
Syntax Example
__ Software Reference __
Call up a subprogram when bit n of the FC 300 status is set.
ON STATBIT n GOSUB name
n =
Bit n of the status word
Byte 1
Status byte of the FC 300
Bit 1,2,4-7
Bit 3
Bit 8
Byte 2
Bit 9
Bit 10
Bit 11
Bit 12
Byte 3
not used
Byte 4
SYNCSTAT
Bit 25
Bit 26
Bit 27
Bit 28
Bit 29
Bit 30
Bit 31
name = subroutine name
*) Explanation: i.e. the axis is within the tolerance range of the control window par.
32-71 REGWMAX / par. 32-72 REGWMIN. As soon as the control window is set, the
axis controller is switched on again.
The instruction ON STATBIT is used to call up a subprogram when bit n of FC 300
status is set. These 32 bits of the FC 300 status consist of the FC 300 status word,
the byte 2 of the internal status (e.g. MOVING) and the bit n of SYNCSTAT.
NB!:
The subroutine to be called up must be defined within the SUBMAINPROG and
ENDPROG identified program.
During the execution of a subroutine called by an interrupt NOWAIT is
automatically 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.
INT
SUBPROG ..RETURN, DISABLE interrupts, ENABLE interrupts, Priorities of
Interrupts
ON STATBIT 30 GOSUB markererror
SUBMAINPROG
SUBPROG markererror
SYNCSTATCLR 32
/* use value 32 of Parameter SYNCSTATCLR, not the bit-number! */
RETURN
ENDPROG
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
no meaning
1 = moving finished
1 = FC 300 switched off
1 = MOVING
1 = Overflow Slave Encoder
1 = Overflow Master Encoder
1 = POSFLOAT active *)
1 = SYNCREADY
1 = SYNCFAULT
1 = SYNCACCURACY
1 = SYNCMMHIT
1 = SYNCSMHIT
1 = SYNCMMERR
1 = SYNCSMERR
/* Interrupt, if error flag Master */
/* clear error flag SYNCMMERR */
137

Advertisement

loading