Panelview programming question

jbrand85

Member
Join Date
Mar 2009
Location
Alaska
Posts
11
Ok, So I ahve a formula something like this 100/a*B When the machine is not running (a) is 0 so it gives me stars on the panelview. How can I get this to go to 0?
 
More info. What is "a" an integer? floating point number? Where is this formula? In the PLC or your PV. What value does the *** on the PV represent?("a" or the results of the formula)
 
Last edited:
You can put a conditional statement before executing the formula. Use an if A is greater than instruction (GRT in AB speak) before the formula is ran. Also, you can fault out some processors doing a divide by zero.
 
Bruce is right on; it's good programming practice on any platform to boundary-limit division instructions like that. You probably want a zero when the machine is not running, so make your logic "if a> 0 then x=100/a*b, if a<= 0, then x=0".
 
If this is a numeric display in a PanelView Plus terminal, you can make the display connection an Expression to prevent the "*****" onboard, like this:

If TagA > 0 then (100/TagA)*TagB
else 0
 

Similar Topics

I'm currently updating one of the Panelview programs at my plant, and I am hoping someone can answer a question for me. In this program I have 4...
Replies
4
Views
3,168
Hey Guys I am trying to figure out the correct cable to use to connect from my laptop to this Panelview using panelbuilder32. I was sure I had...
Replies
5
Views
2,040
I am new to programming the Panelview 800 HMI screens. I have built some basic screens and it is mostly self explanatory. I would like to add a...
Replies
1
Views
8,981
Hey guys, I have an AB PV 600, 2711-B6C1 (RIO) Series B, Rev B, Frn 3.15 which unfortunately fails the CRC firmware check. I have multiple...
Replies
2
Views
1,815
Hi All, Currently There is Panelview 300 Communicating with 1794 Flex Processor L34 on RS 232 Port (DH 485). The Flex Processor will be...
Replies
4
Views
2,623
Back
Top Bottom