Download Print this page

Danfoss MCO 305 Design Manual page 134

Hide thumbs Also See for MCO 305:

Advertisement

MCO 305 Design Guide
ON MAPOS .. GOSUB
Summary
Syntax
Parameter
Description
Command Group
Cross index
Syntax Example
Sample
134
__ Software Reference __
Call up a subprogram when the master position xxx (MU) is passed.
ON sign MAPOS xxx GOSUB name
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
<
positive direction
negative direction
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
INT
SUBPROG .. RETURN, DISABLE ..., ENABLE ..., Priorities of Interrupts, ON DELETE ..
GOSUB, NOWAIT
ON +MAPOS 1200 GOSUB name
// Always call up subprogram at position 1200
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.
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
0

Advertisement

loading