beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 785

background image

Publication GMLC-5.2 - November 1999

748

Using the RIO Adapter Option

Except for the fault and status codes, the system variable values returned
by the BTR are identical to those for the corresponding GML Commander
variables shown in the previous table. See the System Variables chapter
for detailed information on the units and format of the returned values for
these system variables.

For example, the data file shown below (in hexadecimal format) retrieves
the actual position of axis 0 when specified in a BTW as shown in Getting
Data from the Motion Controller
in this chapter. Word-Swapped 32-bit
Signed BCD numeric format is used to allow easy transfer of the value to
a PanelView for display. Word 0 specifies that this block transfer is
getting (7Dxx) an axis 0 system variable (xx06). Word 1 specifies the
variable as the registration position (0008 hex). Word 2 specifies word-
swapped 32-bit signed BCD numeric format (6xxx), three decimal digits
in the value (x3xx), and that one value is to be gotten (xx01 hex). Word 3
is the end-of-block delimiter (000D).

Data Table Report

PLC-5/30

Address

0

1

2

3

4

5

6

7

8

9

D14:0

7D06

0008

6301

000D

0000

0000

0000

0000

0000

0000

D14:10

0000

0000

0000

0000

0000

0000

0000

0000

0000

0000

D14:20

0000

0000

0000

0000

0000

0000

0000

0000

0000

0000

D14:30

0000

0000

0000

0000

0000

0000

0000

0000

0000

0000

D14:40

0000

0000

0000

0000

0000

0000

0000

0000

0000

0000

D14:50

0000

0000

0000

0000

0000

0000

0000

0000

0000

0000

D14:60

0000

0000

0000

0000

The returned value is stored in BCD data file D7 multiplied by 1,000 to
account for the three decimal digits specified in word 2. If the current
registration position of axis 0 is 436.15, 0043 is returned in word 1 and
6150 in word 0.

Data Table Report

PLC-5/30

Address

0

1

2

3

4

5

6

7

8

9

D7:0

6150

0043

000D

0000

0000

0000

0000

0000

0000

0000

D7:10

0000

0000

0000

0000

0000

0000

0000

0000

0000

0000

D7:20

0000

0000

0000

0000

0000

0000

0000

0000

0000

0000

D7:30

0000

0000

0000

0000

0000

0000

0000

0000

0000

0000

D7:40

0000

0000

0000

0000

0000

0000

0000

0000

0000

0000

D7:50

0000

0000

0000

0000

0000

0000

0000

0000

0000

0000

D7:60

0000

0000

0000

0000