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 18 of 24

CV-700 Series User's Manual: High-speed, High-accuracy, Color Vision System, pages 171 to 180

Pages 171 to 180 of 232

The original document is the PDF (2.6 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 Keyence CV-070

Page 171

Chapter 6

I/O Timing and Analog Output

INS/TRG and INS+POS timing 1 ms min. ON TRG OFF

WO1 to WO8 WOR

WI0 to WI2 100 ms D0 to D12

ANALOG OUTOPUT 4 ms

4 ms

2 ms

2 ms

ON STO

OFF ON

BUSY OFF

RS-232C data transmission

• •

•

• • • • •

•

Processing time (T=00000) 232C data

At the moment of the TRG signal input, the STO output is turned off, and the BUSY output is turned on. When the TRG signal is input and the judgment result is determined, the outputs of WO1 to WO8 and WOR are provided, and the STO output is turned on. The previous judgment output is retained during the processing time. The RS232C data transmission is also activated. The window data outputs (D0 to D12) show the data for the windows specified with the output window selection inputs (WI0 to WI2). The settings of WI0 to WI2 are effective even after the judgment result is determined. The STO output is turned off during the output window selection. Read the data while the STO output is on. To select windows using the WI0 to WI2 input signals, set “CHANGE” in the environmental setting menu to “TERMINAL”. Limit the rising time variation of the binary data of WI0 to WI2 to 3 ms or less. The TRG input is accepted during RS-232C communication to start new processing. The RS-232C communication output is continued. The TRG input and the communication command are not accepted while the BUSY output is on. The STO output is turned off during the period between the first TRG input after power on, RUN mode selection or program number selection, and the determination of the judgment result. When the data transmission period of RS-232C communication is 33 ms or less, the period while the BUSY output is on or the processing time does not include RS-232C transmission time. It shifts to TRG waiting status after turning off the BUSY output at the end of the processing time. The transmission time varies with the number of windows, output settings (➮ See page 182), and the baud rate setting.

161

6

Page 172

Chapter 6

I/O Timing and Analog Output

ABS. POS and REL. POS timing 1 ms min. ON TRG OFF

WO1 to WO4 WOR

WI0 to WI2 15 ms min.

100 ms ON PST OFF

10 ms

D0 to D12

X-coordinate Y-coordinate X-coordinate

X-coordinate

P.POLE ANALOG OUTOPUT 4 ms

4 ms

1 ms

ON STO

OFF 4 ms ON

BUSY OFF

2 ms

Processing time (T=00000) RS-232C data 232C data transmission

•

6 •

•

When the TRG signal is input and the judgment result is determined, the outputs of WO1 and WOR are provided and the STO output is turned on. The previous judgment output is retained during the processing time. For the position data output, the X coordinate is output while the PST input is off, and the Y coordinate is output while the PST input is on. The PST input is effective after the judgment result is determined. While the X and Y coordinates are switched, the STO output is turned off. Read the data while the STO output is on. The STO output is turned off during the period between the first TRG input after power-on, RUN mode selection or program number selection, and the determination of the judgment result.

Program number selection timing ● Continuous operation: OFF Program No. 1

CI0 to CI3

Program selection time

Program No. 2 Program selection time

ON BUSY OFF

Program No. 1

Program No. 2

Program No.

• • • •

162

To select a program number using the I/O terminal, set “CHANGE” in the environmental setting menu to “TERMINAL”. The average program selection time is 230 ms. It depends on the settings. Limit the rising time variation of the binary data of a program number selection input to 3 ms or less. The CI0 to CI3 are level-locked.

Page 173

Chapter 6

I/O Timing and Analog Output

Continuous operation: ON ON CONT OFF ON TRG OFF ON BUSY

OFF

Program selection time + processing time (20 ms min.)

Program selection time + processing time (20 ms min.)

ON STO

OFF

CI1 to CI3

Program No.

• • • • • •

• • • •

*

Program No. 0

Program No. 0

Program No. 1

Program No. 1

Program No. 2

Program No. 2

Program No. 0

Program No. 0

When the program number is externally selected while the CONT input is on, the stored image is processed again with the new settings. To turn on CONT input, set “CHANGE” in the environmental setting menu to “TERMINAL”. The average program selection time is 230 ms. It depends on the settings. Limit the rising time variation of the binary data of a program number selection input to 3 ms or less. The CI0 to CI3 are level-locked. The menu screen does not reflect continuous operation. Only the message “CONT” appears on the screen. The menu screen shows the measured value of the program number processed at the TRG input. Continuous operation is completed when the program number returns to the number that was being processed when the TRG signal was input. When CONT is off during operation, the display is changed to the program No. and continuous operation is terminated. The WOR output is the OR output with all windows specified in continuous operation. When CONT is input, the message “CONT” is shown at the bottom of the screen. The “AUTO SEQUENCE” mode is provided to process the operations of several preset programs sequentially by automatically switching the program numbers without any control of the I/O input. ➮ Refer to “Environmental Settings” on page 144 for details.

163

6

Page 174

Chapter 6

I/O Timing and Analog Output

Timing under AUTO SEQUENCE mode Program No. 0 setting confirmed

ON TRG

Program No. 2 Program No. 1 setting confirmed setting confirmed

OFF 15 ms min. 15 ms min.

ON STO OFF ON BUSY OFF

Judgment WO1 to WO8 Program selection status

•

•

• • • •

6

Program No. 0

No. 1

No. 2

No. 0

At the moment the TRG input is turned on, the AUTO SEQUENCE mode starts processing. BUSY is turned on at the moment of TRG input, and it is turned off when the processing is completed. STO is turned off when TRG input is turned on, and it is turned on when the processing is completed and the judgment result is determined for each window. The judgment result varies with each program number. The previous judgment output is retained during processing. The total processing time is the period that BUSY is on. The WOR output is turned on when a window is judged as unacceptable in all of the settings. The characters “ATSQ” are shown at the bottom of the screen.

■ The processing of judgment result • To judge one unacceptable result as “unacceptable”, check the common falling points of both WOR output and BUSY. • If judgment results for each window of each program number are required, check the judgment output status with the PLC at every STO rising after the TRG (BUSY) rising. The number of STO risings after TRG input indicates the program number.

Screen registration timing (RUN mode) ON REC1 OFF ON REC2 OFF ON TRG OFF ON BUSY OFF

Preparation for screen registration

Screen registration

Preparation for operation

REC1: CAM1 REC2: CAM2

•

164

When the CONT terminal is short-circuited while REC1/REC2 is short-circuited, the RAW SCREEN is displayed and the screen updates without TRG inputs. A cross-shaped cursor appears on the screen. During this period, the screen is not registered even when TRG signal is input.

Page 175

Chapter 6

I/O Timing and Analog Output

6.3 I/O Circuit This section describes specifications and circuit diagrams for each terminal.

Input circuit diagram NPN model +24 V

+5 V

3 kΩ

1.5 kΩ IN

IN

2.2 kΩ

470 Ω COM2

COM1

PNP model 8.2 kΩ

3 kΩ

IN

IN

3 kΩ

470 Ω COM2

COM1

• Terminal name: TRG ON voltage: 10 V max. (PNP 10 V min.) ON current: 3 mA min. OFF voltage: 17 V min. (PNP 5 V max.) OFF current: 2 mA max. (PNP 1.5 mA max.)

• Terminal name: CI0 to CI3, PST, REC1 to 2, CONT, WI0 to WI2 ON voltage: 1.5 V max. (PNP 10 V min.) ON current: 1.5 mA min. OFF voltage: 3 V min. (PNP 3 V max.) OFF current: 0.1 mA max.

Output circuit diagram NPN model NPN OUT

NPN OUT

COM1

COM2

PNP model

V1

PNP OUT

• Terminal name: STO, WO1 to WO8, WOR Maximum applied voltage: 30 V Maximum sink current: 50 mA Residual voltage: 1 V max. Leakage current: 0.1 mA max.

CAUTION

• Terminal name: D0 to D12, P.POLE, BUSY Maximum applied voltage: 30 V Maximum sink current: 10 mA Residual voltage: 1 V max. Leakage current: 0.1 mA max.

Terminal 0 V (for power supply input), COM1, and COM2 are common via a choke coil. Be sure that there is no potential difference among the three terminals.

165

6

Page 176

Chapter 6

I/O Timing and Analog Output

6.4 Analog Output 6.4.1

Analog output terminals ■ Connection Connect the CV-701(P)/751(P) to the analog output device using a special cable (OP-41420).

■ Analog output • Analog output bound: 0 to 4.095 V • Analog output resolution: 12 bits • Output impedance: 100 Ω • Analog output precision: 2 % of F.S.

Analog output terminal

100 Ω

6

CAUTION

6.4.2

GND for analog output, video output, and camera housing are common via a coil. Be sure that there is no potential difference among the three terminals.

Changing analog output settings The analog output of a measured value is available (output to a mini plug) in a range of 0 to 4 V. The analog output can be converted to an output voltage value by using a scaling method. The parameters of analog output can be set for each window. When the CV is in RUN mode, the voltage of the current measurement window is output. Tips

166

• When the CV is operated with the initial settings, output voltage corresponds to the displayed measured value. For example, when “200.0” is displayed, the output voltage will be 2 V. • When the CV is in PROGRAM mode, the output is always 0 V regardless of the displayed value.

Page 177

Chapter 6

6.4.3

I/O Timing and Analog Output

Scaling the analog output Set the scaling of analog output for each window. This section describes a setting to output the “X” value of [ABS.POS] measurement mode. 1. Place the cursor on [WIND•1] in the main menu and press the [ENT] key. The window selection menu appears.

SHUTTER SCRN REG WIND•1 2. Select a window to change the analog output setting and press the [ENT] key. The window menu appears.

WIND•1 WIND•1 WIND•2 WIND•3 WIND•4 3. Place the cursor on [ANALOG] and press the [ENT] key. The list of setting parameters appears.

FIT= 00 ANALOG T=

6

4. Select a desired parameter to be output. Select [X] here.

FIT= 00 X Y ANG FIT 5. Press the [ENT] key. The scaling setting menu appears. ■ Scaling method Set the monitor output value for the corresponding two desired points to perform scaling. Before scaling

After scaling

Analog output

Analog output

(V)

(V)

SET DATA H (400.0) ➞ANALOG H (2.000) DATA L (0) ➞ANALOG L (0)

4 2 0

400.0

Displayed 0 value

400.0

Displayed value

6. Set [DATA H]. Place the cursor on [DATA H] and press the [ENT] key. The first digit is shown as highlighted. You can enter a numerical value. ANALOG DATA H →ANALOG H DATA L →ANALOG L

X +4000.00 4.000 +0000.00 0.000

167

Page 178

Chapter 6

I/O Timing and Analog Output 7. Move the [ENT] key to the right and left to select a digit to be changed. ANALOG DATA H →ANALOG H DATA L →ANALOG L

X +4000.00 4.000 +0000.00 0.000

8. Change the value. •

With the panel keys Press the [▲]/[▼] cursor key repeatedly.

•

With the remote control console Press the [ENT] key up or down repeatedly. When [▲] cursor is pressed repeatedly, the value increments by one from 0. After “9”, the second digit is incremented. When [▼] cursor is pressed or the [ENT] key is pressed down repeatedly, the value decrements by one until it reaches 0. After “0”, the second digit is decremented.

9. Press the [ENT] key to confirm the setting. ANALOG DATA H →ANALOG H DATA L →ANALOG L

6

X +4000.00 4.000 +0000.00 0.000

10. Set [ANALOG H], [DATA L], and [ANALOG L] with the same procedure for [DATA H] described in steps 5 to 8. ANALOG DATA H →ANALOG H DATA L →ANALOG L

X +4000.00 2.000 +0000.00 0.000

11. Press the [ESCAPE] key after setting all of the parameters and return to the window menu. The setting of analog output is complete. Note: When there are two or more output parameters (e.g. X-/Y-coordinates), the parameter last set will be output. The “●” in step 3 indicates the current selection. Tips

When INS mode is set to “GAP” or “PITCH”, the average of the measured value is output. The setting of analog output can be changed for each window. To set several windows, select another window number and follow the above procedure (Steps 1 to 10).

168

Page 179

Chapter 6

I/O Timing and Analog Output

Output parameters ARE/CON

ARE/TRG, INS+POS

ABS.POS, REL.POS

Number of pixels ARE

Measured value

OUTER

Measured value

INNER

Measured value

GAP

Average of gap-pitch

PITCH

Average of center-pitch

EDGE NO

Number of edge

COUNT

Number of count

POINT

No output

STAIN

Measured value

GRAVITY

Measured value

PATT

X-/Y-coordinates, detection angle, correlation ratio

EDGE

X-/Y-coordinates

6

169

Page 180

Chapter 6

I/O Timing and Analog Output

MEMO

6

170