beautypg.com

Bit integer format – Rockwell Automation GMLC Reference Manual User Manual

Page 758

background image

Publication GMLC-5.2 - November 1999

Using Block Transfers

721

16-bit Integer Format

When received by the motion controller, each integer is converted to a
floating-point value by dividing the received integer values by the
following:

10

(Number of Decimal Digits)

This means that the values to be 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.

With 16-bit integer numeric format, the range of values that can be
represented is -32,768 to +32,767. The number of decimal digits specified
for the transfer also limits the largest values that can be sent to the motion
controller. The following table 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
16-bit Integer Data File Format

Word

Description

0
1
2

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

dnn

3
4
nn + 2

First Data Item Value
Second Data Item Value
Last Data Item

nn + 3

Value End-of-Block Delimiter (000D hex)