The text of a manual · part 26 of 41
AdaptaScan Bar Code Readers (Cat. Nos. 2755-SN3, -SN5, and -SN8) Application Guide: 11 - Communicating with a PLC-5 Processor on a DeviceNet Network, pages 215 to 221
Pages 215 to 221 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 215
Communicating with a PLC-5 Processor on a DeviceNet Network
11–15
Define the DeviceNet Address 1. Click the Device button on the Project dialog.
2. Set the DeviceNet address to 3. 3. Connect the 2755-NC43 or -NC48 Configuration Cable to the reader. 4. Click the Apply button. 5. Click Save and Close to return to the Project dialog.
Configure the Scanner 1. Click the Scanner button on the Project dialog to open the Scanner dialog.
2. Configure the scan pattern and use the Focus procedure for optimum scanner focus. 3. Click the Close button and return to the Project dialog.
Publication 2755-6.8
Page 216
11–16
Communicating with a PLC-5 Processor on a DeviceNet Network
Configure the Decoder Trigger To test the application, use the Timer to trigger the reader’s decoder. 1. Click the Decoder button from the main Project dialog. 2. Under Triggered By, select Timer from the Input list.
3. Click the Save button. 4. Click the Close button and return to the main Project dialog.
Create a Message This section defines the content of messages sent to the 1771-SDN Scanner. 1. Click the Message button from the main Project dialog. 2. Under Triggered By, check the Enable check box.
3. Under Device, select Bar Code Reader 1. 4. Under Input, select [Decoder].
Publication 2755-6.8
Page 217
Communicating with a PLC-5 Processor on a DeviceNet Network
11–17
5. Click the New button to create a message field.
6. Under Symbol Source, select Bar Code Reader 1. 7. Under Bar Code Label & Symbols, select Symbol 1. 8. Check (enable) the Match Exactly check box. 9. Click the Edit button to open the Message Field Edit dialog.
10. Under Replacement Strings, type nr in the Fail: field. Bar code data is sent to the 1771-SDN Scanner on a valid read; the Fail string send the characters nr when a no read occurs. 11. Under Data Format, type 4 in the Length box. Important:
The Length must match the number of characters in the bar code symbol. This application uses 4 character, Interleaved 2 of 5 symbols.
12. Click OK to return to the Message Field dialog. 13. Click OK to return to the Message dialog.
Publication 2755-6.8
Page 218
11–18
Communicating with a PLC-5 Processor on a DeviceNet Network
Define the Message Format The section defines the format and destination of the messages sent from the reader. 1. Click the Format button from the Message dialog.
2. Under Message Destination, select DeviceNet. 3. Accept the defaults for all other parameters. 4. Click OK to return to the Message dialog. 5. Click Save and then Close to return to the main Project dialog.
Sending the Configuration to the Reader
From the main Project dialog, click the Send Device button to download the configuration to the bar code reader. Use the Monitor dialog to verify the decoding of bar code labels.
Running the Application
If the: • AdaptaScan Reader is configured correctly • 1771-SDN Scanner is configured correctly • ladder program is entered as shown in this application you will see bar code data or ‘nr’ in the PLC BTR (N23) file. Remember that all data is byte swapped.
Publication 2755-6.8
Page 219
Communicating with a PLC-5 Processor on a DeviceNet Network
Troubleshooting Your Module
The bicolor (green/red) module status indicator displays device status. The LED indicates whether the device has power and is functioning properly. If the Module LED is Off
Module Status Indicator 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.
Solid red the module has an unrecoverable fault.
Check configuration setup and verify dip switch settings. Replace the module.
Solid green
None Configure the module.
Channels 1 and 2 each have a bicolor (green/red) network status indicator. The following table provides troubleshooting information about the Channel 1 and 2 communication links.
Channel 1 Network Status Indicator
Top part of module
11–19 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.
The network has faulted.
Publication 2755-6.8
Page 220
11–20
Communicating with a PLC-5 Processor on a DeviceNet Network
Top part of module
Your 1771-SDN Scanner Module has a node address/status indicator that uses numeric displays to indicate diagnostic information about your module. The display flashes at approximately 1 second intervals, depending on network traffic. 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
Reconfigure the scan list table and remove any illegal data. Inspect the field devices and verify connections.
74 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). data overrun on port detected.
75 no network traffic has been detected.
76 no direct network traffic for module detected.
77
79 data size expected 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.
80 module is in IDLE mode.
None. The module hears other network communication. Reconfigure your module for the correct transmit and receive data sizes 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. Place PLC-5 in Run mode.
81 module is in FAULT mode.
Check ladder program for cause of fault bits.
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).
84 module is initializing the DeviceNet channel.
85 data size returned is bigger than 255 bytes (node number alternately flashes). device is producing idle state data while the scanner is in Run Mode. this is not an error. At power-up and reset, the module displays all 14 segments of the node address and status display LEDs.
Channel 1
72 Node Address / Status Indicator
73
78
86 88
Table continued on the next page.
Publication 2755-6.8
Take this action
Enter a matching scan list device ID. Modify your configuration and check for invalid data. Check network communication traffic. Verify connections.
Check accuracy of scan list table entry. Check slave device configuration. Slave device may be in another master’s scan list. Reboot slave device. None. This code clears itself once module attempts to initialize all slave devices on the channel. Configure device for smaller data size. Check device configuration/slave node status. None.
Page 221
Communicating with a PLC-5 Processor on a DeviceNet Network
Numeric Code
Indicates
11–21
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.
Check ladder program for cause of fault bits.
98
Unrecoverable firmware failure.
Service or replace your module.
99
Unrecoverable hardware failure.
Service or replace your module.
Publication 2755-6.8