I need to display the line speed of a filler on the HMI. I guess at one point the PC based HMI was able to display line speed in Bottles Per Minuet (BPM) but since the switch to a PVP+ this ability has been lost. Lets assume we have no rungs in the project (deleted I guess) dedicated to calculating BPM and that we will be figuring out how to do this from scratch.
1. The line fills by diving fill nozzles into a row of 8 bottles
2. Machine filling speed (number of cycles it makes not how fact it squirts stuff) is raised or lowered by increasing or decreasing the delay between fill cycles through the preset value on an "end of of fill delay timer".
I've been giving it a go in an emulated micrologix and I can tap into the done bit of the delay timer to count every time the delay timer is finished and then multiply the ACC of the counter by 8 (fills 8 bottles per cycle) to get to our bottle count. I guess I could grab this bottle count at 59.9 seconds every 59.9 seconds or something and display it on the HMI but this seems really stupid.
I'm new to all this. How would you go about doing this? Attached is my fugly project. Time base bit is being used to simulate stuff happening above the 1st rung that is not actually there because I'm playing around on an emulator.
EDIT: oops T4:0 is my "end of fill delay timer"
1. The line fills by diving fill nozzles into a row of 8 bottles
2. Machine filling speed (number of cycles it makes not how fact it squirts stuff) is raised or lowered by increasing or decreasing the delay between fill cycles through the preset value on an "end of of fill delay timer".
I've been giving it a go in an emulated micrologix and I can tap into the done bit of the delay timer to count every time the delay timer is finished and then multiply the ACC of the counter by 8 (fills 8 bottles per cycle) to get to our bottle count. I guess I could grab this bottle count at 59.9 seconds every 59.9 seconds or something and display it on the HMI but this seems really stupid.
I'm new to all this. How would you go about doing this? Attached is my fugly project. Time base bit is being used to simulate stuff happening above the 1st rung that is not actually there because I'm playing around on an emulator.
EDIT: oops T4:0 is my "end of fill delay timer"