(ADD) instruction in function block

I know this sounds really stupid, but I have a function block program I have written and have been debugging. I have an ADD block that will not work?

my input for source A and source B are functioning correctly via inputs from HMI. but the ADD block will not output the result? I am at a loss, this should be very simple. any help would be appreciated.
 
I have tried both ways Lynx, nothing seems to allow the output to work. If you look at the properties window, the values for source A and source B do not show up in the properties window, seems like they should.

ADD Block parameters.JPG
 
Source A & B should be reals, it looks like you are feeding them with integers, I do not know what PLC you are using but in most I have used this would cause a compile error, try converting the integers to reals first.
 
Parky, I think you will find that they are reals the decimal point is really hard to see.
I had to change the font size to see it correctly.

100.0


Alan
 
yea my bad, I have been in DeltaV for the last 6 years and completely got out of Control Logix, now we have incorporated, I'm a little rusty behind the wheel.
 

Similar Topics

Hi team, I'd like to add a pre-existing tag from the main ladder logic program into an add-on instruction which is activated when a certain button...
15
Replies
1,438
Views
I have an add on instruction used in a couple of Logix Designer programs that I copied and pasted into a v29 program, and I cannot get it to work...
2
Replies
456
Views
Hello ! I have the Redundancy system,used the 1756-L71 cpu in the 0 solt of rack ,the hardware V30.1, now i the frist use the L-CPU-24-UP-4.10.06...
0
Replies
618
Views
How do you export an AOI from controllogix 5000 to import to another file. I want the A_SCP in another file
2
Replies
750
Views
Im trying to modify the Add-On, P_AIn library from Rockwell and I can't figure out how to do it. I need to access the tag values, but I haven't...
5
Replies
1,595
Views
Top