PLC5 to contrologix data map

In an existing PLC5 there are MOV instructions to MOV F8:x into N11:x. Looking this up on this forum I have found that within a PLC5 a move of a float into an Integer will convert the float to integer and a move of that integer into a float will convert it back to a Float (+/- some rounding).

I have a current PLC5 that is moving several floats into an N file. That N file is then READ via MSG by another PLC5 that uses MOV to mov the N back to an F.
So that conversion is F-->N --> MSG the N to an N then N---> F and it is all done in PLC 5s.

We are replacing the source of the N file in the message (which is a PLC 5) with a new Contrologix L83 running v36.01.
I do not think that the MOV statement in Control logix does this conversion from F to N any more (I can do the MOV but I don't think its doing the same conversiont)...but I was wondering if anyone has run into this issue before and has a solution?

In the contrologix I set up a MOV to move FloatTest [REAL] to INTTest [INT] and it just rounds the number. When I move it back I still get just the rounded number with a zero after the decimal point.
 
A MOV with a floating point source and an integer destination will round the result to a whole number. There is no getting that lost precision back if you MOV it back to a float at the other end of the MSG. The source must be within the limits of the integer to begin with as well. This is all true and applies (nearly) equally to both platforms.

The rounding is performed differently in a PLC5 vs. Controllogix:
 
Are you sure it is not COP being used in the original? MOV transfers values, and as you have discovered an integer by definition does not have any decimal portion so it will always be rounded.

If you need to transfer a float value but for some reason cannot access it directly, it is much more common to COP it into two INT values, transfer them, and then reconstruct it at the other end.
 
This is what is going on in my PLC5 and it this is the thread I found here that verified it. The MOV in and out works.

"The unregistered poster is right, but not totaly clear.
Say your floating-point value is in a F9:xxx register (file 9, float); if you MOV that value to a N7:xxx (file 7, Integer) register, you will auto-cast it as a (truncated)integer value. The reverse MOV will bring it back to a floating-point value.
Hope this helps,
Daniel Chartier"
 
If you need to transfer a float value but for some reason cannot access it directly, it is much more common to COP it into two INT values, transfer them, and then reconstruct it at the other end.
This is huge plant and the plc I am referring to is the consolidation PLC for SCADA. I need to keep the same memory map for the SCADA points to get the same data from the new source.

I may have to create a new F file and then do the moves on the PLC5 side but that is not ideal either since I have to shutdown the plant to download the new F file. Cannot create or expand PLC 5 files live on a PLC5.
 

Similar Topics

Hello, I have a question regarding the possibility of using messages instructions to communicate between: PLC5/80E Series D - CE Water Mark...
12
Replies
4,067
Views
I am working for a company that does chrome plating and the line is VERY old lol So they did a controls upgrade(before my time here) and replaced...
4
Replies
2,604
Views
Hello, I am doing a PLC5 to 1756 L81 conversion. I have an issue with what looks like an indexed array bit in the PLC 5 that I am unsure of how...
1
Replies
1,813
Views
I am trying to get a MSG to work between a Contrologix PLC re ethernet and a PLC 5 on DH+. I've attached a pdf illustrating the connections. I've...
8
Replies
3,900
Views
Trying to open an old project It was Fix32 talking to a Contrologix L61 using Rslinx. I can not remember the ABR 7.x OPC driver setup and...
5
Replies
3,295
Views
Top