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 25 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 208 to 214

Pages 208 to 214 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 208

11–8

Communicating with a PLC-5 Processor on a DeviceNet Network

4. Double-click the 1771-SDN Scanner Module to open the 1771-SDN Module and Channel Configuration dialog.

5. Set the following PLC Interface Addresses. All other default values can remain the same. BXfer 62

Input N23:0

Output N22:0

The PLC ladder logic uses these addresses in the Block Transfer Read (N23:0) and Block Transfer Write (N22:0) instructions. The SDN scanner maps data from the AdaptaScan Reader to its 62 word file. This selection maps data to the N23 file in the PLC. The BTW instruction writes data from the N22 file to the 62 word file in the SDN scanner. If you are using an AdaptaScan with v7.0 (or lower) firmware on a network with 2 or more nodes, change the Interscan Delay parameter to 20 ms. This will allow the AdaptaScan more CPU time to process bar code data instead of responding to DeviceNet polls. Note: Version 8.0 of the AdaptaScan Offline Programming Software and firmware minimizes DeviceNet polling interruption of scanning.

Publication 2755-6.8

Page 209

Communicating with a PLC-5 Processor on a DeviceNet Network

11–9

6. Click the Edit Scan List button to open the Scan List Editor.

7. Select A03 and click the Edit I/O Parameters button. 8. Edit the following parameters in the Edit Device I/O Parameters dialog: • Under I/O Type, select the Polled check box. • 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:

9. Click OK to return to the Scan List Editor dialog. Node 3 (AdaptaScan) is enabled and will be polled by the SDN scanner. The SDN scanner will expect 8 bytes of data (4 characters + 4 bytes of overhead) and will transmit 1 byte of data back to the module (BTW N22:1).

Publication 2755-6.8

Page 210

11–10

Communicating with a PLC-5 Processor on a DeviceNet Network

10. Click the Datatable Map button to open the Datatable Map dialog. The dialog shows the data table map of the N23 file. The data from the AdaptaScan Reader is mapped to the PLC (BTR N23).

• Word 0 is reserved • 4 words (8 bytes) are mapped for the incoming string from the AdaptaScan Reader. • Bit 15 is the ‘new message being sent’ bit.

11. Click the Data Entry button. 12. Change Map Data From to Poll Message. 13. Change Map Data To Block Transfer 62. 14. Change N23:0 to 1. 15. Change No. Bits to 64. 16. Click Apply Segment.

Publication 2755-6.8

Page 211

Communicating with a PLC-5 Processor on a DeviceNet Network

11–11

17. Next to Data Map, select Output to view the output file (N22). The dialog shows the data table map for the N22 file. The data map represents data sent to the AdaptaScan Reader through the SDN Scanner (BTW N22)

• Word 1 writes one byte of data to the module. • Bit 7 of word 1 is the ‘send next message’ bit.

18. Change Map Data From to Poll Message. 19. Change Map Data To Block Transfer 62. 20. Change N22:0 to 1. 21. Change No. Bits to 8. 22. Click Apply Segment button. 23. Click Close to return the Scan List Editor dialog. 24. Click the Save To File button and then the Save to SDN button to download the scan list the 1771-SDN Scanner. Important:

Before clicking the Save to SDN button , the SDN Scanner must be in Idle Mode. Set bit 0 of word 0 in the BTW N22 file to 0 (N22:0/0=0). Another way to place the SDN Scanner in Idle Mode is to put the PLC into Program Mode.

Publication 2755-6.8

Page 212

11–12

Communicating with a PLC-5 Processor on a DeviceNet Network

Configuring the Reader

This section shows how to configure the AdaptaScan Bar Code Reader using AdaptaScan Software (Catalog No. 2755-ASN). The procedures in this section show how to: • scan/decode 4 character, Interleaved 2 of 5 labels • define a DeviceNet address • configure the scanner • configure the decoder trigger • configure the format of messages and the message destination

Create a New Project Create a new project named PLC DeviceNet for one AdaptaScan Bar Code Reader (Bar Code Reader 1). 1. Choose New from the Project menu to create a new project. 2. Click the New button to add a bar code reader (Bar Code Reader 1) to the project.

3. Choose Edit from the Project menu to rename the project PLC DeviceNet.

If you need to change the baud rate, proceed to the next section. If you do not need to change the baud rate, proceed to step 4.

Publication 2755-6.8

Page 213

Communicating with a PLC-5 Processor on a DeviceNet Network

11–13

4. Click Save to save the project under the new name and then Close to return to the Project dialog.

Change the Baud Rate If you need to change the baud rate: 1. Click on the K Baud button and select the desired baud rate.

2. Click Save and Close to return to the Project dialog. 3. Click the Device button. 4. Click Apply if the desired baud rate is shown. 5. Click Save and Close to return to the Project dialog. 6. Click the Send Device button.

Publication 2755-6.8

Page 214

11–14

Communicating with a PLC-5 Processor on a DeviceNet Network

Define the Bar Code Label 1. Click the Labels button to open the Bar Code Labels dialog. 2. Click the New button to define a label.

3. Click the New button to define a symbol for the label.

4. From the Symbology list, select Interleaved 2 of 5. 5. Under Lengths, select the Length 1 check box and then type 4 in the Through box. This indicates a 4 character length for Interleaved 2 of 5 labels. 6. Click OK until you return to the Bar Code Labels dialog. 7. Click Save and then Close to return to the Project dialog.

Publication 2755-6.8