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 25 of 30

Operating Instructions: CLV490 Bar Code Scanner, Advanced Line: 10 Appendix, pages 217 to 226

Pages 217 to 226 of 266, from Operating Instructions: CLV490 Bar Code Scanner, Advanced Line

The original document is the PDF (5.1 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 CLV490

Page 217

Operating Instructions

Appendix

Chapter 10

CLV 490 Bar Code Scanner

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.

10.6.9

Transferring parameter sets between CLV-Setup and the CLV

See Chapter 6.4.1 Configuring the CLV via the user interface of CLV-Setup, Page 6-5. 10.6.10 Unknown parameters Uploading from the CLV If CLV-Setup does not recognize certain parameters or parameter values when it uploads them from the CLV, it outputs a warning. This may be due to the fact that the CLV is a special model or because the version of CLV-Setup is older than the version on the CLV. 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 CLV 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 CLV. Downloading to the CLV If the CLV 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 CLV 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 CLV as follows: 1.

Check whether the CLV 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 CLV.

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 CLV.

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 CLV 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.

8 009 993/O824/20-12-2004

© SICK AG · Division Auto Ident · Germany · All rights reserved

10-51

Page 218

Chapter 10

Appendix

Operating Instructions CLV 490 Bar Code Scanner

10.6.11 Log file in the Terminal Emulator The Terminal Emulator can log the communication between CLV-Setup and the CLV. CLV-Setup stores the data transmitted in both directions with the following identifiers: --> PC: CLV sending to CLV-Setup PC --> CLV 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_490.scl /INI user.ini " CLV-Setup is launched with the initialization data contained in the "user.ini" file and loads the configuration file "Set1_490.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 CLV is not connected. 10.6.13 The CLV Assistant The CLV assistant is not suitable for parameterizing the CLV 490.

10-52

© SICK AG · Division Auto Ident · Germany · All rights reserved

8 009 993/O824/20-12-2004

Page 219

Operating Instructions

Appendix

Chapter 10

CLV 490 Bar Code Scanner

10.7

Configuring a CLV with command strings

The CLV can be parameterized and operated with command strings via the terminal 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 CLV parameters (which are unknown to "CLV-Setup" program) if your version of the CLV is older in comparison. The "CLV-Setup" user interface is based on the command language. The command language accesses the CLV’s command interpreter directly. Use this language with care. Commands sent to the CLV are carried out immediately. Parameter values changed by commands are at first only activated in the current parameter set in the CLV’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 CLV with command strings directly. Fig. 10-38 shows a view of the Terminal Emulator with command lines and PC/CLV communication output windows. 1.

Click on in the symbol bar. The Terminal Emulator window opens. The CLV is in Reading mode.

!

"

Fig. 10-38: CLV-Setup: entering commands in the Terminal Emulator

8 009 993/O824/20-12-2004

2.

Under DEVICE MODE, click on the PARAMETERIZING option field. The CLV aborts reading mode. The "Device Ready" LED extinguishes. CLV-Setup switches the CLV into the parameterize mode with a command. All commands in parameterize mode begin with "3".

3.

Enter the desired command in command line 1, and press the [Return] key. The command is sent to the CLV. The CLV answers with an echo if the command was syntactically correct (in most cases).

© SICK AG · Division Auto Ident · Germany · All rights reserved

10-53

Page 220

Appendix

Chapter 10

Operating Instructions CLV 490 Bar Code Scanner

Example: The command "3?LT" causes the CLV to display the parameter values of the reading trigger in coded form in output window 2. 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 CLV are registered and shown only after the parameter set is 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 490. 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).

10-54

© SICK AG · Division Auto Ident · Germany · All rights reserved

8 009 993/O824/20-12-2004

Page 221

Operating Instructions

Appendix

Chapter 10

CLV 490 Bar Code Scanner

10.8

Calculating parameter values for setting the CLV

10.8.1

Calculating the number of scans (for standard decoder)

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: lateral reading at object Is

Calculation for standard decoder! s v = -t ls ; v = -----------------------n × t scan

1 t scan = --f ls v = --- × f n ls n = ---- × f v v

Specified values: Number of scans n = ? Convoyer velocity v = 1.5 m/s Bar length lS = 20 mm (0.8 in) Scanning frequency f = 600 Hz Bar code 100 % readable

0.02 m n = ---------------------- × 600/s 1.5 m/s n=8

Fig. 10-39: Line scanner: calculating the number of scans for ladder-type bar code arrangements

Line scanner: fence-type bar code arrangements Line scanner: lateral reading on object Ic s v = -t

Calculation for standard decoder!

( l LH – l c ) 1 ; t = --v = -----------------------n × t scan scan f ILH v

Specified values: Number of scans n = ? Convoyer velocity v = 2 m/s Code length with blanc zone lC = 150 mm (5.9 in) Reading field height lLH = 400 mm (15.8 in) Scanning frequency f = 600 Hz Bar code 100 % readable, all scans on the code Code window s = lLH – lC

( l LH – l c ) v = ----------------------- × f n ( l LH – l c ) n = ----------------------- × f v ( 0.4 – 1.5 ) m n = -------------------------------------- × 600/ s 2 m/s n = 75

Fig. 10-40: Line scanner: calculating the number of scans for fence-type bar code arrangements

8 009 993/O824/20-12-2004

© SICK AG · Division Auto Ident · Germany · All rights reserved

10-55

Page 222

Chapter 10

Appendix

Operating Instructions CLV 490 Bar Code Scanner

Line scanner with oscillating mirror: fence-type bar code arrangement Line scanner with oscillating mirror: side read on object

ILM

Calculation for standard decoder!

ICW

10° Ic

Specified values: Number of scans n = ? Conveyer velocity v = 0.5 m/s Code length with blanc zone lC = 100 mm (3.9 in) 100 mm Code length under 10°: l CW = ---------------------------- = 102 mm (4 in) cos 10 Reading field height lLH = 500 mm (19.7 in) Scanning frequency f = 600 Hz Bar code 100 % readable, all scans on the code Code windows = lLH - lC 1. Dwell time of the bar code in the reading area: s t = -v ( l LH – l CW ) t = ----------------------------v ( 0.5 – 0.102 ) t = --------------------------------------0.5 m/s t = 796 ms

2. Required oscillating mirror frequency: 1 f SW = --t 1 f SW = ---------------------0.796 s fSW = 1.26 Hz

3. Number of possible scans (rough estimate):

f n = --------f SW

600 Hz n = ---------------------1.26 Hz n = 476

Fig. 10-41: Line scanner with oscillating mirror: calculating the number of scans for fence-type bar code positioning

10-56

© SICK AG · Division Auto Ident · Germany · All rights reserved

8 009 993/O824/20-12-2004

Page 223

Appendix

Operating Instructions

Chapter 10

CLV 490 Bar Code Scanner

10.8.2

Calculating the start position and mirror speed for the forward and return phase of the One-Shot function

Line scanner with oscillating mirror Theoretical calculation: reading from the front (object moving towards CLV)

Calculation for Standard decoder!

Legend: h0 = Max. object height hS = Distance of the CLV across conveyor level ϕ = Oscillating angle α = Max. angle of impact on bar code (skew) Start Phase 1: Point A Start Phase 2: Point B d

A d ho hs

Specified values: hS > h0 α ≤ 45° (better: α ≤ 30°) Set max. deflection angle: ±20° ¾ Determine distances through measurement: x1 = Distance at Start Phase 1 x2 = Distance at Start Phase 2

B v x2 x1

(Scanning direction is vertical to drawing plane)

1. Focus position for distance configuration: h sin α = -----s d

⇒ hs d = -----------sin α

3. Mirror speed ϕ*): ∆x v = ------ ; ∆x = x 1 – x 2 ∆t

2. Oscillating angle ϕ

∆ϕ ϕ * = -------∆t

γ = 90°– α

During the period ∆t, in which the object moves from x1 to x2 the oscillating mirror must also pass through the angle ∆ ϕ

( hs – h0 ) cos ( ϕ + γ ) = ------------------------d

∆x ∆ϕ ⇒ ------ = ------v ϕ*

( hs – h0 ) ϕ = arc cos ⎛ -------------------------- ⎞ – γ ⎝ ⎠ d ¾ v ϕ * = ∆ϕ × -----∆x

Enter ϕ symmetrically to CW = 50:

ϕ 1 CW StartPos 1 = 50 CW + ⎛ --- × ---------------⎞ ⎝2 0, 5° ⎠ where

1 °/s = 2 CW/s

When entering the values, note the following: – Debouncing time of the "IN 3" or "IN 4" switching input (One-Shot trigger) – Start time of the oscillating mirror (inertia)

¾ ϕ 1 CW StartPos 2 = 50 CW – ⎛ --- × ---------------⎞ ⎝ 2 0, 5° ⎠

¾

Select the mirror speed of the return phase, in accordance with the distances between the objects, so that the scan line returns to the starting position (Point A) at the right time. Check the theoretically calculated values on site and adapt them if required.

Fig. 10-42: One-Shot: Line scanner with oscillating mirror: calculating the number of scans for fence-type bar code positioning

8 009 993/O824/20-12-2004

© SICK AG · Division Auto Ident · Germany · All rights reserved

10-57

Page 224

Chapter 10

Appendix

Operating Instructions CLV 490 Bar Code Scanner

10.8.3

Calculating the necessary bar code distance 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 (19.7 mil) 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 (0.7 in)

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 CODE DISTANCE between the bar codes must be parameterized correctly (DEVICE CONFIGURATION tab, TRACKING PARAMETERS button) 2. The code position comparison must be activated (CODE CONFIGURATION tab, CODE POSITION section) Bar code lines in conveyor direction: If the scan line is to detect bar codes of the same name with the same code position, the travel information must be supplied by an external incremental encoder 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-43: Required distance between the bar codes on an object

10-58

© SICK AG · Division Auto Ident · Germany · All rights reserved

8 009 993/O824/20-12-2004

Page 225

Appendix

Operating Instructions

Chapter 10

CLV 490 Bar Code 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-8. 1.

Count the bars and gaps as specified in Table 10-8. 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 CLV 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 CLV can be larger than the number of characters in the printed code because it comprises several character sets.

Table 10-8: Formulas for calculating the code length of a bar code

8 009 993/O824/20-12-2004

© SICK AG · Division Auto Ident · Germany · All rights reserved

10-59

Page 226

Chapter 10

Appendix

Operating Instructions CLV 490 Bar Code Scanner

10.10 Discussion of a parameterization example 10.10.1 Application Conditions •

Reading with the CLV 490’s autofocus function

•

Reading the packages from top

•

Bar code with lines running vertically on the top side of the package, tilt across from the scan line: ±30°

•

Package height: 100 to 600 mm (3.9 to 23.6 in), package width: 200 to 550 mm (7.9 to 21.7 in), packages not guided

•

Conveyer velocity: v = 1 m/s, conveyer belt width: 600 mm (23.6 in)

•

Object distance between packages: min. 300 mm (11.8 in)

•

Bar code: 2/5 Interleaved, module width 0.4 mm (15.7 mil), line length 15 mm (0.6 in), PR 2.5:1, Quality 3 or 4, 14 characters with test code (mod 10)

•

Do not read under plastic sheeting, do not use very dark packages (spectral reflection > 20 %)

•

1 bar code per package

•

Reading pulse is through a SICK photoelectric switch

•

Output of read results via the host interface

•

Parameterization of the CLV based on the factory defaults

Requirements: •

Testing the application for feasability with the CLV 490 before buying, with the help of the SMART calculation sheet (service provided by SICK)

•

Choice of CLV type: here standard density line scanner (CLV 490-0010)

•

No objects irrelevant for reading portruding into conveyor path

Tools: •

Measuring tape (up to 3 m (9.84 ft))

•

Protractor (to set up the CLV)

•

A PC with Windows and the SICK software "CLV-Setup"

•

3-core RS-232 data cable (null modem cable), pin 2 and pin 3 crossed, e. g. no. 2 014 054

•

These operating instructions

10.10.2 Purpose of this discussion •

To make important clarifications

•

To indicate the fitting location of the CLV

•

To point out the parameters to be set in the CLV-Setup user interface

10.10.3 Instructions for solution – step by step

10-60

¾

Determine the reading range and CLV’s installation height over the conveyor belt

¾

Determine the CLV’s distance measurement type

¾

Mount the CLV

¾

Parameterize the CLV

¾

Test an application

© SICK AG · Division Auto Ident · Germany · All rights reserved

8 009 993/O824/20-12-2004