RSLogix 5000 Add Cumulative Data for live Viewing

Join Date
Jul 2020
Location
Post Falls, Idaho
Posts
1
Im trying to sum a running "Shift Total" production value and move it into a Month Total value that will continuously update for viewing capabilities on the ViewPoint Platform. The Problem im running into is at the end of every shift the "Shift Total" resets to zero. So I tried loading this value into an array big enough for the whole month and using a FAL instruction to sum the total array. This works fine but it only shows me the current SUM total if I toggle the FAL. I would like the accumulated value for the month so far, plus the live data for the current shift.
 
Last edited:
At the end of every scan, MOVe the "Shift Total" into a ghost variable.



Just before that MOV, if the "Shift Total" is either zero or less than the ghost, then add the ghost value to the the "Month total."


Also subtract the "Shift Total" from the "Month total," so the formar is not added accumulated twice in the latter in case the former is not 0.


It's silly, but it should work.



This is basically a one-shot, falling-edge detector.
 

Similar Topics

I am trying to add a device to my RSLogix 5000 program. The device is a Eaton PowerXL DG1 I downloaded the eds file from the website (it...
Replies
5
Views
1,755
I am trying to add a generic Ethernet module to RSLogix and keep getting an invalid size error. There are no inputs, only outputs. I am using...
Replies
6
Views
5,594
I would like some guidance or a way to add SCL or SCP instructions to my Add-On I am using RS-Logix 5000
Replies
3
Views
2,155
Hi there, I am trying to create an Add=On Instruction to help me manage some alarm conditions in my application. My AOI has one Boolean output...
Replies
7
Views
2,571
Hello, I'm new to the PLC world. We are adding a Keyence cv-x152f to one of our lines. We want to talk over ethernet/ip. I see how to add the...
Replies
7
Views
5,765
Back
Top Bottom