Selecting cos, cyclic or polled i/o, Using cos (change of state) data exchange, Selecting cos, cyclic or polled i/o -10 – Rockwell Automation 20-COMM-D DeviceNet Adapter Series B FRN 2.xxx User Manual

Page 38

Advertising
background image

3-10

Configuring the Adapter

20-COMM-D DeviceNet Adapter User Manual

Publication 20COMM-UM002G-EN-P

Selecting COS, Cyclic or
Polled I/O

The data exchange (sometimes called allocation) is the method that the
adapter uses to exchange data on the DeviceNet network. Polled is the
default and is recommended—unless one of the other following data
exchanges, also supported by the adapter, is more appropriate for your
application:

If ‘Polled and COS’ or ‘Polled and Cyclic’ is used, the adapter receives the
I/O from the polled messages. It transmits its Logic Status and Feedback in
COS or Cyclic messages. Other data is transmitted in Polled messages.

Cyclic and Polled data exchanges are configured in the scanner, so you only
need to set the I/O configuration in the adapter. COS data exchange must be
configured in both the adapter and the scanner. You need to set the I/O
configuration and COS parameters in the adapter.

Using COS (Change of State) Data Exchange

1. Set Bit 0 (the Logic Command/Reference bit) in Parameter 13 - [DPI

I/O Config] to ‘1’ (Enabled) and Bit 0 (the Logic Status/Feedback bit)
in Parameter 26 - [M-S Output] to ‘1’ (Enabled).

Changes to bits in the Logic Status/Feedback trigger messages in COS
data exchange.

2. Set Parameter 27 - [COS Status Mask] for the bits in the Logic Status

word that should be checked for changes.

The bit definitions for the Status Mask will depend on the drive to
which the adapter is connected. See

Appendix D

or the drive

documentation.

• COS (Change of State)

• Polled and COS

• Cyclic

• Polled and Cyclic

• Polled

Port 5 Device
20-COMM-D
Parameter #: 26

M-S Output

x x x x x x x x x x x 0 0 0 0

1

Status/Fdbk

b00

Port 5 Device
20-COMM-D
Parameter #: 13

DPI I/O Cfg

x x x x x x x x x x x 0 0 0 0

1

Cmd/Ref

b00

Value

Description

0

Ignore this logic bit. (Default)

1

Use this logic bit.

Port 5 Device
20-COMM-D
Parameter #: 27

COS Status Mask

x x x x x x x x x x x 0 0 0 0

1

Bit 0

b00

Advertising