thewalkerist
Member
Hello,
i am currently trying to create a plc programme from my Tia portal v16 for a package filling machine. But i am kinda new to the plc stuff so i need aid. Here's the process. I have the logic made up on my mind but i am not really good at plc stuff.
Here are the Components,
Package sensor = S1
scale piston sensor= S2
valve piston sensor= S3
valve piston = P1
scale belt piston= P2
Package feeder line motor= M1
scale Motor = M2
Material feeder motor = M3
Loadcell Transmitter(Rs485 Modbus connection) with a loadcell connected to it = LCT
Firstly there is S1 which is package sensor(this will look for a package), if it is 0(doesnt see a package) plc will turn our P2(Scale belt piston),M2(Scale motor) and M1(Package feeder line motor) values to 1. That means if there is not package seen by the sensor we will start feeding system packages.
After we start feeding our system packages our S2(scale piston sensor) will have to be 1 because there is a package coming but if somehow it is 0 then we will give an error because it shouldnt be like that.(Just go with me on this one i know it has a lot of holes ) Now that our packages are coming our S1 should be 1 because it sees the package.
Now that our S1 is finally 1 we will look for the S2 and if its 0(which it shouldnt be) it will give us the same error. If its 1 then we will go on to our we will calibrate our scale(loadcell). After its done calibrating we will start our M3(feeder Motor) and P1(valve piston) will turn to 1(we can do a double check on S1(package sensor)here because if it doesnt see the package than whats it gonna drop on eh? and if its not 1 we can give an error). after our double check on S1 we can finally look at the scale.
Now if our scale is showing 0 after all that stuff we did it will turn back and open P1 and M3 again to fill and check again for S1 just in case. Now that our materiel is going in to the package and the scale is not 0 we will let it fill but when it comes to say %90 we will start to slow the motor according to the increase of weight, if the weight increases really fast than we will slow our motor really fast but if its filling slowly we will not get in the way since its not increasing to fast. We do this in order to get a solid set value. Usually it will be 10Kg but 10005 or 9995grams is fine aswell.
After we are done with filling process we will turn our P1 and M3 values to 0 since we are done with filling but we will check our S1 again just to make sure and if its 0 again we will give another error. If our S1 is still 1 then we will move our box by turning our P2, M2 and M1 1 again and it will go away. And then we will again lor our S1 and start the whole process over again.
This will be a loop. One box will be coming while other is going away. And whole process will start again.
Now i want to make completely customizable. I can change my set value for weight and all.I want to add in a manual and an automatic option. Now in Automatic option this whole process will be done by itself but in manual option i want to just put everything there and it will be like Start M1, Stop M1, Start M2, Stop M2, Start M3, Stop M3 and so on.
I want to make the programme self-learn on filling process. If its filling too fast than programme will just adjust itself to get more accurate values and slow the motor down. Something like that.
Can anyone help me out with this?
I am planning this for myself as a self-project kind of thing.
I am currently planning to use Tia Portal since thats what im kind of know my way around there.
What plc i will be using ? i do not know. But i would love your recommendations. My biggest issue rn is the code. It seems like i want a lot but i want to do this and i would really like your help. Since i am a newbie in these things i would like someone to hold my hand through this time. Thanks everso
i am currently trying to create a plc programme from my Tia portal v16 for a package filling machine. But i am kinda new to the plc stuff so i need aid. Here's the process. I have the logic made up on my mind but i am not really good at plc stuff.
Here are the Components,
Package sensor = S1
scale piston sensor= S2
valve piston sensor= S3
valve piston = P1
scale belt piston= P2
Package feeder line motor= M1
scale Motor = M2
Material feeder motor = M3
Loadcell Transmitter(Rs485 Modbus connection) with a loadcell connected to it = LCT
Firstly there is S1 which is package sensor(this will look for a package), if it is 0(doesnt see a package) plc will turn our P2(Scale belt piston),M2(Scale motor) and M1(Package feeder line motor) values to 1. That means if there is not package seen by the sensor we will start feeding system packages.
After we start feeding our system packages our S2(scale piston sensor) will have to be 1 because there is a package coming but if somehow it is 0 then we will give an error because it shouldnt be like that.(Just go with me on this one i know it has a lot of holes ) Now that our packages are coming our S1 should be 1 because it sees the package.
Now that our S1 is finally 1 we will look for the S2 and if its 0(which it shouldnt be) it will give us the same error. If its 1 then we will go on to our we will calibrate our scale(loadcell). After its done calibrating we will start our M3(feeder Motor) and P1(valve piston) will turn to 1(we can do a double check on S1(package sensor)here because if it doesnt see the package than whats it gonna drop on eh? and if its not 1 we can give an error). after our double check on S1 we can finally look at the scale.
Now if our scale is showing 0 after all that stuff we did it will turn back and open P1 and M3 again to fill and check again for S1 just in case. Now that our materiel is going in to the package and the scale is not 0 we will let it fill but when it comes to say %90 we will start to slow the motor according to the increase of weight, if the weight increases really fast than we will slow our motor really fast but if its filling slowly we will not get in the way since its not increasing to fast. We do this in order to get a solid set value. Usually it will be 10Kg but 10005 or 9995grams is fine aswell.
After we are done with filling process we will turn our P1 and M3 values to 0 since we are done with filling but we will check our S1 again just to make sure and if its 0 again we will give another error. If our S1 is still 1 then we will move our box by turning our P2, M2 and M1 1 again and it will go away. And then we will again lor our S1 and start the whole process over again.
This will be a loop. One box will be coming while other is going away. And whole process will start again.
Now i want to make completely customizable. I can change my set value for weight and all.I want to add in a manual and an automatic option. Now in Automatic option this whole process will be done by itself but in manual option i want to just put everything there and it will be like Start M1, Stop M1, Start M2, Stop M2, Start M3, Stop M3 and so on.
I want to make the programme self-learn on filling process. If its filling too fast than programme will just adjust itself to get more accurate values and slow the motor down. Something like that.
Can anyone help me out with this?
I am planning this for myself as a self-project kind of thing.
I am currently planning to use Tia Portal since thats what im kind of know my way around there.
What plc i will be using ? i do not know. But i would love your recommendations. My biggest issue rn is the code. It seems like i want a lot but i want to do this and i would really like your help. Since i am a newbie in these things i would like someone to hold my hand through this time. Thanks everso