Moving 32Bit Floating by 2 integer numbers in RSlogix5

Join Date
Mar 2004
Posts
60
Hello:
I have a floating number, and I would like to use an existing msg block that have many spare integers to transfer this info from one PLC to another. But how do I break up the floating number into two 16 bit words and then put them back together in the end? (ie move F8:38 by breaking it into N11:400 and N11:401)
Does anyone know how to do this?
Thanks.
George
 
Use the copy instruction (COP). The copy performs a byte by byte copy without doing any conversion. Remember that the length field is relative to the destination data type. So when you are copying the float to the integers the length is two. When you copy the integers to the float the length is one.

Keith
 

Similar Topics

All, I am trying to reset timers when a Work Order change occurs. The Work Order comes in as a string and I am comparing it to a tag...
Replies
2
Views
89
I'm a Siemens person, and this is one of my first AB programs. The customer wants everything programmed in Ladder. I have a lot of data (3...
Replies
14
Views
244
Hello, I have a compact Logix plc and I have been task with configuring alarms into our SCADA when an Analog signal stops moving. The analog...
Replies
6
Views
260
Hello, i am a beginner with a Siemens Logo 8 PLC. I would determine the direction of an object if it passes a whole cycle of 2 input sensors. See...
Replies
2
Views
201
Can an AOP be removed from Logix? I seem to have some version weirdness from an E&H AOP and I need to see if reinstalling the AOP will correct it.
Replies
5
Views
1,003
Back
Top Bottom