beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 763

background image

Publication GMLC-5.2 - November 1999

726

Using the RIO Adapter Option

In the table above, the number of decimal digits is shown as a decimal
number. For example, if three decimal digits are specified in the BTW
data file (word 2 = 23xx hex) and the value of the item to be sent to the
motion controller is 54,321.1234, the value 54,321,123 (54,321.1234 x
10

3

= 54,321,123.4 (truncated to 54,321,123)) must be stored in the data

file. Specifically, 5432 is stored in the lower numbered word of the word
pair (the most significant word), and 1123 in the higher numbered word
(the least significant word).

If the value is negative, the most significant bit of the most significant
word must be set to 1. Continuing the example above, the value –
54,321.1234 would be stored as D432 hex (5 BCD = 0101 binary; 1101
binary = D hex) in the lower numbered word of the word pair (the most
significant word), and 1123 in the higher numbered word (the least
significant word) in the BTW data file.

RIO Adapter Block Transfer Write
32bit Signed BCD Numeric Format

Number of
Decimal
Digits:

Multiply
PLC Values by:

Maximum Representable
Value in Motion Controller:

0
1
2
3
4
5

1
10
100
1,000
10,000
100,000

±79,999,999.0
±7,999,999.9
±799,999.99
±79,999.999
±7,999.999 9
±799.999 99

6
7
8
9
10

1,000,000
10,000,000
100,000,000
1,000,000,000
10,000,000,000

±79.999 999
±7.999 999 9
±0.799 999 99
±0.079 999 999
±0.007 999 999 9

11
12
13
14
15

100,000,000,000
1,000,000,000,000
10,000,000,000,000
100,000,000,000,000
1,000,000,000,000,000

±0.000 799 999 99
±0.000 079 999 999
±0.000 007 999 999 9
±0.000 000 799 999 99

±0.000 000 079 999 999