beautypg.com

Number and format of items – Rockwell Automation GMLC Reference Manual User Manual

Page 751

background image

Publication GMLC-5.2 - November 1999

714

Using the RIO Adapter Option

2. Put 0064 (100 decimal = 64 hex) in word 1 of the BTW data file.

See detailed information in this chapter on sending or getting each type of
item.

Number and Format of Items

Each digit in the hexadecimal representation of word 2 in the BTW data
file is used to represent a different part of the format of the values sent to
or read from the motion controller. The numeric format of the values is
specified by the most significant hex digit of word 2 in the BTW data file.
The number of decimal digits (digits to the right of the decimal point) is
specified by the next most significant digit. The number of values to send
to or get from the motion controller is specified by the two least
significant digits of word 2. Thus, word 2 can be represented as fdnn,
where:

The table below shows the range of values for each of these parameters.

f

=

Numeric Format of Items

d

=

Number of Decimal Digits

nn

=

Number of Items to Transfer

RIO Adapter Block Transfer Write
Number and Format Items (Word 2)

Word 2
Digit

Description

Value Range

Hex

Dec

f

32-bit Integer
16-bit Integer
32-bit Signed BCD
32-bit Floating-Point
Word-Swapped 32-bit Integer
Word-Swapped 32-bit Signed BCD
Word-Swapped 32-bit Floating-Point

0
1
2
3
4
6
7

0
1
2
3
4
6
7

d

Number of Decimal Digits

0 – F

0 – 15

nn

Number of Items

1 – 3C

1 – 60