Set 1769 i/o module configuration – Rockwell Automation 1769-ADN Compact I/O 1769-ADN DeviceNet Adapter User Manual

Page 181

Advertising
background image

Publication 1769-UM001B-EN-P - October 2002

Explicit Messaging Application Examples B-23

Set 1769 I/O Module Configuration

The length of this command is determined by the size of the
configuration file for the 1769 I/O module we will configure. In this
case, from the previous section, we read the configuration size for the
1769-OF2 as 8 words, the length of this command is 14 words. Refer
to the Ladder Logic Example Program on page B-30 to learn how to
copy this command to the M0 file of the 1747-SDN as well as how to
copy the reply from the scanner’s M1 file.

The scanner sets an input image bit (I:s/15, where s is the slot number
of the 1747-SDN) to indicate to the user program that a reply is ready.
Following each command reply, the user program must move a
command value (using a MOV instruction) of 4 hexadecimal to the
appropriate M0 file word to clear the previous reply from its buffer,
making it ready for the next command.

The following illustrates the Set 1769 Module Configuration command
for a 1769-OF2 module and the command reply:

Command (Hexadecimal)

Description (High Byte/Low Byte)

0101

TXID

1

/Command

2

0016

Port #

3

/Byte Count

4

1013

Service

5

/Mac ID

6

030C

Class

7

00xx

Instance

8

001A

Attribute

9

8304

First word of the 1769-OF2 configuration file

10

8304

Second word of the 1769-OF2 configuration file

10

1862

Third word of the 1769-OF2 configuration file

10

1862

Fourth word of the 1769-OF2 configuration file

10

1862

Fifth word of the 1769-OF2 configuration file

10

1862

Sixth word of the 1769-OF2 configuration file

10

0000

Seventh word of the 1769-OF2 configuration file

10

0000

Eighth word of the 1769-OF2 configuration file

10

Successful Reply (Hexadecimal)

Description (High Byte/Low Byte)

0101

TXID

1

/Command

2

0000

Port #

3

/Byte Count

4

9013

Service

5

/Mac ID

6

Continued on next page.

Advertising