beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 753

background image

Publication GMLC-5.2 - November 1999

716

Using the RIO Adapter Option

When received by the motion controller, the two integers representing
each value are concatenated to form a single 32-bit integer. This integer is
then converted to a floating-point value by dividing the received integer
values by:

10

(Number of Decimal Digits)

The values sent to the motion controller must be multiplied by this value
before being stored in the BTW data file. Failure to do so results in the
transfer of incorrect values to the motion controller.

In 32-bit integer numeric format, the range of values that can be
represented is -2,147,483,648 to +2,147,483,647. The number of decimal
digits specified for the transfer also limits the largest values that can be
sent to the motion controller. The table below shows the factor by which
the values in the PLC must be multiplied before being stored in the data
file as well as the corresponding maximum representable values in the
motion controller.

RIO Adapter Block Transfer Write
32-bit Integer Data File Format

Word

Description

0
1
2

Data Type
First Data Item
Number and Format of Items: 0

dnn

3
4

First Data Item Value MSW
First Data Item Value LSW

5
6

Second Data Item Value MSW
Second Data Item Value LSW

2

nn+1

2

nn+2

Last Data Item Value MSW
Last Data Item Value LSW

2

nn+3

End-of-Block Delimiter (000D hex)