Professional Documents
Culture Documents
CV-X Series
Easy Setup Guide
Control/Communication I/O
(for all models)
Contents
1. Wiring
Perform the following wiring to output the total status of inspections.
This section explains how to wire the terminal block "OUT22:STO" "OUT23:OR" to a PLC or relay.
(The terminal block is attached to the main unit)
(No. 5)
Output circuit diagram (PNP output type, controllers with a "P" at the end of the part number)
(No. 1, 2)
369GB
KEYENCE CORPORATION. Vision System Division ‐3‐ www.keyence.com
Example of connections (NPN output)
When connecting an NPN output from the controller to a PLC with a positive common
Example of connections (PNP output type, controllers with a "P" at the end of the part number)
When connecting a PNP output from the controller to a PLC with a negative common
Click the button at the top right of the screen to switch to Setup Mode.
Check the "Manual Output" box to forcefully turn selected output terminals ON, in order to confirm the signal on
the target.
Check the "OUT22 (STO)" and "OUT23 (OR)" boxes, and confirm that the ON/OFF status of the signal can be
detected on the target (PLC, relay, etc.). Check the box to set to ON (short circuit), and uncheck it to set to OFF
(open).
If proper ON/OFF status in conjunction with checking/unchecking the box cannot be confirmed, check the wiring
again.
Tools to include in the Total Status can be selected. This is useful when you wish to perform an overall judgment
using only the judgment results of specified tools.
Click the button at the top right of the screen to switch to Setup Mode.
Click "Output".
Select the terminal output mode for outputting Total Status from the OR Terminal.
Select "OR Terminal", and then set the "OR Terminal Output Mode" and "OR Terminal Output Timing".
Refer to the timing charts for each output mode on the following pages.
OR
STO
When judgment is finalized, STO (OUT22) rises and the ON/OFF status of OR (OUT23) is checked simultaneously.
Adjust the output time for STO (A/B/C in the time chart) in global settings so that there is time for the target PLC to
detect the status.
Adjust A: Output rise time (1 to 999 ms), B: Output time (1 to 999 ms) and C: Output change time (2 to 1000 ms) so
that there is time for the target PLC to detect the status. However, ensure that "A + B ≦ C".
OR
TEST
The status condition is normally updated for each trigger. However, if the status is NG, the condition is unchanged
until input such as TEST is executed.
If one NG is detected, the OR output status remains NG from that point, regardless of the actual judgment results.
When the TEST input is turned on/off, the hold status is canceled and all terminals are reset to the normal state. The
OR output condition will be updated when the result for the next OR output is output.
OR
The OR output holds the NG state for the specified period of time, and then resets the NG state.
If image processing is continuously performed with One Shot Output enabled, the previous NG state may still be
remaining at the time the image processing judgment result is finalized by the STO.
1. Wiring
Perform the following wiring to output the individual status of tools from the I/O terminal (parallel I/O interface).
This section describes the necessary terminal (outputs: OUT6 to 21 (OUT_DATA0 to 15), COMOUT2) wiring for
outputting the individual status of tools from the I/O terminal. (The parallel I/O cable, OP-51657, is sold
separately)
(No. 5)
Output circuit diagram (PNP output type, controllers with a "P" at the end of the part number)
(No. 1, 2)
Example of connections (PNP output type, controllers with a "P" at the end of the part number)
When connecting a PNP output from the controller to a PLC with a negative common
Click the button at the top right of the screen to switch to Setup Mode.
Check the "Manual Output" box to forcefully turn selected output terminals ON, in order to confirm the signal on the
target. Manual Output can only be used in Setup Mode.
Check the "OUT6 (OUT_DATA0)" and "OUT7 (OUT_DATA1)" boxes, and confirm that the ON/OFF status of the signal can
be detected on the target (PLC, relay, etc.). Check the box to set to ON (short circuit), and uncheck it to set to OFF (open).
If proper ON/OFF status in conjunction with checking/unchecking the box cannot be confirmed, check
the wiring again.
Click "Output".
As necessary, assign a Tool Judgment to an OUT terminal between OUT6 and 21.
1. Wiring
Perform the following wiring to control the controller via the I/O terminal (parallel I/O interface). This section
describes the necessary terminal (Inputs: CMD_PARAM0 to 7, CMD_CODE0 to 3, CST. Outputs: ACK, NACK) wiring
for command control via the I/O terminal. (The parallel I/O cable, OP-51657, is sold separately)
(No. 1)
(No. 17)
Output circuit diagram (PNP output type, controllers with a "P" at the end of the part number)
Example of connections (PNP output type, controllers with a "P" at the end of the part number)
When connecting a PNP output from the controller to a PLC with a negative common
Click the button at the top right of the screen to switch to Setup Mode.
[Input terminal]
Turn ON the terminals corresponding to "IN0 to 7 (CMD_PARAM0 to 7)", "IN8 to 11 (CMD_CODE0 to 3)" and "IN12 (CST)" from the
connected PLC. When the boxes for the terminals that were turned ON become checked, it can be confirmed that the wiring is correct.
[Output Terminal]
Check the "Manual Output" box to forcefully turn selected output terminals ON. Check the "OUT0 (ACK)", "OUT1 (NACK)" and
"OUT3 (CMD_READY)" boxes, and confirm that the ON/OFF status of the signal can be detected on the target PLC.
If proper ON/OFF status in conjunction with checking/unchecking the box cannot be confirmed, check the wiring again.
CMD_CODE
CMD_PARAM
CST
D A
CMD_READY
C C
ACK
execution successful B
NACK
execution failed B
A: 1 msec or more B: Same as the STO output time C: Within 500 μsec D: 500 μsec or more
The command is executed when the CMD_CODE and CMD_PARAM of the command you wish to execute (some
commands do not use CMD_PARAM) are input, and then the CST input is turned ON (leading edge is detected).
After the command is executed, ACK (execution successful) or NACK (execution failed) turns ON.
CST input when CMD_READY is OFF is ignored. In this case, neither ACK nor NACK is returned for CST.
4. When the setting has been changed, ACK (OUT0) turns ON for the specified amount of time (set in "Global" > "Communications
& I/O" > "External Terminal"). When ACK turns off, CMD_READY (OUT3) turns ON.
* If the command execution fails, NACK (OUT1) turns on for the specified amount of time instead of ACK. Ensure that the wiring
and CMD_CODE/CMD_PARAM specifications are correct.
When NACK turns ON (the setting will not change) despite correct wiring etc., check whether the program setting to change to
exists or not.
* To specify Program Setting No. 256 to 999, use the "Specify parameter in upper 8 bits" command and specify 15 to 8 bits.
3. CMD_READY (OUT3) turns OFF, and the Currently Valid Execute No. changes to the specified No.
4. When the Execute No. has been written, ACK (OUT0) turns ON for the specified amount of time (set in "Global" >
"Communications & I/O" > "External Terminal"). When ACK turns off, CMD_READY (OUT3) turns ON.
* If the command execution fails, NACK (OUT1) turns on for the specified amount of time instead of ACK. Ensure that the
wiring and CMD_CODE/CMD_PARAM specifications are correct.
Save Settings
CST CMD_CODE CMD_PARAM
IN12 IN11 IN10 IN9 IN8 IN7 IN6 IN5 IN4 IN3 IN2 IN1 IN0
0 0 0 0 None
1: ON (short circuit), 0: OFF (open)
4. When the settings are saved, ACK (OUT0) turns ON for the specified amount of time (set in "Global" >
"Communications & I/O" > "External Terminal"). When ACK turns off, CMD_READY (OUT3) turns ON.
* If the command execution fails, NACK (OUT1) turns on for the specified amount of time instead of ACK. Ensure that the
wiring and CMD_CODE/CMD_PARAM specifications are correct.
Register Image
CST CMD_CODE CMD_PARAM
IN12 IN11 IN10 IN9 IN8 IN7 IN6 IN5 IN4 IN3 IN2 IN1 IN0
IN7 to 6: Camera number (specified with 0 to 3)
0 1 0 0 IN5 to 0: Destination number
1: ON (short circuit), 0: OFF (open)
Sample BS command execution procedure: Registering CAM 2 Reference Image 005 (2-005)
1. Turn IN10 ON. Then enter "1" in binary into CMD_PARAM (IN7 to 6) and "5" in binary into (IN5 to 0).
(0: CAM 1, 1: CAM 2, 2: CAM 3, 4: CAM 4)
4. When the reference image has been registered, ACK (OUT0) turns ON for the specified amount of time (set in
"Global" > "Communications & I/O" > "External Terminal"). When ACK turns off, CMD_READY (OUT3) turns ON.
* If the command execution fails, NACK (OUT1) turns on for the specified amount of time instead of ACK. Ensure
that the wiring and CMD_CODE/CMD_PARAM specifications are correct.