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 36 of 41

AdaptaScan Bar Code Readers (Cat. Nos. 2755-SN3, -SN5, and -SN8) Application Guide: 16 - Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol, pages 304 to 313

Pages 304 to 313 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 304

-

Communicating with AdaptaScan Bar Code Readers via DeviceNet PeerĆto-Peer Protocol Overview

This application describes how to connect and configure AdaptaScan Bar Code Readers to communicate with each other over a DeviceNet network via peer-to-peer protocol. The DeviceNet network has three nodes, each made up of an AdaptaScan Bar Code Reader. Each reader: • is configured the same, • sends a different symbol to a designated serial port on any one of the readers, • is triggered by its own package detect unit, and • is powered by its own power supply.

Hardware Requirements

The hardware items required for this application are: • 2755-SN3, -SN5 or -SN8 AdaptaScan Bar Code Reader • 2755-NB40 or -NB41 Wiring Base • 2755-PW46 or -PW47 Power Supply (if not power by DeviceNet) • 2755-NC43 or -NC48 Configuration Cable • DeviceNet trunk cable • Computer running Windows 3.1 (or later) or Windows 95 • 9-to-25 Pin Adapter (for Computer with 25-pin COM port)

Software Requirement

The 2755-ASN AdaptaScan Offline Programming Software (v8.0 or later) is the only software requirement for this application.

Related Publications

Related publications include: Publication

Description

2755-837

AdaptaScan Bar Code Readers User Manual

2755-838

AdaptaScan Software User Manual

Publication 2755-6.8

Page 305

16–2

Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol

Connecting to the DeviceNet Network

The following illustration shows the nodes of the DeviceNet peer-to-peer network. Peer-to-Peer communications allows a single reader to gather data from the other readers over a DeviceNet network. The reader then transfers the data to the computer over an RS-232 link.

Computer Reader

Reader

Reader

RS-232

DeviceNet

Connecting a Power Supply to a Reader

In the illustration the next page, each reader is powered by a separate Catalog No. 2755-PW46 or -PW47 power supply. The Catalog No. 2755-PW46 is shown. Do not connect power supplies in parallel. Use a shielded cable (Belden 9316 recommended) when making power connections. Note: You must ground V- to Earth Ground at a single point on the power supply link, preferably as near the power supply as possible. Ensure that the V+ lines are not connected together and that the V– lines are connected together as shown on top of next page.

Publication 2755-6.8

Page 306

Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol

Reader 1

Reader 2

16–3

Reader 3

Other DeviceNet Devices Ground V- at One Place

V-

24V+

VGround Screw on Wiring Base

24V+

VGround Screw on Wiring Base

24V+ Ground Screw on Wiring Base

Ground Screw on Wiring Base

See DeviceNet Cable System Planning and Installation Manual (Publication No. DN-6.7.1) for recommendations and accessories.

Multiple Reader Connections using Other Power Supply Below all readers are powered by another power supply. Use a linear unregulated power supply. The supply must provide 14 watts of power to each reader. Use a shielded cable (Belden 9316 recommended) when making power connections. Note: You must ground V- to Earth Ground at a single point on the power supply link, preferably as near the power supply as possible. V+ User Specified Unregulated Ground Linear Power Screw Supply

Other DeviceNet Devices

VGround V- at One Place

Reader 1

Reader 2

Reader 3

See DeviceNet Cable System Planning and Installation Manual (Publication No. DN-6.7.1) for recommendations and cable accessories.

Publication 2755-6.8

Page 307

16–4

Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol

Configuring Bar Code Reader 1

This section shows how to configure one the AdaptaScan Bar Code Readers using the AdaptaScan Software (Catalog No. 2755-ASN). The procedures in this section show how to: • define the DeviceNet node address of the AdaptaScan Reader • configure a bar code label and symbol • configure the scanner • configure the decoder trigger • configure the serial port • configure the format of messages and the message destination The steps may vary for some procedures because of the different requirements of applications. For example, the bar code labels may vary from one application to the next.

Create a New Project This section adds three bar code readers to a new project and then renames the project DeviceNet Peer-to-Peer. 1. Choose New from the Project menu to create a new project. 2. Click the New button three times to add three bar code readers (Bar Code Reader 1, Bar Code Reader 2, Bar Code Reader 3) to the project.

Publication 2755-6.8

Page 308

Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol

16–5

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

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

Define the DeviceNet Address 1. Select Bar Code Reader 1 from the Project dialog. 2. Click the Device button on the Project dialog.

3. Set the DeviceNet address to 1. 4. Connect the 2755-NC43 or -NC48 Configuration Cable to Reader 1. 5. Click the Apply button. 6. Click Save and Close to return to the Project dialog.

Publication 2755-6.8

Page 309

16–6

Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol

Define the Bar Code Label This section defines the bar code label used by the application. Each reader will scan/decode a different symbol. The 3 symbols are UPC-A, Interleaved 2 of 5, and Code 39. 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 Symbol 1.

4. From the Symbology list box, select UPC-A. To edit parameters of the selected symbology, click the Symbologies button. 5. Click OK to return to the Bar Code Label dialog. 6. Click the Labels button to open the Bar Code Labels dialog. 7. Click the New button to define label 2. 8. Click the New button to define Symbol 1. 9. From the Symbology list box, select Interleaved 2 of 5. To edit parameters of the selected symbology, click the Symbologies button.

Publication 2755-6.8

Page 310

Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol

16–7

10. Click OK to return to the Bar Code Label dialog. 11. Click the Labels button to open the Bar Code Labels dialog. 12. Click the New button to define label 3. 13. Click the New button to define Symbol 1. 14. From the Symbology list box, select Code 39. To edit parameters of the selected symbology, click the Symbologies button.

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 311

16–8

Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol

Configure the Decoder Trigger Bar Code Reader 1 is triggered by its own package detect device. Refer to Publication No. 2755-837 for other input sources that trigger the decoder. 1. Click the Decoder button from the main Project dialog.

2. Under Triggered By, select Package Detect from the Input list. 3. Click the Save button. 4. Click the Close button and return to the main Project dialog.

Configure the Serial Port Configure the parameters of the serial port to match the host device. 1. Click the Serial Port button from the main Project dialog.

2. Verify that the serial port settings match the host device. 3. Click Save and then the Close button to return to the Project dialog.

Publication 2755-6.8

Page 312

Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol

16–9

Create a Message This section defines the content of messages sent by Bar Code Reader 1 to the host device over an RS-232 link. 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]. 5. Click the New button to open the Message Field. This dialog defines the source and type of message.

6. Under Symbol Source, select Bar Code Reader 1. 7. Under Bar Code Label & Symbols, select Symbol 1. Bar Code Reader 1 only reads UPC-A labels (per the Label 1 definition).

Publication 2755-6.8

Page 313

16–10

Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol

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 no read in the Fail: box. Bar code data is sent to the host on a valid read. The Fail string sends “no read” to the host when a no read occurs on Bar Code Reader 1. 11. Click OK to return to the Message Field dialog. 12. Click OK again to return to the Message dialog.

Define the Message Format 1. Click the Format button from the Message dialog.

2. In the Trailer text box, type \r\n (for CR, LF). 3. Verify that the Field Data check box (under Include) is checked. 4. Under Message Destination, select Serial Port. Data is sent from the serial port of Bar Code Reader 1 to the host device over an RS-232 link. 5. Click OK to return to the Message dialog. 6. Click Save and then Close to return to the Project dialog.

Publication 2755-6.8