Rockwell Automation 1769-ADN Compact I/O 1769-ADN DeviceNet Adapter User Manual

Page 133

Advertising
background image

Publication 1769-UM001B-EN-P - October 2002

Application Examples 6-21

To split the Low and High words of each DINT for better viewing,
especially analog data, create an integer tag with a length twice that of
the number of DINTs needed to include your input data. Use a COP
Instruction to copy the DINT input data to this new integer tag.

In this example, the 13 input DINTS are copied to 26 16-bit integer
words. An example of the COP Instruction (with an integer tag name
of Input_Buffer) is shown below. The length for a COP Instruction is
determined by the destination address. Therefore, the length for this
example is 26 integer words.

This COP Instruction example also accomplishes the same purpose for
the output data. The integer tag name is Output_Buffer and the length
for this example is 5 DINTS, where the High word of DINT 1:O.Data.4
is not used.

Output Image

1:O.Data.0L

Slot 2 Output Card, Output Data (1769-OW8)

1:O.Data.0H

Slot 4 Output Card, Output Data (1769-OW8)

1:O.Data.1L

Slot 5 Combo Card, Output Data (1769-IQ6XOW4)

1:O.Data.1H

Slot 6 Combo Card, Output Data (1769-IQ6XOW4)

1:O.Data.2L

Slot 8 Output Card, Output Data (1769-OV16)

1:O.Data.2H

Slot 10 Analog Output Card, Output Data 0 (1769-OF2)

1:O.Data.3L

Slot 10 Analog Output Card, Output Data 1 (1769-OF2)

1:O.Data.3H

Slot 12 Output Card, Output Data (1769-OB16)

1:O.Data.4L

Slot 14 Output Card, Output Data (1769-OV16)

Advertising