Cscape program

shockwave78

Member
Join Date
Jun 2023
Location
TX
Posts
4
I am working on a program in Cscape to calculate a flow in gpm with a pulse input. Currently, the data collection, labeled as minute counter and gallon counter work properly, as well as the flow calculation, but the display on the plc shows the same number regardless of the actual result. it seems to me like the displayed number is a maximum or something similar because it is in the billions. maybe a max value for a given bit number?

Attached are screenshots of the program

Thanks

Screenshot 2023-06-21 125951.png Screenshot 2023-06-21 130007.png
 
Can you post a screenshot taken when you are online with the PLC so we can the data values you're seeing? Also, which %R address you're talking about?

When are you resetting the integers with accumulated gallons (%R00012) and minutes (%R00004)? If those ever reach a value of 32767, the corresponding ADD_INT instructions will fail.
 
The %R address corresponding to the display is %R00018 at the bottom under the flow calculation comment. I am not currently resetting the values for %R00012 and %R00004 because the system will not run long enough to max the values out.

Screenshot 2023-06-21 142348.png Screenshot 2023-06-21 142425.png 20230621_143548.jpg
 
worked like a charm, thank you for the help as I am just getting into plc programming. I'm sure I will have many more questions.

Thanks again,

Grant
 

Similar Topics

Hi, I want to read data from mod bus by using cscape plc please help me i dont know any about that
Replies
3
Views
2,133
I am trying to set up a piece of equipment with a Horner HE-X4R. I'd like to use structured text and so far I'm just trying to get a basic On/off...
Replies
0
Views
76
I've just started using Horner Cscape version 9.90 service pack 11. Is it normal for all the toolbars in the window to appear in a different spot...
Replies
6
Views
204
I seem to be making this harder than it should be, and Its not making any sense. I simply need to move a real variable to two integer variables...
Replies
8
Views
987
I am working on a program in Cscape to take a pulse input from a flow meter and output an average of the last 5 minutes of flow and total flow to...
Replies
1
Views
575
Back
Top Bottom