beautypg.com

Rockwell Automation GMLC Reference Manual User Manual

Page 767

background image

Publication GMLC-5.2 - November 1999

730

Using the RIO Adapter Option

If the PLC is sending data to the motion controller, the remainder of the
BTW data file (words 3 through 2nn+2, where nn is the number of items
to be sent) contains the values of the specified items, and the last word
(word 2nn+3) is the end-of-block delimiter, as shown in the following
table.

Use a File Copy instruction in the PLC program to transfer the values that
you want from a floating bit file to the BTW data file. For example, the
following unconditional rung copies word 0 (32 bits) of floating bit file
F16 in the PLC to words 0 and 1 (16 bits each) of the integer file N7.

|

|

|

+-COP-------------------+

|

+---------------------------------------+ COPY FILE

+------+

|

| Source

#F16:0 |

|

|

| Destination

#N7:0 |

|

|

| Length

2 |

|

|

+-----------------------+

|

|

|

Specifying N7 as the data file for the BTW as shown in Sending Data to
the Motion Controller
in this chapter transfers the 32-bit floating-point
value to the motion controller.

RIO Adapter Block Transfer Write
32-bit Floating -Point Data File Format

Word

Description

0
1
2

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

nn

3
4

First Data Item Value Most Significant Word
First Data Item Value Least Significant Word

5
6

Second Data Item Value Most Significant Word
Second Data Item Value Least Significant Word

2

nn+1

2

nn+2

Last Data Item Value Most Significant Word
Last Data Item Value Least Significant Word

2

nn+3

End-of-Block Delimiter (000D hex)