0% found this document useful (0 votes)
563 views1 page

Instructions For Modbus Device To Pass Float Data To Controller in Two Integers

The document discusses how to convert two integers received from a Modbus device representing a single floating point value into a floating point variable for a Rockwell controller. It explains that the Modbus device passes 32-bit floating point data as two 16-bit integers, and the COP instruction must be used to copy the integer data into a floating point file element for the SLC, MicroLogix, or CompactLogix controller so it can be manipulated as a real number.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
563 views1 page

Instructions For Modbus Device To Pass Float Data To Controller in Two Integers

The document discusses how to convert two integers received from a Modbus device representing a single floating point value into a floating point variable for a Rockwell controller. It explains that the Modbus device passes 32-bit floating point data as two 16-bit integers, and the COP instruction must be used to copy the integer data into a floating point file element for the SLC, MicroLogix, or CompactLogix controller so it can be manipulated as a real number.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

559679 - Instructions for Modbus ... https://rockwellautomation.custhel...

Print

Question
A Modbus device is passing float data to
SLC500 controller in two integers (N7:0).
How do you convert the two integers to one
floating point value (F8:0)?

A Modbus device is passing float data to a


MicroLogix 1400 controller in two integers
(N7:0). How do you convert the two integers
to one floating point value (F8:0)?

A Modbus device is passing float data to a


CompactLogix controller in two integers
(INT). How do you convert the two integers
to one real value (REAL)?

Answer
Modbus Data: (1) 32 bit floating point value
being passed as (2) 16 bit integers

When using a SLC or MicroLogix with a


Prosoft Modbus module:

A 32 bit floating point number is being


passed over Modbus as two 16 bit integers
and stored in N30:0 and N30:1. The COP
instruction is used to place the data into a
floating point file element so that it can be
used in math instructions and otherwise
manipulated.

1 of 5 13-Mar-19, 10:49 AM

You might also like