The text of a manual · part 5 of 42
DS/DD Series B Enhanced Bar Code Decoders User Manual (Bulletin 2755): 3 - Overview of Decoder Operations
Pages 31 to 39 of 361, from DS/DD Series B Enhanced Bar Code Decoders User Manual (Bulletin 2755)
The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Allen-Bradley 2755-DD and Allen-Bradley 2755-DS
Page 31
Overview of Decoder Operations Chapter Objectives
This chapter defines the function of the decoder and gives an overview of decoder operations, including: • function of decoder • supported bar code symbologies • configuration options • stand-alone vs. host operations • types of memory • decoder operating modes
Function of Decoder
The decoder acquires and decodes video information from one or two scanners. The decoder can then: • send the decoded data to a host device (host computer, programmable logic controller), ASCII terminal, or LCD display • compare the decoded data to previously stored data and use the results to operate up to eight discrete outputs (match code operation) The decoder also maintains counters for package count, no-reads, and discrete output operations.
Bar Code Symbologies
The decoder supports the following bar code symbologies: • Code 39 (standard character set) • Pharma–Code (available on DSzP and DDzP catalog numbers only) • UPC-A and UPC-E including optional 2 or 5 digit supplements • EAN-8 and EAN-13 including optional 2 or 5 digit supplements • Code 128 • Codabar • Interleaved 2-of-5
Configuration Options
You can configure or monitor decoder operations using the built-in configuration screens or by sending commands from a host device, such as a PLC controller or computer. Both configuration options allow you to: • select a bar code symbology for decoding operations • define operating parameters for the scanner(s) • set host message format for decoded bar code data Publication 2755-833
Page 32
3–2
Overview of Decoder Operations
• set host communication parameters • define up to 8 primary and 128 extended match codes • specify up to eight discrete outputs and the conditions that will activate each output • set display format for data on LCD display and/or AUX port terminal • define operating parameters for AUX port ASCII terminal when used for manual data entry
Configuration Screens The decoder has built-in menus and screens for configuration and monitoring operations. You access these menus by connecting one of several standard ASCII terminals (or a computer emulating one of those terminals) to the AUX port of the decoder. The process of configuring the decoder at the AUX port is called AUX terminal configuration. The configuration menus support five different languages: English, French, German, Italian, and Spanish.
Host Commands The decoder also supports a set of host commands for configuring the decoder and monitoring operations. Host commands are sent to the decoder from a PLC controller or computer and perform the same functions as the configuration software. The HOST port accepts commands using the RS-232 and RS-422 interfaces and a variety of communication protocols, as well as the RS-485 interface using Allen-Bradley DH485 protocol. Appendix F lists the protocol options for each interface.
Stand-alone Operation
The decoder can operate as a stand-alone device or connected to a host device. As a stand-alone device, the decoder uses output modules to control external devices. The decoder sends discrete output signals to external control equipment based on the results of decoded data. The discrete outputs can be controlled remotely by host commands or manually via the configuration screens. Chapter 7 provides information on how to control the discrete I/O. Appendixes G and H show various examples of input and output module connections.
Publication 2755-833
Page 33
Overview of Decoder Operations
Host Operation
3–3
The decoder can also communicate directly with a host computer or PLC in a control or data collection application. The decoder communicates with and transmits bar code data to a host computer or PLC controller via the HOST port of the decoder.
Programmable Logic Controllers (PLC) The decoder connects to an Allen-Bradley PLC Controller in the following ways (see Figure 3.1): 1. Flexible Interface Module (Catalog No. 2760-RB) which supports a:
– point-to-Point link using the RS-232, RS-422, or DH485 interface to the HOST port – multi-drop link using the DH485 interface of the HOST port and the Flexible Interface Module. Each port of the Module operates as a separate network, supporting up to 31 decoders Use the Catalog No. 2760-SFC2 protocol cartridge with the Flexible Interface Module and configure the decoder for DH485 mode. 2. Catalog No. 1771-DB BASIC Module or 1771-DA ASCII I/O Module connects decoder directly to a PLC. 3. Programmable logic controllers from the Allen-Bradley PLC-5t family of products that support an RS-232 ASCII port.
Publication 2755-833
Page 34
3–4
Overview of Decoder Operations
Figure 3.1 PLC Controller Configurations Point-to-Point Link using Flexible Interface Module RS-232, RS-422, or DH485 (point-to-point) Flexible Interface Module with 2760-SFC1 or -SFC2 Protocol Cartridge
... ..
Point-to-Point Link using PLC-5 family processor with serial ASCII port.
1771-1/OI/O Rack
1771-1/OI/O Rack
PLC Processor
PLC Processor
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
Multi-drop Link using Flexible Interface Module and DH485 Data Link Flexible Interface Module with 2760-SFC2 Protocol Cartridge
... ..
1771-1/OI/O Rack
PLC Processor
2755-CY1 with NEMA Type 4 device or 2760-A485 connectors with NEMA Type 1 device
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
31
2
1
1
2
31
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
1
2
31
SLC 5/03 Controller Multidrop Using DH485 Datalink
PLC with ASCII or BASIC Module to Decoder using RS-232 SLC 5/03 Controller
1746 1/OI/O Rack 2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
2755–DD1A/4A Decoder
31
2
31
Publication 2755-833
Catalog No. 1771-DA ASCII I/O Module PLC 1747-C11 Cable Processor 1747-AIC Link Coupler ModuleModule
2755–DS/DD Decoder
1 7 7 1
1 7 7 1
D A
D B
Catalog No 1771-DB BASIC I/O Module➀ 2755–DS/DD Decoder
➀ Requires BASIC Driver for communications betwee 1771-DB BASIC Module and Bar Code Decoder.
Page 35
Overview of Decoder Operations
3–5
Host Computers The decoder connects directly to other host computers using the RS-232 or RS-422 interface of the host device, or can be multi-dropped (with DH485) through a 1784-KR module.
2755–DD1A/4A Decoder
Types of Memory
The Series B decoder has two types of memory: • operating memory • storage memory. Figure 3.2 shows the relationship of the types of memory, and the text that follows summarizes their contents. Figure 3.2 Memory Areas of Decoder
Decoder Performance or Operation
User Interface AUX Terminal Host Commands
Operating Memory
RECALL/RESTART & STARTUP SAVE (Following loss of memory backup) Storage Memory
DEFAULT
Factory Defaults
Publication 2755-833
Page 36
3–6
Overview of Decoder Operations
Operating Memory The decoder uses configuration parameters as they exist in operating memory to perform all functions. Initially set to factory defaults, these parameters can be changed using the AUX terminal configuration and ASCII or PCCC host commands. With the exception of specific host communication parameters (See Chapter 12), all parameters take effect immediately when changed① You can use the Default command to reset the operating memory to factory defaults. The Save command will copy the contents of operating memory into storage memory. When you issue a Recall, the decoder copies the Saved parameters from storage memory into operating memory. The decoders are designed to retain configuration in operating memory even during short term power interruptions. Refer to Chapter 2 for information about memory backup.
Storage Memory Within the decoder there is permanently stored a copy of the factory default configuration parameters. You cannot modify this copy, but can copy them into the operating memory at any time using the Default command. In addition, the decoder can retain in storage memory a copy of the configuration parameters you have set. You can use the Save command to copy the operating memory into storage memory. The Recall command copies the contents of storage memory back into the operating memory. You will find this capability useful for troubleshooting custom configurations, for making temporary changes on-line, and for use with Autoload and Lot. The Autoload parameter (in either the Primary or Extended Match Code Table) and the Lot parameter (in the Extended Match Code Table) allow the decoder to take scanned symbol data and load it into the match code table. The Restart command will reset these parameters to the originally Saved parameter so that new values can be loaded.
① The parameters that do not change until they are saved and the decoder is restarted, involve host commu would be disruptive to change host communications parameters while data transmission was in process. communications parameters are loaded into operating memory from storage memory during restart.
Publication 2755-833
Page 37
Overview of Decoder Operations
3–7
Storage memory can be thought of as programmable read only memory (PROM). The default parameters are stored as read only (EPROM), while the user changeable portion as retentive EEPROM. for the sake of simplicity and consistency with earlier versions of the DS/DD decoders, we will maintain the conventions that the Save and Recall commands will ask for confirmation to “SAVE CONFIGURATION CHANGES TO EEPROM . . . Y/N?” and “RESTORE CONFIGURATION FROM EEPROM . . . Y/N?”
Memory Contents at Startup Until you have modified and saved your own configuration parameters, the decoder storage memory will contain only the permanent factory default configuration. The first time you start the decoder it will create a copy of those factory defaults in operating memory. Even on decoders without the optional battery, once you have saved them to storage memory you will retain most of your configuration parameters even with an extended loss of power. When you restart the decoder it will read the saved configuration parameters rather than the factory defaults. Parameters and values not retained after extended power loss without a battery include:
• Extended Match Code Table Configuration, which will be lost and reset to factory defaults • Primary Match Code Table counts, which will be lost and reset to zero • Host Replacement Rule Examples (which are the test examples you have entered on the bottom half of the Host Message Replacement Rules screen). These examples will be lost and the example section of the screen will be cleared. Note that the rules themselves will be retained. The long life of the optional battery makes it unlikely that any loss of configuration or data will occur during any conceivable power outage in battery-backed decoders.
Publication 2755-833
Page 38
3–8
Overview of Decoder Operations
Decoder Operating Modes
This section gives a brief overview of the different operating modes of the decoder. You select these operating modes and parameters when configuring the decoder.
Scanning Modes The decoder supports two scanning modes:
• Coordinated Mode Scanner A and Scanner B are coordinated, using the same trigger source and set of configuration parameters. • Independent Mode Scanner A and Scanner B operate independently, each using a separate trigger source and set of configuration parameters.
Decode Modes The decoder has three decode modes:
• Continuous Mode In continuous mode, the decoder attempts to decode every scan. Additional scans are accumulated until the capture count is satisfied. When the symbols per package is satisfied, a valid read occurs. In Continuous Mode there is no concept of a No-Read. Damaged or missing symbols are ignored. This mode is useful during initial setup to determine the optimum location of the scanner relative to the bar code labels. • Continuous/Unique Mode This mode is similar to continuous mode except the decoder compares a valid read to the previous valid read. If the valid reads are identical, the new data is discarded. In continuous/unique mode, the decoder defines a package as a valid read if it is different (unique) from the previous valid read. The Symbols Read counter and the Package counter increment with every valid read. In Continuous/Unique Mode there is no concept of a No-Read. Damaged or missing symbolssignals are ignored. • Triggered Mode In triggered mode, the decoder only attempts to decode data after receiving a trigger. The three trigger sources are: – Host. The trigger source is a command generated by a host computer or programmable controller – Package Detect. The trigger source is a package detector connected to the scanner
Publication 2755-833
Page 39
Overview of Decoder Operations
3–9
– Internal Timer. The trigger source is an internal timer that cycles the trigger on and off at a set time interval Once triggered, the decoder continuously attempts to decode bar codes until one of the following conditions occurs: – Number of symbols (bar codes) per package count is satisfied – -Trigger off command (stop scan character) received from host device (Host Decode mode) – -Package detect signal is no longer present (Package Detect mode) – -No-read timer expires (Internal Timer mode)
Sending Data to Host – Speed vs. Timing In the triggered mode, you can configure the decoder to send information to a host device and/or operate the discrete outputs:
• Immediately After Valid Package (for highest speed) This is a package with valid bar code symbols that meets the symbols (bar codes) per package count. The Immediately After Valid Package response mode sends decoded data to the discrete outputs and host immediately after the decode operation. This response mode is useful in high speed applications where maximum throughput is required. or
• At End of Trigger (for predictable timing) The At End of Trigger response mode sends decoded data to the discrete outputs and host when the: – -Host sends the stop scan character (Host Decode mode) – -Package detect signal expires (Package Detect mode) – -No-read timer expires (Internal Timer mode) This response mode is useful when timing of the discrete outputs or timing of host communications is critical. No-read messages are always sent at the end of the trigger.
Publication 2755-833