Download Register description

Transcript
JetMove 2xx at the JetControl
14.7
14.7 Sample Program
Sample Program
Address labels are to be applied to packages, see fig.40. In random distances, the
packages arrive at the labelling position on the conveyor belt one after the other. At
the labelling position, the belt stops for labelling. For positioning on the labelling
position, a print-mark is read by a sensor. By means of the trigger signal (24 V active)
activated by the sensor, positioning in relation to the respective labelling position is
altered by referencing on the fly. The process of loading the packages on the belt
guarantees for the print mark of the following packet to be labelled always being on
a distance d to the packet being labelled at the moment.
0 mm
2,500 mm
5,000 mm
d = 2,500 mm
Position
Gluing device
Sensor
Print mark
Fig. 40: Sample application of referencing on the fly
Labelling a packet is defined to be a cyclic process. The following process per cycle
is defined:
•
•
•
•
•
•
Setting the as-is position to zero
Enabling of the trigger signal
Absolute positioning to the target position 5,000 mm
Recognizing the print mark within the positioning range
Shifting the as-is position to position 2,500 mm, if the as-is position is unequal to
position 2,500 mm
If the target position has been reached and a trigger signal has been issued, start
the labelling process; otherwise continue to the next cycle
For implementation, a JC-241 is used for controlling and a JM-206 as an axis for the
motion system of the conveyor belt. The JM-206 has got the slave module number 2.
Initialization
#Include „JM2xxReg32.stp"
Var
JM_Axis
:JM_2XX At %VL 12000;
End_Var;
...
Jetter AG
// JM2xx RegisterInterface
// Axis declaration
319