Appl Examples Plcopenmc
Appl Examples Plcopenmc
Appl Examples Plcopenmc
Programming example
Example 1: Label machine This example shows a way to solve this task.
Application description Both axes move with the same velocity setpoint. The delay
The task is to place a label at a particular position on a for TON is calculated from the sensor distance and the
product.The application has two drives, one to feed the velocity. After a labeling step the LabelDrive stops again
product via a conveyor belt, the other to feed the labels and and waits for the next trigger, while the conveyor
to place the labels on the products. The labeling process is continuously moves.
triggered by a position detection sensor. From the detection
of the product to the start of the label movement there is a Possible Improvements
delay depending on the velocity of the conveyor and the Although this principle is working, there are some
position of the sensor and the position of the label on the possibilities to improve the functionalities and performance
product. to achieve faster and more precise machines. Ways to do
this are:
A drift of the label position as a result of the sum of
incremental errors.
A fast touch-probe input to detect the start position of
the product more precisely
A MC_CamIn or MC_GearInPos function to
synchronize the label and product position in order to
position the label more exact on the product. The
conveyor should be the Master axis and the LabelDrive
the Slave axis. In this way a mismatch caused by
acceleration of the conveyor during labeling can be
avoided.
If the product is smaller than the sensor distance a kind
of FIFO for product tracking can be necessary. See for
instance the FIFO function block as specified in Part 3
User Guidelines.
Figure 1: Labeling machine
MC_MoveRelative
MC_MoveRelative
LabelDrive Axis Axis
Product TON
IN Q Execute Done
Detection
PT ET LabelLength Position Busy
Velocity Active
Delay Acceleration CommandAborted
SensorDistance
DIV Deceleration Error
Jerk ErrorID
Velocity Direction
Buffermode
MC_MoveVelocity
MC_MoveVelocity
Conveyor Axis Axis
Timing diagram
The following graphics show the sequence to fetch a pallet
from the storage system.
PLCopen, as an organization active in industrial control, is tools. Based on IEC 61131-3, the only global standard for
creating a higher efficiency in your application software industrial control programming, we help people with
development. With results like Motion Control Library, different backgrounds and skills to create different elements
Safety, XML specification, Communication with OPC UA, of a program during different stages of the software
Reusability Level and Conformity Level. PLCopen made lifecycle. Yet all pieces adhere to a common structure and
solid contributions to the community, extending the work together harmoniously.
hardware independence from the software code, as well as
reusability of the code and coupling to external software More information on www.PLCopen.org