The text of a manual · part 12 of 13
Ultra High Accuracy Laser Displacement Meter LC-2400 Series Instruction Manual, pages 111 to 120
Pages 111 to 120 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 111
9-8 Expansion I/O
Trigger Command
Command GET (Group Execute Trigger)
Setting Functions
By sending a program code from external equipment (e.g. computer) to the LC, you can remotely change the LC settings. When the program code and setting values are received, the LC sets each function according to the program code and setting values, and then returns to the measurement mode. Note
Response Signal to start reading displacement data into the GP-IB buffer.
• To set or change settings by sending program code from an external device, set the TALK ONLY mode of the device specified as a Talker to OFF (See p.104). • Be sure to enter a comma (,) between program codes as a partition. • Up to 200 characters (including the delimiter) can be simultaneously transmitted. [Format of data transmitted from an external device]
,
Prest value Prest value
(
)
(
)
Delimieter
Program code
Program code
( [
): Required only when setting upper/lower limits and parameter values. ]: Two or more program codes and preset values can be set.
[Preset value] The data format and setting range of the preset values are the same as those of the RS-232C interface. See section 8-1, p. 55. [Syntax error] • When the LC receives an undefined program code, the received program code and the subsequent data are ignored. • When the LC receives a preset value exceeding the specified setting range, the received data is ignored. When the number of digits under the decimal point exceeds the specified value, the received data is ignored. • When the LC can receives the program code for the setting function, the program codes for measurement data/information output functions cannot be received.
104 CHAPTER 9 Appendix
Page 112
9-8 Expansion I/O
Changing Gain, Mode and Number of Averaging Measurements
By sending the following program code from an external device to the LC, you can change or set gain, mode and the number of averaging measurements. Function Changing gain
Changing mode
Changing number of averaging measurements
Setting/Resetting AUTOZERO, Hold, Filter and Panel Lock Functions
Description AUTO GAIN1 GAIN2 GAIN3 GAIN4 NORMAL P-P PEAK BOTTOM 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072
Program code GA G1 G2 G3 G4 MN MP ME MB AO A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF AG AH
By sending the following program codes from an external device to the LC, you can set or reset each function. Function AUTO-ZERO ON/OFF Hold ON/OFF Panel lock ON/OFF Filter ON/OFF
Description The AUTO-ZERO function is set. The AUTO-ZERO function is reset. The hold function is set. The hold function is reset. The panel lock function is set. The panel lock function is reset. The filter function is set. The filter function is reset.
Program code ZS ZR HS HR RS RR FS FR
The panel lock function is used to disable input from any keys of the display unit. When the panel lock function is ON, the LOCK indicator lights.
CHAPTER 9 Appendix
105
Page 113
9-8 Expansion I/O
Setting GP-IB Communication Functions
By sending the following program codes from an external device to the LC, you can set the GP-IB communication functions. Function
Description Transmits EOI (End of Identify) simultaneously when the delimiter is transmitted. Transmits EOI (End of Identify) only. Resets EOI (End of Identify). Enables SRQ (Service Request) transmission. Disables SRQ (Service Request) transmission.
GP-IB communication functions
Note
Setting Upper/Lower Limits, Parameters and Filter
Program code ES EO ER SS SR
The GP-IB communication functions have been factory-set to "ES" (to transmit EOI simultaneously) and "SR" (to disable SRQ transmission).
By sending the following program codes from an external device to the LC, you can set the upper/lower limits, parameter and filter. Function Setting upper/lower limits
Setting parameters
Setting filter
Description Program code NORMAL mode upper limit NH NORMAL mode lower limit NL P-P mode upper limit PH P-P mode lower limit PL PEAK mode upper limit EH PEAK mode lower limit EL BOTTOM mode upper limit BH BOTTOM mode lower limit BL Offset OF Calibration CL HIGH-INTENSITY LIMIT BC HIGH-INTENSITY LIMIT TIME BT LOW-INTENSITY LIMIT DC LOW-INTENSITY LIMIT TIME DT Analog ratio AR Digit suppress DS Cutoff frequency FP
[Data format of preset vales] The setting range of preset values is the same as that of the RS-232C. See section 8-1, p. 55. [Example of preset values] Example 1 : When setting the lower limit to "-1.234 mm" in the PEAK mode: E
L
–
1
.
2
3
4
0 Delimieter
106 CHAPTER 9 Appendix
Page 114
9-8 Expansion I/O
Example 2: When changing the calibration coefficient from "1.0000" to "0.9950" in the NORMAL mode: M
N
,
C
L.
0
.
9
5
9
0 Delimieter
Setting Program
By sending the following program codes from an external device to the LC, you can set the program. Function Setting program
Description Program No. 1 is saved. Program No. 2 is saved. Program No. 3 is saved. Program No. 4 is saved. Program No. 5 is saved. Program No. 1 is saved. Program No. 2 is loaded. Program No. 3 is loaded. Program No. 4 is loaded. Program No. 5 is loaded.
Program code S1 S2 S3 S4 S5 L1 L2 L3 L4 L5
By sending the following program codes from an external device to the LC, you can set the Head Status function.
Setting Head Status (Function)
Function Setting function
MEASUREMENT DATA OUTPUT FUNCTIONS
Program code H1 H2 HA HU
By sending the following program codes from an external device to the LC, you can change the displacement and intensity data output methods. Function Measurement data output
Note
Description 1CH is specified. 2CH is specified. ADD is specified. SUB is specified.
Description Single output of displacement data Single output of displacement and intensity data Continuous output of displacement data Continuous output of displacement and intensity data Stop continuous output of measurement data
Program code X0 X1 X2 X3 XS
The "XS" code is effective only when the LC is set to the continuous output modes. This code is ignored even if it is received in other output modes.
CHAPTER 9 Appendix
107
Page 115
9-8 Expansion I/O
Format of Data Transmitted from an External Device
Send the program code in the following format.
1st data segment 2nd data segment 3rd data segment
Program coda
4th data segment
Delimiter
Output Data
The output data format is the same as that of the RS-232C. See section 8-1, p. 56. The output data includes the delimiter set with the DIP switches.
TALK ONLY Mode
When using the GP-IB interface board, you can set the LC to the TALK ONLY mode by setting the 3rd DIP switch from the left to ON (See p. 103). When the LC is set to the TALK ONLY mode, it is specified as a talker and continuously outputs displacement data. Note
Information Output Functions
When the LC is set to the TALK ONLY mode, the setting function and the information output function does not work.
By sending the following program codes from an external device to the LC, the LC outputs parameter settings or preset values corresponding to the program code. Using the information output function, you can confirm the LC settings. Function Information output
108 CHAPTER 9 Appendix
Description Alarm output status Preset gain Preset 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 setting Calibration setting INT. LIMIT setting Analog ratio setting Digit suppress setting AUTO-ZERO ON/OFF status Hold ON/OFF status Filter ON/OFF status Filter setting Program setting Function setting
Program code Q? G? M? N? P? E? B? A? O? C? I? R? D? Z? H? F? L? J? T?
Page 116
9-8 Expansion I/O
Format of Data Transmitted from an External Device
Send the program code in the following format. 1st data segment 2nd data segment 3rd data segment
Program coda
4th data segment
Delimiter
Output Data
The output data format is the same as that of the RS-232C. See section 8-1, p. 57. The output data includes the delimiter set with the DIP switches.
Status Byte
The LC transmits a status byte when the serial polling command from the controller is executed. The status byte is represented as shown below. (MSB )
(LSB )
DIO8 DIO7 DIO6 DIO5 DIO4 DIO3 DIO2 DIO1
0
0
0
RQS bit
0
0
Bit DI01 (LSB) is set to “1” when the command has a syntax error.
Basic Sequence Changing and Setting Function (Setting Function)
0
When two or more program codes are transmitted from an external device, loop 1 is repeatedly executed until all program codes have been processed. Device clear
Controller (computer etc.) LC - 2400A/ LC - 2400W
Polling
Program code transmission
Program code analysis Yes.
Error check
1
Setting RQS bit to “1” to indicate that the command has a syntax error.
No. Changing function
Reading Output Data (Measurement Data/Information Output Functions)
When the command for measurement data continuous output (program code "X3") is executed, loop 2 is repeatedly executed. Device clear
Controller (computer etc.) LC - 2400A/ LC - 2400W
Reading output data
Polling
Program code transmission
Program code analysis
Error check
Yes.
Setting RQS bit to “1” to indicate that the command has a syntax error.
No. 2 Setting data tobe transmitted
Note
The above sequence does not apply when the LC is set to the TALK ONLY mode.
CHAPTER 9 Appendix
109
Page 117
9-8 Expansion I/O
Sample Program
Example: After the number of averaging measurements is set to "2048" in the NORMAL mode, one measurement is displayed on the computer.
Connecting the LC-2400 Series to a Personal Computer
100 110 120 130 140 150 160 170 180 190
ISET IFC ISET REN CMD DELIM=0 WBYTE &H3F, &H41, &H20, &H4; PRINT @0; "MN, AB" PRINT @0; "X0" LINE INPUT @0; A$ PRINT A$; "mm" IRESET REN END
100 110 120 130
140
150 160 170 180 190 Note
110 CHAPTER 9 Appendix
Description Interface clear Remote enable Sets the delimiter to "CR+LF". &-H3F ➞ "UNL" &-H41 ➞ Sets the talker address for the controller (PC) to "1". &-H20 ➞ Sets the listener address for the LC to "0". &-H4 ➞ "SDC" Transmits the program code to the LC. "MN": Sets the LC to the NORMAL mode. "AB": Sets the number of averaging measurements to "2048". Allows the LC to output one measurement. Allows the controller (computer) to receive one measurement from the LC. Displays measurement data on the computer Returns the interface to the Local function. Terminates the program.
In the above program, the talker address for the controller (computer) is set to "1" and the listener address for the LC is set to "0". The delimiter is set to "CR+LF" and the TALK ONLY mode is set to OFF.
Page 118
9-9 Index
9-9 Index In numerical order
Pages
1CH key ........................................................ 13, 31 1CH sensor head ............................................ 7, 22 1CH sensor head connector ............................... 14 2CH key ........................................................ 13, 31 2CH sensor head ............................................ 7, 22 2CH sensor head connector ............................... 14 2CH board (LC-B3) ............................................ 24 2CH board (LC-B3) slot ...................................... 24
In alphabetical order
E ENTER key .................................................. 13, 28 Error message ................................................... 82 Expansion I/O .................................................... 94 Expansion I/O slot .............................................. 14
F Filter ................................................................... 36 FILTER key ........................................................ 13 Earth ground terminal .................................. 14, 15
G A ADD key ............................................................. 13 Analog displacement output ............................... 73 AUTO-ZERO function ........................................ 29 AVERAGE key ................................................... 13
Gain ................................................................... 30 GAIN key ............................................................ 13 GAIN indicator .................................................... 12 GO output indicator ............................................ 12 GP-IB board ............................................... 24, 100
B
H
BATTERY indicator ...................................... 14, 19 Baud rate ........................................................... 51 Baud rate setting dial ......................................... 53 BAUD RATE indicator .................................. 12, 51 BOTTOM key ..................................................... 13 BOTTOM mode .................................................. 30
HIGH-INTENSITY LIMIT .............................. 37, 93 HIGH-INTENSITY LIMIT TIME .................... 37, 93 HIGH output indicator ........................................ 12 HOLD key .................................................... 13, 29 HOLD function ................................................... 29
I C Calibration .......................................................... 32 Calibration error ........................................... 34, 82 Calibration value ................................................ 34 Connector .......................................................... 16 Connecting cable ............................................... 22 CONTROL I/O port ...................................... 14, 71 Controller ........................................................... 12 Control unit ......................................................... 15 Cutoff frequency ................................................. 36
D Data format ........................................................ 51 Diffuse-reflective sensor head ........................... 16 DIGITAL I/O 96-pin connector ..................... 15, 77 DIGITAL I/O board ....................................... 24, 96 DIGIT SUPPRESS ............................................. 40 DISPLACEMENT output connector ................... 14 Display panel ..................................................... 12 Display unit ........................................................ 12
INTENSITY key .................................................. 13 INTENSITY output connector ............................ 14 INTENSITY LIMIT TIME .............................. 37, 92
L LASER REMOTE connector .......................... 14, 4 Laser beam shield .......................................... 16, 4 Laser ON alarm indicator ............................... 16, 4 LASER REMOTE input short-circuiting connector ........................................................ 15 LOAD ................................................................. 41 LOAD key ........................................................... 13 LOW-INTENSITY LIMIT ............................... 37, 92 LOW-INTENSITY LIMIT TIME ..................... 37, 92 LOW output indicator ......................................... 12
CHAPTER 9 Appendix
111
Page 119
9-9 Index
M
R
Measurement mode ........................................... 30 Memory backup battery ..................................... 19 Mode .................................................................. 30
Receiver ............................................................ 16 Reference distance ........................................... 26 Regular-reflective sensor head ........................... 7 Response data .................................................. 54 RS-232C connector .......................................... 14
N Numeral change key .......................................... 13 Numerical input mode ........................................ 28 Number of averaging measurements ........... 36, 91 NORMAL key ..................................................... 13 NORMAL mode .................................................. 30
S
O
T
OFFSET ............................................................. 35 OFFSET value ................................................... 35 Optional board ............................................. 24, 94
Transmitter ........................................................ 16
U
P
Upper/Lower limits ............................................ 39
PANEL LOCK .................................................... 55 PANEL LOCK indicator ...................................... 12 Parameter .......................................................... 28 PARAMETER indicator ...................................... 12 PEAK key ........................................................... 13 PEAK mode ....................................................... 30 Power supply connector ..................................... 14 Power supply terminal ........................................ 15 P-P key .............................................................. 13 P-P mode ........................................................... 30 Preset gain ......................................................... 30 Preset mode ....................................................... 30 PRM key ............................................................ 13 Program ............................................................. 41 PROGRAM indicator .......................................... 12
V
112 CHAPTER 9 Appendix
Save .................................................................. 41 SAVE key .......................................................... 13 SUB key ............................................................ 13
Ventilation fan ................................................... 14
Z ZERO key ......................................................... 13
Page 120
WARRANTIES AND DISCLAIMERS: (1) KEYENCE warrants the Products to be free of defects in materials and workmanship for a period of one (1) year from the date of shipment. If any models or samples were shown to Buyer, such models or samples were used merely to illustrate the general type and quality of the Products and not to represent that the Products would necessarily conform to said models or samples. Any Products found to be defective must be shipped to KEYENCE with all shipping costs paid by Buyer or offered to KEYENCE for inspection and examination. Upon examination by KEYENCE, KEYENCE, at its sole option, will refund the purchase price of, or repair or replace at no charge any Products found to be defective. This warranty does not apply to any defects resulting from any action of Buyer, including but not limited to improper installation, improper interfacing, improper repair, unauthorized modification, misapplication and mishandling, such as exposure to excessive current, heat, coldness, moisture, vibration or outdoors air. Components which wear are not warranted. (2) KEYENCE is pleased to offer suggestions on the use of its various Products. They are only suggestions, and it is Buyer’s responsibility to ascertain the fitness of the Products for Buyer’s intended use. KEYENCE will not be responsible for any damages that may result from the use of the Products. (3) The Products and any samples (“Products/Samples”) supplied to Buyer are not to be used internally in humans, for human transportation, as safety devices or failsafe systems, unless their written specifications state otherwise. Should any Products/Samples be used in such a manner or misused in any way, KEYENCE assumes no responsibility, and additionally Buyer will indemnify KEYENCE and hold KEYENCE harmless from any liability or damage whatsoever arising out of any misuse of the Products/Samples. (4) OTHER THAN AS STATED HEREIN, THE PRODUCTS/SAMPLES ARE PROVIDED WITH NO OTHER WARRANTIES WHATSOEVER. ALL EXPRESS, IMPLIED, AND STATUTORY WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF PROPRIETARY RIGHTS, ARE EXPRESSLY DISCLAIMED. IN NO EVENT SHALL KEYENCE AND ITS AFFILIATED ENTITIES BE LIABLE TO ANY PERSON OR ENTITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING, WITHOUT LIMITATION, ANY DAMAGES RESULTING FROM LOSS OF USE, BUSINESS INTERRUPTION, LOSS OF INFORMATION, LOSS OR INACCURACY OF DATA, LOSS OF PROFITS, LOSS OF SAVINGS, THE COST OF PROCUREMENT OF SUBSTITUTED GOODS, SERVICES OR TECHNOLOGIES, OR FOR ANY MATTER ARISING OUT OF OR IN CONNECTION WITH THE USE OR INABILITY TO USE THE PRODUCTS, EVEN IF KEYENCE OR ONE OF ITS AFFILIATED ENTITIES WAS ADVISED OF A POSSIBLE THIRD PARTY’S CLAIM FOR DAMAGES OR ANY OTHER CLAIM AGAINST BUYER. In some jurisdictions, some of the foregoing warranty disclaimers or damage limitations may not apply. BUYER’S TRANSFER OBLIGATIONS: If the Products/Samples purchased by Buyer are to be resold or delivered to a third party, Buyer must provide such third party with a copy of this document, all specifications, manuals, catalogs, leaflets and written information provided to Buyer pertaining to the Products/Samples.
CHAPTER 9 Appendix
113