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

Ultra High Accuracy Laser Displacement Meter LC-2400 Series Instruction Manual, pages 71 to 80

Pages 71 to 80 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 71

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

■ Verifying the FILTER ON/OFF status [External equipment to the LC] Character: a ASCII code: 61H [The LC to external equipment] 1st data

2nd data

F

–

CR ON or OFF

Example: When the FILTER function is ON: ±

F

Note

O

N

CR

When the FILTER function is OFF, the LC outputs the message "F-OFF". ■ Verifying the preset CUTOFF frequency [External equipment to the LC] Character: b ASCII code: 62H [The LC to external equipment] 1st data segment

4th data segment

5th data segment CR

Numerical data

Note

Be sure to verify the FILTER status before verifying the preset CUTOFF frequency.

Example: When the CUTOFF frequency is set to 100 Hz: 1

0

0

CR

■ Verifying the preset program number [External equipment to the LC] Character: c ASCII code: 63H [The LC to external equipment] 1st data segment 2nd data segment CR Numerical data

Example: When no program is running: 0

64 CHAPTER 8 External Input/Output

CR

Page 72

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

Note

When Program No. 1, 2, 3, 4 or 5 is running, the 1st data segment is changed to 1, 2, 3, 4 or 5. Example: When Program No. 1 is running: 1

CR

■ Verifying the preset function [External equipment to the LC] Character: d ASCII code: 64H [The LC to external equipment] 1st data segment 2nd data segment

3rd data segment

4th data segment CR

Function symbol (1CH / 2CH / ADD / SUB)

Example: When the function is set to 1CH: 1

Note

Setting Programs

C

H

CR

When the function is set to 2CH, ADD or SUB, the LC outputs the message "2CH", "ADD" or "SUB".

The parameter settings can be saved and loaded by sending signals from external equipment to the LC. When the following character or ASCII code is transmitted from an external device (e.g. a computer) to the LC, the parameter settings can be saved and loaded. The LC can store up to 5 parameter setting programs. The program numbers correspond to the PROGRAM indicator numbers provided on the display panel. For initial settings of each program, see page 90. Function Program No. 1 SAVE Program No. 2 SAVE Program No. 3 SAVE Program No. 4 SAVE Program No. 5 SAVE Program No. 1 LOAD Program No. 2 LOAD Program No. 3 LOAD Program No. 4 LOAD Program No. 5 LOAD

Code transmitted to the LC Character ASCII code n 6EH o 6FH P 70H q 71H r 72H s 73H t 74H u 75H v 76H w 77H

CHAPTER 8 External Input/Output

65

Page 73

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

■ Saving parameter settings (SAVE) When the desired character or ASCII codes are transmitted from an external device (e.g. a computer) to the LC, the LC outputs the message "PASS CR" to the external device and saves the parameter settings in the backup program area. The following is an example of the procedure for saving parameter settings. Saving parameter settings in Program No. 1 1. Set the parameters required for measurement. The LC will be in the measurement mode. 2. To save the parameter settings in Program No. 1, send the character "n" from an external device to the LC. 3. The LC sends back the message "PASS CR", and the current measurement conditions are saved in Program No. 1. ■ Loading parameter settings (LOAD) When the desired character or ASCII code is transmitted from an external device (e.g. a computer) to the LC, the LC outputs the "PASS CR" message to the external device and loads the program stored in the backup program area, according to the specified character or ASCII code. Loading the parameter settings stored in Program No. 1 1. Send character "s" from an external device to the LC. 2. The "PASS CR" message is output from the LC, and Program No. 1 is loaded. The current parameter settings are changed to the parameter settings stored in Program No. 1. Note

Changing the Function (When using two sensor heads)

If a program is specified which has no stored settings, the parameter settings revert to the factory settings.

The following four functions (sensor heads or measurement modes) can be selected. To change each function, select the desired character or ASCII code in the following table, and send it from external equipment to the LC. If the specified character or ASCII code is not properly received, the LC will output an "ERROR CR" message and will not perform the specified operation. Code transmitted to the LC Function Character ASCII code CH1 x 78H CH2 y 79H ADD z 7AH SUB { 7BH

Note

66 CHAPTER 8 External Input/Output

These functions cannot be changed without the LC-B3 board.

Page 74

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

RS-232C Code List Function Changing gain

Changing measurement mode

Changing number of averaging measurements

Setting upper/lower limits

Code transmitted to the LC Character ASCII code SP 20H ! 21H " 22H # 23H $ 24H % 25H & 26H ’ 27H ( 28H ) 29H * 2AH + 2BH , 2CH, 2DH . 2EH / 2FH 0 30H 1 31H 2 32H 3 33H 4 34H 5 35H 6 36H 7 37H 8 38H 9 39H : 3AH ; 3BH < 3CH = 3DH > 3EH ? 3FH @ 40H A 41H B 42H C 43H D 44H E 45H F 46H G 47H H 48H I 49H J 4AH

Setting item AUTO GAIN1 GAIN2 GAIN3 GAIN4 NORMAL P-P PEAK BOTTOM AVE1 AVE2 AVE4 AVE8 AVE16 AVE32 AVE64 AVE128 AVE256 AVE512 AVE1024 AVE2048 AVE4096 AVE8192 AVE16384 AVE32768 AVE65536 AVE131072 AUTO-ZERO ON AUTO-ZERO OFF HOLD ON HOLD OFF PANEL LOCK ON PANEL LOCK OFF FILTER ON FILTER OFF NORMAL mode upper limit NORMAL mode lower limit P-P mode upper limit P-P mode lower limit PEAK mode upper limit PEAK mode lower limit BOTTOM mode upper limit BOTTOM mode lower limit

CHAPTER 8 External Input/Output

67

Page 75

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

Function Measurement data output

Information output

Parameter settings

FILTER preset value Program (SAVE)

68 CHAPTER 8 External Input/Output

Code transmitted to the LC Character ASCII code M 4DH N

4EH

O

4FH

P

50H

Q R S T U

51H 52H 53H 54H 55H

V W X

56H 57H 58H

Y

59H

Z [ ¥ ] ^

5AH 5BH 5CH 5DH 5EH, ' a b c d e f g h i j k l m n o p q r

5FH 60H 61H 62H 63H 64H 65H 66H 67H 68H 69H 6AH 6BH 6CH 6DH 6EH 6FH 70H 71H 72H

Setting item Single output of displacement measurement value Single output of displacement and intensity measurement values Continuous output of displacement measurement values Continuous output of displacement and intensity measurement values Quit continuous output Alarm output mode Preset gain Preset measurement mode NORMAL mode upper/lower limits P-P mode upper/lower limits PEAK mode upper/lower limits BOTTOM mode upper/lower limits Preset number of averaging measurements OFFSET preset value CALIBRATION preset value INT. LIMIT preset value Preset analog ratio DIGIT SUPPRESS preset value AUTO-ZERO ON/OFF HOLD ON/OFF FILTER ON/OFF FILTER preset value Preset program number Preset function OFFSET Calibration HIGH-INTENSITY LIMIT HIGH-INTENSITY LIMIT TIME LOW-INTENSITY LIMIT LOW-INTENSITY LIMIT TIME Analog ratio DIGIT SUPPRESS Preset CUTOFF frequency Program No. 1 SAVE Program No. 2 SAVE Program No. 3 SAVE Program No. 4 SAVE Program No. 5 SAVE

Page 76

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

Code transmitted to the LC Character ASCII code s 73H t 74H u 75H v 76H w 77H x 78H y 79H z 7AH { 7BH

Function Program (Load)

Preset function

Sample Program

Setting item Program No. 1 LOAD Program No. 2 LOAD Program No. 3 LOAD Program No. 4 LOAD Program No. 5 LOAD Setting 1CH Setting 2CH Setting ADD Setting SUB

Program 1 In the following program, the LC outputs measurement values to a personal computer when "M" is entered on the computer keyboard. 100 110 120 130 140 150 160 170 180 190 200 210

OPEN “COM1:4800,N,8,1,RS,CS,DS,CD” FOR RANDOM AS #1 ON COM(1)GOSUB 170 COM(1)ON A$=INKEY$ IF A$<>“M” THEN 130 PRINT #1,A$; GOTO 130 N=LOC(#1) IF N=0 THEN RETURN B$=INPUT$(N,#1) IF RIGHT$(B$,1)=CHR$(13) THEN PRINT B$ ELSE PRINT B$; RETURN

CHAPTER 8 External Input/Output

69

Page 77

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

Program 2 In the following program, the LC sequentially outputs 100 measurement values to a computer. The computer display shows the maximum, minimum and average values of the output data when "S" is entered through the computer key board. 100 110 120 130 140 150 160 170 180 190 200 210 220 230 240 250 260 270 280 290 300 310 320 330 340 350 360 370

Note

70 CHAPTER 8 External Input/Output

DIM A$(100) PRINT “START or END ? (PUSH [S] or [E] Key)” Displays prompt PRINT for starting or A$=INPUT$(1) stopping measurement. IF A$“E” OR A$=“e” THEN END IF A$<>“S” AND A$<>“S” THEN 130 OPEN “COM1:4800,N,8,1,RS,CS,DS,CD” FOR RANDOM AS #1 Instruction to PRINT #1,“0”; start continuous FOR I=1 TO 100 data output Data input INOUT #1,A$(I) Instruction to NEXT I stop continuous PRINT #1,“Q”; data output FOR I=1 TO 500 :NEXT I Discards the data IF FOR(1)=0 THEN INPUT #1,DAMMY$ :GOTO 230 entered after the CLOSE #1 continuous data output has MAX=-1000 :MIN=1000 :SUM=0 stopped. FOR I=1 TO 100 A=VAL(A$(I)) Performs arithmetic operaIF A>MAX THEN MAX=A tions to obtain the maximum, IF A<MIN THEN MIX=A minimum and average values. SUM=SUM+A NEXT I AVE=SUM/100 PRINT USING “MAX =###.#### mm”;MAX Displays the maximum, PRINT USING “MiX =###.#### mm”;MIN minimum and average values. PRINT USING “AVE =###.#### mm”;AVE PRINT GOTO 110

Be sure that the baud rate of the LC is identical to that of the computer.

Page 78

8-2 Control I/O (Standard equipment on Display Unit)

8-2 Control I/O (Standard Equipment on Display Unit) The operation of the LC-2400 series can be controlled by sending signals from an external device (e.g. a computer) to the LC. By shorting the desired control input pin and the GND pin, preset functions, program numbers and the HOLD/AUTO-ZERO ON/OFF status can be changed. Also, the LC outputs various alarm signals for indicating abnormal measurement conditions (e.g. INTENSITY alarm signal).

CAUTION

The ferrite cores are packaged with the LC-2400W series. When using the RS-232C or the CONTROL I/O connecting cable, attach the appropriate ferrite cores at both ends of the cable. Otherwise, noise interference may occur. When using the CONTROL I/O cable

Specifications

Output Open-collector Maximum applied voltage: 30 V Maximum sink current: 100 mA

OUT

Photo-coupler

2.2 Ω 33 V

COM

Input Non-voltage input +12 V

Photo-coupler

1.8 kΩ 680 Ω IN GND

• Contact input

LC

Control input GND

• Open-collector input

LC

• Open-collector

Control input GND

CHAPTER 8 External Input/Output

71

Page 79

8-2 Control I/O (Standard equipment on Display Unit)

Pin Names and Functions

Pin No. Input/output 1 Output 2 – 3 Output

B

1

N

C

Signal name INTENSITY alarm output COM AREA OVER output (NEAR)

4 5

– Output

COM AREA OVER output (FAR)

6

Output

GO output

7 8

– Output

COM Upper limit (HIGH) output

9 10

– Output

COM Lower limit (LOW) output

11

Input

FUNCTION 1CH input*

12

Input

FUNCTION 2CH input*

13

Input

AUTO-ZERO input

14 15

– Input

GND AUTO-ZERO reset input

16

Input

HOLD input

17 18

– Input

GND Program 1

19

Input

Program 2

20

Input

Program 3

21

Input

Program 4

22

Input

Program 5

23 24

– –

Description OFF in the DARK and BRIGHT modes ON when a target is out of the measuring range (NEAR) ON when a target is out of the measuring range (FAR) ON when a measurement value is within the upper/lower limits. ON when a measurement value exceeds the upper limit. ON when a measurement value falls below the lower limit. When pin 11 and the GND pin are short-circuited, the function is changed to 1CH. When pin 12 and the GND pin are short-circuited, the function is changed to 2CH. When pin 13 and the GND pin are short-circuited, the AUTO-ZERO input turns ON. When pin 15 and the GND pin are short-circuited, the AUTO-ZERO input is reset. When pin 17 and the GND pin are short-circuited, the HOLD input turns ON. When pin 18 and the GND pin are short-circuited, program No. 1 is loaded. When pin 19 and the GND pin are short-circuited, program No. 2 is loaded. When pin 20 and the GND pin are short-circuited, program No. 3 is loaded. When pin 21 and the GND pin are short-circuited, program No. 4 is loaded. When pin 22 and the GND pin are short-circuited, program No. 5 is loaded.

GND GND 1CH/2CH input is enabled only when the LC-B3 board is installed. Note

If a program is specified when no data is stored, the measurement mode is changed to the initial parameter settings.

72 CHAPTER 8 External Input/Output

Page 80

8-3 Monitor Output (Standard Equipment)

8-3 Monitor Output (Standard Equipment) The LC-2400 series outputs an analog voltage, proportional to the target displacement, through the DISPLACEMENT connector and an analog voltage, proportional to the intensity, through the INTENSITY connector.

Analog Displacement Output

The LC outputs an analog voltage proportional to the target displacement. Signal output

Output range: - 10 to + 10 V Output impedance: 0 Ω Current capacity: 10 mA

0V BNC connector

Note

• When the analog output voltage exceeds the specified output range, the output voltage is retained to + 10 V or - 10 V. • When an error message is displayed, the output voltage is retained to + 10 V.

Setting Output Range (Analog Ratio)

6 steps of output range can be selected for analog displacement output. The output range setting procedure is as follows: 1. Press the PRM key to turn ON the ANALOG RATIO indicator. The current output range is displayed. 2. Press the or key to select the desired output range. The relationship between the registered numbers and the output range for each sensor head is as follows: (Unit: µm/V)

Note

Model Registered number

LC-2420

LC-2430

LC-2440

LC-2450

0 1 2 3 4 5

2.5 5 10 25 50 100

5 10 25 50 100 200

50 100 250 500 1000 2000

100 200 500 1000 2000 4000

To change the analog ratio using the RS-232C interface, transmit the registered number corresponding to the desired output range from an external device to the LC.

CHAPTER 8 External Input/Output

73