Sending or getting user variable values – Rockwell Automation GMLC Reference Manual User Manual
Page 775

Publication GMLC-5.2 - November 1999
738
Using the RIO Adapter Option
The returned values are stored in word pairs 0, 1 through 2nn – 2, 2nn – 1
(where nn is the number of items read) as 16-bit integers. The least
significant word of the returned value is stored in the lower numbered
word of the data file and the most significant word of the returned value in
the higher numbered word. Because each 32-bit value is stored as two 16-
bit words, 2nn + 1 words in the file are used.
Sending or Getting User Variable Values
One or more sequentially numbered user variable values can be sent to or
gotten from the motion controller using a block transfer. The variable
number (or address) of the variable to be transferred (or of the first
variable, if sequential values are to be transferred) must be put in word 1
of the BTW data file for the transfer.
To view the appropriate variable address,
1. Open the GML Commander diagram.
2. Select User Variables in the Tag Explorer (located in the lower left
corner of the GML Commander screen), and the available user vari-
ables and their addresses appear in the adjoining Tag Window, as in
the following example.
RIO Adapter Block Transfer Read Word-Swapped 32-bit Floating-Point Returned Values
Data File Format
Word
Description
0
1
First Data Item Value Least Significant Word
First Data Item Value Most Significant Word
2
3
Second Data Item Value Least Significant Word
Second Data Item Value Most Significant Word
…
…+1
Next Data Item Value Least Significant Word
Next Data Item Value Most Significant Word
2
nn-2
2
nn-1
Last Data Item Value Least Significant Word
Last Data Item Value Most Significant Word
2
nn
End-of-Block Delimiter (000D Hex)