Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 1 of 1

Downloading Match Codes from Attended Workstation to Enhanced Decoder Application Note, pages 1 to 8

Pages 1 to 8 of 8

The original document is the PDF (99 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.

For the Allen-Bradley 2755-DS

Page 1

Downloading Match Codes from Attended Workstation to Enhanced Decoder Application Note Overview

This application note describes how to use an Attended Workstation (Catalog No. 2708-DH5) to modify the match code table in a Series B Enhanced Bar Code Decoder (Catalog No. 2755-DS/DD). It describes how to enter match code data without using decoder configuration screens on a computer or terminal with VT100 emulation. Section

Intended Audience

Page

What You Need

1

Intended Audience

1

Typical System Configuration

2

Communication Cables

3

Configuring the Attended Workstation

4

Configuring the Enhanced Decoder

5

Sample Application Program

6

You should understand the operation of the following devices, how they are configured and the application environment.

• Series B Enhanced Decoder (Catalog No. 2755-DS/DD) • Attended Workstation (Catalog No. 2708-DH5) The following publications are available for reference. Publication Number

What You Need

Publication Title

2755-833

Series B Enhanced Decoder User Manual

2708-ND001

Bulletin 2708 Attended Workstation User Manual

2708-NAG

Bulletin 2708 Application Generator Software User Manual

2708-NNM

Bulletin 2708 Network Manager Software User Manual

The system configuration requires the following items:

• • • • • •

Attended Workstation (Catalog No. 2708-DH5) Series B Enhanced Decoder (Catalog No. 2755-DS/DD) DH5 Application Generator Software (Catalog No. 2708-NAG) DH5 Network Manager Software (Catalog No. 2708-NNM) Communication Cables Computer with VT100 emulator or a VT100 compatible terminal

Page 2

Application Note Downloading Match Codes from Attended Workstation to Decoder

Typical System Configuration

The diagram below shows the system configuration for a typical application. The pin connections for the cables are shown on the next page.

Cable #1 Decoder to Workstation Attended Workstation (Catalog No. 2708-DH5)

Cable #2 Terminal to Decoder

DH Application Generator and Network Manager Software

Computer with VT100 Emulator or a VT100 compatible terminal

2

Series B Enhanced Decoder (2755-DS/DD)

Page 3

Application Note Downloading Match Codes from Attended Workstation to Decoder

Communication Cables

You must create two communications cables.

• Cable #1 connects the Com 1 port of the Attended Worskstation to the Host port of the Decoder.

• Cable #2 connects the computer or terminal to the AUX port of the Decoder. Cable #1 Connection Diagram Decoder to Attended Workstation

2 3 9 Pin Female Connector 5

3 2 7

DH5 Com 1 Port

25 Pin Male Connector to Decoder Host Port

Cable #2 Connection Diagram Dumb Terminal to Decoder

2 3 9 Pin Female Connector 5 Computer Serial Port

2 3 7

25 Pin Male Connector to Decoder Aux Port

3

Page 4

Application Note Downloading Match Codes from Attended Workstation to Decoder

Configuring the Attended Workstation

This section describes the configuration that is required on the Attended Workstation to download the BASIC program to the Workstation. A sample BASIC program is provided at the end of this document. Set the following parameters on the Attended Workstation. Attended Workstation Parameter

Setting

Type Terminal

Master

Terminal Number

1

Comm. Port Mode

Polled

CRLF

Disabled

Echo

Disabled

Handshake

Disabled

After downloading the BASIC program, you must change the setting for the following parameter. Comm. Port Mode

4

XON/XOFF

Page 5

Application Note Downloading Match Codes from Attended Workstation to Decoder

Configuring the Enhanced Decoder

The host communication parameters of the Series B Enhanced Decoder (baud rate, parity, stop bits) must match the settings of the Attended Workstation. The host communication parameters are available by selecting option 7 on the Decoder Configuration menu.

5

Page 6

Application Note Downloading Match Codes from Attended Workstation to Decoder

Sample Application Program

This section contains a BASIC program which allows you to download a set of match codes to the enhanced decoder. The match codes are entered at the keyboard. You can modify the program to meet the requirements of a specific application. Below is an example of a downloaded match code. ASCII Message Sent MW 1 1 02 04 4567 Message Write Command Output # Constant

Match String Characters in Match String Symbology Code

For more details, see the User Manual for the Enhanced Decoder.

The BASIC program is created with the DH5 Application Generator Software (Cat. No. 2708-NAG) and downloaded to the Attended Workstation using the DH5 Network Manager Software (Cat. No. 2708-NNM). The following table documents the BASIC program.

6

Program Line

Description

Line 6

Transfers the ASCII characters MW to the variable OWN.

Line 7

Transfers the number 1 to the variable CONSTANT.

Line 8

Fills variable ZEROSMYCODE with 0.

Line 9

Fills variable ZEROCHAR with 0.

Line 10

Prompts operator to enter an output number.

Line 11

Reads keyboard input and moves the input to variable ZEROOUTNUM.

Line 13

Prompts operator to enter a symbology code.

Line 14

Reads keyboard input and moves the input to variable SYMCODE.

Line 15 Line 17

Appends contents of SYMCODE to the contents of the variable ZEROSMYCODE (formatted with a leading zero). Prompts operator to enter the number of characters in the symbol.

Line 18

Reads keyboard input and moves the input to the variable CHAR.

Line 19 Line 21

Appends contents of CHAR to the contents of the variable ZEROCHAR (formatted with a leading zero). Prompts operator to enter the match string.

Line 22

Reads keyboard input and moves the input to the variable MATCH.

Line 23

Appends contents of ZEROUTNUM to the contents of the variable OWN.

Line 24

Appends contents of CONSTANT to the contents of OWN.

Line 25

Appends contents of ZEROSMYCODE to the contents of OWN.

Line 26

Appends contents of ZEROCHAR to the contents of OWN.

Line 27

Appends contents of MATCH to the contents of OWN.

Line 28

Sends contents of the variable OWN to the decoder.

Line 29

Pauses for 1/2 second.

Line 30

Reads host port for confirmation.

Line 31

Clears the screen.

Line 32

Displays status of transmission at variable IN.

Line 33

Pauses for 2 seconds.

Line 37

Returns to beginning of program.

Page 7

Application Note Downloading Match Codes from Attended Workstation to Decoder

Progam Listing <Start of Program> 1 CLEAR SCREEN 2 DISPLAY 6 29 from “ALLEN BRADLEY BAR CODE SYSTEMS 3 DISPLAY 43 35 from “ENHANCED DECODER MATCHCODE DOWNLOAD” 4 READ KBD TO TEMP 0 0 5 CLEAR SCREEN 6 TRANSFER to OWN 1 2 from “MW” 7 TRANSFER to CONSTANT 1 1 from 1 8 TRANSFER to ZEROSMYCODE 1 1 from 0 9 TRANSFER TO ZEROCHAR 1 1 from 0 10 DISPLAY 6 31 from “ENTER OUTPUT NUMBER TO ACTIVATE” 11 READ KBD to ZEROOUTNUM 58 1 Numeric 12 CLEAR SCREEN 13 DISPLAY 11 20 from “ENTER SYMBOLOGY CODE” 14 READ KBD to SYMCODE 59 1 NUMERIC 15 APPEND SYMCODE to ZEROSMYCODE 16 CLEAR SCREEN 17 DISPLAY 3 36 from “ENTER NUMBER OF CHARACTERS IN SYMBOL” 18 READ KBD to CHAR 58 2 Numeric 19 APPEND CHAR to ZEROCHAR 20 CLEAR SCREEN 21 DISPLAY 8 24 from “ENTER STRING TO MATCH...” 22 READ KBD to MATCH 42 32 23 APPEND ZEROOUTNUM to OWN 24 APPEND CONSTANT to OWN 25 APPEND ZEROSMYCODE to OWN 26 APPEND ZEROCHAR to OWN 27 APPEND MATCH to OWN 28 SEND OWN to HOST computer 29 PAUSE .5 30 READ HOST to IN on TIMEOUT 500 GOTO 30 31 CLEAR SCREEN 32 DISPLAY 1 4 from IN 33 PAUSE 2 34 CLEAR SCREEN 35 MOVE 0 to ZEROSYMCODE 36 MOVE 0 to ZEROCHAR 37 GOTTO 1 <End of Program>

HIT A

Use ESC to EXIT, ENTER to EDIT, SPACE for MENU

Note: Line 32 displays a status number to verify correct transmission. A status of “=00” means the decoder recognized the command sent. For more details, see page 15-7 in the Enhanced Decoder’s User Manual.

7

Page 8 read from a scan by OCR; it may hold reading errors

Oh Rockwell Automation Allen-Bradley, a Rockwell Automation Business, has been helping its customers improve productivity and quality for more than 90 years. We design, manufacture and support a broad

Allen-Br. adley range of automation products worldwide. They include logic processors, power and motion control devices, operator interfaces, sensors and a variety of software. Rockwell is one of the world’s leading technology companies.

Worldwide representation.

Argentina * Australia * Austria * Bahrain « Belgium * Brazil * Bulgaria * Canada « Chile * China, PRC * Colombia * Costa Rica * Croatia * Cyprus * Czech Republic * Denmark Ecuador + Egypt * El Salvador « Finland « France * Germany * Greece * Guatemala * Honduras * Hong Kong * Hungary * Iceland « India * Indonesia ¢ Ireland « Israel ¢ Italy Jamaica * Japan * Jordan * Korea * Kuwait * Lebanon + Malaysia * Mexico * Netherlands * New Zealand * Norway « Pakistan * Peru * Philippines * Poland « Portugal Puerto Rico + Qatar * Romania + Russia-ClS * Saudi Arabia * Singapore * Slovakia * Slovenia * South Africa, Republic * Spain * Sweden * Switzerland * Taiwan * Thailand Turkey * United Arab Emirates * United Kingdom * United States « Uruguay * Venezuela * Yugoslavia

Allen-Bradley Headquarters, 1201 South Second Street, Milwaukee, WI 53204 USA, Tel: (1) 414 382-2000 Fax: (1) 414 382-4444

Publication 2755-2.59, March 1995 Copyright 1995 Allen-Bradley Company, Inc. Printed in USA