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

Ultra High Accuracy Laser Displacement Meter LC-2400 Series Instruction Manual, pages 101 to 110

Pages 101 to 110 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 101

9-8 Expansion I/O

9-8 Expansion I/O (Optional) The LC-B1 digital I/O board and the LC-B2 GP-IB board are expansion boards that can be installed in the LC-2400A series. For installation instructions, refer to page 24 in this manual. Be sure to read the instructions carefully when installing the expansion units.

Hints on Correct Use

• When the LC is located in an area subject to noise interference from other devices, use a shielded cable to connect the LC with external equipment (e.g. computer). Be sure to turn OFF the LC before connecting it to an external device. • First switch on the external equipment (e.g. computer), and then the LC. If this order is not followed, the LC may malfunction due to noise created when another device starts up. • To use the GP-IB board, set the address and delimiter corresponding to the program being used or the device being connected.

94 CHAPTER 9 Appendix

Page 102

9-8 Expansion I/O

Contents

■ Digital I/O (50-pin) ...............................................................................96 Specifications .........................................................................................96 Output Specifications ........................................................................ 96 Input Specifications ........................................................................... 96 Output Signals ...................................................................................96 Input Signals ..................................................................................... 99 Pin Names and Functions ................................................................. 99 ■ GP-IB Interface ..................................................................................100 Specifications .......................................................................................100 Communication Specifications ........................................................ 100 Connecting Cable ............................................................................100 Pin Assignment ...............................................................................101 Interface Functions ..........................................................................102 Initial Settings .......................................................................................102 Setting Addresses ...........................................................................103 Setting TALK ONLY Mode ..............................................................103 Setting Delimiter ..............................................................................103 Interface Messages ..............................................................................103 Clear Command ..............................................................................103 Trigger Command ...........................................................................103 Setting Functions .................................................................................104 Changing Gain, Mode and Number of Averaging Measurements .. 105 Setting/Resetting AUTO-ZERO, Hold, Filter and Panel Lock Functions ..................................................................105 Setting GP-IB Communication Functions ........................................ 106 Setting Upper/Lower Limits, Parameters and Filter ........................106 Setting Program ..............................................................................107 Setting Head Status (Function) .......................................................107 Measurement Data Output Functions ..................................................107 Format of Data Transmitted from an External Device ..................... 108 Output Data .....................................................................................108 TALK ONLY Mode ..........................................................................108 Informations Output Functions .............................................................108 Format of Data Transmitted from an External Device ..................... 109 Output Data .....................................................................................109 Status Byte ......................................................................................109 Basic Sequence ...................................................................................109 Changing and Setting Function (Setting Function) ......................... 109 Reading Output Data (Measurement data/information output functions) ........................109 Sample Program ..................................................................................110 Connecting the LC series to personal computer ............................ 110

CHAPTER 9 Appendix

95

Page 103

9-8 Expansion I/O

Digital I/O (50-pin)

Displacement and Intensity values are output as digital data.

Specifications

• Open collector (TTL7406 or equivalent) • Maximum applied voltage: 30 V • Maximum sink current: 40 mA

Output Specifications

IC

Input Specifications

OUT

• TTL level, Negative logic (74LS19 or equivalent) +5 V 3k Ω IN

IC

6.2k Ω

Output Signals

Displacement data output The displacement data output signal is a negative logic signal in the form of a 16-bit two’s complement binary number. When the output signal is LOW ("1"), the output transistor is ON. Sensor head model LC-2420 LC-2430 LC-2440 LC-2450

Displacement data output 1LSB=0.01 µm 1LSB=0.02 µm 1LSB=0.2 µm 1LSB=0.5 µm

Intensity data output The intensity data output signal is a negative logic signal in the form of a 16bit two’s complement binary number. All sensor head models: 1LSB = 2. Strobe output (STROBE OUT) The strobe signal is output to specify data output timing. It is a negative logic signal with a pulse duration of approx. 6.4 µs. The strobe signal goes LOW approx. 1.6 µs after the measurement data output signal is prepared. Note

96 CHAPTER 9 Appendix

The MSB of the displacement data is "0" when a measurement error occurs or the LC is set to the DARK or BRIGHT mode. In other conditions, the MSB is "1".

Page 104

9-8 Expansion I/O

Input Signals

External trigger enable input (ETE IN) When the external trigger enable input (ETE IN) is LOW and the external trigger input (EXT TRIG IN) signal is received, the LC outputs measurement data at a specified frequency. Input

ETE IN

Note

Level HIGH (The input level is HIGH even if the input terminal is open.)

Output When the number of averaging measurements is set to between 1 and 2048, measurement data is output every 20 µs.

LOW

Measurement data is output only when the external trigger input (EXT TRIG IN) signal is received.

When the number of averaging measurements is set to between 1 and 2048, measurement data is output every 20 µs. When the number of averaging measurements is set to 4096 or more, measurement data is output at the frequencies shown at right. Figures in ( ) apply when the ADD or SUB function is selected.

Number of averaging measurements 1 to 2048 4096 8192 16384 32768 65536 131072

20 µs (40 µs) 40 µs (80 µs) 80 µs (160 µs) 160 µs (320 µs) 320 µs (640 µs) 640 µs (1280 µs) 1280 µs (2560 µs)

External trigger input (EXT TRIG IN) When the ETE IN signal is LOW and the EXT TRIG IN signal is LOW, measurement data is output every 30 µs max. The output data is retained until the EXT TRIG IN signal goes LOW again.

CHAPTER 9 Appendix

97

Page 105

9-8 Expansion I/O

Timing chart 1. When the ETE IN signal is HIGH: 20 µs Displacement/ intensity data

STROBE OUT

1.6 µs

Note

Approx. 6.4 µs

The STROBE OUT signal is output at a frequency of 20 µs, regardless of the number of averaging measurements. 2. When the ETE IN signal is LOW:

1 µs min. EXT TRIG IN

Displacement/ intensity data 30 µs max.

STROBE OUT

1.6 µs

98 CHAPTER 9 Appendix

Approx. 6.4 µs

Page 106

9-8 Expansion I/O

Pin Names and Functions

Pin No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25

O

1 j

P

Signal name Displacement data output DIBIN1 (LSB) Displacement data output DIBIN3 Displacement data output DIBIN5 Displacement data output DIBIN7 Displacement data output DIBIN9 Displacement data output DIBIN11 Displacement data output DIBIN13 Displacement data output DIBIN15 GND External trigger input EXT TRIG IN GND GND GND Intensity data output IBIN2 Intensity data output IBIN4 Intensity data output IBIN6 Intensity data output IBIN8 Intensity data output IBIN10 Intensity data output IBIN12 Intensity data output IBIN14 Intensity data output IBIN16 (MSB) GND GND GND GND

Pin No. 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50

Signal name Displacement data output DBIN2 Displacement data output DBIN4 Displacement data output DBIN6 Displacement data output DBIN8 Displacement data output DBIN10 Displacement data output DBIN12 Displacement data output DBIN14 Displacement data output DBIN16 (MSB) Strobe output STROBE OUT External trigger enable input ETE IN GND GND Intensity data output IBIN1 (LSB) Intensity data output IBIN3 Intensity data output IBIN5 Intensity data output IBIN7 Intensity data output IBIN9 Intensity data output IBIN11 Intensity data output IBIN13 Intensity data output IBIN15 GND GND GND GND GND

CHAPTER 9 Appendix

99

Page 107

9-8 Expansion I/O

GP-IB Interface

The GP-IB interface board provides a communication link between the LC and computers or other external equipment.

Specifications

The GP-IB interface conforms to IEEE (Institute of Electrical and Electronics Engineers) standard 488-1978. Transmission code ASCII Logic level Logic 0 (High): +2.4 V min. Logic 1 (Low): +0.4 V max. (Bidirectional transceiver is used.) Number of connectable devices 15 max. (including the controller) Total cable length 20 m max.* Cable length between two devices 4 m max. * Variable depending on the number of devices.

Communication Specifications

Connecting Cable

Use the GP-IB cable to connect equipment (e.g. computer) to the GP-IB interface board. Up to 15 devices can be interconnected. The total cable length should be 20 m or less, provided that it does not exceed "the number of devices x 2 m". The cable length between two devices should be 4 m max. Example 1: When connecting three devices Computer

LC

2m

LC

4m

Example 2: When connecting four devices Computer

LC

2m

100 CHAPTER 9 Appendix

LC

2m

LC

4m

Page 108

9-8 Expansion I/O

Pin Assignment 12 11 10 9 8 7 6 5 4 3 2 1

24 23 22 21 20 19 18 17 16 15 14 13

Pin No. 1 2 3 4 5 6 7 8 9 10

Signal name DIO1 DIO2 DIO3 DIO4 EOI DAV NRFD NDAC IFC SRQ

11

ATN

12 13 14 15 16 17

Shield DIO5 DIO6 DIO7 DIO8 REN

18 19 20 21 22 23 24

GND (DVA) GND (NRFD) GND (NDAC) GND (IFC) GND (SRQ) GND (ATN) Logic GND

Description Data bus Data bus Data bus Data bus Indicates end of data transmission. Indicates that the data is valid Indicates that the data cannot be received. Indicates that the data has not been received. Initializes the interface. Allows each device to send a Request To Interrupt to the controller. Determines whether the data is an interface message or a device message. Shield Data bus Data bus Data bus Data bus Allows the controller to set the Remote or Local interface function for each device. Ground for control bus Ground for control bus Ground for control bus Ground for control bus Ground for control bus Ground for control bus Signal ground

CHAPTER 9 Appendix

101

Page 109

9-8 Expansion I/O

Interface Functions

The LC has the following interface bus functions. Code Function SH1 All transmit handshaking functions are included. AH1 All receive handshaking functions are included. T5 Basic Talker function Serial Polling function TALK ONLY function Resets the Talker function of the device specified as a Listener L4 Basic Listener function Resets the Listener function of the device specified as a Talker SR1 All Service-Request functions are included. RL1 All Remote/Local functions are included. PPO No Parallel Polling function is included. DC1 All Device-Clear functions are included. DT1 All Device-Trigger functions are included. CO No controller function is included. E2 3-state driver is included.

Initial Settings

Using the GP-IB interface, up to 15 devices, including the controller, can be interconnected. When connecting devices with the GP-IB cables, each device must be assigned an address. To set the address, use the address DIP switches. (See the figure below.) Set the TALK ONLY mode and delimiter with the DIP switches, as required. Note

Be sure to turn off the LC, and then set the address and delimiter with the DIP switches located on the rear panel of the LC.

To set delimiter to “LF”, set this switch to ON. (To set the delimiter to “CR + LF” or “CR”, set this switch to OFF).

CR + LF

OFF

ON

↓ 1

2

3

4

5

6

7

8

CR

LF

ON

16

8

4

2

1

Switches for setting addresses Switch for setting TALK ONLY function Switches for setting delimiter

Setting Addresses

To set an address, use the 1st to 5th DIP switches from the right (4, 5, 6, 7, and 8 in the figure). You can set addresses from "0" to "30" with these switches. Example: When setting the address to "11":

ON

↓

Note

102 CHAPTER 9 Appendix

1

2

3

4

5

6

7

8

The address has been factory-set to "0".

Page 110

9-8 Expansion I/O

Setting the TALK ONLY Mode

Note

Set the TALK ONLY mode DIP switch (the 3rd switch from the left) to ON. The LC will be set to TALK ONLY mode. TALK ONLY mode has been factory-set to OFF.

For data transmission, the following delimiter can be set with the DIP switches.

Setting Delimiter

• Setting the delimiter to "LF": Set the 1st DIP switch from the left to OFF and the 2nd DIP switch to ON.

ON

↓ 1

2

3

4

5

6

7

8

• Setting the delimiter to "CR": Set the 1st DIP switch from the left to ON and the 2nd DIP switch to OFF.

ON

↓ 1

2

3

4

5

6

7

8

• Setting the delimiter to "CR+LF": Set the 1st and 2nd DIP switches from the left to OFF.

ON

↓

Note

1

2

3

4

5

6

7

8

• The delimiter has been factory-set to "CR+LF". • An EOI (End of Identify) simplex signal can be output simultaneously when the delimiter is transmitted from the LC. To set the EOI signal, send the GP-IB program code from an external device (e.g. computer) to the LC. (See p.107.)

INTERFACE MESSAGES

Note

Clear Commands

Interface messages (commands) are sent from external equipment (e.g. controller) to the interface through a bus line. The interface commands and the responses corresponding to the commands are as follows: Interface messages may also be sent from the talker. Delimiters, for example, are sent from a talker to control the interface. On the other hand, device messages are sent to control devices connected to the interface, for example, the LC. The messages that control the LC main unit are called device messages.

Command IFC (Interface Clear) SDC (Selected Device Clear) DCL (Device Clear)

Response Initializes the GP-IB interface of all the devices interconnected. Initializes a specified device. Initializes all the devices interconnected.

CHAPTER 9 Appendix

103