The text of a manual · part 10 of 12
Bar Code Reader BCL 80 with Integrated Decoder, Connector Unit MA 10, Technical Description, pages 60 to 69
Pages 60 to 69 of 85
The original document is the PDF (1.2 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 Leuze MA 10
Page 60
Leuze electronic
Configuration 9.1.6 ’Online’ Commands for BCL 80 with Oscillating Mirror
Attention! The ’PT’ command lets you change the parameter set in a way that may render it useless. Make sure that you only use parameter numbers and ranges that have been described here. Transmit parameters Command Description
’PT’ This command permits the programming of arbitrary reading areas. They can be selected during operation. The scan area can be adapted to any application. Parameter PT000xxxyy x and y are variables that are to be replaced with the actual input. ’xxx’ defines the parameter number (384, 386, 387, 388, 389) ’yy’ defines the range for the parameter (in hexadecimal) 384 = mode of mirror oscillation (00h … 02h) 00 (mode 0) when activated the oscillating mirror moves from start to stop position 01 (mode 1) when activated the oscillating mirror moves from start to stop position and back 02 (mode 2) when activated the oscillating mirror moves permanently between start and stop position 386 = time interval for forward movement (02h … 5Fh) selectable in 50 ms steps, e.g. 03 corresponds to a forward movement time of 150 ms. 02 is the smallest value = high osc. frequency (5 Hz) 5F is the highest value = low osc. frequency (0.1 Hz) 387 = time interval for reverse movement (02h … 5Fh), as 386. 388 = start position of the oscillation movement(00h … 5Fh) 00 corresponds to +15° (see Chapter 4.3.3 "Reading Fields") 389 = stop position of the oscillation movement (00h … 5Fh) 5F corresponds to -20° (see Chapter 4.3.3 "Reading Fields") Acknowledgement no Example Input = 'PT00038402' (sets mirror into mode 2) Input = 'PT0003860A' (forward movement time 0Ah = 10 x 50 ms) Input = 'PT00038704' (reverse movement time 04h = 4 x 50 ms) Input = 'PT00038804' (start position 04h) Input = 'PT00038953' (stop position 53h)
Note! To change the default values, you may transmit one or more parameters in a string online to the scanner. A subsequent soft reset (’H’ command) activates the new settings.
58
Technical Description BCL 80
Leuze electronic
Page 61
Leuze electronic
Configuration
Read parameters ’PR’ The command shows the actual content of the given parameter number (see ’PT’ command). Parameter PR00xxxyyy x and y are variables that are to be replaced with the actual input. ’xxx’ defines the number of the parameter to be read (384, 386, 387, 388, 389; see ’PT’ command) ’yyy’ defines the number of bytes to be displayed; this should always be 001, such that only the desired value is displayed Acknowledgement ’xx’ = current value from the parameter’s range of values (e.g. 03h) Example Input = ’PR00387001’ returns the value for the current setting of the reverse movement time (e.g. ’0A’)
TNT 35/7-24V
Command Description
Leuze electronic
Technical Description BCL 80
59
Page 62
Leuze electronic
Configuration 9.2
Setup Program
9.2.1 Overview of the Parameter Structure The setup program is menu driven and largely self-explanatory. Figure 9.1 displays an overview of the menu structure.
Command ’e’ (run setup)
⇒
Level 1
Level 2
Setup
Language
1: Language 2: Decode Setup
1: English 2: German
Level 3
Decode Setup
Decode
1: Decoding 2: Host Interface 3: Digital IN/OUT 4: General 5: Additional Functions
1: Select Codetype 2: Code Configuration 3: Activation 4: Deactivation 5: Output Format Host Interface 1: General Settings 2: Framing Protocol 3: 3964 / RK512 Digital IN/OUT 1: Sensor Decode (S1) 2: Sensor Teach-In (S2) 3: Switch 1 4: Switch 2
General Settings 1: Decoder Address [00H] 2: Startcode Character [‘S‘] 3: Error Character [‘&‘] 4: Warning Character [‘@‘]
⇐
Additional Functions 1: Reference Code 2: AutoControl
Command ’x’ (exit setup)
Figure 9.1:
60
Overview of the parameter structure
Technical Description BCL 80
Leuze electronic
Page 63
Leuze electronic
Configuration
Note! The text of the setup program can be set to either German or English. The language is set to English in the factory default parameter set which is loaded when the device is commissioned. Only the English version of the setup program is described below. First change the language of the setup program to English as described below.
Conventions • • • •
The desired menu point can be reached with ’Number’ + ’Enter’. ’Esc’ takes you back one level. The ’space key’ moves you to the next menu on the same level. Entries must be confirmed with ’Enter’. Character values are entered as described below: • decimal: xx where xx is the decimal code of the ASCII character • hexadecimal: xxh or xxH where xx is the hexadecimal code of the ASCII character • 'Character' input: ’xx’ where xx is the character itself
A complete ASCII table can be found in the appendix (Chapter 11.1).
Leuze electronic
Technical Description BCL 80
61
TNT 35/7-24V
‘
• Activated options are indicated by a ’ ’ in the menus. • The currently set character value appears in square brackets ’[ ]’. • The default values and factory settings are marked ITALIC or listed in a default table and marked by '[ ]'. These values are valid when the device is shipped or after a 'cold-start' (RESET) to the factory settings. • ’X’ exits the setup program independent of which level you are in. A menu will appear the following options: • Return: returns to the setup program • Quit: exits the setup program without saving any changes made to the parameter set • Save and Quit: saves the new settings in the current parameter set and exits the setup program.
Page 64
Leuze electronic
Configuration Calling the setup program • Call the setup program using the 'Online' command ’E’. The main menu appears: ’Load Parameter Set’ ’’ ’ Setup’ ’-------------------------------------------------’ ’ 1: Language’ ’ 2: Decode Setup’ ’’ ’Input:’
Select language • Enter '1' + 'Enter' to reach the menu 'Language'.
‘
The current language is indicated by a ' '. • Enter '2' + 'Enter' to change the setup language to e.g. 'German'. The setup program returns to the main menu.
Decode Setup • Enter '2' + 'Enter' in the main menu to reach the 'Reader Setup' menu. The 'Reader Setup' menu appears: ’’ ’ Decode Setup’ ’-------------------------------------------------’ ’ 1: Decode’ ’ 2: Host Interface’ ’ 3: Digital IN/OUT’ ’ 4: General’ ’ 5: Additional Functions’ ’’ ’Enter:’ The individual menu points of the 'Decode Setup' are described below.
62
Technical Description BCL 80
Leuze electronic
Page 65
Leuze electronic
Configuration
9.2.2 Setting the Decoding Parameters The following submenus can be selected under the ’Decode’ menu of the Setup program: • • • • •
Select code type Code configuration Type of scanner activation Type of scanner deactivation Data output format
Select code type You can select one or several of the following codes: Code type No. 1 2 6 7 8 9 A B
Code *2/5 Interleaved Code 39 UPC (A, E) EAN Code 128, EAN 12 Pharmacode Add-on for EAN Codabar
Digits 2 … 62 1 … 63 8 or 12 8 or 138 1 … 63 1 … 63 2 or 5 1 … 63
Default [10]
Leuze electronic
Technical Description BCL 80
63
TNT 35/7-24V
‘
• Selected codes are indicated by a ' '. The set number of digits of the code is given in square brackets '[ ]'. • Only labels which have the same code type and number of characters are recognised. • Several numbers of characters and areas can be given. Example: number of characters [10-14] = 10 to 14 characters number of characters [10, 20] = 10 and 20 characters • Always activate only those code types and number of characters that will actually be read. • If you do not exactly know the code type and/or the number of characters, use the 'CC' (code detection) or 'CA' (autoConfig) function (see Chapter 9.1.1 "General 'Online' Commands"). • When using the 'Code 128, EAN 128', the number of read characters can deviate from the set number of characters in certain situations. Use the 'CA' or 'CC' command to avoid mistakes. • A code type can be deselected by setting its number of characters to the value '0'.
Page 66
Leuze electronic
Configuration Code configuration
The following settings can be made for the selected codes in the menu ’Code Configuration’: • The number of labels which are to be read during a read process. • The number of equal scans for a read process, i.e. the number of times a label must be scanned and return the same code for it to be considered correctly read. Parameter Number of labels Equal scans
Valid range of values 1 … 64 1 … 255
Default [1] [2]
Activation You can set continuous read processes in the menu 'Activation' without a hardware sensor: • Start a new read process after an adjustable delay time following the previous read process. • Start a new read process immediately after the previous read process. Parameter Delay Time Continuous
Valid range of values 0 … 30 in 100 ms steps Yes, No
Default [0] [No]
If 'Yes' is set under 'Continuous', the time set under 'Delay Time' will have no influence.
Deactivation In the menu 'Deactivation', you can specify when a read process should be cancelled after failing to read a label: • Cancel after a specified time from the beginning of the read process (Gate Time). • Cancel after a specified number of unsuccessful scans. Parameter Max. Gate Time Scans without Data
Valid range of values 0 … 30 in 100 ms steps 0 … 255
Default [0] [0]
If a value greater than 0 is given for both parameters, the read is cancelled by the first condition which is exceeded.
Output formatting The menu 'Output Format' is more extensive and is therefore discussed later in its own section (see Chapter 9.2.3 "Setting the Output Format Parameters").
64
Technical Description BCL 80
Leuze electronic
Page 67
Leuze electronic
Configuration
9.2.3 Setting the Output Format Parameters In the menu ’Output Format’, the setup program determines how the results of a decoding process are formatted and sent to the host. The basic structure of the data output is shown in Fig. 9.2. Each label in a separate message (String)
All labels in a single message (String) Message 1
Title Header 1
Title Header 1
Title Header 2
Title Header 2
Message 2:
Label 1
Label 1
Header Label 1
Header Label 1
Information Label 1
Information Label 1
Footer Label 1
Footer Label 1
Separator Char. Label 1
Separator Char. Label 1
Message n+1:
Label n
Label n
Header Label n
Header Label n
Information Label n
Information Label n
Footer Label n
Footer Label n
Separator Char. Label n
Separator Char. Label n
TNT 35/7-24V
Message 1:
Fig. 9.2: Structure of the data output
Note! The length of one message is limited to 255 characters! You can select the following submenus in the menu ’Output Format’: • • • • •
Formatter modes Title headers Label headers Label footers Output constants
Leuze electronic
Technical Description BCL 80
65
Page 68
Leuze electronic
Configuration Formatter modes output formatting
In the menu ’Formatter Modes’, you can specify how the output of the decoded bar code data should be formatted: • Select whether the data of all labels should be sent together in a single message or in individual messages. • Select whether the data of each decoded label should be separated by a separator character. • Select whether the data of the decoded label should be output to an even address (i.e. with an even number of bytes). • Select whether the data of the decoded label should have the same length independent of the number of digits. Parameter
Valid range of values
Default
All labels in a single message
Yes, No
[No]
Separate labels with separation character
Yes, No
[No]
Label output on even address
Yes, No
[No]
Equal length of labels
Yes, No
[No]
Note! If all labels are to have the same length, then the length of all labels should agree with the length of the longest label. The unused digits of the smaller labels are then filled with separator characters.
Title Headers Two title header texts can be specified in the menu 'Title Header': • Header 1 • Header 2 Parameter
Valid range of values
Header 1
Nothing Title Header char 1 No. of Valid Labels No. of All Scans of the gate time
Header 2
Nothing Title Header char 1 No. of Valid Labels No. of All Scans of the gate time Other entries on request
66
Technical Description BCL 80
Leuze electronic
Page 69
Leuze electronic
Configuration
Label Headers Three headers can be specified in the menu ’Label Header’: • Label Header 1 • Label Header 2 • Label Header 3
Parameter
Valid range of values
Label Header 1
Nothing Tag Header Char 1 No. of Label Codetype Digits Label Quality
Label Header 2
Nothing Tag Header Char 1 No. of Label Codetype Digits Label Quality
Label Header 3
Nothing Tag Header Char 1 No. of Label Codetype Digits Label Quality
TNT 35/7-24V
Note! The Label Header Text Char 1 can be defined in the menu ’Output Constants’. The scan quality of the label is calculated from the number of valid decodings divided by the number of possible decodings in % (also valid for Label Footnote).
Other entries on request
Label Footer Three footer texts can be specified in the menu 'Label Footer': • Label Footer 1 • Label Footer 2 • Label Footer 3
Leuze electronic
Technical Description BCL 80
67