
MCO 305 Design Guide
__ Software Reference __
134
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
ON MAPOS .. GOSUB
Summary
Call up a subprogram when the master position xxx (MU) is passed.
Syntax
ON sign MAPOS xxx GOSUB name
Parameter
sign =
+ = when the master position xxx is passed in positive direction
– = when the master position xxx is passed in negative direction
xxx =
Master Position in MU
name =
name of the subprogram
100
xxx
0
<
positive direction
!
negative direction
Description
It is possible to call up a subprogram with the instruction ON MAPOS, if a specific
master position (MU) has been passed in positive or negative direction. For
example, in order to set an output at any point in the case of a linear drive (slave)
with a traversing range from 0 to 10000 UU.
NB!:
–
An ON MAPOS Interrupt can be deleted with the command ON DELETE ..
GOSUB ...
–
The subroutine to be called up must be defined within the SUBMAINPROG and
ENDPROG identified program.
–
During the execution of subprograms triggered by an interrupt, NOWAIT ON is
set automatically
Command Group
INT
Cross index
SUBPROG .. RETURN, DISABLE …, ENABLE …, Priorities of Interrupts, ON DELETE ..
GOSUB, NOWAIT
Syntax Example
ON +MAPOS 1200 GOSUB name
// Always call up subprogram at position 1200
Sample
Here according to the program Velocity Synchronization starts after Master has
reached 2200 qc in positive direction. Then the slave and master move in SYNCV.
Summary of Contents for MCO 305
Page 4: ......