The Plc Kid
Member
I need some help with a panelview 1400e display we have a value that should be changing but it is static. Upon further investigation i found the instruction that gives this data to the panelview. There is a multiply instruction that has a floating point as its first number which is 354.2867 which is multiplied by a constant number of 10 and the result is stored in n28:3. The floating point data is changing but the data in n28:3 always stays the same even when the floating point number goes to something like 20.4526.
It appeas as if the original programmer was tring to convert this floating point number into a integer of just 354 but is this the correct way to do it. I do not understand why it does not work.I would thank that the result data would change some? I thought that maybe there was siomething else writing a number to n28:3 but that is not the case because i did a cross ref on n28:3 and the multiply instruction in that ladder is the only place it is used and we have no indirect adderessing being used.
This is a plc 5/60 enhanced rev b3
Can some help me understand what the heck is going on?
It appeas as if the original programmer was tring to convert this floating point number into a integer of just 354 but is this the correct way to do it. I do not understand why it does not work.I would thank that the result data would change some? I thought that maybe there was siomething else writing a number to n28:3 but that is not the case because i did a cross ref on n28:3 and the multiply instruction in that ladder is the only place it is used and we have no indirect adderessing being used.
This is a plc 5/60 enhanced rev b3
Can some help me understand what the heck is going on?