FACULTY OF ELECTRICAL-ELECTRONICS ENGINEERING
DEPARTMENT OF CONTROL AND AUTOMATION
ENGINEERING
INDUSTRIAL AUTOMATION SYSTEMS LAB. I
PACKAGING EXPERIMENT
Consider a conveyor band that carries packages. The band starts with a momentary button and
ends when the package count reaches 6. Sensor 1 sees the package. Sensor 2 triggers a change
in the measurement axis (e.g., length → width → height). Each package is measured 3 times,
once per dimension. Sensor 3 measures the corresponding dimension. After Sensor 2 triggered
3 times, the measurement is finished. After all of the boxes are measured, their masses are
calculated. Your Main program should be written in ST. You also need to define the arrays first.
Use loops when it’s convenient.
The operation of the system is as follows.
• Sensor 3 measures 0-10V signal for 10-80 cm with increments of 10cm. (You can not
measure 36 cm you can measure 30 or 40 cm. You should round the number.)
• All of the measures for packages are stored in a 6x1 Array of Int. So you need three
arrays.
• All of the mass information should be stored in 6x1 Array of Real. (Density 1252,85
kg/m^3)
• The total mass should be shown in analog output. 0.001V for every kilogram.
• The band will stop when the total mass is calculated.
• Total mass should be shown until the next packages mass calculation.
INPUTS
DI 1: Start
DI 2: Sensor 1
DI 3: Sensor 2
AI 1: Sensor 3
OUTPUTS
DO 1: Band
AO 1: Analog Output