369GB High-speed, High-capacity Machine Vision System CV-X Series Easy Setup Guide Control/Communication I/O (for all models)
Contents Easy Setup Guide: Control/Communication I/O (for all PLC models) 1. Outputting the Total Status Page 3 2. Outputting the individual status of each tool (parallel I/O) Page 10 3. Terminal command control Page 14 4. I/O terminal control (PW: Change Programs) Page 19 5. I/O terminal control (EXW: Write execute condition) Page 20 6. I/O terminal control (SS: Save Settings) Page 21 7. I/O terminal control (BS: Register Image) Page 22 KEYENCE CORPORATION. Vision System Division ‐2‐ www.
Outputting the Total Status 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) Controller terminal block (OUT connector) No.
Example of connections (NPN output) When connecting an NPN output from the controller to a PLC with a positive common PLC input circuit positive common Output circuit on controller When connecting an NPN output from the controller to a relay Relay Output circuit on controller 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 PLC input circuit negative common Output circuit on
2. Checking the connection status of the external terminal (I/O Monitor) The wiring connection of the external terminal of the CV-X100 Series can be checked. Click the button at the top right of the screen to switch to Setup Mode. Select "Utility" > "I/O Monitor" to open the I/O Monitor. Check the "Manual Output" box to forcefully turn selected output terminals ON, in order to confirm the signal on the target.
3. Setting the tools to be included in total status 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 "Judgment Settings" > "CAM Judgment".
4. Setting the OR Terminal Output Mode 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". OR Terminal Output Mode •Update Every Judge: The terminal output state of the OR terminal is updated every time judgment is performed, and is in accordance to the judgment result. It is synchronized with the leading edge of STO that is output every time a judgment is finalized, and reads.
5. Timing Charts This section includes a time chart for each OR Terminal Output Mode •Update Every Judge Image processing Image processing Image processing NG Status NG Status OK Status OR STO A B C A: Output rise time (1 to 999 ms) B: Output time (1 to 999 ms) C: Output change time (2 to 1000 ms) However, ensure that "A + B ≦ C". When judgment is finalized, STO (OUT22) rises and the ON/OFF status of OR (OUT23) is checked simultaneously.
•Hold Status Image processing Image processing Image processing Image processing NG Status OK Status NG Status NG Status OR TEST A: TEST minimum input time (1 ms or more) A 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.
Outputting the individual status of each tool (parallel I/O) 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) Controller (parallel I/O interface) No.
Example of connections (NPN output) When connecting an NPN output from the controller to a PLC with a positive common PLC input circuit positive common Output circuit on controller When connecting an NPN output from the controller to a relay Relay Output circuit on controller 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 PLC input circuit negative common Output circuit on
2. Checking the connection status of the external terminal (I/O Monitor) The wiring connection of the external terminal of the CV-X100 Series can be checked. Click the button at the top right of the screen to switch to Setup Mode. Select "Utility" > "I/O Monitor" to open the I/O Monitor. 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.
3. Setting the items to output for the individual tool status Click the button at the top right of the screen to switch to Setup Mode. Click "Output". Select "OUT Terminal". In the "Count" box, set an output count between 1 and 8. If there are 16 items or less, select 1 time (the default setting). Select "OUT6" - "Tool Judgment" and then select a tool. As necessary, assign a Tool Judgment to an OUT terminal between OUT6 and 21. KEYENCE CORPORATION. Vision System Division ‐ 13 ‐ www.keyence.
Terminal command control 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) Controller (parallel I/O interface) *1 COMOUT2 is the same for 17 pin and 40 pin connectors.
Example of connections When connecting an NPN output PLC to the controller input PLC (NPN output) Input circuit on controller When connecting a PNP output PLC to the controller input Input circuit on controller PLC (PNP output) Output circuit diagram (NPN output type) (No. 18, 19, 20) • Maximum applied voltage: 30 V • Maximum sink current: 50 mA • Leakage current: 0.1 mA or less • Residual voltage: 1.4 V or less (50 mA) 1.0 V or less (20 mA) (No.
Example of connections (NPN output) When connecting an NPN output from the controller to a PLC with a positive common PLC input circuit positive common Output circuit on controller When connecting an NPN output from the controller to a relay Relay Output circuit on controller 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 PLC input circuit negative common Output circuit on
2. Checking the connection status of the I/O terminal (I/O Monitor) The wiring connection of the I/O terminal of the CV-X100 Series can be checked. Click the button at the top right of the screen to switch to Setup Mode. Select "Utility" > "I/O Monitor" to open the I/O Monitor. [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.
3. Command input timing Basic flow when controlling via command input from the I/O terminal. CMD_CODE CMD_PARAM CST D CMD_READY A 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).
I/O terminal control (PW: Change Programs) PW command: Change Programs Closes all open dialog boxes and changes the program setting to the No. specified. The CMD_CODE to specify differs according to whether the program setting to change to is in SD1 or SD2. Change Programs (SD Card 1) CST CMD_CODE IN12 IN11 IN10 IN9 0 0 IN8 1 0 IN7 IN6 IN5 CMD_PARAM IN4 IN3 IN2 IN1 IN0 Program Setting No.
I/O terminal control (EXW: Write execute condition) EXW command: Write execute condition Sets the Currently Valid Execute No. to the specified execute No. Write execute condition CST CMD_CODE IN12 IN11 IN10 IN9 0 1 1 IN8 1 IN7 IN6 IN5 CMD_PARAM IN4 IN3 IN2 IN1 IN0 Execute No. to rewrite to (0 to 99) 1: ON (short circuit), 0: OFF (open) Sample EXW command execution procedure: Writing 7 in Execute No. 1. Turn IN8, IN9 and IN10 ON, and enter "7" in binary into CMD_PARAM (IN7 to 0).
I/O terminal control (SS: Save Settings) SS command: Save Settings Saves the current Program Setting and Global Settings. Save Settings CST CMD_CODE IN12 IN11 IN10 IN9 0 0 0 IN8 IN7 0 None IN6 IN5 CMD_PARAM IN4 IN3 IN2 IN1 IN0 CMD_PARAM IN4 IN3 IN2 IN1 IN0 0 0 IN1 IN0 0 0 1: ON (short circuit), 0: OFF (open) Sample SS command execution procedure 1. Set IN0 to 11 to OFF (open).
I/O terminal control (BS: Register Image) BS command: Register Image The Current Image is saved as Reference Image of the specified number, and the saved Reference Image is used to calculate the Reference Value.
Copyright (c) 2014 KEYENCE CORPORATION. All rights reserved.