Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 3 of 6

AdaptaScan Bar Code Readers Application Guide Document Update, pages 20 to 26

Pages 20 to 26 of 48: Chapter 11 - Communicating with a PLC-5 Processor on a DeviceNet Network; Chapter 12 - Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging

The original document is the PDF (529 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Accu-Sort 2755-SN3, Accu-Sort 2755-SN5, Allen-Bradley 2755-SN5, Accu-Sort 2755-SN8 and Allen-Bradley 2755-SN8

Page 20

20

Bar Code Readers Application Guide

Chapter 11 – Communicating with a PLC-5 Processor on a DeviceNet Network

The AdaptaScan operates in either Polled or Change of State modes for version 11.x or higher. Under To Configure the 1771-SDN DeviceNet Scanner, the sequence is: 8. For the AdaptaScan to operate in Polled mode, edit the following parameters in the Edit Device I/O Parameters dialog:

• Under Polled, check the enable box. Change of State/Cyclic Enable box should not be checked. • In the Poll Rx Size box, type 8 (Bytes). • In the Poll Tx Size box, type 1 (Bytes). • From the Poll Rate list box, select Every Scan. The dialog should look like this:

For the AdaptaScan to operate in Change of State mode:

• Under Change of State/Cyclic, check the enable box. Polled Enabled should not be checked. • Select Change of State • Change the Poll Size Rx box to 8 (Bytes). • Change the Poll Size Tx box to 1 (Bytes). Continue with the remaining steps of the section to configure the 1771-SDN DeviceNet scanner.

Publication 2755-6.8.1

Page 21

Bar Code Readers Application Guide

Chapter 12 – Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging

21

Explicit messaging for AdaptaScan using firmware version 11.x has changed. The data packet from the PLC (or SLC) has an additional word which must be included.

Under Overview, the AdaptaScan bar code reader is on node 10, not node 3.

Under Define the DeviceNet Address, the address is 10, not 3.

Refer to Explicit Message Program Control Limitations to find the explanation of the Service Name, Service Code, and Example.

Under Example Data Tables, response file should be: Address

Response File (good response)

N25:0

0101

000C

900C

Also, the explicit message is written in the N20:0 integer address. Address N20:0

Data = Hex Code (matchcode download of 0300 data) 0101

0012

100A

000F

0001

0001

100B

01CE

0300

0004

3330

3030

(0300 = Byte swap only for the data 33303030.) Under Notes on using Explicit Messaging, explicit messaging must always start at word 64 if using an PLC processor (SLC on word 224).

Publication 2755-6.8.1

Page 22

22

Bar Code Readers Application Guide

The table below provides the data packets and their descriptions. Packet

Description

01

TXID. The reader uses this value to track the transaction to completion and returns the value to with the response that matches the request downloaded by the processor.

01

CMD/Status. For each download, you assign a command code to instruct the reader how to administer the request.

00

Port. The DeviceNet port where the transaction is routed.

12

Size. The size of the transaction body in bytes (0CH=12 bytes). The transaction body can be as many as 29 words (58 bytes) in length. If the size exceeds 29 words, an error code will be returned.

10

Service. For each explicit message request and response, the service attribute contains the service request and response codes that match the corresponding request for the TXID.

0A

Mac ID (node address). The DeviceNet network allows a node range of 0–63.

00

Parameter Class

0F

Parameter Class

00

Instance Number (MSB)

01

Instance Number (LSB)

00

Attribute (MSB)

01

Attribute (LSB)

10

Set Attribute Single Request (MSB)

OB

Length [The byte size count begins the Set Attributes Single request (MSB)]

10

Set Attribute Single Request (MSB)

CE (206)

Class (MSB)

03

Attribute Number – Rule (MSB)

00

Instance Number (LSB)

00

Length of String (MSB)

04

Length of String (LSB) being downloaded.

33

ASCII 33

30

ASCII 30

30

ASCII 30

30

ASCII 30

The response of the 0101 900C response code is 90 for successful and 94 for fail. A response code will not be sent out. Once the download is complete the LEDs on the AdaptaScan will turn off and on, indicating a reset was performed. After the Execute this Transaction Block CMD Status (01) is sent, use a Reset all Client/Server Transaction Command Code (03) to perform the next download transaction.

Publication 2755-6.8.1

Page 23

Bar Code Readers Application Guide

23

Under Downloading Other Host Commands, the tables are:

Read Performance Indicator Command

Read Performance Indicator Response

Packet Contents

Data Sent

Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Set Attribute Single Request

10

Set Attribute Single Response

90

Parameter Class

0F

Data (LSB)

01

Instance

01

Data (MSB)

00

Attribute

01

Length

04

Get Performance Request

4C

Class

C8

Instance Number (LSB)

01

Instance Number (MSB)

00

*3F = Address 63, modify as required

Reset Package Counter Command

Reset Package Counter Response

Packet Contents

Data Sent

Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Set Attribute Single Request

10

Set Attribute Single Response

90

Parameter Class

0F

Instance

01

Attribute

01

Length

06

Class

D2

Set Attribute Single Request

10

Instance Number (LSB)

00

Instance Number (MSB)

00

Attribute Number– Reset Counters Data

09 01

*3F = Address 63, modify as required

Publication 2755-6.8.1

Page 24

24

Bar Code Readers Application Guide

Read Match Counters Command Packet Contents

Data Sent

Read Match Counters Response Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Set Attribute Single Request

10

Set Attribute Single Response

90

Parameter Class

0F

Data (LSB)

00

Instance

01

Data

00

Attribute

01

Data

00

Data (MSB)

00

Length

05

Get Attribute Single Request

0E

Class

CE

Instance Number (LSB)

01

Instance Number (MSB)

00

Attribute Number

08

*3F = Address 63, modify as required

Read Package Counters Command

Read Package Counters Response

Packet Contents

Data Sent

Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Set Attribute Single Request

10

Set Attribute Single Response

90

Parameter Class

0F

Data (LSB)

00

Instance

01

Data

00

Attribute

01

Data

00

Length

05

Data (MSB)

00

Get Attribute Single Request

0E

Class

D2

Instance Number (LSB)

01

Instance Number (MSB)

00

Attribute Number– Match Count *3F = Address 63, modify as required

08

Reset Match Counters Command

Reset Match Counters Response

Packet Contents

Data Sent

Packet Contents

Response

Response Codes

3F*

DeviceNet Address

3F

Set Attribute Single Request

10

Set Attribute Single Response

90

Parameter Class

0F

Instance

01

Attribute

01

Length

06

Get Attribute Single Request

10

Class

CE

Instance Number (LSB)

00

Instance Number (MSB)

00

Attribute NumberReset Counters Data

0B

*3F = Address 63, modify as required

Publication 2755-6.8.1

01

Page 25

Bar Code Readers Application Guide

Read Message Command Packet Contents

Data Sent

Read Message Response Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Set Attribute Single Request

10

Set Attribute Single Response

90

Parameter Class

0F

String Length (LSB)

04

Instance

01

String Length (MSB)

00

Attribute

01

ASCII Message Data

30*

Length

05

ASCII Message Data

32

Get Attribute Single Request

0E

ASCII Message Data

30

ASCII Message Data

30

Class

CC

Instance Number (LSB)

00

Instance Number (MSB)

00

Attribute Number - Message

14

25

* Example data = 0200

*3F = Address 63, modify as required

Read LED Status Command

Read LED Status Response

Packet Contents

Data Sent

Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Set Attribute Single Request

10

Set Attribute Single Response

90

Parameter Class

0F

I/O 1

See Table Next Page

Instance

01

I/O 2

See Table Next Page

Attribute

01

Trigger / Read

See Table Next Page

Length

04

On Symbol

See Table Next Page

Read LEDS Request

43

Laser On

See Table Next Page

Class

CB

Module

See Table Next Page

Instance Number (LSB)

01

Network

See Table Next Page

Instance Number (MSB)

00

*3F = Address 63, modify as required

Set Output Timer Command Packet Contents

Data Sent

Set Output Timer Response Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Set Attribute Single Request

10

Set Attribute Response

90

Parameter Class

0F

Instance

01

Attribute

01

Length

07

Set Attribute Single Request

10

Class

D0

Instance Number (LSB)

02

Instance Number (MSB)

00

Attribute Number - Max Time

09

Data (LSB)

FA

Data (MSB)

00

*3F = Address 63, modify as required ** Time in milliseconds

Publication 2755-6.8.1

Page 26

26

Bar Code Readers Application Guide

Set Match Code Command Packet Contents

Data Sent

Set Match Code Response Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Set Attribute Single Request

10

Set Attribute Response

90

Parameter Class

0F

Instance

01

Attribute

01

Length

0B

Set Attribute Single Request

10

Class

CE

Instance Number (LSB)

01

Instance Number (MSB)

00

Attribute Number

03

String Length (LSB)

04

String Length (MSB)

00

ASCII Character 0

30**

ASCII Character 3

33

ASCII Character 0

30

ASCII Character 0

30

*3F = Address 63, modify as required ** Example data = 0300

LED Status Response Data at Indicated Bit Address = LED State Byte 0

0 = Off

1 = Yellow

I/O 1

OFF

ON

3-5

I/O 2

OFF

ON

0-2

TRIGGER / READ

No Trigger

Triggered

3-5

ON SYMBOL

Not Reading

Reading

0-2

LASER ON

OFF

ON

3-5

MODULE

No Power

0-2

NETWORK

Bits

LED Indicator

0-2

1

2

3

3-5

Publication 2755-6.8.1

6 = Flash Green

7 = Flash Red

Hardware Fault

Power Up

Minor Fault

DeviceNet DeviceNet OK Fault

Established

No Response

2 = Green

3 = Red

4 = Not Used

5 = Flash Yellow

Valid Read Read <100%

Device OK