Programming of a packaging line

denhondt

Member
Beiträge
6
Punkte Reaktionen
0
Zuviel Werbung?
->Hier kostenlos registrieren
Hi,

I'm looking for some example programs of packaging lines?

I going to upgrade a packaging line from simatic s5 to s7

The packaging line exists of stand alone machines(+-12) connected together by conveyors(+-50) full of pneumatic cilinders, photoelectric sensors etc..

The Program i have to write consists of getting the product from machine to machine over the conveyors and controlling the communication with the stand alone machines.

I'm looking for some examples of programming the conveyor system? standard blocks?

Regards,
Jd
 

Tigerente1974

Well-known member
Beiträge
1.816
Punkte Reaktionen
290
So you expect somebody to give you the code that took many days/weeks of work?
I think this is very optimistic...
As you´re planning to upgrade the plc, you have a code that works. In my opinion you should analyze the existing code and take these blocks. If you have questions concerning the existing code, you can ask here.
 

Toki0604

Well-known member
Beiträge
670
Punkte Reaktionen
133
Zuviel Werbung?
->Hier kostenlos registrieren
Hi Denhondt,

i think furthermore that all packaging machines are very different. You will nowhere find some standard blocks for your intention.
Sometimes it is possible to convert S5 code to S7 code. But it´s nesessary to conform and controll the code after the converting.
Thats all a lot of work. If the packaging machine isn´t to big, it´s better to program the projekt complete new. (imho)

best regards, Toki
 
OP
D

denhondt

Member
Beiträge
6
Punkte Reaktionen
0
The packaging line is expanded with the years, also the S5 programma but not always in the good way, the programma is not very good, it works but that's all
We never do a S5 - S7 Conversion,

It will be a total new programme

I was just looking for some examples, tips for standard blocks for a converyor for example

i thought there maybe was some programming methode like for Proces/Batch installations , controle modules (ISA88)

I allready did an upgrade of a packaging line from S5 to S7 , but i was looking for some examples to see how it is been done elseware

I made a Standard block for a conveyor, i used a Function (Not a function block don't like the generating part, after a change in a block,) and i attach a Blocknumber as input,
With this blocknumber i make a pointer and with this pointer i load /save data to a Datablock

First network=
L Blocknumber
SLD3
T #Point

OPN DB_CONVEYOR_BITS
L DBW[#POINT]
T LW4

OPN DB_CONVEYOR_CNT
L DBW[#POINT]
T LW6

*****************

Conveyor programm

*****************

Last Network=
L Blocknumber
SLD3
T #Point
OPN DB_CONVEYOR_BITS
L LW4
T DBW[#POINT]

OPN DB_CONVEYOR_CNT
L LW6
T DBW[#POINT]


I just asked this question to learn some more , and improve my programming skills
 

Boxy

Well-known member
Beiträge
1.423
Punkte Reaktionen
138
if you look the S5 Code, it is not so mutch different to the S7 code.
Why you don't convert the code, if the machin run well?

Then as a second step, optimize the programm ...
Also, who is the manufacturer of the mc?
 
OP
D

denhondt

Member
Beiträge
6
Punkte Reaktionen
0
Zuviel Werbung?
->Hier kostenlos registrieren
Its not a machine, its a packaging line that connects the Packaging machines together with conveyors, the packaging line controles te conveyors photo cells, pneumatic cilinders and the communication from and to the packaging machines
There is no real manufacturer, its a line that is automated from nothing by the company technicians years ago

The Packaging line runs but not perfectly, it will be a total new program not a conversion the programm is totaly not structured, and a lot of flags, timers DB's FB's PB's are without symbol text

There are several faults, parts that not work properly
For Example
Old = If you start up the line now all 50 conveyors start immediately

New = A conveyor should only start if product is comming, and if there is no product the conveyor should stop after some time

I'm just looking for soms tips, ideas for programming a packaging line
 
Zuletzt bearbeitet:

Toki0604

Well-known member
Beiträge
670
Punkte Reaktionen
133
Try it with a converting programm.
Then how boxy said:
Then as a second step, optimize the programm ...
Start / stop of the conveyors is a part of optimizing...
And if you have the running S7 code, everyone here will help you
to clean up the bugs and to optimize the programm. (i think)

Best regards, toki
 
OP
D

denhondt

Member
Beiträge
6
Punkte Reaktionen
0
a conversion is not necessary, making a new working s7 program for the packaging line will not be a problem,

i was only looking for new ideas, tips
 

Toki0604

Well-known member
Beiträge
670
Punkte Reaktionen
133
Zuviel Werbung?
->Hier kostenlos registrieren
making a new working s7 program for the packaging line will not be a problem
Ok, but we don´t know how your packings line looks.
And also we don´t know how it have to work.
Standard Blocks for a funktion that nobody exactly knows...
I think that´s impossible. Sorry.
Post up your new code and we will do our best to give you some new ideas.

Best regards, Toki

Ps.: were do you come from?
 
Oben