The text of a manual · part 18 of 21
Hand-Held Decoded Bar Code Scanners (Cat. No. 2755-HDG-4) Bar Code Programming Guide: D - PLC-5 Controller Application
Pages 122 to 128 of 146, from Hand-Held Decoded Bar Code Scanners (Cat. No. 2755-HDG-4) Bar Code Programming Guide
The original document is the PDF (615 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 122
Appendix
D
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.5
Page 123
D–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).
Power Supply
Scanner Cable
Scanner
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.5
Page 124
PLC-5 Controller Application
D–3
Configuration Codes for PLC Application 1. After making the necessary connections, scan the following following bar code symbols to setup the scanner for use with the scanner emulation cable.
Scan this Symbol First then
Set Scanner for Synapse Cable Operation
Enable Synapse Cable Communication
2. Set the bar code suffix to CR LF (ASCII equivalent 7013) by scanning the following labels.
Suffix
7
1
0
3 Publication 2755-6.5
Page 125
D–4
PLC-5 Controller Application
3. Send the data then the suffix by scanning this label.
Send Data then Suffix
4. Set the RS-232 Synapse cable to defaults by scanning this label.
Set RS-232 Synapse Cable Defaults
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.5
Page 126
PLC-5 Controller Application
D–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.5
Page 127
D–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.5
Page 128
PLC-5 Controller Application
D–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.5