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 17 of 23

CiMAX 78xx Scanner Technical Reference Manual, pages 145 to 153

Pages 145 to 153 of 201

The original document is the PDF (2.8 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 RVSI CiMatrix 7800, Sick 7850 and Siemens 7800

Page 145

Introduction

8

Note: After the old O.S. is erased, the Setup/Terminal/Slave port will revert to default serial port parameter values; 9600 baud, 7 data bits, space parity (equivalent to 8 data bits, no parity). Because O.S. downloads using 38.4K baud are 4x faster than at 9600 baud, you may want to speed up the download process by changing the default values.

Diagnostics

6.

(Optional) Change the default serial port parameters. To change the baud rate, enter the following command: ~?x00n~ where: x - 1 or 2, for Host or Terminal ports, respectively n - the values of n are shown in Table 8–2

TABLE 8–2. n Values n

Values

0

14.4k

1

28.8k

7

9600

8

19.2k

9

38.4k

To change the parity and number of stop bits, enter: ~?x02nn~ where: x - 1 or 2 for Host or Terminal ports respectively nn - the values for nn are shown in Table 8–3. TABLE 8–3. nn Values nn

Parity

0 space

1

1 mark

1

2 even

1

3 odd

1

4 none

1

8 space

2

9 mark

2

10 even

2

11 odd

2

12 none

2

Rev H, February 2002

Stop Bit(s)

CiMAX 78xx Technical Reference Manual

8-17

Page 146

Chapter

8

Diagnostics

The new OS can be downloaded over the Host or Terminal ports using ASCII, Xmodem or Xmodem1K protocols. Under ideal conditions of no noise and a relatively short RS-232 cable, you can use the straight ASCII download. This method is almost twice as fast as either of the Xmodem protocols, but it does not allow error correction. If you use a modem or if your on-site communications are noisy, you should use either the Xmodem or Xmodem1K protocol. Every data packet sent using these protocols is tested for errors by a checksum comparison. Xmodem1K is slightly faster than Xmodem, but it is not universally supported. 7.

If you are making an Xmodem transfer, configure the scanner as an Xmodem receiver by sending it the following command: ~X~ The following message will be sent in response: READY TO RECEIVE FILE FOR XMODEM DOWNLOAD The scanner will then poll the PC or host computer, and wait to begin the file transfer process. It will expect to receive data through the same port that received the ~X~ command.

8.

If you have changed the baud rate, you should change the associated baud rate on the terminal at this time. Start downloading the new Operating System .sef file from the PC to the scanner. If you are using straight ASCII protocol, the scanner will sends a line of periods (.) to the terminal to indicate each line being sent. The process takes about 15 minutes at 9600 baud. If you are using Xmodem or Xmodem1K protocol, the scanner will not send the periods.

9.

When the transfer is complete, the checksum will be displayed and the system will automatically reboot. You should see the message: Download complete. Code checksum: XXXXXXXX Actual checksum: XXXXXXXX Checksums match, download successful. Starting up new operating system code. The scanner will reboot and display the sign-on messages for the new version, on your terminal. Note: When the new O.S. starts up, default serial port parameters will again be used. If you changed the baud rate or parity on the PC, you must set it back to 9600 baud, 7 data bits, space parity (equivalent to 8 data bits, no parity). If there is a problem during the download, the resulting checksum may be incorrect. If this is the case, the procedure will start over, and you must download the code again.

8-18

CiMAX 78xx Technical Reference Manual

Rev H, February 2002

Page 147

Restore Keysheet The Restore Keysheet procedure allows you to restore the customized keysheet parameters that were saved in FLASH memory at the factory. Because the user cannot overwrite the FLASH memory, these parameters provide a reliable backup of the original settings.

Running the Procedure 1.

1. Select RESTORE KEYSHEET by typing R - Enter while RESTORE KEYSHEET is shown. The comment block from the last keysheet that was saved will be displayed. If no keysheet was saved, the following message will be displayed: NO KEYSHEET SAVED WARNING: Restoring keysheet parameters will overwrite current settings. Do you wish to proceed? (Y/N)

2.

Type Y or y -Enter to restore to RAM the previously saved keysheet parameters. Entering any other response will abort the procedure. If no parameters were saved, you will see the message: NO KEYSHEET SAVED Otherwise, the following message will be displayed: Keysheet parameters restored, press any key to reboot

3.

You must reboot the scanner for the restored parameters to take effect. The power to the laser diode will be turned Off during restoration to avoid spikes, which could shorten diode life. Note: The keysheet area in FLASH memory is not erased when a new OS version is downloaded. Therefore, you can restore the keysheet settings easily after updating the OS. However, if the new OS introduces any new or changed parameters, they may not be set correctly by the saved keysheet. SICK Auto Ident, Inc. makes every effort to be backward compatible, and will try to warn you when new parameter values will need to be entered by hand.

Restore C Program RESTORE PROGRAM is used to either save the currently loaded C program into non-volatile FLASH memory, or restore the program from FLASH into RAM memory. This allows restoring a user program in the event of memory loss of the battery-backed SRAM, and after downloading a new version of the operating system. This gives a measure of security to installations where the user program source code and download file may not be given to a customer by the system integrator, or gets lost over time. This also allows scanners that are returned to the factory for service to be shipped back to the customer with their program intact.

Rev H, February 2002

CiMAX 78xx Technical Reference Manual

8-19

8 Diagnostics

Introduction

Page 148

Chapter

8

Diagnostics

Procedure for Restoring a User Program The RESTORE PROGRAM procedure works in a similar fashion to the RESTORE KEYSHEET procedure. When you run the procedure by entering an R from the Diagnostic menu, you will be prompted with messages similar to the following: Currently stored User Program information: Program checksum, start, end, & comment block: ec 130000 130810 1302fc Program XYZ for Company ABC, written 9/9/99 WARNING: Restoring user program will overwrite current program Do you wish to proceed? (Y/N) In this example, the comment block saved with the program is Program XYZ for Company ABC, written 9/9/99. You may type any information in this block when the program is saved. If there is no program stored in FLASH memory, the following will be displayed: NO USER PROGRAM STORED If you answer the prompt with a Y or y, a second prompt will be displayed to confirm: WARNING: Restoring user program will overwrite current program Do you wish to proceed? (Y/N) If you answer this prompt with a Y or y, the program will be restored into memory, and another prompt will be sent: User program restored, press any key to reboot After you press any key, the scanner will reboot and run the user C program.

Saving a User Program The user program to be saved in memory must have a code and constant segment size of less than 8Kbytes. Refer to the following paragraphs to determine the size of your program. The method used to save a program is hidden from a user in that there is no prompt telling you how to do it. To save a program to FLASH memory, run the RESTORE PROGRAM procedure by typing R in the Diagnostic menu, and then typing PROGRAM in response to the prompt: Do you wish to proceed? (Y/N). You will be prompted with: Enter comment block for new user program: Type your desired comment block to be saved with the program. You may type any number of characters, ending it with a CR. The number of characters you enter is included in the size of the program when the test is made to see if it will fit in the available 8Kbytes of space. After the comment block is entered, a final prompt will appear: User program saved, press any key to reboot. Pressing any key will reboot the scanner. 8-20

CiMAX 78xx Technical Reference Manual

Rev H, February 2002

Page 149

Introduction

8

The user program to be saved in memory must have a code and constant segment size of less than 8Kbytes. 8Kbytes may seem small, but most programs will fit in this size. As an example, the Crisplant program is just under 8K. This is CODE size only, including constants and initialized data. It does not include the dynamic data usage by the program, global, local or local static.

Diagnostics

You may find the size of your program by one of two methods. The direct method is to load the program into the scanner and then try to save it to FLASH memory. If the program is too large, the following message will appear: User Program is too large to fit in Flash memory The quantitative method is to look at the map file generated after the linking phase of the program build. You must add the following line to your make file or batch file (e.g. c68k.bat) to generate this map file: ..\..\bin\GSMAP %1.rmp -n -o or: c:\cisoft\c68k\bin\GSMAP %1.rmp -n -o depending on the paths to the C Programming Platform executable files. At the bottom of the .map file generated by the GSMAP.EXE program, there will be a list of all the segment sizes. Scroll up from the bottom of the file, until you find the notation end_constant. Subtract the address of this segment from the address of the S__main segment. The difference will be the size of the code and constant segments. For example, you will see something like the following: ...

Segment

Address

Length

Class

Align

Com bine

S__main

00130000 (1245184)

000028 (40)

code hword private

S_main

00130028 (1245224)

000ed4 (3796)

code hword private

_S_data

00130efc (1249020)

0005da (1498)

constant hword private sdata

001314d6 (1250518)

0000d9 (217)

constant hword private end_constant

001315b0 (1250736)

000001 (1)

separate hword private

.. In this example, the end_constant address minus the S__main address is 1315B0 - 130000 = 15B0(hex) or 1250736 - 1245184 = 5552(decimal). This program is less than 8Kbytes, since 8K = 2000 (hex) or 8*1024 = 8192 (decimal). The data segments of the user program, i.e. the local, global or static variables are not saved with the program.

Rev H, February 2002

CiMAX 78xx Technical Reference Manual

8-21

Page 150

Chapter

8

Diagnostics

The program variables may also be corrupted by the action of saving a program in FLASH memory. This is consistent with normal operation of the user program in that the RAM is battery backed and is not cleared after each power-up. Un-initialized data will therefore not be automatically cleared to zero. Any program that depends on this technique to save data as static variables instead of using the ANSI-compatible file system, must check the integrity of the data with a checksum scheme, or other technique. Any files in use by a program using the ANSI-compatible file system will be lost when a program is restored.

Set Clock Procedure This diagnostic allows you to set the time and date of the on-board battery-backed real-time clock. The clock may be read and used by a user C program. When you run this entry by pressing R, the following example message will be displayed: Present time/date is: 12:00:00 08-04-95 Enter new time (hh:mm:ss): The clock will continue to keep time and date while you are observing the display. Press Enter to exit the routine without making any changes to the clock. To change the time, type a new time, in 24-hour notation, followed by Enter. The clock will be reset at the instant that Enter is pressed, so you must compensate for the delay between typing the time and pressing Enter. No line editing is allowed, so you must enter the time correctly. If you enter an incorrectly formatted time string, but not an incorrect time, the message, Incorrect format, will be displayed, and you will be prompted to re-enter the time. You will be prompted to enter the date by the message: Enter new date (mm-dd-yy): Type the date in the correct format, followed by Enter, to enter the new date and end the procedure. You can run Set Clock again by pressing R to ensure the correct values were entered. The time displayed will be the time at which you press R. Press Enter to exit the procedure without changing the clock.

7855 Frequency Adjustment This adjustment refers only to CiMAX 7855 scanners with programmable sweep adjustments. Although parameters 454 RASTER FREQUENCY and 455 RASTER AMPLITUDE are listed on all 78xx scanners, they only affect 7855 scanners. To prevent the loss of laser power is earlier models of scanners, set these two parameters to 99 (7850 and 7855 scanners). The parameters range is 000 (default) to 099.

8-22

CiMAX 78xx Technical Reference Manual

Rev H, February 2002

Page 151

Introduction

8

These parameters may be set from the Setup menu by entering in values directly, or through the SET DIGITAL POTS diagnostic. New features have been added to the diagnostic to allow displaying the sweep frequency while you set the pots. This is valuable when setting up the proper sweep height and frequency in the field, since without this feature you would have to open up a unit and measure the frequency with a meter.

Diagnostics

When running the SET DIGITAL POTS diagnostic, the menu of choices is now: Current settings: (select # to change) 1 MOTOR SPEED = 50 2 LSR PWR (FINE) = 0 3 LSR PWR (COARSE) = 0 4 LSR PWR LIMIT = 0 5 LASER MOD SCOPE = 99 6 RASTER FREQUENCY = 0 7 RASTER AMPLITUDE = 0 8 OPT RCVR LIMIT = 99 9 OPT RCVR THRESH = 72 10 OPT RCVR SHIFT = 20 11 OPT RCVR GAIN = 0 Selecting 6 to adjust the raster frequency will bring up the following prompt. A similar prompt is given if 7 is selected.

Mode will reliably work if reading efficiency is 100! U to increment, D to decrement T for max, B for min, F to display Frequency 6 RASTER FREQUENCY = 00 The current sweep frequency measurement is displayed by typing 'F'. You will then get either the message: No measurements made Or a message like: Frequency: 9 Hz It is important to understand how the measurement is made to understand the cases where you get the message “No measurement made”. The diagnostic assumes a label is placed in the middle of the sweep height and that the sweep height relative to the bar height is such that the raster pattern extends beyond the label on both sides. The diagnostic times how long it takes to move off of the label, then return to the same point. This is then converted to the sweep frequency. If there is no label being scanned, or the sweep height is not big enough to move off of the label (so a label is always being scanned), then the message “No measurements made” will be displayed. The proper method to use this feature is to first set the sweep frequency and amplitude to zero (making a single line), and then place a label with small bar height relative to the desired sweep

Rev H, February 2002

CiMAX 78xx Technical Reference Manual

8-23

Page 152

Chapter

8

Diagnostics height in the middle of the scan line. Run the Read Efficiency diagnostic and position the label so it reads 100% or as close as you can get it to 100%. Then, increase the amplitude and frequency to approximate the desired sweep height. The actual starting frequency is not important except to get some oscillation so you can measure the frequency. The combination of sweep height and bar height should result in a raster pattern that extends beyond the label on both sides. At this point you can type 'F' to make a frequency measurement. Adjust the frequency setting to the desired value. Note that there is an interaction between the frequency and amplitude settings. As you change the frequency, the sweep height (amplitude) will also change as you drive the oscillation relative to the resonance of the motor/mirror assembly. You will have to iterate between setting the amplitude pot then the frequency pot to arrive at your desired sweep height and frequency.

Gap Tracking Diagnostics Adjusting Gap Tracking parameters and diagnosing problems during the installation of your scanner can be made easier by using the following built-in diagnostic features.

Scanner Model Notification Parameters are included that are not used in all scanner models, or that may be used only when certain options are installed.

Gap Tracking Parameters The gap tracking-related parameters, with their default values are shown in Table 8–4. TABLE 8–4. Gap Tracking Parameters

Parameter

8-24

Description

Default Value

700

TRACKING

0 (disabled)

701

ENC UPDATE RATE

4 ms

702

MILS/TIC

000 (disabled)

703

OUTZN TOLR

040 (4.0")

704

BOX TOLR

020 (2.0")

705

CONV WIDTH

240 (24.0")

706

INZONE-CENTER

0170 (17.0")

707

OUTZONE-CENTER

0170 (17.0")

708

ENDPOINT TBL

0

709

ROTATION ANGLE

000 (degrees)

710

HEIGHT1

030 (3.0" )

711

HEIGHT2

090 (9.0")

712

HEIGHT3

150 (15.0")

713

HEIGHT4

210 (21.0")

714

HEIGHT5

000 (not installed)

715

CONV TO SCANNER

180 (18.0")

716

MIN HEIGHT

000 (000")

CiMAX 78xx Technical Reference Manual

Rev H, February 2002

Page 153

TABLE 8–4. Gap Tracking Parameters (Continued)

Parameter

Description

Default Value

717

MAX HEIGHT

180 (18.0")

718

FIXED BOX LEN

000 (off)

719

FIXED CONV SPD

000 (off)

720

AF MIN FOCUS

200 (20.0")

721

AF MAX FOCUS

710 (71.0")

722

AF MIN BOX MVMNT

005 (0.5")

723

AF STEP RATE

3 ms/step

724

AF DEFAULT FOCUS

200 (20.0”)

725

PIC PHOTO EYES

0

726

SCAN DELAY COMP

0 (disabled)

727

TUNNEL MTG ANGLE

45

728

BOX FACES

0

729

LABEL TOLR

020

730

SCAN ZONE IZ-CTR

0170

731

SCAN ZONE OZ-CTR

0170

732

PIC SERIAL PORT

1

733

PIC POSITION

1

734

MIN FOCUS RCVR THRESH

072

735

MAX FOCUS RCVR THRESH

072

736

RCVR THRESH STEPS

0

737

FOCUS OFFSET

00

738

MAX DIG FILT

3

739

DIG FILT DISTANCE

450

740

MIN FOCUS RCVR GAIN

010

741

MAX FOCUS RCVR GAIN

010

742

RCVR GAIN STEPS

0

743

NUM HT ARRAY SENSORS

096

744

BOX TOLR SIGN

+

Setting Up for Gap Tracking Diagnostics To set up for diagnostic testing: 1.

Connect a PC running terminal emulation software (not a CiMAX 1400) to the scanner's Setup port.

2.

Be sure that the scanner is running in the Normal mode.

3.

Set parameter 012 NORMMD RPT only as indicated in the following paragraphs.

Rev H, February 2002

CiMAX 78xx Technical Reference Manual

8 Diagnostics

Gap Tracking Diagnostics

8-25