The text of a manual · part 17 of 24
CV-700 Series User's Manual: High-speed, High-accuracy, Color Vision System, pages 161 to 170
Pages 161 to 170 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 161
Chapter 5 Operation This chapter describes RUN mode and the controls available during RUN mode operation. 5.1
Entering RUN Mode ........................................................... 152
5.2
Controls Available in RUN Mode ...................................... 153
Page 162
Chapter 5
Operation
5.1 Entering RUN Mode This section describes RUN mode. Before entering RUN mode, complete the settings described in “Chapter 4 Setting Procedure”. 1. Change the PROGRAM mode to RUN mode. •
With the panel keys Hold down the [RUN/PROGRAM] key for at least two seconds. SCREEN WINDOW RUN PROG PROGRAM No.
•
With the remote control console Use one of the following two methods to enter RUN mode. • Slide up the mode selection switch to “RUN”. • Unplug the remote control console from the controller.
RUN
5
PROG
RUN ENT
Mode selection slide switch
ESCAPE
2. Once the CV-701(P)/751(P) enters RUN mode, [RUN] appears in the upper right of the screen. • •
When “ARE/CON” mode is selected, the CV-701(P)/751(P) starts and continues detection, judgment, and displaying results. When a mode other than “ARE/CON” mode is selected, the CV-701(P)/ 751(P) starts detection, judgment, and displaying results every time a trigger signal is input.
NUM NUM NUM
C S , 1 2 3 cr Note: Once the CV-701(P)/751(P) enters RUN mode, the setting operation from the remote control console or the panel keys is disabled. You can use only the [SCREEN], [TRIG], [PROGRAM No.], and [WINDOW] keys and the mode selection slide switch.
Key-lock function (CV-751(P)) When the key-lock function is activated, the operation of all keys except for the [SCREEN] and [WINDOW] keys is disabled to prevent accidental key operation. Set the key-lock function in PROGRAM mode before entering RUN mode.
▲
▲
■ To set the key-lock function Hold down the [ ] and [ ] cursor keys simultaneously for at least two seconds. When the function is activated, [KEY LOCK] appears at the bottom of the menu screen.
▲
152
▲
■ To cancel the key-lock function Hold down the [ ] and [ ] cursor keys simultaneously for at least two seconds. The display [KEY LOCK] disappears and key operation is enabled.
KEY LOCK
Page 163
Chapter 5
Operation
5.2 Controls Available in RUN Mode In RUN mode, the CV-701(P)/751(P) can be controlled using external signals through the I/O terminals and RS-232C. Mode
RUN
How to enter the mode
Available operations
Set CHANGE in the environmental setting menu to CONSOLE and then set the console’ s slide switch to “ RUN” .
Terminal/ connector
Judgment result/numerical value output Trigger (TRG) input Coordinate value X/Y selection (PST) (Only when pattern search or edge search in both the X and Y directions is set.)
156
Unplug the remote control console from the controller.
Console
Trigger input Screen selection Window No. selection for display/data output RUN/PROGRAM selection
152
Trigger input Data output
187
Send the "R0cr" RS-232C command when the CV is in communication mode. Set CHANGE in the environmental setting menu to CONSOLE and then set the console’ s slide switch to “ RUN” .
Terminal/ connector
Judgment result/numerical value output Trigger (TRG) input Coordinate value X/Y selection (PST) (Only when pattern search or edge search in both the X and Y directions is set.) Window No. selection for display/data output (Wlx)
156
Unplug the remote control console from the controller.
Console
Trigger input Screen selection RUN/PROGRAM selection
152
Send the "R0cr" RS-232C command when the CV is in communication mode.
Trigger input Data output
187
Short-circuit the REC1 Terminal/ • REC2 and COM2 connector terminals when the CV is in RUN or RUN [EXT] mode.
Screen registration (By short-circuiting the TRG and COM1 terminals.)
164
Send the "O0cr" command.
Reading/writing output setting Reading/writing setting data Reading/writing registered screen Reading/writing program number Screen registration Reading input screen Saving setting data
188
RUN (External control)
Screen registration
Communication
Reference page
RS-232C
153
5
Page 164
Chapter 5
Operation
MEMO
5
154
Page 165
Chapter 6 I/O Timing and Analog Output Explains the input/output timing and analog output. 6.1
I/O Terminal Names and Functions .................................. 156
6.2
Input/Output Timing Diagrams ......................................... 160
6.3
I/O Circuit ............................................................................ 165
6.4
Analog Output .................................................................... 166
6.4.1 Analog output terminals ....................................................... 166 6.4.2 Changing analog output settings ......................................... 166 6.4.3 Scaling the analog output .................................................... 167
Page 166
Chapter 6
I/O Timing and Analog Output
6.1 I/O Terminal Names and Functions This section describes the names and functions of I/O terminals/connectors and the position of analog output.
The position of I/O terminals I/O connector Analog output
Analog output I/O connector I/O terminal
I/O terminal
Names and functions of I/O terminals and I/O connectors ● I/O terminal Terminal No. (controller side) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Terminal No.
Signal name
1
24 VDC
24 VDC power supply input
0V
0 V for power supply input
2
6
3
Description
See the table below.
4
TRG
Trigger input for timing signal
5
See the table below.
6
See the table below.
7
WO1
Window 1 comparator output
8
WO2
Window 2 comparator output
9
WO3
Window 3 comparator output
10
WO4
Window 4 comparator output
11
WO5
Window 5 comparator output
12
WO 6
Window 6 comparator output
13
WO7
Window 7 comparator output
14
WO8
Window 8 comparator output
15
WOR
OR output of WO1 to WO8
NPN (CV-701/751) 3 5 6
Common signal (0 V) for inputs/outputs STO Strobe signal output for output Common signal (0 V) for COM1 inputs/outputs COM1
PNP (CV-701P/751P) 3 5 6
Power supply for PNP output (5 to 24 V) Common signal (0 V) for COM1 inputs/outputs V1
STO
Strobe signal output for output
COM1 terminals 3 and 6 are common.
CAUTION
156
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.
Page 167
Chapter 6
I/O Timing and Analog Output
Connector pin No. (controller side)
● I/O connector
16 15 14 13 12 11 10 9
8
7
6
5
4
3
2
1
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
Pin No.
Signal name
1
Input terminal (not to be used)
2
CI0
Program No. input 0 (LSB)
3
CI 1
Program No. input 1
Orange
4
CI 2
Program No. input 2
Yellow
CI3
Program No. input 3 (MSB)
Green
6
COM2
Common signal (0 V) for inputs/outputs
Blue
7
COM2
8
D0
Common signal (0 V) for inputs/outputs
Purple
Data output 0 (LSB)
Gray
9
D1
Data output 1
White
10
D2
Data output 2
Black
11
D3
Data output 3
Brown
12
D4
Data output 4
Red
13
D5
Data output 5
Orange
14
D6
Data output 6
Yellow
15
D7
Data output 7
Green
16
D8
Data output 8
Blue
17
D9
Data output 9
Purple
18
D1 0
Data output 10
Gray
19
D11
Data output 11
White
20
D12
Black
22
Data output 12 (MSB) Position data sign output P.POLE (output upon negative signal) See the table below.
23
See the table below.
24
PST
25
WI0
26
WI 1
27
WI 2
28
CONT
29
Brown
Data output selection input Display and output window selection input 0 (LSB) Display and output window selection input 1
Yellow
Purple
BUSY
Display and output window selection input 2 Continuous operation input (When a program is switched, continuous judgment starts without an external trigger signal.) BUSY signal output
30
REC1
Screen registration input Camera 1
Black
31
REC2
Screen registration input Camera 2
Brown
Unused terminal
Red
32
COM2 COM2
Green Blue
Gray White
PNP (CV-701P/751P)
NPN (CV-701/751)
23
Red
5
21
22
Cable color* Brown
Description
Common signal (0 V) for inputs/outputs
Red
Common signal (0 V) for inputs/outputs
Orange
22, Unused terminal
23, Unused terminal Orange
Red
COM2 terminals 6, 7, 22, and 23 are common. * The colors represent the cable colors used in the special I/O cable (option: OP35341). Data outputs (D0 to D12) are 13-bit binary outputs (negative-true logic). D0 (LSB) to D12 (MSB) signals are in one-to-one correspondence with 1.2.4.8…4096, and they read data by doing sums of the terminals that are turned on. Tips
For screen registration input TRG with the REC (1 and/or 2) input. Simultaneous inputs of REC 1/2 and CONT show the raw screen with a cross-shaped cursor in the center.
157
6
Page 168
Chapter 6
I/O Timing and Analog Output
Binary data input (Output window selection input) Input W0
W1
W2
Window No.
OFF
OFF
OFF
1
ON
OFF
OFF
2
OFF
ON
OFF
3
ON
ON
OFF
4
OFF
OFF
ON
5
ON
OFF
ON
6
OFF
ON
ON
7
ON
ON
ON
8
Binary data output format from D0 to D12 The format of binary data output varies depending on the measurement mode. Note: The data output from the terminals is not binary-converted. Mode
Sub-mode
AREA OUTER/ INNER EDGE
6
GAP/PITCH EDGE NO
COUNT POINT STAIN GRAVITY PATT EDGE MODE
PST Output data Selection Open The last 13 bits of AREA measured data. Closed
The first 13 bits of AREA measured data.
Open
Edge measurements
Closed
Edge measurements
Open
Pitch average value
Closed
Pitch average value
Open
Edge number
Closed
Edge number
Open
Count number
Closed
Count number
Open
Dn1.: Pn2. [OFF: background, ON: extraction color] 3.
Closed
The detection result of Dn1.: Pn2. [OFF: x, ON: ❍] 3.
Open
Measured data
Closed
Measured data
Open
X coordinate of the detected point
Closed
Y coordinate of the detected point
Open
X coordinate of the detected point
Closed
Y coordinate of the detected point
Open
X coordinate of the detected point
Closed
Y coordinate of the detected point
1. The nth bit of output data 2. Point n 3. 1: ON/ 0: OFF 4. The decimal point is not output. (The ten-times value of the displayed value is output.)
158
Page 169
Chapter 6
I/O Timing and Analog Output
Point sensor (Supplemental) The status of each point (extracted color/non-extracted color) is output when the PST terminal is open. The detection result of each point is output when the PST terminal is short-circuited. (Turns ON when the results agree with the [SET] of each point.) Point 1 to 8 output data corresponding to D0 to D7. P1,
P2,
...……
P8
↓ D0,
↓ D2
...……
↓ D7
● Analog output Use the special cable (OP-41420) for connection.
6
159
Page 170
Chapter 6
I/O Timing and Analog Output
6.2 Input/Output Timing Diagrams This section describes the timing diagrams in RUN mode for each measurement mode.
ARE/CON timing 1/30 sec. 1
2
3
4
5
WO1 to WO8 WOR
1
2
3
4
2
3
Internal trigger
ANALOG OUTPUT
1
4
5 5
ON STO OFF
20ms
ON BUSY
OFF
RS-232C OUTPUT
1
4
CONT
• • •
6
160
The process is repeated every 1/30 of a second. The RS-232C output skips at a given interval. (The output cycle varies depending on the number of windows and the baud rate setting.) RS-232C data transmission is stopped when the CONT is short-circuited.