
MCO 305 Design Guide
__ Functions and Examples __
44
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
16. Load the CNF file with the modified parameters and the – automatically generated – curve arrays into
the FC 300 by means of
Parameters
o
Restore from file.
Program Example: Slave Synchronization with Marker
In order to determine the master position, a switch on the master is required that indicates the zero
position. In order to put the slave into the correct position, it will be moved forward to the photoelectric
beam. This corresponds to the beginning of the box = 1000. Then the slave will be moved further by 2900
(= marker distance 3900–1000); thus, the slave is exactly in front of the processing point with the
beginning of the cardboard box 1000, i.e. at slave position 0.
DIM slavesync[108]
// Number of elements from the title bar of the
CAM-Editor
HOME
// Slave axis performs a home run (switch for zero position on top)
// afterwards, the slave will be in the zero position (0 degrees)
// (Omitted if an absolute encoder is used)
DEFMCPOS 0
// Curve starts at master position 0
SET SYNCMSTART 2000
// Counting of the master pulse does not begin
// until the next edge comes from the sensor
SETCURVE slavesync
// Set curve for the slave synchronization
CSTART
// Go to start
CVEL 10
// Go forward slowly until photoelectric beam appears
oldi = IPOS
// oldi = last marker position of the slave
WHILE (oldi == IPOS) DO
// Wait until box is detected
ENDWHILE
POSA (IPOS + 2900)
// Move box forward by 2900
SYNCCMS 0
// Synchronize in CAM-Mode
SYNCCSTART 1
// Engage with start-stop point pair 1
CAM Box
The mechanical camshaft is also reproduced by one (or more) curves. In order to realize a CAM box, it must
be possible to engage and disengage the slave at specific master positions over and over again.
This is possible with APOSS with the interrupt command ON MAPOS .. GOSUB and ON APOS .. GOSUB. It is
possible to call up a subprogram whenever a defined master position has been passed (both in the positive
or negative direction, to be precise).
It is possible to realize many applications that are typical for the packaging industry in connection with a
curve profile in which several have been defined for engaging and disengaging.
Program Example of a CAM Box
After a cardboard box has been printed, the fresh
print is to be dried immediately in the air stream:
Air for drying is blown
on the fresh printing
surface for 300ms
4000
0
2500
1500
conveyor belt
= Master
Stamping roller
= Slave
Master positions
[1/10 mm]
Photoelectric beam
(external marker)
Processing point
e75MD007.10
Содержание MCO 305
Страница 4: ......