The text of a manual · part 19 of 21
2-D Hand-Held Bar Code Scanners (Cat. No. 2755-HTG-4) Bar Code Programming Guide: E - PLC-5 Controller Application
Pages 146 to 152 of 165, from 2-D Hand-Held Bar Code Scanners (Cat. No. 2755-HTG-4) Bar Code Programming Guide
The original document is the PDF (683 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 146
Appendix
E
PLC-5 Controller Application This appendix describes how to configure and operate the scanner when connected to a PLC-5 controller.
!
ATTENTION: Do not install the RS-232 Synapse cable with power applied to either the Synapse cable or PLC controller. Failure to follow this caution may result in damage to the scanner, Synapse cable, or PLC.
For additional reference you should refer to the following publications: • PLC-5 User Manual • 6200 Series Programming Software User Manual
Publication 2755-6.7
Page 147
E–2
PLC-5 Controller Application
Hardware Connections The scanner connects to the Channel 0 port of the PLC with an RS-232 Synapse cable (Catalog No. 2755-HFC-SR2-01). The connections are shown in the scanner user manual (Publication 2755-6.2).
Scanner Power Supply
Scanner Cable
RS-232 Synapse Cable (2755-HFC-SR2-01) Note: The power supply should be connected last.
PLC-5
To Channel 0 Port
Scanner Configuration Configure the scanner using the bar codes described in Chapter 1. The PLC controller does not require any specific scanner configuration. However, you will need to configure the cable communication parameters as described on the next page. Publication 2755-6.7
Page 148
PLC-5 Controller Application
E–3
Configuration Codes for PLC Application 1. After making the necessary connections, scan the following following bar code symbol to set the scanner to its default settings.
Set Scanner Defaults
2. Set the RS-232 Synapse cable to defaults by scanning this label.
Set RS-232 Synapse Cable Defaults
3. Set the bar code suffix to CR LF (ASCII equivalent 7013) by scanning the following labels.
Suffix
7
1
0
3
Publication 2755-6.7
Page 149
E–4
PLC-5 Controller Application
4. Send the data then the suffix by scanning these labels.
Scan this Symbol First
Send <Data> <Suffix>
Scan Enter after Scanning Option
5. The cable defaults will work with the PLC-5. Your application may have specific requirements. Chapter 3 lists the settings that can be modified. If you change a communication setting, make sure the PLC controller is configured to accept the change.
Publication 2755-6.7
Page 150
PLC-5 Controller Application
E–5
PLC-5 Setup You will need to configure the Channel 0 port of the PLC-5. Refer to the 6200 Series Programming Software user manual and the following instructions. 1. Set the PLC-5 Channel 0 to User in the Channel 0 Configuration screen.
Publication 2755-6.7
Page 151
E–6
PLC-5 Controller Application
2. Configure Channel 0 in the User Mode Channel 0 Configuration screen.
Note that Termination 1 is set for \0xa or Line Feed [LF], and Termination 2 is set for \0xd or Carriage Return [CR]. These terminators, along with the ARL instruction in the PLC-5, allow you to read one message at a time with [CR] [LF] terminators.
Publication 2755-6.7
Page 152
PLC-5 Controller Application
E–7
PLC Program The sample ladder logic listing below instructs the PLC-5 to: Rung 2:0 – Read one string of ASCII data terminated with a [CR] [LF].
Refer to the PLC-5 user manual for detailed information on using the PLC programming software.
Publication 2755-6.7