The text of a manual · part 23 of 41
AdaptaScan Bar Code Readers (Cat. Nos. 2755-SN3, -SN5, and -SN8) Application Guide: 10 - Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging, pages 193 to 200
Pages 193 to 200 of 354, from AdaptaScan Bar Code Readers (Cat. Nos. 2755-SN3, -SN5, and -SN8) Application Guide
The original document is the PDF (3.2 MB). 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 193
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging
10–31
Explicit Messaging Ladder Logic Program Note: The following ladder logic program is for reference only. Application specific interlocks may be necessary. Enable Rung B3 to initiate the writing of an APM command to the AdaptaScan. The APM command that resides in N20:0. The DeviceNet address being written to, in this example is, 10 or 0AH.
]
B3
COP
[
0
Copy File Source
#N20:0
Destination
#M0:1.224
Length
32
If bit 15 is enabled, read the response data from the above command into file N25:0.
]
COP
I:1
[ 15
Source
#M1:1.224
Destination Length
#N25:0 32
Example Data Tables Refer to p. 10–27 for information regarding each byte. Address
Data = Hex Code (matchcode download of 0300 data)
N20:0
0101
000C
100A
00CE
0001
0003
Address
Response File (good response)
N25:0
0101
Address
Data = Hex Code (turn on LED1)
N20:0
0101
0008
100A
0004
3330
3030
0002
0003
0001
900C
00C9
Note: You need to send a reset command for every explicit command that is executed in order to receive a good response.
Publication 2755-6.8
Page 194
10–32
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging
Notes on using Explicit Messaging • You can send messages sequentially from the SLC 5/03 to different bar code readers, but the response will not update properly (when the response is read in N25:0). • The TXID byte does not need to be incremented, although you may not know where the response came from. • To receive the correct response from the command sent from the SLC 5/03 you must: 1. Send command down, matchcode download (TXID=11). 2. Send a 03 in the status command. Refer to page 10–26 for more information. 3. Increment TXID to 12. 4. Send command down, turn on LED 1 (TXID=12). 5. View N25:0 for response to step 4. 6. Confirm that TXID=12. If your response is 90, the command was sent correctly. If you receive a 94, the was not sent correctly. • If an incorrectly formatted command is sent from the SLC 5/03, you must send a 03 in the status command byte in order for the system to operate properly. • When sending a 03 in the status command byte, the SDN card will produce an error until the next command is sent.
Publication 2755-6.8
Page 195
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging
Troubleshooting the Module and Network
10–33
The bicolor (green/red) module status indicator (MODULE) displays module status. It indicates whether the module has power and is functioning properly. If the Module LED is Off this indicates
Take this action Apply power.
Flashing green there is no power applied to the module. the module is operating in normal condition. the module is not configured.
Flashing red there is invalid configuration.
Check configuration setup.
Solid red the module has an unrecoverable fault.
Replace the module.
Solid green
None Configure the module.
The DeviceNet channel has a bicolor (green/red) network status indicator (NET). The next table provides troubleshooting information about the DeviceNet channel communication link. this indicates
Take this action
Off
If the NET indicator is the channel is disabled for DeviceNet communication.
Power-up the module, provide network power to channel, and be sure channel is enabled in both the module configuration table and module command word.
Flashing green Solid green the channel is enabled but no communication is occurring. all slave devices in the scan list table are communicating normally with the module.
Configure scan list table for channel to add devices. None.
Solid red the module may be defective.
Flashing red at least one of the slave devices in the module’s scan list table has failed to communicate with the module.
Reset module. If failures continue, replace module. Examine the failed device and the scan list table for accuracy.
Publication 2755-6.8
Page 196
10–34
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging
Your module uses numeric displays to indicate diagnostic information about the status of your module. The display flashes at 1 second intervals. The following table summarizes the meanings of the numeric codes. Numeric Code
Indicates
Network Address Displays 0 - 63 normal operation. The numeric display matches the scanner’s node address on the DeviceNet network.
None.
70 module failed Duplicate Node Address check.
Change the module channel address to another available one. The node address you selected is already in use on that channel.
71 illegal data in scan list table (node number alternately flashes). slave device stopped communicating (node number alternately flashes). device key parameters do not match scan list table entry (node number alternately flashes).
Reconfigure the scan list table and remove any illegal data. Inspect the field devices and verify connections.
72 73
Enter a matching scan list device ID. Make sure that the device at the flashing node address matches the desired key parameters (vendor, product code, product type). Modify your configuration and check for invalid data. Verify connections.
74 data overrun on port detected.
75 no network traffic has been detected.
76 no direct network traffic for module detected.
77
79 data size returned does not match scan lists entry (node number alternately flashes). slave device in scan list table does not exist (node number alternately flashes). module has failed to transmit a message.
None. The module hears other network communication. Reconfigure your module and change the addressing. Add the device to the network, or delete the scan list entry for that device. Make sure that your module is connected to a valid network. Check for disconnected cables. Verify baud rate.
80 module is in IDLE mode.
None.
81 module is in FAULT mode.
None.
82 error detected in sequence of fragmented I/O Check scan list table entry for slave device to messages from device (node number alternately make sure that input and output data lengths flashes). are correct. Check slave device configuration.
83 slave device is returning error responses when module attempts to communicate with it (node number alternately flashes).
Check accuracy of scan list table entry. Check slave device configuration.
84 module is initializing the DeviceNet channel.
None. This code clears itself once module attempts to initialize all slave devices on the channel.
85 data size returned is bigger than expected.
86 device is producing idle state data while the scanner is in Run Mode. available for allocation. Scanner has not yet been detected by allocated master, or slave mode is enabled but scanner is not allocated to a master. this is not an error. At power-up and reset, the module displays all 14 segments of the node address and status display LEDs.
Check accuracy of scan list table entry. Check slave device configuration. Check device configuration/slave node status.
78
87
88
Table continued on the next page.
Publication 2755-6.8
Take this action
Monitor scanner to determine if error code clears when master detects scanner. If error remains, check scanner slave mode configuration. None.
Page 197
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging
Numeric Code
Indicates
10–35
Take this action
90 user has disabled communication port reconfigure your module. Check the disable bit in the Module Command Register. Check DeviceNet connections and physical media integrity. Check system for failed slave devices or other possible sources of network interference. Provide network power. Make sure that module drop cable is providing network power to module comm port.
91 bus-off condition detected on comm port. module is detecting communication errors.
92 no network power detected on comm port.
95 application FLASH update in progress.
None. Do not disconnect the module while application FLASH is in progress. You will lose any existing data in the module’s memory.
97 module halted by user command.
None.
98
Unrecoverable firmware failure.
Service or replace your module.
99
Unrecoverable hardware failure.
Service or replace your module.
Publication 2755-6.8
Page 198
10–36
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging
Downloading Other Host Commands
You can download other host commands using the same procedures described in the match code example. The following tables provide the commands and responses for the other host commands (all values are hexadecimal).
Read Performance Indicator Command
Read Performance Indicator Response
Packet Contents
Data Sent
Packet Contents
DeviceNet Address
3F*
DeviceNet Address
Response 3F
Get Performance Request
4C
Get Performance Response
CC
Class
C8
Data (LSB)
01
Instance Number (LSB)
01
Data (MSB)
00
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 Request
10
Set Attribute Response
90
Class
D2
Instance Number (LSB)
00
Instance Number (MSB)
00
Attribute Number– Reset Counters Data
09 01
*3F = Address 63, modify as required
Read Match Counters Command
Read Match Counters Response
Packet Contents
Data Sent
Packet Contents
Response
DeviceNet Address
3F*
DeviceNet Address
3F
Get Attribute Request
0E
Get Attribute Response
8E
Class
CE
Data
6C, 08, 00, 00
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
Get Attribute Request
0E
Get Attribute Response
8E
Data
6C, 08, 00, 00
Class
D2
Instance Number (LSB)
01
Instance Number (MSB)
00
Attribute Number– Match Count *3F = Address 63, modify as required
Publication 2755-6.8
08
Page 199
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging
Reset Match Counters Command Packet Contents
Data Sent
Reset Match Counters Response Packet Contents
Response
Response Codes
3F*
DeviceNet Address
3F
Set Attribute Request
10
Set Attribute Response
90
Class
CE
Instance Number (LSB)
00
Instance Number (MSB)
00
Attribute NumberReset Counters Data
0B
10–37
01
*3F = Address 63, modify as required
Read Message Command Packet Contents
Data Sent
Read Message Response Packet Contents
Response
DeviceNet Address
3F*
DeviceNet Address
3F
Get Attribute Request
0E
Get Attribute Response
8E
Class
CC
Data (LSB)
04
Instance Number (LSB)
00
Data (MSB)
00
Instance Number (MSB)
00
ASCII Message Data
30*
Attribute Number - Message
14
ASCII Message Data
32
ASCII Message Data
30
ASCII Message Data
30
*3F = Address 63, modify as required
* Example data = 0200
Read LED Status Command
Read LED Status Response
Packet Contents
Data Sent
Packet Contents
DeviceNet Address
3F*
3F
Response 3F
Read LEDS Request
43
Read LEDS Response
C3
Class
CB
I/O 1
See Table Next Page
Instance Number (LSB)
01
I/O 2
See Table Next Page
Instance Number (MSB)
00
Trigger / Read
See Table Next Page
On Symbol
See Table Next Page
Laser On
See Table Next Page
Module
See Table Next Page
Network
See Table Next Page
*3F = Address 63, modify as required
Publication 2755-6.8
Page 200
10–38
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging
Set Output Timer Command Packet Contents
Data Sent
Set Output Timer Response Packet Contents
Response
DeviceNet Address
3F*
DeviceNet Address
3F
Set Attribute Request
10
Set Attribute Response
90
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
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
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