Hi,
I'm learning lots about step 7 at the moment but still have a way to go.
What I want to do is count how many parts are made every hour on a certain machine. I know the best way will be to create a datablock and either send a count value from a counter or just add one to a DB location every time a part has been produced. I have already done this in a somewhat long-winded way, but I know I should be changing the data location with some kind of increment or pointer. I know there will be many ways of doing this so any ideas techniques will be appreciated.
To explain the process and what I want better:
-We have 3 presses making parts
-Every time a the timer has finished for the press to end it's cycle I'm currently adding +1 to the relevant press datablock location... e.g DB100.DBW0 [INT] for press 1
-I'm using a timer to run for one hour where it can allow the count to be added into the first datablock location
-once the hour is up it stops the count into that first DB location and activates another hour timer that allows +1 to be added into the next DB location eg. DB100.DBW2 (I've had to repeat this for every hour I've wanted to record)
-I want to be able to use the same count and shorter way of programming so I can automatically update the DB location once the hour is up, which will allow me to record this data for a very long time without adding countless numbers of extra lines. (I've written this in ladder btw, but do understand a little STL)
Thanks in advance for any help you can give me.
Russ
I'm learning lots about step 7 at the moment but still have a way to go.
What I want to do is count how many parts are made every hour on a certain machine. I know the best way will be to create a datablock and either send a count value from a counter or just add one to a DB location every time a part has been produced. I have already done this in a somewhat long-winded way, but I know I should be changing the data location with some kind of increment or pointer. I know there will be many ways of doing this so any ideas techniques will be appreciated.
To explain the process and what I want better:
-We have 3 presses making parts
-Every time a the timer has finished for the press to end it's cycle I'm currently adding +1 to the relevant press datablock location... e.g DB100.DBW0 [INT] for press 1
-I'm using a timer to run for one hour where it can allow the count to be added into the first datablock location
-once the hour is up it stops the count into that first DB location and activates another hour timer that allows +1 to be added into the next DB location eg. DB100.DBW2 (I've had to repeat this for every hour I've wanted to record)
-I want to be able to use the same count and shorter way of programming so I can automatically update the DB location once the hour is up, which will allow me to record this data for a very long time without adding countless numbers of extra lines. (I've written this in ladder btw, but do understand a little STL)
Thanks in advance for any help you can give me.
Russ