The text of a manual · part 2 of 6
AdaptaScan Bar Code Readers Application Guide Document Update, pages 13 to 19
Pages 13 to 19 of 48: Chapter 9 - Communicating with an SLC 5/03 Proceessor on a DeviceNet Network; Chapter 10 - Communicating with an SLC 5/03 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 13
Bar Code Readers Application Guide
Chapter 9 – Communicating with an SLC Processor on a Network
13
The AdaptaScan operates in either polled mode or change of state modes for version 11.x and higher. Under To Configure the 1747-SDN DeviceNet Scanner, the sequence is: 6. Click the Edit I/O Parameters button.
For the AdaptaScan to operate in Polled mode:
• Under Polled, check the enable box. Change of State/Cyclic Enable box should not be checked.
• Change the Poll Size Rx box to 8 (Bytes). • Change the Poll Size Tx box to 1 (Bytes). • In the Poll Rate List box, select Every Scan. 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). 7. Click the OK button to return to the Scan List Editor button. Continue with the remaining steps of the section to configure the 1747-SDN DeviceNet scanner.
Publication 2755-6.8.1
Page 14
14
Bar Code Readers Application Guide
Chapter 10 – Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging
Explicit messaging for AdaptaScan using firmware version 11.x has changed. The data packet from the SLC (or PLC) 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
(0300 = Byte swap only for the data 33303030.)
Publication 2755-6.8.1
3330
3030
Page 15
Bar Code Readers Application Guide
15
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. Under Notes on using Explicit Messaging, explicit messaging must always start at word 224 (i.e., M0:1.224) if using an SLC processor (PLC on word 64).
Publication 2755-6.8.1
Page 16
16
Bar Code Readers Application Guide
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
*3F = Address 63, modify as required
Publication 2755-6.8.1
01
Page 17
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
17
*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 01
*3F = Address 63, modify as required
Publication 2755-6.8.1
Page 18
18
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
*3F = Address 63, modify as required
Instance Number (MSB)
00
** Example data = 0200
Attribute Number - Message
14
*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 19
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
19
*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
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
3-5
Publication 2755-6.8.1