GE Proficy Math question

It looks to me as if something else is writing to it, the top rung shows it at 0.0 however from the real to integer it shows 23 as it should the scale is set to 23 as the low limit so 2452 will show zero, I would ignore the zero in 2451 for now according to your scaler the value can only be between 23 & 42 to get 0-100 out, you need to get a value say 30 in the maths & see if it gives you the correct value in 2452. I have seen this before and is usually because the register is used elsewhere, however in this case it would not matter as it's value is set according to the maths functions and then scaled & transferred to another so even if 2451 is used before or after it will not make any difference. I'm not familiar with this plc but many use some of the higher end registers as work areas so when compiled these are allocated as temps (Mitsubishi is a classic example). Due to the update of the communications the register values may be read at different times not directly while you are monitoring a particular bit of logic.
Just a thought do you need 2451 can you tie the Add output directly to the real to int function (As I said I have never used GE and I do not know if there are limits on how many instructions you can have in one line.
 
In a GE PLC when a register address is assigned to a REAL variable, it takes two consecutive addresses so your R02451 variable actually consumes %R02451 and %R02452. Your R02452 variable at the output of the SCALE instruction overwrites the upper word of the REAL variable.
 
Can you take a screenshot of the Actual working Logic.. It might help to clarify a few things.. Make sure the PLC is Started and 2451R isn't being used somewhere else in the logic and something is writing a 0 to it. Also A real uses 2 consecutive registers. Also if it is a subroutine make sure it is being called correctly..
 
Good point on the real requiring two registers (forgot that one), But I'm sure there is no need to use 2451, just tie the add to the real to int function.
 
In a GE PLC when a register address is assigned to a REAL variable, it takes two consecutive addresses so your R02451 variable actually consumes %R02451 and %R02452. Your R02452 variable at the output of the SCALE instruction overwrites the upper word of the REAL variable.

Thanks, Steve! That fixed my issue.


Good point on the real requiring two registers (forgot that one), But I'm sure there is no need to use 2451, just tie the add to the real to int function.

I need both tags. One is level in inches, the other in %.
 
The reason the displayed value in the REAL variable R02451 isn't what you expect is because the value displayed in Proficy Machine edition is the value at that address at the end of the program scan, not the value at that address at the point those instructions were executed.
 

Similar Topics

End user wants to modify what is visible when the block is instantiated. Simple enough with RA AOI, but the can't get to the parameters tab...
2
Replies
155
Views
We still have Proficy iFix and Kepware. Both has been suffering from lack of innovation and support, IMO. iFix I'm basically given up on but...
5
Replies
390
Views
Hi everyone, I'm hoping someone in this community can point me in the right direction. I'm maintaining a legacy machine built around a VersaMax...
5
Replies
433
Views
firstly i apologise because im not a PLC guy so my knowledge is low We have a GE/emerson PLC running the PC based proficy 8 i think... it runs on...
6
Replies
377
Views
Dear All, I have experience with Simatic Manager and TIA Portal, but I'm new to Proficy Machine Edition. I'm struggling to find a feature that...
3
Replies
390
Views
Top