Page 1
Allen-Bradley Application AdaptaScan Bar Code Guide Readers (Cat. Nos. 2755-SN3, -SN5, and -SN8)
Page 2
Identifies information that is critical for successful application and understanding of the product. PLC, PLC-5, and PHOTOSWITCH are registered trademarks of Allen-Bradley, Inc. PanelView, PanelView 900, PanelBuilder, AdaptaScan, Data Highway Plus, SLC, SLC 500, SLC 5/03, and SLC 5/04 are trademarks of Allen-Bradley Company, Inc.
Table of Contents Preface Contents of this Guide ....... . . P–2 Intended Audience .
Page 4
toc–ii Table of Contents Create a Message ........2–10 Define the Message Format .
Page 5
Table of Contents toc–iii Configure the Decoder Trigger ......4–9 Configure the Serial Port ......4–10 Configure for Match Codes .
Page 6
toc–iv Table of Contents Connecting an SLC Controller to the Reader ....6–2 Configuring the SLC Controller ......6–2 SLC Ladder Logic Program .
Page 7
Table of Contents toc–v Define the Message Format ......7–21 Sending the Configuration to Reader 2 .
Page 8
toc–vi Table of Contents Configure the Scanner ....... 9–16 Configure the Decoder Trigger .
Page 9
Table of Contents toc–vii Troubleshooting the Module and Network ....10–33 Downloading Other Host Commands ..... . . 10–36 Communicating with a PLC-5 Chapter 11...
Page 10
toc–viii Table of Contents Define the Bar Code Label ......12–14 Define the DeviceNet Address .
Page 11
Table of Contents toc–ix Communicating with a Chapter 14 2760-RB Module on a DH-485 Overview ......... . 14–1 Network Hardware Requirements...
Page 12
toc–x Table of Contents Define the Bar Code Label ......15–9 Define the DeviceNet Address .
Page 13
Table of Contents toc–xi Create a Message ........16–17 Define the Message Format .
Page 14
In no event will Allen-Bradley Company be responsible or liable for indirect or consequential damages resulting from the use of application of this information.
P–2 Preface Contents of this Guide The following table describes the contents of this manual. Chapter Title Contents Describes the purpose, background, and scope of Preface this guide. Also specifies the audience for whom this guide is intended. Using the Auto-Load Describes how to configure the reader to autoload Function data into the match code table.
Page 16
Preface P–3 Chapter Title Contents Communicating with a Shows how to configure a reader to communicate PLC-5 Processor on a with a PLC-5 controller over a DeviceNet network in DeviceNet Network using master/slave mode using explicit messaging. Explicit Messaging Communicating with a Describes how to configure the reader to 2760-RB Module over an communicate with a 2760-RB module using...
If you can’t find the answer, contact Rockwell Automation International Support: Rockwell Automation Technical Support 6680 Beta Drive Mayfield Village, Ohio 36849 Inside USA and Canada, call 1–800–289–2279. Outside USA and Canada, contact your Allen-Bradley office or call USA (216) 646–6800. Publication 2755-6.8...
Auto-Load. 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 2755-NC43 or -NC48 Configuration Cable...
1–2 Using the Auto-Load Function Internal Power Source The following illustration shows the wiring base connections. The 2755-IB5S DC input module and the 42SRU-6203 PHOTOSWITCH receive power from the Package Detect +12V internal power source in this application. You could also use an external AC or DC power source.
Using the Auto-Load Function 1–3 Configuring the Reader This section shows how to configure the AdaptaScan Reader using the AdaptaScan software (Catalog No. 2755-ASN). The procedures in this section show how to: configure a bar code label and symbol define a DeviceNet address configure the scanner configure the decoder trigger configure the discrete input module...
1–4 Using the Auto-Load Function Define a Bar Code Label 1. Click the Labels button to open the Bar Code Labels dialog. 2. Click the New button to add a label. 3. Click the New button to add a symbol. 4.
Using the Auto-Load Function 1–5 Define the DeviceNet Address 1. Click the Device button on the Project dialog. 2. Select a DeviceNet address. 3. Connect the 2755-NC43 or -NC48 Configuration Cable to the reader. 4. Click the Apply button to send the DeviceNet address to the reader.
1–6 Using the Auto-Load Function Configure 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 Discrete Input Module The application uses a discrete input module to trigger the Auto-Load function.
Using the Auto-Load Function 1–7 Configure the Match Table The following procedure defines the contents of the match table and the source of the symbol to be matched. 1. Click the Match Table button on the main Project dialog. 2. Click the New button to open the Match Function dialog. 3.
1–8 Using the Auto-Load Function Configure a Package When the application is running, the I/O 1 LED energizes (no output module is actually installed in wiring base) when a No-Match or No-Read occurs. The following procedure defines this package function. 1.
Using the Auto-Load Function 1–9 6. Click the Output To button to open the Package Outputs dialog. 7. Under Available Outputs, select Discrete Input/Output 1. 8. Click the Add>> button to add this selection under Output To: Note: Discrete Input/Output 2 does not appear as an Available Output because it was previously defined as an input.
1–10 Using the Auto-Load Function Sending the Configuration From the main Project dialog, click the Send Device button to to the Reader download the configuration to the bar code reader. Use the Monitor dialog to verify bar code labels as they are decoded. Running the Application When the application is running, bar code data is autoloaded by triggering the decoder (with Package Detect) when the desired...
AdaptaScan Bar Code Reader. 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-NC43 or -NC48 Configuration Cable 2755-PW46 or -PW47 Power Supply Computer running Windows 3.1 (or later) or Windows 95...
2–2 Using ASCII Command Input Connecting a Computer to The following illustration shows the wiring base connections the Reader between the AdaptaScan Bar Code Reader and the personal computer. This RS-232 serial connection is used to download ASCII commands to the reader and to display bar code messages on the terminal emulator.
Using ASCII Command Input 2–3 Configuring the Reader This section shows how to configure the AdaptaScan Reader using the AdaptaScan Software (Catalog No. 2755-ASN). The procedures in this section show how to: configure a bar code label and symbol define a DeviceNet address configure the scanner configure the decoder trigger for ASCII Command Input configure one character ASCII commands to start/stop scanning...
2–4 Using ASCII Command Input 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.
Using ASCII Command Input 2–5 Define the DeviceNet Address 1. Click the Device button on the Project dialog. 2. Select a DeviceNet address. 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.
2–6 Using ASCII Command Input Configure the Decoder Trigger This section defines ASCII Command Input 1 as the trigger for the reader’s decoder. 1. Click the Decoder button from the main Project dialog. 2. Under Triggered By, select ASCII Command Input 1 from the Input list.
Page 34
Using ASCII Command Input 2–7 3. Click the Edit button to open the ASCII Command Input dialog. The default ASCII commands for triggering the decoder are two character commands: BS (Begin Scan) ES (End Scan) This application uses one character ASCII commands to trigger the decoder.
2–8 Using ASCII Command Input Configure the Serial Port This section configures the RS-232 serial port so that it is compatible with the Terminal Emulator in Windows 3.1 or HyperTerminal in Windows 95. 1. Click the Serial Port button on the main Project dialog. 2.
Page 36
Using ASCII Command Input 2–9 5. Click the Edit button under Protocol. 6. Under Flow Control, select None. 7. Click OK to close the dialog. 8. Click the Save button to save the serial configuration. 9. Click Close to return to the main Project dialog. Publication 2755-6.8...
Page 37
2–10 Using ASCII Command Input Create a Message This section defines the content of the message sent from the reader to the terminal emulator. 1. Click the Message button from the main Project dialog. 2. Under Triggered By, check the Enable check box. 3.
Page 38
Using ASCII Command Input 2–11 10. Under Replacement Strings, type nr in the Fail: field. Bar code data is sent to the emulator on a valid read. The Fail string sends the characters “nr” when a no read occurs. 11. Click OK to return to the Message Field dialog. 12.
Page 39
2–12 Using ASCII Command Input Sending the Configuration From the main Project dialog, click the Send Device button to to the Reader download the configuration to the bar code reader. Running the Application If your computer does not have two serial ports, switch the 2755-NC43 or -NC48 cable to the serial cable already wired to the AdaptaScan Reader’s wiring base.
Page 40
It also describes how to download other host commands using the same procedures. Hardware Requirements The hardware items required for this application are: 2755-SN3, -SN5, -SN8 AdaptaScan Bar Code Reader 2755-NB40 or -NB41 Wiring Base 2755-PW46 or -PW47 Power Supply 2755-NC43 or -NC48 Configuration Cable...
Page 41
3–2 Downloading Match Codes from a Host Device Connecting a Computer to The following illustration shows the wiring base connections the Reader between the AdaptaScan Bar Code Reader and the personal computer. This RS-232 serial connection is used to download match codes to the reader from a terminal emulator.
Page 42
Downloading Match Codes from a Host Device 3–3 Configuring the Reader 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...
Page 43
3–4 Downloading Match Codes from a Host Device Define the Bar Code Label This section configures the reader to scan/decode Interleaved 2 of 5 symbols. 1. Click the Labels button to open the Bar Code Labels dialog. 2. Click the New button to define a label. 3.
Page 44
Downloading Match Codes from a Host Device 3–5 Define the DeviceNet Address 1. Click the Device button on the Project dialog. 2. Select a DeviceNet address. 3. Connect the 2755-NC43 or -NC48 Configuration Cable to the Reader. 4. Click the Apply button. 5.
Page 45
3–6 Downloading Match Codes from a Host Device Configure the Decoder Trigger Bar Code Reader 1 is triggered by a Timer. The Timer is typically used during initial setup to simulate a package detector. The Timer is set for a specified On Time (1 second) and Off Time (1 second).
Page 46
Downloading Match Codes from a Host Device 3–7 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. Under Protocol, select: select Terminal check (enable) the Scanner Protocol check box Scanner Protocol is used when a host (e.g., PLC or computer) is connected to a serial port in the reader’s wiring base.
Page 47
3–8 Downloading Match Codes from a Host Device Configuring a Match Entry and I/O Indicator LED The application turns on output 1 when a symbol is read. This provides a convenient method of determining whether or not the reader is decoding a label. The discrete output is turned on by the match table.
Page 48
Downloading Match Codes from a Host Device 3–9 7. Click the Outputs button to specify which output activates when a match occurs. 8. Under Available Outputs, select Discrete Input/Output 1. 9. Click the Add>> button to add this selection to the Output To: area.
Page 49
3–10 Downloading Match Codes from a Host Device Finding Match Table When you download match codes from a host, you need the instance Instances number of the match table. Do not assume that Match 1 = Instance 1, Match 2 = Instance 2. From the Project menu, select Print.
Page 50
Downloading Match Codes from a Host Device 3–11 Downloading Match Codes To download match codes from your computer you must: 1. Convert the match string to hex. 2. Enter the match string in the proper data packet format. 3. Send the data packet (containing the string) to the reader. Convert the Bar Code String to Hex Convert the bar code string you want to send to the reader to the hexadecimal ASCII equivalent value.
Page 51
3–12 Downloading Match Codes from a Host Device Send Data to the Reader 1. Use the Windows terminal function to send the data. Locate the terminal icon (usually within the Accessories group icon). 2. Open the terminal icon. 3. From the Settings menu open the Communications dialog and make sure that the settings match the reader serial port settings.
Page 52
Downloading Match Codes from a Host Device 3–13 4. From the Settings menu open the Terminal Preferences dialog and select Local Echo and Outbound (CR/LF). 5. Return to the terminal window and enter the data string to download. All characters must be in uppercase. 3F10CE010003040030323030 6.
Page 53
3–14 Downloading Match Codes from a Host Device Response Codes Response codes have the following format: Byte Contents Mac ID (Address) 94 = Error Response x = General Error Code x = Additional Code General Error Codes Code (hex) Name Resource unavailable Service not supported...
Page 54
Downloading Match Codes from a Host Device 3–15 Downloading Other Host You can download other host commands using the same procedures Commands described in the match code example. The following tables provide the commands and responses for the other host commands (all values are hexadecimal).
Page 55
3–16 Downloading Match Codes from a Host Device Reset Match Counters Command Reset Match Counters Response Packet Contents Data Sent Packet Contents Response Response Codes DeviceNet Address Set Attribute Request Set Attribute Response Class Instance Number (LSB) Instance Number (MSB) Attribute Number- Reset Counters Data...
Page 56
Downloading Match Codes from a Host Device 3–17 Set Output Timer Command Set Output Timer Response Packet Contents Data Sent Packet Contents Response DeviceNet Address DeviceNet Address Set Attribute Request Set Attribute Response Class Instance Number (LSB) Instance Number (MSB) Attribute Number - Max Time Data (LSB) Data (MSB)
Page 57
Hardware Requirements The hardware items required for this application are: 2755-SN3, -SN5, or -SN8 AdaptaScan Bar Code Reader 2755-PW46 or -PW47 Power Supply 2755-NC43 or -NC48 Configuration Cable 2755-NB40 or -NB41 Wiring Base (Ser. A/Rev. B or higher)
4–2 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller Related Publications Related publications include: Publication Description 2755-837 AdaptaScan Bar Code Readers User Manual 2755-838 AdaptaScan Software User Manual SLC 500t Modular Hardware Style Installation and 1747-6.2 Operation Manual 9399-APSUM-11.15.95...
Page 59
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–3 Important: When setting up a DH-485 network using an AdaptaScan, make sure that the nodes on the network are in sequential order. The SLC 5/03 or 5/04 should be Node 1, and AdaptaScan should be Node 2, and each node after that should be 3, 4, and so forth.
Page 60
4–4 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller Connecting Readers to SLC 5/04 Controller – 2 AIC Modules The SLC 5/04 controller requires two 1747-PIC converters and a power supply to connect to the second 1747-AIC module. The end devices on a DH-485 network must be terminated.
Page 61
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–5 Connecting Readers to SLC 5/04 Controller – 1 AIC Module The SLC 5/04 controller requires two 1747-PIC converters. However, you can use an RJ48 Y adapter (8-wire LAN phone jack plug) to connect the two 1747-PIC modules.
Page 62
4–6 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller Configuring Bar Code This section shows how to configure one the AdaptaScan Bar Code Reader 1 Readers using the AdaptaScan Software (Catalog No. 2755-ASN). The procedures in this section show how to: configure a bar code label and symbol define the DeviceNet node address of the AdaptaScan Reader configure the scanner...
Page 63
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–7 Define the Bar Code Label 1. Click the Label button to open the Bar Code Labels dialog. 2. Click the New button to add a label to open the Bar Code Label dialog.
Page 64
4–8 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4. Select a symbology and any other parameters (Identifier, Lengths) required by your application. 5. Click OK to return to the main Project dialog. Define the DeviceNet Address 1.
Page 65
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–9 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.
Page 66
4–10 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller Configure the Serial Port 1. Click the Serial Port button from the Project dialog. 2. Set the parameters as follows: From the Protocol list box, select DH-485 From the Baud Rate list box, select 19,200 Click the Scanner Protocol button From the Connection list box, select RS485...
Page 67
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–11 DH485 Slave Mode 1. Click the Protocol Edit button in the Serial Port dialog. 2. Edit the parameters as follows: Click the PCCC Enabled box From the Master/Slave box, select Slave From the Node box, select 2 This is the DH485 node address.
Page 68
4–12 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller DH485 Master Mode 1. Click the Protocol Edit button in the Serial Port dialog. 2. Set the parameters as follows: From the Master/Slave box, select Master From the Destination Node box, select 1 This is the SLC node where the decoded bar codes are sent.
Page 69
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–13 Configure for Match Codes 1. Click the Match Table button to open the Match Table dialog. 2. Click the New button to open the Match Function dialog and create a Match Function.
Page 70
4–14 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 7. Click the Outputs button to specify which output activates when a match occurs. 8. Under Available Outputs, select Discrete Input/Output 1. 9. Click the Add>> button to add this selection to the Output To: area.
Page 71
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–15 4. Highlight Match 1 to enable the Match function. 5. Click OK to return to the main Package dialog. Configure for an Output 1. Click the Output To button to specify which output activates when a No-Read or No-Match occurs.
Page 72
4–16 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller Sending the Configuration From the main Project dialog, click the Send Device button to to the Reader download the configuration to the bar code reader. Finding Match Table When you download match codes from a host, you need the instance Instances...
Page 73
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–17 Downloading Match Codes To download match codes from the SLC you must: 1. Convert the match string to hex. 2. Enter the match string in the proper data packet format (byte swapped).
Page 74
4–18 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller The response of 3F90 indicates a good write of the match code. 3F90 Address (3F = 63) Response Code (90 = Successful) (94 = Fail) Note: Refer to the next page for a description of the response code format and codes.
Page 75
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–19 Response Codes Response codes have the following format: Byte Contents Mac ID (Address) 94 = Error Response x = General Error Code x = Additional Code General Error Codes Code (hex) Name...
Page 76
4–20 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller Configuring the SLC This section describes how to configure the SLC 5/04, which is Controller different than the 5/03. Using APS and an RS-232 connection, establish an online connection the Channel 0 port of the SLC 5/04.
Page 77
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–21 SLC Ladder Logic This section describes how to view match codes in Slave Mode via the reader’s LEDs in Slave Mode via ladder logic in Master Mode via ladder logic Viewing Match Codes in Slave Mode via the Reader’s LEDs Use a MSG Write command to download the Match Code Hex commands.
Page 78
4–22 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller Place the Match Code Hex command (Byte Swapped) in the Destination File Address N7:90. example bar code string = 0300 0300 converted to hex = 30333030 ASCII Hex command = 3F10CE010003040030333030 Byte Location Byte Swapped...
Page 79
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–23 Message Instruction Configurations For the first Message Instruction, the configuration is listed in the table below. Parameter Configuration Type Peer-to-Peer Read/Write Write Target Device 485CIF Local/Remote Local Control Block...
Page 80
4–24 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller Place the Match Code Hex command (Byte Swapped) in the Destination File Address N7:90. example bar code string = 0300 0300 converted to hex = 30333030 ASCII Hex command = 3F10CE010003040030333030 Byte Location Byte Swapped...
Page 81
Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller 4–25 Viewing Match Code Downloads in Master Mode via Ladder Logic Use the following SLC ladder logic for DH485 Master Mode if the AdaptaScan I/O LEDs cannot be used for viewing. Read/Write Type: PEER-TO-PEER...
Page 82
4–26 Downloading Match Codes via DH485 Protocol with an SLC 5/03t or SLC 5/04t Controller In Master Mode, the N9:offset file will contain the response for a successful download (i.e. 3F90) or failure (i.e. 3F94). The offset address (such as N9:100) is configured in the AdaptaScan OLP software (DH485 dialog box).
Page 83
RS-232 port of the SLC 5/03 (Frn 6.0) or 5/04. 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...
Page 84
5–2 Communicating with a 1746-BAS BASIC Module Connecting a BASIC The SLC 500 processor occupies the first slot in a 1747 chassis. Module to the Reader Power is supplied externally to the 1747 chassis. SLC 500 1747-BAS Processor Module AdaptaScan Reader Computer 1747-PIC RS-232...
Page 85
Communicating with a 1746-BAS BASIC Module 5–3 SLC Ladder Logic This section provides the SLC ladder logic program for CALL 22. The BASIC module is located in slot 1 of the SLC chassis. The SLC 500 processor is located in slot 0. At rung 2.0, data is copied from the M1 file when the handshake bit (I:1.0/8) is set by the BASIC module.
Page 86
5–4 Communicating with a 1746-BAS BASIC Module Programming the BASIC Refer to the following steps to program the BASIC module. Module 1. Make sure the BASIC Development Software is loaded onto your personal computer. Refer to the BASIC Development Software Programming Manual (Publication No.
Page 87
Communicating with a 1746-BAS BASIC Module 5–5 SLC BASIC Module Code Refer to the partial BASIC program listed below to in order for port 2 of the BASIC module to receive data and then send the data to SLC M1 file. PUSH 2 REM PRT2 ACTIVE FOR CALL 22 PUSH 6...
Page 88
5–6 Communicating with a 1746-BAS BASIC Module 3. Choose Edit from the Project menu to rename the project 1746 BASIC Module. 4. Click Save to save the project under the new name and then Close to return to the Project dialog. Publication 2755-6.8...
Page 89
Communicating with a 1746-BAS BASIC Module 5–7 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.
Page 90
5–8 Communicating with a 1746-BAS BASIC Module Define the DeviceNet Address 1. Click the Device button to open the Device dialog. 2. Select a DeviceNet address. Note: The DeviceNet address is not always the same as the DH-485 node address. A DH-485 node address is assigned later. 3.
Page 91
Communicating with a 1746-BAS BASIC Module 5–9 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 92
5–10 Communicating with a 1746-BAS BASIC Module Configure the Decoder Trigger This application uses a Timer to trigger the reader’s decoder. The Timer is typically used during application setup. Refer to Publication 2755-837 for other input sources that trigger the decoder. 1.
Page 93
Communicating with a 1746-BAS BASIC Module 5–11 2. Configure the serial port as follows: From the Protocol list box, select Terminal From the Connection list box, select RS232 The configuration must match the host configuration. 3. Click Save and then Close to return to the main Project dialog. Create a Message Data sent from the AdaptaScan Reader to the BASIC module uses messages.
Page 94
5–12 Communicating with a 1746-BAS BASIC Module 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: box. Bar code data is sent to the BASIC module at end of a trigger. The Fail string sends “nr”...
Page 95
Communicating with a 1746-BAS BASIC Module 5–13 5. Click Save and then Close to return to the Project dialog. Sending the Configuration From the main Project dialog, click the Send Device button to to the Reader download the configuration to the bar code reader. Running the Application If the AdaptaScan Bar Code Reader is configured correctly and the BASIC module and SLC programs are entered as shown in this...
Page 96
RS-232 port of the SLC 5/03 (Frn 6.0) or 5/04. 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 2755-NC43 or -NC48 Configuration Cable 1746 SLC 5/03 Enhanced (Frn 6.0) or 5/04 Processor...
Page 97
6–2 Communicating with an SLCt over an RS-232 Link Connecting an SLC The SLC 5/03 or 5/04 occupies the first slot in a 1747 chassis. Controller to the Reader Power is supplied externally to the 1747 chassis. SLC 5/03, 5/04 Power Supply RS-232 Cable...
Page 98
Communicating with an SLCt over an RS-232 Link 6–3 Configure Channel 0 in the Channel 0 User Mode Configuration screen. Note: Termination 1 is set for or Carriage Return , and [CR] Termination 2 is set for or Line Feed .
Page 99
6–4 Communicating with an SLCt over an RS-232 Link Configuring the Reader This section shows how to configure the AdaptaScan Bar Code Reader using the AdaptaScan Software (Catalog No. 2755-ASN). The procedures in this section show how to: configure a DeviceNet address configure a bar code label and symbol configure the scanner configure the decoder trigger...
Page 100
Communicating with an SLCt over an RS-232 Link 6–5 3. Choose Edit from the Project menu to rename the project SLC. 4. Click Save to save the project under the new name and then Close to return to the Project dialog. Define the Bar Code Label 1.
Page 101
6–6 Communicating with an SLCt over an RS-232 Link Define the DeviceNet Address 1. Click the Device button on the Project dialog. 2. Set the DeviceNet address. 3. Connect the 2755-NC43 or -NC48 Configuration Cable to the reader. 4. Click the Apply button. 5.
Page 102
Communicating with an SLCt over an RS-232 Link 6–7 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.
Page 103
6–8 Communicating with an SLCt over an RS-232 Link Configure the Serial Port 1. Click the Serial Port button on the main Project dialog. 2. Verify that Terminal is selected in the Protocol list box. Also verify that the settings match the Channel 0 User settings. 3.
Page 104
Communicating with an SLCt over an RS-232 Link 6–9 Create a Message The Message dialogs define the format and content of message data sent to the host by the reader when bar codes are decoded. 1. Click the Message button from the main Project dialog. 2.
Page 105
6–10 Communicating with an SLCt over an RS-232 Link 10. Under Replacement Strings, type no read in the Fail: field. Bar code data is sent to the controller on a valid read. The Fail string sends the characters “no read” when a no read occurs. 11.
Page 106
Communicating with an SLCt over an RS-232 Link 6–11 Sending the Configuration From the main Project dialog, click the Send Device button to to the Reader 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 Bar Code Reader is configured correctly and the SLC programs are entered as shown in this application example, bar...
Page 107
SLC. The priority should be on processing bar code data not on finding node gaps. 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 2755-NC43 or -NC48 Configuration Cable...
Page 108
7–2 Communicating with an SLC on a DH-485 Network Related Publications Related publications include: Publication Description 2755-837 AdaptaScan Bar Code Readers User Manual 2755-838 AdaptaScan Software User Manual In addition, you may want to refer to the SLC 500 Hardware and Software User Manuals.
Page 109
Communicating with an SLC on a DH-485 Network 7–3 Connecting a Power The following illustration shows how to connect a 2755-PW46 or Supply to the Reader -PW47 power supply to a single bar code reader. The power supply connection applies to both readers. Use a shielded cable (Belden 9316 recommended) to make the connections.
Page 110
7–4 Communicating with an SLC on a DH-485 Network Connecting Readers to SLC 5/03 Controller You must use a link coupler if the distance between the reader and the SLC is greater than 15.2 meters (50 feet). The reader can connect directly to another RS-485/RS-422 device.
Page 111
Communicating with an SLC on a DH-485 Network 7–5 Connecting Readers to SLC 5/04 Controller – 2 AIC Modules The SLC 5/04 controller requires two 1747-PIC converters and a power supply to connect to the second 1747-AIC module. The end devices on a DH-485 network must be terminated. The wiring base of the AdaptaScan Reader provides a termination switch.
Page 112
7–6 Communicating with an SLC on a DH-485 Network Connecting Readers to SLC 5/04 Controller – 1 AIC Module The SLC 5/04 controller requires two 1747-PIC converters. However, you can use an RJ48 Y adapter (8-wire LAN phone jack plug) to connect the two 1747-PIC modules. The RJ48 Y adapter is a modular adapter for 4-pair cable which parallels two 4-pair jacks and one 4-pair modular plug.
Page 113
Communicating with an SLC on a DH-485 Network 7–7 Configuring the SLC This section describes how to configure the SLC 5/04, which is Controller different than the 5/03. Using APS and an RS-232 connection, establish an online connection the Channel 0 port of the SLC 5/04. When online, change to DH485 protocol and do a WHO ACTIVE to view the nodes on the network.
Page 114
7–8 Communicating with an SLC on a DH-485 Network Configuring Bar Code This section shows how to configure one the AdaptaScan Bar Code Reader 1 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...
Page 115
Communicating with an SLC on a DH-485 Network 7–9 3. Choose Edit from the Project menu to rename the project DH–485 Master Mode. 4. Click Save to save the project under the new name and then Close to return to the Project dialog. Define the Bar Code Label 1.
Page 116
7–10 Communicating with an SLC on a DH-485 Network Define the DeviceNet Address 1. Click the Device button on the Project dialog. 2. Set the DeviceNet address to 1. Note: The DeviceNet address is not always the same as the DH-485 node address.
Page 117
Communicating with an SLC on a DH-485 Network 7–11 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.
Page 118
7–12 Communicating with an SLC on a DH-485 Network Configure the Decoder Trigger This application uses a Timer to trigger the reader’s decoder. The Timer is typically used during application setup. Refer to Publication No. 2755-837 for other input sources that trigger the decoder. 1.
Page 119
Communicating with an SLC on a DH-485 Network 7–13 3. Click the Edit button under Protocol to edit the DH-485 parameters. Edit the parameters as follows: From the Node list box, select 2 This is the node address of the reader on the network. From the Maximum Node list box, select 3 This is the number of nodes on the network.
Page 120
7–14 Communicating with an SLC on a DH-485 Network Create a Message Data sent from the AdaptaScan Reader to the SLC processor uses messages. 1. Click the Message button from the main Project dialog. 2. Under Triggered By, check the Enable check box. 3.
Page 121
Communicating with an SLC on a DH-485 Network 7–15 9. Click the Edit button to open the Message Field Edit dialog. 10. Under Replacement Strings, type NO READ 1 in the Fail: box. Bar code data is sent to the SLC controller on a valid read. The Fail string sends “NO READ 1”...
Page 122
7–16 Communicating with an SLC on a DH-485 Network Sending the Configuration From the main Project dialog, click the Send Device button to send to Reader 1 the configuration to Bar Code Reader 1. Use the Monitor dialog to verify the decoding of bar code labels. Configuring Bar Code This section shows how to configure Bar Code Reader 2 which is Reader 2...
Page 123
Communicating with an SLC on a DH-485 Network 7–17 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.
Page 124
7–18 Communicating with an SLC on a DH-485 Network 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.
Page 125
Communicating with an SLC on a DH-485 Network 7–19 Configure the Serial Port 1. Click the Serial Port button from the Project dialog. 2. Configure the serial port as follows: From the Protocol list box, select DH-485 From the Baud Rate list box, select 19,200 From the Connection list box, select RS485 3.
Page 126
7–20 Communicating with an SLC on a DH-485 Network Create a Message 1. Click the Message button from the Project dialog. 2. Under Triggered By, check the Enable box. 3. Under Device, select Bar Code Reader 1. 4. Under Input, select [Decoder]. 5.
Page 127
Communicating with an SLC on a DH-485 Network 7–21 9. Click the Edit button to open the Message Field Edit dialog. 10. Under Replacement Strings, type NO READ 2 in the Fail: box. Bar code data is sent to controller on a valid read; the Fail string sends the message NO READ 2 when a no read occurs from Bar Code Reader 2.
Page 128
7–22 Communicating with an SLC on a DH-485 Network Sending the Configuration From the main Project dialog, click the Send Device button to send to Reader 2 the configuration to Bar Code Reader 2. Use the Monitor dialog to verify the decoding of bar code labels. Running the Application After downloading the configurations to both AdaptaScan Readers, establish an online connection with the SLC processor.
Page 129
Channel 0 on the new PLC-5 platform. 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 2755-NC43 or -NC48 Configuration Cable...
Page 130
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–2 Connecting the PLC-5 For this application the PLC-5 occupies the first slot in a 1771 Processor to the Reader chassis. Power is supplied externally or from an internal power supply installed in any acceptable slot in the 1771 chassis.
Page 131
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–3 For RS-422 installations, a special pinout cable must be constructed. AdaptaScan PLC-5/30, /40, /60 Terminal Strip Channel 0 RS-422/485 RxA– 2 TxD+ RxB+ 14 TxD– TxA– 3 RxD+ TxB+ 16 RxD–...
Page 132
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–4 Configure Channel 0 in the User Mode Channel 0 Configuration screen. Note: Termination 2 is set for or Line Feed , and \0xa [LF] Termination 1 is set for or Carriage Return .
Page 133
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–5 Configuring the Reader This section shows how to configure the AdaptaScan Bar Code Reader using the AdaptaScan Software (Catalog No. 2755-ASN). The procedures in this section show how to: configure a DeviceNet address configure a bar code label and symbol configure the scanner...
Page 134
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–6 3. Choose Edit from the Project menu to rename the project PLC. 4. Click Save to save the project under the new name and then Close to return to the Project dialog. Define the Bar Code Label 1.
Page 135
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–7 5. Click OK until you return to the Bar Code Labels dialog. 6. Click Save and then Close to return to the Project dialog. Define the DeviceNet Address 1.
Page 136
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–8 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.
Page 137
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–9 Configure the Serial Port 1. Click the Serial Port button on the main Project dialog. 2. Verify that Terminal is selected in the Protocol list box. Also verify that the settings match the Channel 0 User settings. In this example, RS232 is selected in the Connection list box.
Page 138
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–10 Create a Message The Message dialogs define the format and content of message data sent to the host by the reader when bar codes are decoded. 1. Click the Message button from the main Project dialog. 2.
Page 139
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–11 9. Click the Edit button to open the Message Field Edit dialog. 10. Under Replacement Strings, type no read in the Fail: field. Bar code data is sent to the controller on a valid read. The Fail string sends the characters “no read”...
Page 140
Communicating with a PLC-5 R over an RS-232 or RS-422 Link 8–12 Sending the Configuration From the main Project dialog, click the Send Device button to to the Reader 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 Bar Code Reader is configured correctly and the PLC-5 program is entered as shown in this application example, bar...
Page 141
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 1747-SDN Scanner Module (v2.05 firmware or later)
Page 142
9–2 Communicating with an SLC 5/03 Processor on a DeviceNett Network Related Publications Related publications include: Publication Description 2755-837 AdaptaScan Bar Code Readers User Manual 2755-838 AdaptaScan Software User Manual 1787-6.5.3 DeviceNet Manager Software Manual 1747-6.5.2 1747-SDN DeviceNet Scanner Configuration Manual In addition, you may want to refer to the SLC 500 Hardware and Software User Manuals.
Page 143
Communicating with an SLC 5/03 Processor on a DeviceNett Network 9–3 SLC Ladder Logic This section provides the SLC ladder logic program and data monitor results. The ladder logic uses: File N23 as the SLC interface to M1 file File N22 as the SLC interface to M0 file The data table shows file N23 after the AdaptaScan Reader successfully reads and transfers data ‘0300’...
Page 144
9–4 Communicating with an SLC 5/03 Processor on a DeviceNett Network Message Flow Control DeviceNet Input #8 and Output #16 control the transmission of bar code messages when using DeviceNet master-slave. Message flow control (handshaking) lets the controller know that data is available and that the reader does not send out messages faster than they can be received.
Page 145
Communicating with an SLC 5/03 Processor on a DeviceNett Network 9–5 Note: The following ladder logic program is for reference only. Application specific interlocks may be necessary. Rung 2:0 This rung enables Discrete Output bit 0 of slot 1. This will put the 1747-SDN card into run mode. Remember in order to “save to sdn”...
Page 146
9–6 Communicating with an SLC 5/03 Processor on a DeviceNett Network N23 Data Table File Monitor In Data Table File N23: N23:1 contains the DeviceNet status bits Bit 15 is the control bit from the AdaptaScan Reader which toggles between 0 and 1 to indicate a ‘new message being sent’ N23:2 is the byte count (4) of the message sent from the reader N23:3 is the start the of the data read 3000.
Page 147
Communicating with an SLC 5/03 Processor on a DeviceNett Network 9–7 Data Table File 0 Monitor Below is a partial listing of the File 0 data table. The table shows that bit O:1/0 is set to enable run mode in the 1747-SDN Scanner (1=RUN;...
Page 148
9–8 Communicating with an SLC 5/03 Processor on a DeviceNett Network Configuring the DeviceNet This section describes how to configure the 1747-SDN Scanner Scanner using the DeviceNet Manager software. Before configuring the 1747-SDN Scanner, you must wire the DeviceNet network and apply DeviceNet Address 3 to the bar code reader.
Page 149
Communicating with an SLC 5/03 Processor on a DeviceNett Network 9–9 4. Double-click the 1747-SDN Scanner Module to open the 1747-SDN Module Configuration dialog. From this dialog, you modify all configuration parameters for the 1747-SDN Scanner. If you are using an AdaptaScan with v7.0 firmware on a network with 2 or less nodes, change the Interscan Delay parameter to 20 ms.
Page 150
9–10 Communicating with an SLC 5/03 Processor on a DeviceNett Network 6. Click the Edit I/O Parameters button. 7. Click the Polled button. 8. Change the Poll Rx size to 8. 9. Change the Poll Tx size to 1. 10. Click the OK button to return to the Scan List Editor screen. 11.
Page 151
Communicating with an SLC 5/03 Processor on a DeviceNett Network 9–11 12. Click the Data Entry button. 13. Change Map Data From to Poll Message. 14. Change Map Data To M File. 15. Change M1:1. to 1. 16. Change No. Bits to 64. 17.
Page 152
9–12 Communicating with an SLC 5/03 Processor on a DeviceNett Network 18. Click the Output button. 19. Change Map Data From to Poll Message. 20. Change Map Data To M File. 21. Change M0:1. to 1. 22. Change No. Bits to 8. 23.
Page 153
Communicating with an SLC 5/03 Processor on a DeviceNett Network 9–13 Configuring the Reader This section shows how to configure the AdaptaScan Bar Code Reader using the AdaptaScan Software (Catalog No. 2755-ASN). The procedures in this section show how to: scan/decode 4 character, Interleaved 2 of 5 bar code symbols define a DeviceNet address configure the scanner...
Page 154
9–14 Communicating with an SLC 5/03 Processor on a DeviceNett Network 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.
Page 155
Communicating with an SLC 5/03 Processor on a DeviceNett Network 9–15 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.
Page 156
9–16 Communicating with an SLC 5/03 Processor on a DeviceNett Network 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.
Page 157
Communicating with an SLC 5/03 Processor on a DeviceNett Network 9–17 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.
Page 158
9–18 Communicating with an SLC 5/03 Processor on a DeviceNett Network 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.
Page 159
Communicating with an SLC 5/03 Processor on a DeviceNett Network 9–19 Define the Message Format This section defines the format and destination of messages sent from the reader. 1. Click the Format button from the Message dialog. 2. Under Message Destination, select DeviceNet. 3.
Page 160
9–20 Communicating with an SLC 5/03 Processor on a DeviceNett Network Troubleshooting the The bicolor (green/red) module status indicator (MODULE) Module and Network displays module status. It indicates whether the module has power and is functioning properly. If the Module LED is this indicates Take this action there is no power applied to...
Page 161
Communicating with an SLC 5/03 Processor on a DeviceNett Network 9–21 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.
Page 162
9–22 Communicating with an SLC 5/03 Processor on a DeviceNett Network Numeric Code Indicates Take this action user has disabled communication port reconfigure your module. Check the disable bit in the Module Command Register. bus-off condition detected on comm port. Check DeviceNet connections and physical module is detecting communication errors.
Page 163
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 1747-SDN Scanner Module (v2.05 firmware or later)
Page 164
10–2 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging Related Publications Related publications include: Publication Description 2755-837 AdaptaScan Bar Code Readers User Manual 2755-838 AdaptaScan Software User Manual 1787-6.5.3 DeviceNet Manager Software Manual 1747-6.5.2 1747-SDN DeviceNet Scanner Configuration Manual In addition, you may want to refer to the SLC 500 Hardware and Software User Manuals.
Page 165
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–3 SLC Ladder Logic This section provides the SLC ladder logic program and data monitor results. The ladder logic uses: File N23 as the SLC interface to M1 file File N22 as the SLC interface to M0 file The data table shows file N23 after the AdaptaScan Reader successfully reads and transfers data ‘0300’...
Page 166
10–4 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging Message Flow Control DeviceNet Input #8 and Output #16 control the transmission of bar code messages when using DeviceNet master-slave. Message flow control (handshaking) lets the controller know that data is available and that the reader does not send out messages faster than they can be received.
Page 167
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–5 Note: The following ladder logic program is for reference only. Application specific interlocks may be necessary. Rung 2:0 This rung enables Discrete Output bit 0 of slot 1. This will put the 1747-SDN card into run mode. Remember in order to “save to sdn”...
Page 168
10–6 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging N23 Data Table File Monitor In Data Table File N23: N23:1 contains the DeviceNet status bits Bit 15 is the control bit from the AdaptaScan Reader which toggles between 0 and 1 to indicate a ‘new message being sent’...
Page 169
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–7 Data Table File 0 Monitor Below is a partial listing of the File 0 data table. The table shows that bit O:1/0 is set to enable run mode in the 1747-SDN Scanner (1=RUN;...
Page 170
10–8 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging Configuring the DeviceNet This section describes how to configure the 1747-SDN Scanner Scanner using the DeviceNet Manager software. Before configuring the 1747-SDN Scanner, you must wire the DeviceNet network and apply DeviceNet Address 3 to the bar code reader.
Page 171
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–9 4. Double-click the 1747-SDN Scanner Module to open the 1747-SDN Module Configuration dialog. From this dialog, you modify all configuration parameters for the 1747-SDN Scanner. If you are using an AdaptaScan with v7.0 (or lower) firmware on a network with 2 or less nodes, change the Interscan Delay parameter to 20 ms.
Page 172
10–10 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 6. Click the Edit I/O Parameters button. 7. Click the Polled button. 8. Change the Poll Rx size to 8. 9. Change the Poll Tx size to 1. 10.
Page 173
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–11 12. Click the Data Entry button. 13. Change Map Data From to Poll Message. 14. Change Map Data To M File. 15. Change M1:1. to 1. 16.
Page 174
10–12 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 18. Click the Output button. 19. Change Map Data From to Poll Message. 20. Change Map Data To M File. 21. Change M0:1. to 1. 22. Change No. Bits to 8. 23.
Page 175
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–13 Configuring the Reader This section shows how to configure the AdaptaScan Bar Code Reader using the AdaptaScan Software (Catalog No. 2755-ASN). The procedures in this section show how to: scan/decode 4 character, Interleaved 2 of 5 bar code symbols define a DeviceNet address configure the scanner...
Page 176
10–14 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 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.
Page 177
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–15 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.
Page 178
10–16 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 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.
Page 179
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–17 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.
Page 180
10–18 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 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.
Page 181
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–19 Define the Message Format This section defines the format and destination of messages sent from the reader. 1. Click the Format button from the Message dialog. 2.
Page 182
10–20 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging Configure for Match Codes 1. Click the Match Table button to open the Match Table dialog. 2. Click the New button to open the Match Function dialog and create a Match Function.
Page 183
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–21 7. Click the Outputs button to specify which output activates when a match occurs. 8. Under Available Outputs, select Discrete Input/Output 1. 9. Click the Add>> button to add this selection to the Output To: area.
Page 184
10–22 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging Configure for a Package 1. Click the Package button to open the Package dialog. 2. Click the new button to create a Package. 3. Under Mode, select No-Read or No-Match. This mode is used to determine when a label is not read or does not match the rule defined in the Match function.
Page 185
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–23 Configure for an Output 1. Click the Output To button to specify which output activates when a No-Read or No-Match occurs. 2. Under available Outputs, select Discrete Input/Output 2. 3.
Page 186
10–24 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging Explicit Message Program Use the Explicit Message Program Control feature to configure Control device parameters on your DeviceNet network via the M0 and M1 files in the SLC processor that is controlling these devices. You can use Explicit Message Program Control only with devices that are slaves of your 1747-SDN Scanner Module.
Page 187
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–25 Explicit Message Program Control Feature MC0 file transfer (including words 224-255) Explicit Message – A message used to transmit (sent from processor to scanner module) commands, data, requests for data or responses.
Page 188
10–26 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging Formatting the Explicit Message Transaction Block Up to ten 32-word transaction blocks may be queued within the scanner module for Explicit Message Program Control. The transaction blocks accommodate both the download of Explicit Message Requests and the upload of Explicit Message Responses.
Page 189
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–27 For each upload, the status code provides the processor with status on the device and its response. Status Code Description Ignore transaction block (block empty). Transaction completed successfully Transaction in progress (not ready) Error –...
Page 190
10–28 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging The following figure describes the format and mapping of transaction blocks for request and response messages in the scanner module. Format of 32-word M0 Transfer File Format of 32-word M1 Transfer File for Explicit Message Request for Explicit Message Response...
Page 191
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–29 Message lengths and slave device types impact transaction message completion times. If the processor has queued multiple Explicit Message Transactions to the scanner module for multiple slave devices, the transactions with the slaves may not complete in the order in which the requests were received.
Page 192
10–30 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging As transactions are removed from the queue and response transaction blocks are returned to the processor, additional transaction blocks can be issued in their place, as long as the total does not exceed ten. The scanner module supports one transaction block per upload and download.
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.
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.
Page 195
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–33 Troubleshooting the The bicolor (green/red) module status indicator (MODULE) Module and Network displays module status. It indicates whether the module has power and is functioning properly. If the Module LED is this indicates Take this action...
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.
Page 197
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–35 Numeric Code Indicates Take this action user has disabled communication port reconfigure your module. Check the disable bit in the Module Command Register. bus-off condition detected on comm port. Check DeviceNet connections and physical module is detecting communication errors.
Page 198
10–36 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging Downloading Other Host You can download other host commands using the same procedures Commands described in the match code example. The following tables provide the commands and responses for the other host commands (all values are hexadecimal).
Page 199
Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging 10–37 Reset Match Counters Command Reset Match Counters Response Packet Contents Data Sent Packet Contents Response Response Codes DeviceNet Address Set Attribute Request Set Attribute Response Class Instance Number (LSB) Instance Number (MSB) Attribute Number-...
Page 200
10–38 Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging Set Output Timer Command Set Output Timer Response Packet Contents Data Sent Packet Contents Response DeviceNet Address DeviceNet Address Set Attribute Request Set Attribute Response Class Instance Number (LSB) Instance Number (MSB) Attribute Number - Max Time...
Page 201
DeviceNet terminal blocks; one for upstream connection and one for downstream connection. 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 2755-NC43 or -NC48 Configuration Cable 1771-SDN Scanner Module (v3.04 firmware or later)
Page 202
11–2 Communicating with a PLC-5 Processor on a DeviceNet Network Related Publications Related publications include: Publication Description 2755-837 AdaptaScan Bar Code Readers User Manual 2755-838 AdaptaScan Software User Manual 1787-6.5.3 DeviceNet Manager Software Manual 1771-6.5.118 DeviceNet Scanner Configuration Manual In addition, you may want to refer to the PLC-5 Hardware and Software User Manuals.
Page 203
Communicating with a PLC-5 Processor on a DeviceNet Network 11–3 PLC Ladder Logic This section provides the PLC-5 ladder logic program and data monitor results. The ladder logic uses: File N23 as the BTR file File N22 ad the BTW file The data table shows file N23 after the AdaptaScan Reader successfully reads and transfers data ‘0300’...
Page 204
11–4 Communicating with a PLC-5 Processor on a DeviceNet Network Message Flow Control DeviceNet Input #8 and Output #16 control the transmission of bar code messages when using DeviceNet master-slave. Message flow control (handshaking) lets the controller know that data is available and that the reader does not send out messages faster than they can be received.
Page 205
Communicating with a PLC-5 Processor on a DeviceNet Network 11–5 Note: The following ladder logic program is for reference only. Application specific interlocks may be necessary. Note: If you are using channel B instead of channel A, bit 2 of word 0 needs to be set to 1.
Page 206
11–6 Communicating with a PLC-5 Processor on a DeviceNet Network Data Table File N23 Monitor In Data Table File N23: N23:1 contains the DeviceNet status bits Bit 15 is the control bit from the AdaptaScan Reader which toggles between 0 and 1 to indicate a ‘new message being sent’ N23:2 is the byte count (4) of the message sent from the reader N23:3 is the start the of the data read 3000.
Page 207
Communicating with a PLC-5 Processor on a DeviceNet Network 11–7 Configuring the DeviceNet This section describes how to configure the 1771-SDN Scanner Scanner using the DeviceNet Manager software. Before configuring the 1771-SDN Scanner, you must wire the DeviceNet network and apply DeviceNet Address of 3 to the AdaptaScan Bar Code Reader.
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. Input Output BXfer 62...
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.
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.
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.
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...
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.
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.
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.
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.
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.
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.
Page 219
Communicating with a PLC-5 Processor on a DeviceNet Network 11–19 Troubleshooting Your The bicolor (green/red) module status indicator displays device Module status. The LED indicates whether the device has power and is functioning properly. If the Module LED is this indicates Take this action there is no power applied to Apply power.
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.
Page 221
Communicating with a PLC-5 Processor on a DeviceNet Network 11–21 Numeric Code Indicates Take this action user has disabled communication port reconfigure your module. Check the disable bit in the Module Command Register. bus-off condition detected on comm port. Check DeviceNet connections and physical module is detecting communication errors.
Page 222
DeviceNet terminal blocks; one for upstream connection and one for downstream connection. 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 2755-NC43 or -NC48 Configuration Cable 1771-SDN Scanner Module (v3.04 firmware or later)
Page 223
12–2 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging Related Publications Related publications include: Publication Description 2755-837 AdaptaScan Bar Code Readers User Manual 2755-838 AdaptaScan Software User Manual 1787-6.5.3 DeviceNet Manager Software Manual 1771-6.5.118 DeviceNet Scanner Configuration Manual In addition, you may want to refer to the PLC-5 Hardware and Software User Manuals.
Page 224
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–3 PLC Ladder Logic This section provides the PLC-5 ladder logic program and data monitor results. The ladder logic uses: File N23 as the BTR file File N22 ad the BTW file The data table shows file N23 after the AdaptaScan Reader successfully reads and transfers data ‘0300’...
Page 225
12–4 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging Message Flow Control DeviceNet Input #8 and Output #16 control the transmission of bar code messages when using DeviceNet master-slave. Message flow control (handshaking) lets the controller know that data is available and that the reader does not send out messages faster than they can be received.
Page 226
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–5 Note: The following ladder logic program is for reference only. Application specific interlocks may be necessary. Note: If you are using channel B instead of channel A, bit 2 of word 0 needs to be set to 1.
Page 227
12–6 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging Data Table File N23 Monitor In Data Table File N23: N23:1 contains the DeviceNet status bits Bit 15 is the control bit from the AdaptaScan Reader which toggles between 0 and 1 to indicate a ‘new message being sent’...
Page 228
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–7 Configuring the DeviceNet This section describes how to configure the 1771-SDN Scanner Scanner using the DeviceNet Manager software. Before configuring the 1771-SDN Scanner, you must wire the DeviceNet network and apply DeviceNet Address of 3 to the AdaptaScan Bar Code Reader.
Page 229
12–8 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 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. Input Output BXfer 62...
Page 230
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–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.
Page 231
12–10 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 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.
Page 232
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–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.
Page 233
12–12 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 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...
Page 234
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–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.
Page 235
12–14 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 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.
Page 236
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–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.
Page 237
12–16 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 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.
Page 238
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–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.
Page 239
12–18 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 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.
Page 240
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–19 Explicit Message Program Use the Explicit Message Program Control feature to configure Control device parameters on your DeviceNet network via the ladder logic program in the PLC-5 processor that is controlling these devices. You can use Explicit Message Program Control only with devices that are slaves of your 1771-SDN Scanner Module.
Page 241
12–20 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging Explicit Message Program Control Feature Block Transfer Write file (64 words) Explicit Message – A message used to transmit (sent from processor to scanner module) commands, data, requests for data or responses.
Page 242
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–21 Formatting the Explicit Message Transaction Block Ten 32-word transaction blocks within the scanner module are reserved for Explicit Message Program Control. The transaction blocks accommodate both the download of Explicit Message Requests and the upload of Explicit Message Responses.
Page 243
12–22 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging For each upload, the status code provides the processor with status on the device and its response. Status Code Description Ignore transaction block (block empty). Transaction completed successfully Transaction in progress (not ready) Error –...
Page 244
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–23 The following figure describes the format and mapping of transaction blocks for request and response messages in the scanner module. Format of 64-word Block Transfer Write Format of 64-word Block Transfer Read for Explicit Message Request for Explicit Message Response TXID...
Page 245
12–24 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging The scanner module recognizes I/O data and control as higher priorities over explicit messaging on DeviceNet. Message lengths and slave device types impact transaction message completion times. If the processor has queued multiple Explicit Message Transactions to the scanner module for multiple slave devices, the transactions with the slaves may not complete in the order in which the requests were received.
Page 246
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–25 As transactions are removed from the queue and response transaction blocks are returned to the processor, additional transaction blocks can be issued in their place, as long as the total does not exceed ten. The scanner module supports two transaction blocks per upload and download.
Page 247
12–26 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging Explicit Messaging Ladder Logic Program This section provides the explicit message ladder logic program and data monitor results. Enable Rung B3:0 to initiate the download process to the AdaptaScan. File N20:0 contains the APM command.
Page 248
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–27 Notes on using Explicit Messaging You can send messages sequentially from the PLC-5 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.
Page 249
12–28 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging Troubleshooting Your The bicolor (green/red) module status indicator displays device Module status. The LED indicates whether the device has power and is functioning properly. If the Module LED is this indicates Take this action there is no power applied to...
Page 250
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–29 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.
Page 251
12–30 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging Numeric Code Indicates Take this action user has disabled communication port reconfigure your module. Check the disable bit in the Module Command Register. bus-off condition detected on comm port. Check DeviceNet connections and physical module is detecting communication errors.
Page 252
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–31 Downloading Other Host You can download other host commands using the same procedures Commands described in the match code example. The following tables provide the commands and responses for the other host commands (all values are hexadecimal).
Page 253
12–32 Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging Reset Match Counters Command Reset Match Counters Response Packet Contents Data Sent Packet Contents Response Response Codes DeviceNet Address Set Attribute Request Set Attribute Response Class Instance Number (LSB) Instance Number (MSB) Attribute Number- Reset Counters...
Page 254
Communicating with a PLC-5 Processor on a DeviceNet Network using Explicit Messaging 12–33 Set Output Timer Command Set Output Timer Response Packet Contents Data Sent Packet Contents Response DeviceNet Address DeviceNet Address Set Attribute Request Set Attribute Response Class Instance Number (LSB) Instance Number (MSB) Attribute Number - Max Time Data (LSB)
Page 255
PLC-5 processor to the 2760-RB module. 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 2755-NC43 or -NC48 Configuration Cable...
Page 256
13–2 Communicating with a 2760-RB Module over an RS-232 Link Related Publications Publications you might want to refer to include: Publication Description 2755-837 AdaptaScan Bar Code Readers User Manual 2755-838 AdaptaScan Software User Manual 2760-ND001 2760-RB Interface Module User Manual 2760-ND003 2760-SFC1 Protocol Cartridge User Manual 2760-822...
Page 257
Communicating with a 2760-RB Module over an RS-232 Link 13–3 Classic PLC-5 Processor DIP Switches Switch Lever # Switch # witch SW-1 SW-2 SW-3 Not Applicable Enhanced PLC-5 Processor DIP Switches Switch Lever # Switch # witch SW-1 SW-2 I/O Chassis Backplane DIP Switches Switch Lever # 2760-RB Module DIP Switches Switch Lever #...
Page 258
13–4 Communicating with a 2760-RB Module over an RS-232 Link The 2760-RB module is placed in the 1771 chassis in slot 0 next to the PLC. For this application, the AdaptaScan Reader communicates through port 1 on the 2760-RB. A 1771-ASB module can also be used to communicate with the 2760-RB module over the chassis backplane to Remote I/O.
Page 259
Communicating with a 2760-RB Module over an RS-232 Link 13–5 Cabling Cable 1 must be constructed to connect a configuration terminal to the 2760-RB Module Configuration port. Cable 2 must be constructed to connect the RS232/422 port of the bar code reader wiring base to Port 1 on the 2760-RB module. Refer to following cabling diagrams.
Page 260
13–6 Communicating with a 2760-RB Module over an RS-232 Link Configuring the PLC-5 A sample PLC program appropriate for using a PLC 5/15/25 with a Processor 2760-RB module appears below. I:000 N7:0 N7:5 +–––––––––––––––––––––––+ +–––] [–––––]/[––––––]/[––––––––+Block Transfer Read +––O––+ |Rack |Group |Module |Control Block...
Page 261
Communicating with a 2760-RB Module over an RS-232 Link 13–7 Using the 2760-RB Module, Revision H or Above, with the New Generation PLC-5 Processor When the 2760-RB, revision H or above, is used with the new generation PLC-5 processors in a local chassis, there is a possibility that the PLC will not see the BRR bit from the 2760-RB.
Page 262
C. Send the break sequence to call up the 2760-RB module configuration menu. 4. Select menu item 3: Device port protocol names. Set to: PORT1=COPYRIGHT 1989 ALLEN-BRADLEY COMPANY INC. 2760-SFC2 DT SERIES A REVISION A (YES/NO)=YES 5. Select menu item 21: Identification numbers. Select: DUMB TERM.
Page 263
Communicating with a 2760-RB Module over an RS-232 Link 13–9 6. Select option 11: Configuration parameters. Set to: MODEM CONTROL (ENABLE/DISABLE)=DISABLE 9600 BITS PER SECOND (YES/NO)=YES 8 BITS NO PARITY (YES/NO)=YES XON/XOFF (ENABLE/DISABLE)=DISABLE RS232 (YES/NO)=YES RECEIVE MATRIXING (ENABLE/DISABLE)=ENABLE BYTE SWAPPING (ENABLE/DISABLE)=DISABLE BINARY DATA NO CONVERSIONS (YES/NO)=YES HDR/TLR ON OUTPUT (ENABLE/DISABLE)=ENABLE HEADER BYTE LENGTH (DEC 0...4)= 0...
Page 264
13–10 Communicating with a 2760-RB Module over an RS-232 Link Configuring the Reader This section shows how to configure the AdaptaScan Bar Code Reader using the AdaptaScan Software (Catalog No. 2755-ASN). The procedures in this section show how to: configure a DeviceNet address configure a bar code label and symbol configure the scanner configure the decoder trigger...
Page 265
Communicating with a 2760-RB Module over an RS-232 Link 13–11 3. Choose Edit from the Project menu to rename the project RB_RS232. 4. Click Save to save the project under the new name and then Close to return to the Project dialog. Define the Bar Code Label 1.
Page 266
13–12 Communicating with a 2760-RB Module over an RS-232 Link Define the DeviceNet Address 1. Click the Device button on the Project dialog. 2. Set the DeviceNet address. 3. Connect the 2755-NC43 or -NC48 Configuration Cable to the reader. 4. Click the Apply button. 5.
Page 267
Communicating with a 2760-RB Module over an RS-232 Link 13–13 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.
Page 268
13–14 Communicating with a 2760-RB Module over an RS-232 Link Configure the Serial Port 1. Click the Serial Port button on the main Project dialog. 2. Verify that Terminal is selected in the Protocol list box. Also verify that the settings match the Channel 0 User settings. 3.
Page 269
Communicating with a 2760-RB Module over an RS-232 Link 13–15 Create a Message The Message dialogs define the format and content of message data sent to the RB module by the reader when bar codes are decoded. 1. Click the Message button from the main Project dialog. 2.
Page 270
13–16 Communicating with a 2760-RB Module over an RS-232 Link 10. Under Replacement Strings, type no read in the Fail: field. Bar code data is sent to the controller on a valid read. The Fail string sends the characters “no read” when a no read occurs. 11.
Page 271
PLC-5 program which is needed to establish communication from the PLC-5 processor to the 2760-RB module. Hardware Requirements The hardware items required for this application are: 2755-SN3, -SN5 or -SN8 AdaptaScan Bar Code Reader (v7.1 firmware or later) 2755-NB40 or -NB41 Wiring Base 2755-PW46 or -PW47 Power Supply...
Page 272
14–2 Communicating with a 2760-RB Module on a DH-485 Network PLC-5 Compatibility Refer to the following table for hardware compatibility in this application example. with the following PLC-5 type Use the following 2760-RB th following New Generation PLC-5 Interface Module type PLC-5, -15, -25, etc.
Page 273
Communicating with a 2760-RB Module on a DH-485 Network 14–3 Enhanced PLC-5 Processor DIP Switches Switch Lever # Switch # witch SW-1 SW-2 I/O Chassis Backplane DIP Switches Switch Lever # 2760-RB Module DIP Switches Switch Lever # Switch # witch SW-1 SW-2...
Page 274
14–4 Communicating with a 2760-RB Module on a DH-485 Network Cabling Cable 1 must be constructed to connect a configuration terminal to the 2760-RB Module Configuration port. Cable 2 must be constructed to connect the RS485 port of the bar code reader wiring base to Port 1 on the 2760-RB module.
Page 275
Communicating with a 2760-RB Module on a DH-485 Network 14–5 Configuring the PLC-5 A sample PLC program appropriate for using a PLC 5/15/25 with a Processor 2760-RB module appears below. I:000 N7:0 N7:5 +–––––––––––––––––––––––+ +–––] [–––––]/[––––––]/[––––––––+Block Transfer Read +––O––+ |Rack |Group |Module |Control Block...
Page 276
14–6 Communicating with a 2760-RB Module on a DH-485 Network Using the 2760-RB Module, Revision H or Above, with the New Generation PLC-5 Processor When the 2760-RB, revision H or above, is used with the new generation PLC-5 processors in a local chassis, there is a possibility that the PLC will not see the BRR bit from the 2760-RB.
Page 277
F. Send the break sequence to call up the 2760-RB module configuration menu. 4. Select menu item 3: Device port protocol names. Set to: PORT1=COPYRIGHT 1989 ALLEN-BRADLEY COMPANY INC. 2760-SFC2 LAN SERIES A REVISION B (YES/NO)=YES 5. Select menu item 21: Identification numbers. Select:...
Page 278
14–8 Communicating with a 2760-RB Module on a DH-485 Network Configuring the Bar Code This section shows how to configure the AdaptaScan Bar Code Reader Reader (with v7.1 firmware or later) 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...
Page 279
Communicating with a 2760-RB Module on a DH-485 Network 14–9 3. Choose Edit from the Project menu to rename the project RB_DH485. 4. Click Save to save the project under the new name and then Close to return to the Project dialog. Define the Bar Code Label 1.
Page 280
14–10 Communicating with a 2760-RB Module on a DH-485 Network Define the DeviceNet Address 1. Click the Device button on the Project dialog. 2. Set the DeviceNet address to 1. Note: The DeviceNet address is not always the same as the DH-485 node address.
Page 281
Communicating with a 2760-RB Module on a DH-485 Network 14–11 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.
Page 282
14–12 Communicating with a 2760-RB Module on a DH-485 Network Configure the Decoder Trigger This application uses a Timer to trigger the reader’s decoder. The Timer is typically used during application setup. Refer to Publication No. 2755-837 for other input sources that trigger the decoder. 1.
Page 283
Communicating with a 2760-RB Module on a DH-485 Network 14–13 3. Click the Edit button under Protocol to edit the DH-485 parameters. Edit the parameters as follows: Select Slave under Master/Slave From the Node list box, select 1 This is the node address of the reader on the network. 4.
Page 284
14–14 Communicating with a 2760-RB Module on a DH-485 Network Create a Message Data sent from the AdaptaScan Reader to the RB module uses messages. 1. Click the Message button from the main Project dialog. 2. Under Triggered By, check the Enable check box. 3.
Page 285
Communicating with a 2760-RB Module on a DH-485 Network 14–15 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 RB module on a valid read. The Fail string sends “no read”...
Page 286
PLC-5 program which is needed to establish communication from the PLC-5 processor to the 2760-RB module. Hardware Requirements The hardware items required for this application are: 2755-SN3, -SN5 or -SN8 AdaptaScan Bar Code Reader (v7.1 firmware or later) 2755-NB40 or -NB41 Wiring Base 2755-PW46 or -PW47 Power Supply...
Page 287
15–2 Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module In addition, you may want to refer to the PLC-5 Hardware and Software User Manuals. PLC-5 Compatibility Refer to the following table for hardware compatibility in this application example.
Page 288
Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module 15–3 Enhanced PLC-5 Processor DIP Switches Switch Lever # Switch # witch SW-1 SW-2 I/O Chassis Backplane DIP Switches Switch Lever # 2760-RB Module DIP Switches Switch Lever # Switch # witch SW-1...
Page 289
15–4 Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module Cabling Cable 1 must be constructed to connect a configuration terminal to the 2760-RB Module Configuration port. Cable 2 must be constructed to connect the RS485 port of the bar code reader wiring base to Port 1 on the 2760-RB module.
Page 290
Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module 15–5 Configuring the PLC-5 A sample PLC program appropriate for using a PLC 5/15/25 with a Processor 2760-RB module appears below. I:000 N7:0 N7:5 +–––––––––––––––––––––––+ +–––] [–––––]/[––––––]/[––––––––+Block Transfer Read +––O––+ |Rack |Group...
Page 291
15–6 Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module Using the 2760-RB Module, Revision H or Above, with the New Generation PLC-5 Processor When the 2760-RB, revision H or above, is used with the new generation PLC-5 processors in a local chassis, there is a possibility that the PLC will not see the BRR bit from the 2760-RB.
Page 292
I. Send the break sequence to call up the 2760-RB module configuration menu. 4. Select menu item 3: Device port protocol names. Set to: PORT1=COPYRIGHT 1989 ALLEN-BRADLEY COMPANY INC. 2760-SFC2 LAN SERIES A REVISION B (YES/NO)=YES 5. Select menu item 21: Identification numbers. Select:...
Page 293
15–8 Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module Configuring the Bar Code This section shows how to configure the AdaptaScan Bar Code Reader Reader (with v7.1 firmware or later) 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...
Page 294
Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module 15–9 3. Choose Edit from the Project menu to rename the project Downloading Match Code. 4. Click Save to save the project under the new name and then Close to return to the Project dialog.
Page 295
15–10 Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module Define the DeviceNet Address 1. Click the Device button on the Project dialog. 2. Set the DeviceNet address to 63. Note: The DeviceNet address is not always the same as the DH-485 node address.
Page 296
Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module 15–11 Configure the Decoder Trigger This application uses a Timer to trigger the reader’s decoder. The Timer is typically used during application setup. Refer to the AdaptaScan Bar Code Readers User Manual (Publication No. 2755-837) for other input sources that trigger the decoder.
Page 297
15–12 Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module Configure the Serial Port 1. Click the Serial Port button from the Project dialog. 2. Configure the serial port as follows: Check (enable) the Scanner Protocol check box From the Protocol list box, select DH-485 From the Baud Rate list box, select 19,200 From the Connection list box, select RS485...
Page 298
Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module 15–13 Configure for Match Codes 1. Click the Match Table button to open the Match Table dialog. 2. Click the New button to open the Match Function dialog and create a Match Function.
Page 299
15–14 Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module 7. Click the Outputs button to specify which output activates when a match occurs. 8. Under Available Outputs, select Discrete Input/Output 1. 9. Click the Add>> button to add this selection to the Output To: area.
Page 300
Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module 15–15 Configure for an Output 1. Click the Output To button to specify which output activates when a No-Read or No-Match occurs. 2. Under available Outputs, select Discrete Input/Output 2. 3.
Page 301
15–16 Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module Downloading Match Codes To download match codes from the RB module you must: 1. Use PLC command files to send the match codes. 2. Convert the match string to hex. 3.
Page 302
Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module 15–17 Place the String in the Data Packet The bar code string is sent in a data packet having this format: 3F 10 CE 01 00 03 04 00 30 33 30 30 Instance # of Characters Bar Code String...
Page 303
15–18 Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module You can verify whether or not a correct match code was downloaded by placing a bar code label in front of the reader so that it is scanned. Observe the Output #1 LED on the top of the reader.
Page 304
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)
Page 305
16–2 Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol Connecting to the The following illustration shows the nodes of the DeviceNet DeviceNet Network peer-to-peer network. Peer-to-Peer communications allows a single reader to gather data from the other readers over a DeviceNet network.
Page 306
Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol 16–3 Reader 1 Reader 2 Reader 3 Other DeviceNet Devices Ground V- at One Place 24V+ 24V+ 24V+ Ground Screw Ground Screw Ground Screw on Wiring Base on Wiring Base on Wiring Base Ground Screw on Wiring Base...
Page 307
16–4 Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol Configuring Bar Code This section shows how to configure one the AdaptaScan Bar Code Reader 1 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...
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.
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.
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.
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.
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.
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.
Page 314
Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol 16–11 Configuring Bar Code This section shows how to configure Bar Code Reader 2 on the Reader 2 DeviceNet network. Select Bar Code Reader 2 in the Project From the Project dialog, select Bar Code Reader 2. Define the DeviceNet Address 1.
Page 315
16–12 Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol 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.
Page 316
Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol 16–13 Create a Message This section defines the content of messages sent by Bar Code Reader 2 to the host device. 1. Click the Message button from the main Project dialog. 2.
Page 317
16–14 Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol 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”...
Page 318
Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol 16–15 Configuring Bar Code This section shows how to configure Bar Code Reader 3 on the Reader 3 DeviceNet network. Selecting Bar Code Reader 3 in the Project From the Project dialog, select Bar Code Reader 3. Define the DeviceNet Address 1.
Page 319
16–16 Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol 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.
Page 320
Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol 16–17 Create a Message This section defines the content of messages sent by Bar Code Reader 3 to the host device. 1. Click the Message button from the main Project dialog. 2.
Page 321
16–18 Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol 9. Click the Edit button to open the Message Field Edit dialog. 10. Under Replacement Strings, type no read in the Fail: text box. Bar code data is sent to the host on a valid read. The Fail string sends “no read”...
Page 322
Communicating with AdaptaScan Bar Code Readers via DeviceNet Peer-to-Peer Protocol 16–19 Sending the From the main Project dialog, click the Send All button to download Configurations to the the configurations to Bar Code Reader 1, Bar Code Reader 2, and Readers Bar Code Reader 3.
Page 323
PanelBuilder Software User Manual (Publication No. 2711-6.0). 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)
Page 324
17–2 Communicating with PanelView 900t Terminals on a DeviceNet Network Related Publications Related publications include: Publication Description 2755-837 AdaptaScan Bar Code Readers User Manual 2755-838 AdaptaScan Software User Manual 1787-6.5.3 DeviceNet Manager Software Manual 1747-6.5.2 1747-SDN DeviceNet Scanner Configuration Manual 2711-6.0 PanelBuilder Software User Manual 2711-6.1...
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–3 Typical DeviceNet Network Shown below is a typical DeviceNet network with PanelView terminals installed on two of the network drops. PLC-5 Controller SLC 5/04 DeviceNet DeviceNet Scanner Module Scanner Module (Catalog No.
17–4 Communicating with PanelView 900t Terminals on a DeviceNet Network Making DeviceNet Use DeviceNet cable to connect a DeviceNet version of a PanelView Connections terminal to a DeviceNet Network. Cable Catalog No. DeviceNet Cable, 164 ft (50m) 1485C-P1A50 DeviceNet Cable, 328 ft (100m) 1485C-P1A150 DeviceNet Cable, 492 ft (150m) 1485C-P1A300...
Page 327
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–5 Making Serial Port Use the RS-232 serial port on the DeviceNet terminal to: Connections download/upload applications over a serial link or to connect a printer Computer PanelView 900 Terminal Catalog Number 2711-K9A10,-T9A10, K9C10, -T9C10 COMM 1 or 2 RS-232 Printer/ File Transfer Port...
Page 328
17–6 Communicating with PanelView 900t Terminals on a DeviceNet Network Modifying DeviceNet You can display or modify DeviceNet settings directly from the Settings from the Terminal terminal. From the Configuration Mode menu of the terminal, select Serial Communication Setup. The screen below appears. ATTENTION: Settings downloaded with a DeviceNet application have priority over terminal settings.
Page 329
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–7 Bus-off Interrupt [F4] Specify what occurs when a CAN bus-off interrupt occurs on the DeviceNet network. The PanelView is not allowed network access when Hold in Reset is selected and a bus-off interrupt occurs. Hold in Reset holds the PanelView and waits for communications to be reset or a reset of the terminal.
Page 330
17–8 Communicating with PanelView 900t Terminals on a DeviceNet Network Setting up Setting up DeviceNet communications for an application includes: Communications using selecting a DeviceNet terminal when creating the application. PanelBuilder configuring communication parameters for the terminal on the DeviceNet link. Selecting a DeviceNet PanelView Terminal Select a DeviceNet terminal for a PanelView application from: New Application dialog when creating a new application or...
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–9 Configuring DeviceNet Communications DeviceNet communication parameters are accessed from the Terminal Setup dialog. To open the Terminal Setup dialog, choose Terminal Setup from the PanelBuilder Application menu. 7. Click the Comms. Setup button from the Terminal Setup dialog. 8.
Page 332
17–10 Communicating with PanelView 900t Terminals on a DeviceNet Network 10. Edit the following parameters. Specify Provide a delay between scans of the Explicit-Client tags. Enter a value of 0 to 65535 milliseconds. The default is 500 msec. This time delay is inserted between each full scan of the Interscan Delay Explicit-Client tags in the current screen context.
Page 333
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–11 PanelView Message Types All PanelBuilder screen control or display objects are assigned a tag when an application is developed. The tag specifies an address, data type, initial value, etc. for the data assigned to the control or display object.
Page 334
17–12 Communicating with PanelView 900t Terminals on a DeviceNet Network Client Explicit Messaging The PanelView can also communicate using explicit messaging, where the PanelView initiates the connections (Client). Connections to other devices are created (using tag editor addressing) and use explicit messages to read and write values to other DeviceNet nodes.
Page 335
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–13 The following diagram illustrates differences between message types: I/O Slave Tags Input Tag Assembly Instance 1 Input Tag Master Device Output Tag (Scanner) Assembly Output Tag Instance 2 Output Tag PanelView Explicit-Server Message Tags Input Tag...
17–14 Communicating with PanelView 900t Terminals on a DeviceNet Network PanelView Tag Editor Use the form view of the tag editor toEF enter DeviceNet tags. Do not use the table view since it does not show all of the DeviceNet fields.
Page 337
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–15 Field Description Valid Characters Notes Swap Bytes Only displayed when Check Box when selected high and low data bytes swap positions. Select swap bytes when data is sent in Character Array data type is the wrong order (high byte first).
Page 338
17–16 Communicating with PanelView 900t Terminals on a DeviceNet Network Field Description Valid Characters Notes Array Size The size of the array character arrays are 1-128 the array size must be an integer. characters do not use blanks, tabs, carriage returns, bit arrays are 1-16 bits non-printable characters Description...
Page 339
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–17 Using the Electronic Data The Electronic Data Sheet (EDS) contains operating parameters for Sheet the PanelView terminals communicating with other DeviceNet devices on an Explicit messaging level (no scanner). The EDS parameters can automatically be uploaded to the PanelBuilder tag editor.
17–18 Communicating with PanelView 900t Terminals on a DeviceNet Network Downloading Applications To download a DeviceNet application from your computer to the over a Serial Link PanelView 900 terminal over an RS-232 link: connect computer to RS-232 port of PanelView terminal download application from the PanelBuilder Application menu Use PanelBuilder’s internal DF1 driver or the DF1 INTERCHANGE driver for the download.
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–19 DeviceNet Application The application printout for DeviceNet provides the following Report information: configuration data tag data supplemental data Error Messages and The following tables lists error messages and codes specific to Codes DeviceNet communications.
(i.e. Node Address, Baud Rate, etc.) PanelBuilder Translation Error Messages Message Recommended Action Too many peer accesses. Only 128 Explicit-Client message channels are Reduce the number of Explicit-Client Tags in your application. allowed per application. Translation Failure Contact Allen-Bradley for technical support. Publication 2755-6.8...
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–21 Electronic Data Sheet (EDS) File Error Messages Message Recommended Action The DeviceNet Data Type (#) is unsupported by PanelView. Use of this There is no corresponding PV Data Type for the DeviceNet parameter may produce unexpected results.
17–22 Communicating with PanelView 900t Terminals on a DeviceNet Network Communication Status Error Messages These errors appear as a banner at the top of an application screen (error #634 in upper left corner) or as Mod/Net LED status display on the terminal configuration screen. Errors numbered less than 10 are considered minor fault conditions and will clear automatically when corrected.
Unsupported DeviceNet Message type received. A message This should not occur in normal operation. Clear the message was received by the Network Access Object that is not and if the problem reoccurs, consult Allen-Bradley. supported. Initial Writes Failure. The Motherboard failed to send all input Clear the message and if the problem reoccurs, consult data to the daughter card prior to network startup.
Error #635 in the upper left corner. The terminal must be reset to clear the condition. If the problem persists, Allen-Bradley should be contacted and the two digit code number associated with the error noted.
Page 347
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–25 AdaptaScan Application This application provides an example of using explicit-client messages to monitor decoded bar code data and change attributes of an AdaptaScan Bar Code Reader. The AdaptaScan is connected directly to the PanelView.
Page 348
17–26 Communicating with PanelView 900t Terminals on a DeviceNet Network PanelView Screen The following shows how the PanelView screen appears in PanelBuilder (Catalog No. 2711-ND3). You will need to create this screen for your application. In this application, the PanelView terminal: displays decoded bar code data from the AdaptaScan Reader displays the package count of the AdaptaScan Reader resets the package count...
Page 349
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–27 Read Bar Code Data Tag Configuration The dialog box for the bar code display object is shown below. The display is configured as an string with an embedded variable ASCII (bar code data).
Page 350
17–28 Communicating with PanelView 900t Terminals on a DeviceNet Network Read Package Counter Tag Configuration AdaptaScan can keep a count of how many times it was triggered or asked to read a bar code. The dialog box for the package count numeric display object is shown below.
Page 351
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–29 Write Package Count Reset The PanelView uses an explicit-client message to reset the AdaptaScan package count. The reset message is sent by a push button object in PanelView. The dialog box for the package count reset push button is shown below.
Page 352
17–30 Communicating with PanelView 900t Terminals on a DeviceNet Network AdaptaScan Configuration The AdaptaScan Reader must be configured to make data available for the PanelView terminal. You must configure the AdaptaScan Reader for the bar code symbology being read, the number of bar codes, scan pattern and triggering as you would for any other application.
Page 353
Communicating with PanelView 900t Terminals on a DeviceNet Network 17–31 Making Package Counter Data Available Package counter data must be made available to the PanelView terminal by setting up an unconditional match in the AdaptaScan Bar Code Reader. The figure below shows the two dialog boxes that need to be modified.
Page 354
Rockwell Automation Asia Pacific Headquarters, 27/F Citicorp Centre, 18 Whitfield Road, Causeway Bay, Hong Kong, Tel: (852) 2887 4788, Fax: (852) 2508 1846 World Wide Web: http://www.ab.com Publication 2755-6.8 40062-359-01 (B) Supersedes Publication 2755-6.8 – September 1996 Copyright 1997 Allen-Bradley Company, Inc. Printed in USA Publication 2755-6.8 Supersedes Publication 2755-2.58 – January 1996...
Need help?
Do you have a question about the 2755-SN3 and is the answer not in the manual?
Questions and answers