The text of a manual · part 14 of 17
Operating Instructions: CLV 42x Bar Code Scanner, Standard line: 10 Appendix, pages 111 to 119
Pages 111 to 119 of 146, from Operating Instructions: CLV 42x Bar Code Scanner, Standard line
The original document is the PDF (3.7 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 CLV420 and Sick CLV422
Page 111
Operating Instructions
Appendix
Chapter 10
CLV 42x bar code scanner
10.5.2
Profile programming
Profile programming uses special bar codes to parameterize the CLV via the optical interface (reading window). The profile bar codes contain encoded parameter values. It is not necessary to connect a PC to the CLV in order to carry out profile programming. The profile bar codes are presented to the CLV individually for reading. It copies the parameter values to the current parameter set. The changes are permanently valid after programming has been completed; in some cases, they also have an immediate effect on the reading and output characteristics of the CLV. The profile bar codes can be presented to the CLV either immediately after the power supply has been switched on, during the wait time in the Free Running mode or during a reading pulse in the Reading mode. During profile programming, the CLV does not output a reading result and does not respond to an external reading pulse. Profile bar codes are created and printed via the user interface of CLV Setup after the application-specific parameter set has been compiled (Section"Printing profile bar codes"). The enclosed card no. 8 008 085 ("Configuration Profiles for CLV 41x Bar Code Scanners") contains 12 preprinted profile bar codes. They can be used to parameterize tested settings or to trigger specific functions (e.g. AutoSetup). The meaning of the individual profile bar codes is explained in Table 10-4, Page 10-21. Profile bar codes no. 11 and no. 12 on the card are of no significance for CLV 42x. Preparing profile programming 1.
Profile programming overwrites values in the current parameter set of the CLV. If the CLV has already been configured for a particular application, it is advisable to save the existing parameter set as a configuration file "*.scl" in CLV Setup. See Chapter 6.4.1 Configuring CLV with the user interface of CLV Setup, Page 6-4.
2.
Have the printed profile bar codes of the compiled parameter set or card no. 8 008 085 ready. Or print the bar codes of the card no. 8 008 085 as PDF file from the CD-ROM („Manuals & Software“). To do so, select the “Programming Profile Bar Codes“ folder in the list on the top left of the start page.
Performing profile programming after switching on the power supply
8 009 981/O078/16-08-2004
1.
Switch on the power supply of the CDB 420/CDM 420 connection module (of the CLV). The CLV confirms that the self-test has been completed successfully by outputting a tone via the beeper. The "Device Ready" LED lights up. It then switches to the Free Running mode for 5 seconds. The red scan line appears when the "Laser On" LED lights up.
2.
Present the first profile bar code in the printed sequence (or the desired profile bar code from the card) within 5 seconds. Fold the printout/card in such a way that only one profile bar code is visible at any one time. The CLV confirms that the bar code has been read successfully by outputting a tone via the beeper and waits 10 seconds for the next profile bar code. It copies the new parameter value(s) to the current parameter set in the RAM.
3.
Present the next profile bar code within 10 seconds. The CLV confirms that the bar code has been read successfully as described in Step 2.
4.
Allow 10 seconds to pass after the last profile bar code has been read. The CLV exits the programming mode and saves the new parameter values permanently in the EEPROM. It also switches off the laser diode. Following this, it returns to the Reading mode and confirms this by outputting two consecutive tones via the beeper. The "Device Ready" LED lights up.
© SICK AG · Division Auto Ident · Germany · All rights reserved
10-19
Page 112
Appendix
Chapter 10
Operating Instructions CLV 42x bar code scanner
The CLV then uses the new parameter values. Performing profile programming in the Reading mode 1.
Start the reading pulse: block the light path of the photoelectric switch or close the switch. The "Laser On" LED lights up. The red scan line then appears.
2.
Present the first profile bar code in the printed sequence (or the desired profile bar code from the card). Fold the printout/card in such a way that only one profile bar code is visible at any one time. The CLV confirms that the bar code has been read successfully by outputting a tone via the beeper and waits 10 seconds for the next profile bar code. It copies the new parameter value(s) to the current parameter set in the RAM.
Continue profile programming from Step 3 in Performing profile programming after switching on the power supply, Page 10-19. Note
When the profile bar code is presented to the CLV, note that the changes caused by the new parameter values in the RAM can have an immediate effect on the reading characteristics of the CLV. Under unfavorable conditions, the CLV will only be able to read profile bar codes with great difficulty or not at all. Changes to the active evaluation range of the scan line (min./max. CP-value) and increases in the scanning frequency via profile bar code must, therefore, be handled with care. If the CLV is not able to read any further profile bar codes, it must be corrected accordingly on the tabs via the user interface of CLV Setup. A PC must be connected to the CLV for this purpose. Canceling profile programming Switch off the power supply of the CLV within 10 seconds of presenting the last profile bar code. The temporary changes to the current parameter set in the RAM are lost. After the power supply has been switched on again, the CLV uses the values from the last parameter set that was stored permanently. Printing profile bar codes Profile bar codes are created and printed out via the user interface of CLV Setup. It is not necessary to connect a PC to the CLV if the current parameter set of the CLV has been saved as a configuration file "*.scl" in CLV Setup. CLV Setup creates a minimum set of profile bar codes using the parameter values in the tabs and the default settings of the CLV. This comprises: • a standard profile (all codes types active or all code types locked)
• a host interface profile
• a greater or smaller number of profile bar codes depending on the difference between the two above-mentioned profiles and the current setting of the entire parameter set.
CLV Setup prints out the bar codes in a defined sequence. The size, position and number of codes on the page can be set.
10-20
© SICK AG · Division Auto Ident · Germany · All rights reserved
8 009 981/O078/16-08-2004
Page 113
Operating Instructions
Appendix
Chapter 10
CLV 42x bar code scanner
1.
Open the configuration file "*.scl" of the current parameter set. CLV Setup displays the parameter values of the CLV on the tabs.
2.
If desired, make any necessary changes to the parameter set. Save the new parameter set in the configuration file "*.scl" under a new name.
3.
In the menu bar, choose PROFILES and CONFIGURE PRINTING. Confirm the print option default settings for the profile bar codes or define new ones (see below).
4.
In the menu bar, choose PROFILES and PRINT PROFILES. CLV Setup determines the required number of bar codes. The PRINT dialog box is then displayed.
5.
Specify the number of printouts. Define the page format if necessary. For this purpose, click the PROPERTIES button. Relatively long profile bar codes must be printed in landscape format!
6.
Confirm the dialog box with "OK". CLV Setup then prints out the profile bar codes.
Defining print options for profile bar codes 1.
In the menu bar, choose PROFILES and CONFIGURE PRINTING. The BARCODE PRINTING OPTIONS dialog box is then displayed.
2.
Choose the desired print options in the BARCODE and PAGE LAYOUT tabs and confirm the dialog box. CLV Setup then asks if the print options are to be saved.
3.
To save the print options, confirm this prompt with "OK". The SAVE SETTINGS AS... dialog box is then displayed.
4.
Enter a file name in the "*.prf" format: Confirm the dialog box with SAVE. CLV Setup saves the print options in a configuration file in the directory CLV.
The default settings of the print options are active when CLV Setup is started. Preprinted profile bar codes The enclosed card no. 8 008 085 ("Configuration Profiles for CLV 42x Bar Code Scanners") contains 12 preprinted profile bar codes. They can be used to parameterize tested settings or to trigger specific functions (e. g. AutoSetup). To print the bar codes as PDF file from the CD-ROM („Manuals & Software“), select the “Programming Profile Bar Codes“ folder in the list on the top left of the start page. The individual segments of the card can be folded in such a way that the CLV only reads the desired profile bar code. The profile bar codes are explained in Table 10-4, and the functions of the individual parameters in "CLV Setup Help". Bar code
Function
Profile 1
Default setting of CLV for all parameter values. Code configuration: all code types, except for Pharmacode, enabled for evaluation. Overwrites a code configuration created by AutoSetup!
Profile 2
Only changes configuration of host interface: – Data transfer rate: 38,400 bd – Data format: 8 data bits, no parity, 1 stop bit – Handshake: none
Table 10-4: Functions of preprinted profile bar codes on card no. 8 008 085
8 009 981/O078/16-08-2004
© SICK AG · Division Auto Ident · Germany · All rights reserved
10-21
Page 114
Chapter 10
Appendix
Operating Instructions CLV 42x bar code scanner
Bar code
Function
Profile 3
Only changes configuration of host interface: – Activation of RS 422/485 interface – SICK network protocol (standard) – Data transfer rate: 38,400 bd – Data format: 7 data bits, parity odd, 1 stop bit – Device number: 99
Profile 4
Only changes configuration of host interface: Reading result is output as soon as evaluation criteria are fulfilled
Profile 5
Only changes configuration of host interface: – Output of error status "ST" in the “Code-Info/Separator“ block – Output of CLV: <CR> <LF> in terminator (jumps to start of new line after each code)
Profile 6
Parameterizes CLV as master in master/slave configuration – No. of slaves: 1 – Timeout: automatic
Profile 7
As profile 6, but no. of slaves: 2
Profile 8
Parameterizes CLV as slave in master/slave configuration
Profile 9
Parameterizes CLV for PASS-THROUGH MODE: output of " / " and device number in header
Profile 10
Starts and ends CLV AutoSetup
Profile 11
No function with CLV 42x
Profile 12
No function with CLV 42x
Table 10-4: Functions of preprinted profile bar codes on card no. 8 008 085 (contd.)
10.6
Configuring the CLV with command strings
The CLV can be parameterized and operated via the terminal interface and the host interface. Parameters that are not recognized by CLV Setup can also be used by following the conventions for command strings. This enables special devices, for example, to be parameterized and new CLV parameters to be configured which may not be recognized by the CLV Setup program if this is older than the software on the CLV. The CLV Setup user interface is based on the command language. The command language accesses the CLV command interpreter directly. It must be used carefully. The commands sent to the CLV are executed immediately. Parameter values that have been changed by commands are initially only active in the current parameter set in the RAM of the CLV. Using a special command, the modified parameter set must also be copied to the EEPROM so that it is stored permanently. Otherwise, the changes will be lost when the power supply is switched off. The ONLINE MODE of the terminal emulator in CLV Setup enables the CLV to be parameterized directly with command strings. Fig. 10-8, Page 10-23 contains the initial screen of the terminal emulator with the command field and output window which shows how the PC and CLV communicate with each other.
10-22
1.
Click in the toolbar. The TERMINAL EMULATOR window is then displayed. The CLV is in READING MODE.
2.
Click PARAMETERIZE under DEVICE MODE. The CLV cancels Reading mode. The "Device Ready" LED is extinguished. CLV Setup switches the CLV to the PARAMETER mode by issuing an appropriate command.
© SICK AG · Division Auto Ident · Germany · All rights reserved
8 009 981/O078/16-08-2004
Page 115
Appendix
Operating Instructions
Chapter 10
CLV 42x bar code scanner
In the Parameter mode, all commands begin with the number "3". 3.
Enter the desired command in the command field ➀ and press the [Return] key. The command is then sent to the CLV. With a few exceptions, the CLV replies to a command with correct syntax with an echo. Example: Entering "3?LT" causes the CLV to output the parameter values of the reading pulse in encoded form in the output window ➁.
4.
Activate the READING MODE radio button to return to the Reading mode. The "Device Ready" LED lights up.
➀
➁
Fig. 10-8:
Note
CLV Setup: entering commands in the terminal emulator
Changes that are made directly to parameter values in the CLV using command strings are only registered and displayed in CLV Setup after the current parameter set has been uploaded from the CLV. A list of command strings is available on request. 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 CLV 42x. 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 CLV for configuration, note that "3 EEW" has to be sent as the last command to ensure that they are permanently transferred to the CLV (EEProm).
8 009 981/O078/16-08-2004
© SICK AG · Division Auto Ident · Germany · All rights reserved
10-23
Page 116
Chapter 10
Appendix
Operating Instructions CLV 42x bar code scanner
10.7
Calculating parameter values for setting the CLV
10.7.1
Calculating the number of scans
The maximum number of scans possible for a bar code depends on the conveyor velocity v. Line scanner: ladder-type bar code arrangement Line scanner: side reading at object s v = -t lS ls v = -----------------------; n × t scan
1 t scan = --f ls v = --- × f n ls n = --- × f v v
Specifications: Number of scans n = ? Conveyor velocity v = 1.5 m/s Bar length lS = 20 mm Scanning frequency f = 600 Hz Barcode 100 % readable Fig. 10-9:
0,02 m n = ---------------------- × 600/s 1,5 m/s n=8
Line scanner: calculating the number of scans for ladder-type bar code arrangements
Line scanner: fence-type bar code arrangement Line scanner: side reading at object
Ic s v = -t ( l LH – l c ) 1 v = -----------------------;t = --n × t scan scan f
ILH v Specifications: Number of scans n = ? Conveyor velocity v = 2 m/s Code length with rest zone lC = 150 mm Reading field height lLH = 400 mm Scanning frequency f = 600 Hz Bar code 100 % readable, all scans on the code window s = lLH -lC
( l LH – l c ) v = ----------------------- × f n ( l LH – l c ) n = -------------------- × f v ( 0,4 – 0,15 ) m n = -------------------------------------- × 600/ s 2 m/s n = 75
Fig. 10-10: Line scanner: calculating the number of scans for fence-type bar code arrangements
10-24
© SICK AG · Division Auto Ident · Germany · All rights reserved
8 009 981/O078/16-08-2004
Page 117
Appendix
Operating Instructions
Chapter 10
CLV 42x bar code scanner
10.8
Tables
10.8.1
Calculating code length of a bar code
The code length of a bar code is the number of used 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-5. 1.
Count the bars and gaps as specified in Table 10-5. 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 of 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
Pharmacode
Number of bars
Number
Number = code length
1)
Check digit optional with 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 CLV reading result is output)
2)
With only a few exceptions, every printed character 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 CLV can be larger than the number of characters in the printed code because it comprises several character sets.
Table 10-5: Formulas for calculating the code length of a bar code
8 009 981/O078/16-08-2004
© SICK AG · Division Auto Ident · Germany · All rights reserved
10-25
Page 118
Chapter 10
Appendix
Operating Instructions CLV 42x bar code scanner
10.9
Special applications and procedures
10.9.1
Triggering the teach-in match code 1 via the "Sensor 2" switching input
In Reading mode, the CLV compares up to two match codes with the bar codes it recorded in the reading pulse. The result status of the code comparison is signaled by the corresponding functional assignment via the "Result 1" and "Result 2" (“Result“ LED) switching outputs and the beeper. The match codes can also be used as output filters for the host interface. In this case, when a good read occurs, the CLV only outputs those bar codes that have the same code type, code length, and data content as the match code(s). A match code can contain max. 50 characters in the range 32 to 137 dec. and must be a code type that can be evaluated by the CLV. Using the "Sensor 2" switching input, the CLV can: • teach in match code 1 via its optical interface (reading window) and store it permanently in the parameter set instead of entering it with the CLV Setup program. The code type, code length, and data content are entered in the parameter set.
• activate the code comparison. The status remains active until the power supply to the CLV is switched off.
Before the match code can be read, a switch must be connected (Fig. 10-11), the functional assignment of the switching input changed and Teach-in mode selected. CLV 42x
Switch S
VS = +10 to +30 V DC
*)Uimax = 28 V!
Fig. 10-11: "Sensor 2" configuration for triggering the teach-in match code 1
There are two modes for teaching in match code 1:
10-26
•
Dynamic teach-in of match code 1 The code type that corresponds to the match code must be activated for the evaluation in the CLV. The CLV must be pulsed manually so that it can read the match code. After the teach-in procedure has been successfully completed, the CLV still continues to output bar codes of all the code types that were previously enabled.
•
Static teach-in of match code 1 with/without Pharmacode The CLV can also read a match code whose code type is implemented, but not yet enabled for evaluation. A reading pulse starts automatically at the start of the teach-in procedure. The CLV terminates the reading pulse once the teach-in procedure has been successfully completed. In Reading mode, it only outputs bar codes which match the code type and length of match code 1. All other code types are locked. To ensure that the match code is read reliably, the CLV temporarily sets the number of multiple reads to 30. The previous code configuration is kept if a match code is not detected during the teach-in procedure.
© SICK AG · Division Auto Ident · Germany · All rights reserved
8 009 981/O078/16-08-2004
Page 119
Operating Instructions
Appendix
Chapter 10
CLV 42x bar code scanner
Since the CLV can essentially interpret every code as a Pharmacode, the "static with Pharmacode" variant should only be activated if this code is actually to be programmed (taught-in) as a match code. The Pharmacode in this case must comprise a minimum of 6 characters. Check whether the programmed Pharmacode is correct by uploading it from the CLV using the CLV Setup program! With static teach-in, the CLV can optionally reset the daily operating data for each newly taught-in match code 1. This includes the following counters: – daily operating hours
– no. of reading intervals
– no. of good reads
– no. of no reads
– max. reading interval duration
– min. reading interval duration
– no. of match 1 (match code 1)
– no. of match 2 (match code 2)
– no. of no matches (neither match code 1 nor 2)
Once match code 1 has been programmed, the code comparison can also be activated with the CLV Setup program (either temporarily or permanently, depending on the download option). Activating the function with the program has a higher priority than with the "Sensor 2" switching input. In this case, the switch must be open when the power supply to the CLV is switched on. Match code 2 can only be defined and activated using the CLV Setup program or command strings, irrespective of the teach-in procedure. Preparing for teach-in
8 009 981/O078/16-08-2004
1.
Switch off the power supply to the CDB 420 or CDM 420 connection module.
2.
Connect the switch in the CDB 420 or CDM 420 connection module at the "Sensor 2" switching input of the CLV as shown in Fig. 10-11. Connect the "SensGND" and "GND" signals.
3.
Open the switch! ("Sensor 2" switching input must be at zero current).
4.
Connect the PC to the terminal interface of the CLV. For this purpose, connect a 3-core RS 232 data cable (null modem cable) to the internal 9-pin "Aux" plug of the module. See Chapter 5.5.6 Connecting the PC, Page 5-7.
5.
Switch on the power supply to the CDB 420 or CDM 420 connection module. Once the CLV has started, it outputs a tone to indicate that the self-test was successfully completed. Shortly afterwards, it outputs two tones to indicate that it has assumed Reading mode. The "Device Ready" LED lights up.
6.
Start Windows and "CLV Setup" on your PC. See Chapter 10.4.3 Starting "CLV Setup", Page 10-10.
7.
Upload the current parameter set from the CLV. CLV Setup displays the current values on the tabs.
8.
If you have not already done so, save the parameter set as a configuration file "*.scl" in CLV Setup.
© SICK AG · Division Auto Ident · Germany · All rights reserved
10-27