The text of a manual · part 15 of 18
Operating Instructions CLX490 Compact OMNI Scanner for Bar Codes, pages 123 to 132
Pages 123 to 132 of 158
The original document is the PDF (3.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 Sick CLX490
Page 123
Operating Instructions
Appendix
Chapter 10
CLX490
1.
Connect the PC to the auxiliary interface on the CLX using a 3-core RS 232 data cable (null modem cable) (AMV/S60: connect the PC to the internal 9-pin "Service" plug). See Chapter 5.5.6 Connecting the PC, Page 5-15.
2.
Click (AutoBaud detect) in the toolbar or choose OPTIONS, AUTOBAUD DETECT. CLV-Setup scans the serial interface by varying the communication parameters and sends a telegram to the CLX repeatedly. As soon as a response is registered from the CLX, CLV-Setup signals the detected communication parameters. Fig. 10-11 shows an example of the results of the AutoBaud detect function. The CONNECTED status is displayed right in the status bar in the bottom of the screen.
3.
Confirm the AUTO DETECT dialog box with OK. CLV-Setup displays the detected CLX type in a separate dialog box and asks you whether you want to upload the current parameter set from the CLX.
4.
Confirm the dialog box with Yes. CLV-Setup uploads the current parameter set from the RAM of the CLX to its database and displays the values on the tabs.
You can edit the current parameter set on the tabs.
Fig. 10-11: CLV-Setup: Result display of the AutoBaud Detect function
– or– 5.
Choose OPTIONS, SERIAL INTERFACE from the menu bar. CLV-Setup displays the current communication parameter settings on the PC in the COM PARAMETERS dialog box.
6.
Make sure that the communication parameters on the PC and CLX are identical (connected COM port, 9,600 bd, 8 data bits, 1 stop bit, no parity)
7.
Confirm the dialog box with OK. CLV-Setup attempts to communicate with the CLX again. If it is successful, it displays the CONNECTED status right in the status bar in the bottom of the screen.
8.
Click in the toolbar. CLV-Setup then uploads the current parameter set from the RAM of the CLX to its database and displays the values on the tabs.
You can edit the current parameter set on the tabs.
8009237/RB47/2007-08-03
© SICK AG · Division Auto Ident · Germany · All rights reserved
10-19
Page 124
Chapter 10
Appendix
Operating Instructions CLX490 Compact OMNI Scanner
10.6.4
User interface
The graphical user interface (GUI) of the CLV-Setup is largely self explanatory. The online CLV-Setup Help function provides a description of how to use the program under HELP TO CLV-SETUP in the help navigation tree. The GUI is shown in Fig. 10-12. The program window of the GUI comprises the following elements: •
Title bar that displays the program name, current configuration file, and its status (e. g. "No File" )
•
Menu bar with pull-down menus
•
Toolbar with buttons for triggering various functions
•
Drop-down list (top right) for selecting the device type
•
Frame for displaying the navigation tree of the tabs (on left-hand side)
•
Frame for displaying the tabs for CLX (Reading Configuration, Device Configuration, etc.) (on right-hand side). The numbers of displayed tabs depends on the selected items in the navigation tree on the left side. The parameters on the tabs are grouped according to their function. Some of these parameters open further dialog boxes
•
Status bar (bottom) with two display fields for the communication between CLV-Setup and the CLX, the PC’s interface parameter display, error display field (system errors), device specification field and status display for the connection to the CLX.
Fig. 10-12: User interface of the CLV-Setup software
10-20
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009237/RB47/2007-08-03
Page 125
Operating Instructions
Appendix
Chapter 10
CLX490
10.6.5
Functions
The "CLV-Setup" program (from version V 4.0) features the following functions to carry out: •
Uploading the default parameter set from the database of CLV-Setup
•
Automatic communication attempt with the CLX when the program is started
•
Automatic software compatibility check in the CLX
•
Uploading and displaying parameter set stored in the CLX
•
Changing the parameter/parameter values on the tabs
•
CLV Assistant for simplified parameterization (not for CLX)
•
Downloading the changes to the parameter set in the CLX
•
Saving the changes to the parameter set as a configuration file "*.scl"
•
Printing the configuration files
•
Exporting the configuration files in RTF format
•
Exporting the command strings contained in the profile bar codes in ASCII format
•
Printing the parameter set in the form of profile bar codes (not for CLX)
•
Online access to the CLX via a Terminal Emulator (select operating mode, start operating functions, log file for communication between the CLX and CLV-Setup, extended Terminal mode, e. g. for displaying CLX messages)
•
AutoBaud Detect for automatic communication setup with the CLX
•
Selecting the COM port of the PC for adapting the data transfer parameters
•
Monitoring the data communication of the CLV host interface
•
Selecting language setting
•
Selecting units of measure
•
Displaying the last 10 configuration files that were processed
•
Saving the device type that was selected last
•
Automatic storage confirmation prompt when changes are made to the configuration file
•
Wizards for individual functions
•
CLX only: Background analysis
•
CLX only: I/O monitoring
•
Setting switches for starting the program (in the "CLVmain.ini" file)
•
Hot keys [F keys] for important functions (using the program without a mouse)
•
Starting program with SCL file as argument
•
Macro player for recording and playing a macro file
•
Context-sensitive help via the [F1] key
10.6.6
8009237/RB47/2007-08-03
Hot keys
[F1]
Start "CLV-Setup Help“ online
[F2]
Open dialog box to execute device functions
[F3]
Upload complete set of parameters from CLX
[F4]
Download complete set of parameters to CLX
[F5]
Open configuration file
[F6]
Save configuration file
[F7]
Load default setting of CLX from CLV-Setup database
[F8]
Start AutoBaud Detect
[F9]
Load operating data from CLX to be displayed and reset
© SICK AG · Division Auto Ident · Germany · All rights reserved
10-21
Page 126
Chapter 10
Appendix
Operating Instructions CLX490 Compact OMNI Scanner
[F10] Open Terminal Emulator 10.6.7
Opening and closing tabs
After starting the user interface, CLV-Setup displays those tabs in the frame on right-hand side whose names are framed in the navigation tree on left-hand side. The first tab covers the other tabs in the sequence but their marks are still visible on the top of the tabs. If you click some buttons on a tab in the fore-ground, several sub dialogs will also be opened as tabs and added to the first tab. In the frame, all tabs on the right will then be shifted more to the right side. To scroll the tabs, use the sliding control elements at the left corner on top of the frame which are displayed by CLV-Setup. You can open and close the tabs in the following way: In the navigation tree: •
Opening: Double-click the desired entry or put the mouse cursor on the entry and select “Show dialog“ in the context menu using the right mouse button. To display several entries under a branch, click the corresponding “+“ symbol. To hide displayed sub entries, click the corresponding “–“ symbol.
•
Closing: Put the mouse cursor on the desired entry and select “Hide dialog“ in the context menu using the right mouse button.
In the frame for displaying tabs: •
Opening: Click on the desired mark on the top of the tab. If neccessary, scroll the tabs.
•
Closing: To close the tab in the fore-ground, click on the red cross at the left corner on the top.
Pressing the left mouse button, the left frame with the navigation tree can be move from the program window to a seperate position on the screen. If the navigation tree has been closed, it can be reopened using the VIEW menu. 10.6.8
CLV-Setup Help
The procedure for setting the CLX parameters is supported by the online help function, which is displayed in an HTML browser, such as Internet ExplorerTM. You can call up contextsensitive help on each parameter as well as a description of its function.
10-22
1.
Press the [F1] key. The browser is launched automatically and displays the help topic.
2.
If the program cannot find a browser, it asks you to specify the storage location on the hard disk. Enter the name of the executable file and the path in the dialog box.
3.
Use the [ALT]+[TAB] keys to switch between the CLV-Setup and CLV-Setup Help applications and prevent several browser windows from being opened.
4.
To display an overview of the Help function, Choose HELP, CONTENTS from the CLV-Setup menu bar.
5.
In the left-hand frame click on the desired entry in the navigation tree. CLV-Setup Help then displays the associated help text in the right-hand frame and jumps to the parameter heading.
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009237/RB47/2007-08-03
Page 127
Operating Instructions
Appendix
Chapter 10
CLX490
10.6.9
Transferring parameter sets between CLV-Setup and the CLX
See Chapter 6.4.1 Configuring the CLX with CLV-Setup, Page 6-4. 10.6.10 Unknown parameters Uploading from the CLX If CLV-Setup does not recognize certain parameters or parameter values when it uploads them from the CLX, it outputs a warning. This may be due to the fact that the CLX is a special model or because the version of CLV-Setup is older than the version on the CLX. CLV-Setup displays the unknown parameters in the window on the EXTRAS tab. The parameters are displayed in the form of command strings and can be edited using the command string conventions. In this way, upward compatibility with the CLX is ensured. When the parameter set is saved as a configuration file in CLV-Setup, these parameters are also included and are also downloaded to the CLX. Downloading to the CLX If the CLX does not accept individual parameters or parameter values in the parameter set downloaded with CLV-Setup, it outputs a separate warning for each parameter on the screen. This could be due to the fact that the version of the "CLV-Setup" software is newer than the software version on the CLX and therefore contains new parameters and parameter values that are not implemented in the older software version. We recommend that you check the effects of warnings in the CLX as follows: 1.
Check whether the CLX functions correctly after the parameter set is downloaded.
2.
Click in the toolbar. CLV-Setup loads the default settings from the database.
3.
Click in the toolbar. CLV-Setup uploads the problem parameter set from the CLX.
4.
Click in the toolbar. CLV-Setup prints out the problem parameter set when you confirm the dialog box.
5.
Open the previous configuration file "*.scl" for the CLX.
6.
Click in the toolbar. CLV-Setup prints out the parameter set used up to now when you confirm the dialog box.
7.
Compare the two parameter sets. To restore the previous status, correct individual parameters in the problem parameter set if necessary and download them to the CLX again.
Opening configuration files "*.scl" Every time it loads configuration files, CLV-Setup checks whether it recognizes all the parameters/values. If the program detects an error, it outputs a warning and enters the problem parameter/ value in the window on the EXTRAS tab.
8009237/RB47/2007-08-03
© SICK AG · Division Auto Ident · Germany · All rights reserved
10-23
Page 128
Chapter 10
Appendix
Operating Instructions CLX490 Compact OMNI Scanner
10.6.11 Log file in the Terminal Emulator The Terminal Emulator can log the communication between CLV-Setup and the CLX. CLV-Setup stores the data transmitted in both directions with the following identifiers: --> PC: PC -->:
CLX sending to CLV-Setup CLX receiving from CLV-Setup
1.
Click in the toolbar. The Terminal Emulator window opens.
2.
Click the empty checkbox in front of the WRITE LOGFILE option on the right. The SAVE LOGFILE AS ... dialog box opens.
3.
Enter a file name with the extension ".log" and exit the window by choosing SAVE. CLV-Setup saves the file in the "data" directory and records an entry in the log file.
4.
To deactivate the log function, click the checkbox in front of the WRITE LOGFILE option again or close the Terminal Emulator window.
10.6.12 Starting CLV-Setup with an "INI file" as an argument When the program is started, CLV-Setup can also be transferred the name of an "INI file" as a parameter. To do so, enter "/INI" in front of the file. Example: "CLVmain32.exe\data\Set1_CLX490.scl /INI user.ini " CLX-Setup is launched with the initialization data contained in the "user.ini" file and loads the configuration file "Set1_CLX490.scl" from the "data" directory straight away. The "user.ini" file must be stored in the same directory as "CLVmain32.exe". You can use this method to link CLV-Setup to several different configurations on your Windows desktop. In this way, for example, you can prevent CLV-Setup from attempting to establish a connection when a CLX is not connected. 10.6.13 The CLV Assistant The CLV Assistant is not suitable for parameterizing the CLX.
10-24
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009237/RB47/2007-08-03
Page 129
Operating Instructions
Appendix
Chapter 10
CLX490
10.7
Configuring a CLX with command strings
The CLX can be parameterized and operated with command strings via the auxiliary interface or the host interface. Parameters which are unknown to the CLV-Setup may be used providing that the command string convention is followed. This allows, among other things, the setting of special devices as well as the configuration of new CLX parameters (which are unknown to "CLV-Setup" program) if your version of the CLX is older in comparison. The "CLV-Setup" user interface is based on the command language. The command language accesses the CLX’s command interpreter directly. Use this language with care. Commands sent to the CLX are carried out immediately. Parameter values changed by commands are at first only activated in the current parameter set in the CLX’s RAM. The altered parameter values must be saved to non-volatile memory in the EEPROM (after the changes are made) using a special command. If the values are not saved, they will be lost when the voltage supply is cut off. The "CLV-Setup" Terminal Emulator’s online mode makes it possible to parameterize the CLX with command strings directly. Fig. 10-13 shows a view of the Terminal Emulator with command lines and PC/CLX communication output windows. 1.
Click on in the symbol bar. The Terminal Emulator window opens. The CLX is in Reading mode.
2.
Under DEVICE MODE, click on the PARAMETERIZING option field. The CLX aborts reading mode. The "Device Ready" LED extinguishes. CLV-Setup switches the CLX into the parameterize mode with a command. All commands in parameterize mode begin with "3".
!
"
Fig. 10-13: CLV-Setup: entering commands in the Terminal Emulator
3.
Enter the desired command in command line 1 , and press the [Return] key. The command is sent to the CLX. The CLX answers with an echo if the command was syntactically correct (in most cases). Example: The command "3?LT" causes the CLX to display the parameter values of the reading trigger in coded form in output window 2.
8009237/RB47/2007-08-03
© SICK AG · Division Auto Ident · Germany · All rights reserved
10-25
Page 130
Appendix
Chapter 10
Operating Instructions CLX490 Compact OMNI Scanner
4. Note
To return to Reading mode, click on the READING MODE option field. The "Device Ready" LED lights up.
The parameter values directly changed with command strings in the CLX are registered and shown only after the parameter set is uploaded from the CLX. Outputting command strings for all the parameter settings: You can output a list of all the parameter settings configured with CLV-Setup in ASCII format. To do so, proceed as follows: 1.
In the menu bar, choose EXPORT PARAMETERS under CLX490. Starting from the default settings, CLV-Setup collects all the command strings required to parameterize the default configuration and customized settings. The SELECT FILE NAME FOR PARAMETER EXPORT dialog box is displayed.
2.
Enter a file name and click the SAVE button. CLV-Setup saves the data as a text file in the directory shown.
You can open this text file using any Windows text editor. If the commands are sent from the host/PLC to the CLX for configuration, note that "3 EEW" has to be sent as the last command to ensure that they are permanently transferred to the CLX (EEPROM).
10-26
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009237/RB47/2007-08-03
Page 131
Operating Instructions
Appendix
Chapter 10
CLX490
10.8
Calculating parameter values for setting the CLX
10.8.1
Calculating the necessary capture area for the bar code if several bar codes are read on each object dx
B
C
D
E
A
B
C
D
E
C
D
E dy
A dx
A
B
C
D
E
A
B
SMART Decoder: for bar codes with identical code type and identical or different data contents. Distance dx: Distance dy:
min. 60 x module width e. g. 30 mm for module width 0.5 mm 7 x dscan where dscan = vertical distance between two consecutive scan lines e. g. scan line 90° to bar code, scanning frequency 800 Hz, v = 2 m/s V dscan = ---f
2000 mm/s dscan = -------------------- = 2.5 800 /s dy = 7 x 2.5 mm = 17.5 mm Standard Decoder: The above distances are also required for reading bar codes with identical names (identical data content and code types). Prerequisite for separating bar codes with identical names: 1. The CAPTURE RANGE between the bar codes must be parameterized correctly (DEVICE CONFIGURATION tab, TRACKING PARAMETERS button) 2. The reading angle comparison must be activated (CODE CONFIGURATION tab, under CODE SUMMARIZATION) Bar code lines in conveyor direction: If the scan line is to detect bar codes of the same name with the same reading angle, the travel information must be supplied by an external incremental sensor or the internal INC timer so that the bar codes can be distinguished from one another. Rule of thumb: the blank zone should surround the bar code completely! CODE CONFIGURATION tab: due to the function OPTIMIZE FOR SHORT CODE DISTANCES under SMARTPARAMETER smaller code distances as described above are possible (depending on application) Fig. 10-14: Required distance between the bar codes on an object
8009237/RB47/2007-08-03
© SICK AG · Division Auto Ident · Germany · All rights reserved
10-27
Page 132
Chapter 10
Appendix
Operating Instructions CLX490 Compact OMNI Scanner
10.9
Tables
10.9.1
Calculating the code length of a bar code
The code length of a bar code is the number of useful characters in the printed code including the check digit (if present). This code length must be specified in CLV-Setup. If the code type of a bar code is known, the code length can be calculated by counting the bars and gaps. The relevant formulas are provided in Table 10-6. 1.
Count the bars and gaps as specified in Table 10-6. Do not forget to include the start and stop characters.
2.
Calculate the code length using the formula in the table.
3.
Enter the value in CLV-Setup as described in column 4 in the table.
Code type
Count
Calculation of code length1)2)
Entry in CLV-Setup
Code 39
Number of bars
Number – 10 ICode =, - - - - - - - - 5
Calculated code length
2/5 Interleaved
Number of wide elements (bars and gaps)
Number – 1 ICode =, - - - - - - - - 2
Calculated code length
EAN
Not applicable
13 characters (normal version) 8 characters (short version)
Activate 13-digit Activate 8-digit
UPC
Not applicable
12 characters (UPC A, normal version) 6 characters (UPC E, short version)
Activate Version A Activate version E
Codabar
Number of bars
Number – 8 ICode =, - - - - - - - - 4
Calculated code length
Code 128 (character set A)
Number of bars
Number – 10 ICode =, - - - - - - - - 3
Calculated code length
Code 93
Number of bars plus separator after the stop character
Number – 13 ICode =, - - - - - - - - 3
Calculated code length
EAN 128
Number of bars
Number – 10 ICode =, - - - - - - - - 3
Calculated code length
1.
Check digit optional for Code 39, 2/5 Interleaved, Codabar. Check digit always integrated in printed bar code with EAN, UPC, Code 128, Code 93, EAN 128 (suppressed automatically when the CLX read result is output)
2.
With only few exceptions each printed character that has to be decoded corresponds to an ASCII character. With Code 39 extended, Code 93, Code 128 and EAN 128, the number of characters in the data string of the CLX can be larger than the number of characters in the printed code because it comprises several character sets.
Table 10-6: Formulas for calculating the code length of a bar code
10-28
© SICK AG · Division Auto Ident · Germany · All rights reserved
8009237/RB47/2007-08-03