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 7 of 13

Ultra High Accuracy Laser Displacement Meter LC-2400 Series Instruction Manual, pages 61 to 70

Pages 61 to 70 of 121

The original document is the PDF (805 KB). 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 Keyence LC-2400A

Page 61

8-1 RS-232C Interface (Standard Equipment)

3. Send the desired value from the external device to the LC. When the required setting procedure is completed in step (2), step (3) is not necessary.

Note

The data output from the LC to external equipment is called "response data". Response data for verifying parameter settings is output in the following format:

Response Data Format

1st data segment 2nd data segment 3st data segment

X-th data segment CR "CR" is a symbol indicating the end of the data stream

Changing Gain, Measurement Mode and Number of Averaging Measurements

54 CHAPTER 8 External Input/Output

To change or set gain, measurement mode and number of averaging measurements, select the proper character or ASCII code from the following table and send it from the external device to the LC. Transmission code Desired setting Function Character ASCII code AUTO SP 20H Changing gain GAIN1 ! 21H GAIN2 ” 22H GAIN3 # 23H GAIN4 $ 24H Changing NORMAL % 25H measurement mode P-P & 26H PEAK ’ 27H BOTTOM ( 28H Changing number of 1 ) 29H averaging measure2 * 2AH ments 4 + 2BH 8 , 2CH 16 2DH 32 . 2EH 64 / 2FH 128 0 30H 256 1 31H 512 2 32H 1024 3 33H 2048 4 34H 4096 5 35H 8192 6 36H 16384 7 37H 32768 8 38H 65536 9 39H 131072 : 3AH

Page 62

8-1 RS-232C Interface (Standard Equipment)

Setting the AUTO-ZERO/ HOLD/FILTER/PANEL LOCK Functions

Note

Setting Upper/Lower Limits, Parameters, and Filter

To set each function, select the proper character or ASCII code from the following table and send it from the external device to the LC. Transmission code Function Desired setting Character ASCII code AUTO-ZERO ON/OFF AUTO-ZERO ON ; 3BH AUTO-ZERO OFF < 3CH HOLD ON/OFF HOLD ON = 3DH HOLD OFF > 3EH PANEL LOCK ON/OFF PANEL LOCK ON ? 3FH PANEL LOCK OFF @ 40H FILTER ON/OFF FILTER ON A 41H FILTER OFF B 42H The PANEL LOCK function is used to disable any input from the display unit keys. The LOCK indicator is lit when the PANEL LOCK function is ON.

To set upper/lower limits, parameters and filter, select the proper character or ASCII code from the following table and send it from an external device to the LC. Function Upper/lower limits

Parameters

FILTER

Transmission code Character ASCII code NORMAL mode upper limit C 43H NORMAL mode lower limit D 44H P-P mode upper limit E 45H P-P mode lower limit F 46H PEAK mode upper limit G 47H PEAK mode lower limit H 48H BOTTOM mode upper limit I 49H BOTTOM mode lower limit J 4AH OFFSET e 65H Calibration f 66H HIGH-INTENSITY LIMIT g 67H HIGH-INTENSITY LIMIT TIME h 68H LOW-INTENSITY LIMIT i 69H LOW-INTENSITY LIMIT TIME j 6AH Analog ratio k 6BH DIGIT SUPPRESS l 6CH FILTER preset value m 6DH Desired setting

The procedure for setting the upper/lower limits, parameters, and filter is as follows: 1. Select the desired sensor head (1CH/2CH) or function (ADD/SUB). 2. After receiving the "PASS CR" message from the LC, send the required character or ASCII code to the LC. 3. Send the desired value to the LC.

CHAPTER 8 External Input/Output

55

Page 63

8-1 RS-232C Interface (Standard Equipment)

The upper/lower limits, parameters, and filter values must be in the following ranges. The upper/lower limits and OFFSET value are output with a "+" or "-" sign. Item Sensor head Setting range Upper/lower limits LC-2420 - 299.99 to + 299.99 µm LC-2430 - 599.98 to + 599.98 µm LC-2440 - 5.9998 to + 5.9998 mm LC-2450 - 15.9995 to + 15.9995 mm OFFSET LC-2420 - 199.99 to + 199.99 µm Parameters LC-2430 - 499.98 to + 499.98 µm LC-2440 - 2.9998 to + 2.9998 mm LC-2450 - 7.9995 to + 7.9995 mm Calibration All models 0.9000 to 1.1000 (See P.35.) HIGH-INTENSITY LIMIT All models 00000 to 49998 LOW-INTENSITY LIMIT HIGH-INTENSITY LIMIT TIME 0000.0 to 2999.9 ms All models LOW-INTENSITY 9999.9 (Infinity) LIMIT TIME ANALOG RATIO All models 0 to 5 (See P.73) DIGIT SUPPRESS All models 0 to 4 digits Filter All models 0100 to 4999 Hz Note

• When the upper/lower limits, parameters, and filter values exceed the above ranges, the error message "ERROR CR" is returned. • When the ADD or SUB function is selected, calibration, INT. LIMIT and gain cannot be set. • Be sure to set HIGH-INTENSITY LIMIT higher than LOW-INTENSITY LIMIT. • The filter function can be set only when the display unit is used.

Measurement Data Output Method

56 CHAPTER 8 External Input/Output

The LC outputs displacement and intensity measurement values using the following four methods. To output these measurement values, select the desired character or ASCII code in the following table and transmit it from an external device to the LC.

Page 64

8-1 RS-232C Interface (Standard Equipment)

Code transmitted to the LC Character ASCII code M 4DH

Output method Single output of displacement measurement value Single output of displacement and intensity measurement values Continuous output of displacement measurement value Continuous output of displacement and intensity measurement values Quit continuous output

N

4EH

O

4FH

P

50H

Q

51H

Send character "Q" or ASCII code "51H" when in continuous output mode. Even if character "Q" ("51H") is received while in single output mode, the LC ignores this codes.

■ Single output of displacement and intensity measurement values [External equipment to the LC] Character: N ASCII code: 4EH [Output data] [The LC to external equipment] 1st data segment 2nd data segment

Displacement

8st data segment 9st data segment

CR

• • • • •

"+" or "-" sign

Numerical data

10st data segment

Intensity

14st data segment 15st data segment

CR

• • • • •

Numerical data

Example: When a displacement of + 2.0000 mm is measured using the diffuse-reflective sensor head (LC-2440/LC-2450), the LC outputs the displacement and intensity measurement values sequentially in the following format: Displacement Intensity

+ sign 1

SPACE 10 1 digit 2

2 . 0 10 0 digit Decimal point 10 -1digit 0 0 0

0 10-2digit CR

0 10-3digit

0 10-4digit

CR

■ Single output of displacement measurement value [External equipment to the LC] Character: M ASCII code: 4DH Example: When a displacement of - 20.02 µm is measured using the regular-reflective sensor head (LC-2420/LC-2430), the LC outputs the displacement measurement value once in the following format: ±

SPACE

SPACE

2

0

.

0

2

CR

CHAPTER 8 External Input/Output

57

Page 65

8-1 RS-232C Interface (Standard Equipment)

Note a [SPACE] is output for any digit having no data.

■ Continuous output of displacement and intensity measurement values or continuous output of displacement measurement values When the displacement and intensity continuous output method or the displacement continuous output method is selected, the above measurement values are output at a predetermined time interval. ■ Measurement error When a measurement error occurs, the LC outputs the following values: (When using the LC-2420 or LC-2430 sensor head) +

9

9

9

9

.

9

9

CR

9

9

9

CR

(When using the LC-2440 or LC-2450 sensor head) +

9

9

.

9

Measurement output values are changed depending on the specified number of averaging measurements.

Verifying Parameter Settings and Output Conditions

Current parameter settings and output conditions can be verified by transmitting an character or ASCII code to the LC. The LC outputs the current parameter settings and output conditions corresponding to the specified ASCII code (character). Code transmitted to the LC Parameter setting/output mode Character ASCII code Alarm output mode R 52H Preset gain S 53H Preset measurement mode T 54H NORMAL mode upper/lower limits U 55H P-P mode upper/lower limits V 56H PEAK mode upper/lower limits W 57H BOTTOM mode upper/lower limits X 58H Preset number of averaging Y 59H measurements OFFSET preset value Z 5AH CALIBRATION preset value [ 5BH INT. LIMIT preset value ¥ 5CH Preset analog ratio ] 5DH DIGIT SUPPRESS preset value ^ 5EH AUTO-ZERO ON/OFF – 5FH HOLD ON/OFF ' 60H FILTER ON/OFF a 61H FILTER preset value b 62H Preset program number c 63H Preset function d 64H ■ Alarm output mode [External equipment to the LC] Character: R ASCII code: 52H

58 CHAPTER 8 External Input/Output

Page 66

8-1 RS-232C Interface (Standard Equipment)

[The LC to external equipment] 1st data segment 2nd data segment 3rd data segment 4th data segment 5th data segment 6th data segment 7th data segment 8th data segment

H HIGH

Note

+ ± +AREA OVER -AREA OVER

L LOW

B BRIGHT

D DARK

E ERROR

G GO

9th data segment

CR

When the response data includes no alarm output, the LC feeds back the character " * " or the ASCII code "2AH".

Example: "HIGH" and "+ AREA OVER" alarm output H

✽

✽

+

✽

✽

✽

✽

CR

■ Verifying the preset gain [External equipment to the LC] Character: S ASCII code: 53H [The LC to external equipment] 1st data segment 2nd data segment

3rd data segment

CR Preset data

Example: • When the gain is set to GAIN 1 in the AUTO gain selector mode: N

R

CR

• When the gain is set to GAIN 1: G

Note

1

CR

When the gain is set to GAIN 2, GAIN 3 or GAIN 4, the 2nd data segment is changed to "2", "3" or "4". ■ Verifying the preset measurement mode [External equipment to the LC] Character: T ASCII code: 54H [The LC to external equipment] 1st data segment 2nd data segment

3rd data segment

CR Preset data

CHAPTER 8 External Input/Output

59

Page 67

8-1 RS-232C Interface (Standard Equipment)

Example: When the measurement mode is set to NORMAL: N

Note

R

CR

When the measurement mode is set to P-P, PEAK or BOTTOM, the first and 2nd data segment are changed to "PP", "PK" or "BT". ■ Verifying the preset upper/lower limits [External equipment to the LC] Character: U to X ASCII code: 54H to 58H [The LC to external equipment] 1st data segment

2nd data segment

8th data segment 9th data segment CR

Sign (+ or -)

Note

Numerical data a [SPACE] is output for any digit having no data. Be sure to verify the preset measurement mode before verifying the upper/lower limit settings. Example: When the upper limit is set to + 2.5000 mm and the lower limit is set to 0.1500 mm in the NORMAL measurement mode using the diffuse-reflective sensor head: +

SPACE

2

.

5

0

0

0

CR

±

SPACE

0

.

1

5

0

0

CR

Example: When the upper limit is set to + 20.02 µm and the lower limit is set to - 0.21 µm in the NORMAL measurement mode using the regular-reflective sensor head: +

SPACE

SPACE

2

0

.

0

2

CR

±

SPACE

SPACE

SPACE

0

.

2

1

CR

■ Verifying the preset number of averaging measurements [External equipment to the LC] Character: Y ASCII code: 59H [The LC to external equipment] 1st date segment

2nd date segment

•••

7th data segment

CR

Numerical date

Note

60 CHAPTER 8 External Input/Output

The number of digits for the above response data varies depending on the specified number of averaging measurements.

Page 68

8-1 RS-232C Interface (Standard Equipment)

Example: When the number of averaging measurements is set to 128: 1

8

2

CR

■ Verifying the OFFSET preset value [External equipment to the LC] Character: Z ASCII code: 5AH [The LC to external equipment] 1st data segment

2nd data segment

8th data segment 9th data segment CR

Sign (+ or -)

Numerical data

Example: When the OFFSET value is set to - 1.567 mm: ±

Note

SPACE

.

1

5

6

7

0

CR

The OFFSET value is output in the same format as measurement values. ■ Verifying the CALIBRATION preset value [External equipment to the LC] Character: [ ASCII code: 5BH [The LC to external equipment] 1st date segment

2nd date segment

•••

7th data segment

CR

Numerical date

Note

When the calibration setting is verified, the LC outputs a calibration coefficient.

Calibration coefficient (P.35)

Example: When the calibration coefficient is set to 0.9876: 0

.

9

8

7

6

CR

■ Verifying the INT. LIMIT preset values [External equipment to the LC] Character: " ASCII code: 5CH

CHAPTER 8 External Input/Output

61

Page 69

8-1 RS-232C Interface (Standard Equipment)

[The LC to external equipment] HIGH-INTENSITY LIMIT (H.I.L.) / LOW-INTENSITY LIMIT (L.I.L.) 1st data segment

5th data segment

6th data segment CR

Numerical data HIGH-INTENSITY LIMIT (H.I.L.T.) / LOW-INTENSITY LIMIT TIME (L.I.L.T.) 1st data segment

5th data segment

7th data segment CR

Numerical data

Note

The INT. LIMIT preset values are output sequentially in the order of HIGHINTENSITY LIMIT (H.I.L.), HIGH-INTENSITY LIMIT TIME (H.I.L.T.), LOWINTENSITY LIMIT (L.I.L.) and LOW-INTENSITY LIMIT TIME (L.I.L.T.). Example: When the INT. LIMIT values are set to the following values: H.I.L. = 10000 H.I.L.T. = 0000.0 ms L.I.L. = 00050 L.I.L.T. = 9999.9 ms 1

0

0

0

0

CR

0

0

0

0

.

0

0

0

0

5

0

CR

9

9

9

9

.

9

■ Verifying the preset analog ratio [External equipment to the LC] Character: ] ASCII code: 5DH [The LC to external equipment] 1st data segment

4th data segment

5th data segment CR

Numerical data

Example: When the analog ratio is set to 100 µm/V: 1

0

0

CR

■ Verifying the DIGIT SUPPRESS preset value [External equipment to the LC] Character: ^ ASCII code: 5EH

62 CHAPTER 8 External Input/Output

CR

CR

Page 70

8-1 RS-232C Interface (Standard Equipment)

[The LC to external equipment] 1st data segment 2nd data segment CR Numerical data

Example: When the DIGIT SUPPRESS value is set to "1-digit": 1

CR

■ Verifying the AUTO-ZERO ON/OFF status [External equipment to the LC] Character:, ASCII code: 5FH [The LC to external equipment] 1st data segment 2nd data segment, Z

CR ON or OFF

Example: When the AUTO-ZERO function is ON: Z

Note

±

O

N

CR

When the AUTO-ZERO function is OFF, the LC outputs the message "ZOFF". ■ Verifying the HOLD ON/OFF status [External equipment to the LC] Character: ' ASCII code: 60H [The LC to external equipment] 1st data segment

2nd data segment

H, CR ON or OFF

Example: When the HOLD function is OFF: H

Note

±

O

F

F

CR

When the HOLD function is ON, the LC outputs the message "H-ON".

CHAPTER 8 External Input/Output

63