The text of a manual · part 15 of 19
Hand-Held Cordless Bar Code Scanners (Cat. Nos. 2755-HCG-4 and 2755-HCG-7) Programming Guide: A - Application Examples, pages 128 to 137
Pages 128 to 137 of 176, from Hand-Held Cordless Bar Code Scanners (Cat. Nos. 2755-HCG-4 and 2755-HCG-7) Programming Guide
The original document is the PDF (617 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Allen-Bradley 2755-DS
Page 128
Application Examples
A–11
ENTER A MAIN MENU SELECTION: 21 DUMB TERM. UNSPECIFIED PROTOCOL, 13fh (YES/NO) = YES. EDIT THIS SELECTION (YES/NO) ?
ENTER A MAIN MENU SELECTION: 11 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) = DISABLE. BYTE SWAPPING (ENABLE/DISABLE) = ENABLE. BINARY DATA NO CONVERSIONS (YES/NO) = YES. HDR/TLR ON OUTPUT (ENABLE/DISABLE) = ENABLE. HEADER BYTE LENGTH (DEC 0...4) = 0. HEADER DATA[0] (HEX 0...ff) = 0. HEADER DATA[1] (HEX 0...ff) = 0. HEADER DATA[2] (HEX 0...ff) = 0. HEADER DATA[3] (HEX 0...ff) = 0. TRAILER BYTE LENGTH (DEC 0...4) = 2. TRAILER DATA[0] (HEX 0...ff) = a. TRAILER DATA[1] (HEX 0...ff) = d. TRAILER DATA[2] (HEX 0...ff) = 0. TRAILER DATA[3] (HEX 0...ff) = 0. MAX DATA BYTE LENGTH (DEC 0...124) = 0. MIN DATA BYTE LENGTH (DEC 0...124) = 0. CONTINUE THIS SELECTION (YES/NO) ?
3. Make sure PLC program is written to access Flexible Interface Module data. Publication 2755-6.6
Page 129
A–12
Application Examples
SLC 5/03 and SLC 5/04 Controllers This application example describes how to configure and operate the scanners when using an RS-232 cable connected to the SLC 5/03 (Catalog No. 1747-L532) and SLC 5/04 controllers (Catalog Nos. 1747-L541, 1747-L542, and 1747-L543).
!
ATTENTION: Do not install the RS-232 cable with power applied to either the base/charger unit or SLC 5/03 or SLC 5/04 controllers. Failure to follow this caution may result in damage to the scanner, base/charger unit, or SLC 5/03 or SLC 5/04 controllers.
Refer to the following publications for additional information.
• SLC 500 Modular Hardware Style Installation and Operation Manual (Publication No. 1747-6.2)
• SLC 500 and MicroLogixt 1000 Instruction Set Reference Manual (Publication No. 1747-6.15) • Advanced Programming Software User Manual (Publication No. 9399-APSUM-11.15.95)
Publication 2755-6.6
Page 130
Application Examples
A–13
Hardware Connections for the SLC 5/03 and SLC 5/04 Controllers The base/charger unit connects to one of the communication ports on the SLC 5/03 or SLC 5/04 controllers with an RS-232 cable (Catalog No. 2755-HCC-BR1-06). You need to use a 25–9 pin connector as shown below. Base/Charger Unit
RS-232C Cable Power Supply
To Power Receptacle
25–9 Pin Adapter SLC 5/04
Channel 0
Publication 2755-6.6
Page 131
A–14
Application Examples
Configuration Codes for the SLC 5/03 and SLC 5/04 Controllers After making the necessary connections, scan the bar codes starting below to set up the scanner for use with the SLC 5/03 and SLC 5/04 controllers. 1. Scan the Set Defaults bar code.
Set Defaults
2. Scan the Single Port RS-232 bar code.
Single Port RS-232
Publication 2755-6.6
Page 132
Application Examples
A–15
3. Scan the following bar codes.
Scan Suffix (Value 1)
7
0
1
3
4. Scan the Data Transmission Format bar code.
<Data><Suffix>
Publication 2755-6.6
Page 133
A–16
Application Examples
5. Scan the Parity bar code.
Even
The cable defaults work with the SLC 5/03 and SLC 5/04 controllers. Your application may have specific requirements. If you change a communication setting, make sure the SLC 5/03 and SLC 5/04 controllers are configured to accept the change.
Publication 2755-6.6
Page 134
Application Examples
A–17
SLC 5/03 and SLC 5/04 Controllers Setup You need to configure the SLC 5/03 and SLC 5/04 controllers. Follow the steps starting below or refer to the following publications:
• SLC 500 Modular Hardware Style Installation and Operation Manual (Publication No. 1747-6.2)
• SLC 500 and MicroLogixt 1000 Instruction Set Reference Manual (Publication No. 1747-6.15) • Advanced Programming Software User Manual (Publication No. 9399-APSUM-11.15.95) 1. Set the SLC Channel 0 to User in the Channel 0 Configuration screen
Publication 2755-6.6
Page 135
A–18
Application Examples
2. Configure Channel 0 in the Channel 0 User Mode Configuration screen.
Note that Termination 1 is set for \a or Line Feed [LF], and Termination 2 is set for \d or Carriage Return [CR]. These terminators, along with the ARL instruction in the SLC, allow you to read one message at a time with [CR] [LF] terminators.
Publication 2755-6.6
Page 136
Application Examples
A–19
SLC Program The sample ladder logic listing below instructs the SLC 5/03 and SLC 5/04 controllers to: Rung 2:0 – Read one string of ASCII data terminated with a [CR] [LF].
Publication 2755-6.6
Page 137
A–20
Application Examples
PLC-5 Controllers This application example describes how to configure and operate the scanners when using an RS-232 cable connected to the PLC-5 controllers (Catalog Nos. 1785-L11B, 1785-L20B, 1785-L30B, 1785-L40B, 1785-L60B, and 1785-L80B).
!
ATTENTION: Do not install the RS-232 cable with power applied to either the base/charger unit or PLC-5 controllers. Failure to follow this caution may result in damage to the scanner, base/charger unit, or PLC-5 controllers.
Refer to the following publications for additional information.
• Classic PLC-5 Family Programmable Controllers Hardware Installation Manual (Publication No. 1785-6.6.1)
• PLC-5 Programming Software Instruction Set Reference Manual (Publication No. 6200-6.4.11) • PLC-5 Programming Software Configuration and Maintenance Manual (Publication No. 6200-6.4.6)
Publication 2755-6.6