Professional Documents
Culture Documents
CV-X Series
Easy Setup Guide
Control/Communication PLC-Link
(KEYENCE KV Series)
Contents
Trademarks
Product names, etc. noted in this document are registered trademarks or trademarks of their respective companies.
The ™ mark and ® mark have been omitted in this manual.
[Important] If it fails, establish a one-to-one connection between the PLC and CV-X, and follow this manual to configure the settings
and check the operations.
Confirm that it operates properly, and change settings if necessary.
1 Select [Global] > [Communications & I/O] > [Network] on the controller, and then configure the network (Ethernet)
settings for the CV-X.
2 Select "OK" to close the "Network Settings" screen, select [Global] > [Communications & I/O] > [PLC-Link], and then
configure the PLC-Link settings.
Configure the PLC‐Link settings.
3 Select "OK" to close the "PLC-Link" setting screen and then restart the controller.
355GB
KEYENCE CORPORATION. Vision System Division ‐3‐ www.keyence.com
✎Configuring the KV Series Settings
1 Start KV STUDIO with the PLC connected to the computer, and select [File] > [New project].
2 Enter the "Project name", select the "PLC model", and then press "OK".
3 Select [Read unit setting] in the "Confirm unit setting information" dialog box.
4 In the workspace, click the link unit or CPU unit that will be connected to the CV-X via Ethernet to start "Unit
Editor", and set up the IP address and Port No. of the KV Series on the "Setup unit(2)" tab.
If "Initializing PLC- Link..." appears on the lower left of the screen and
disappears immediately, it indicates that the link has been established
successfully.
If the link establishment has failed, the message "Initializing PLC- Link... *"
appears repeatedly, and the error message "Failed to establish a link with
the PLC" appears.
Check the settings of the CV-X Series and KV Series again.
[Important] If it fails, follow this manual to configure the settings and check the operations.
Confirm that it operates properly, and change settings if necessary.
1 On the "Global" menu, select [Communications & I/O] > [PLC-Link].
2 Select "OK" to close the "PLC-Link" setting screen and then restart the controller.
2 Enter the "Project name", select the "PLC model", and then press "OK".
3 Select [Read unit setting] in the "Confirm unit setting information" dialog box.
4 In the workspace, click the link unit or CPU unit that will be connected to the CV-X via RS-232C to start "Unit
Editor", and change the "Operation mode" of "Port 1" to "KV BUILDER/KV STUDIO mode" on the "Setup
unit(2)" tab.
If "Initializing PLC- Link..." appears on the lower left of the screen and
disappears immediately, it indicates that the link has been established
successfully.
If the link establishment has failed, the message "Initializing PLC- Link...
*" appears repeatedly, and the error message "Failed to establish a link
with the PLC" appears.
Check the settings of the CV-X Series and KV Series again.
3 After finishing data addition, press "OK". Check the data to output and the data memory address.
Use "Result Output Address", "Result Ready Address" and "Result Ack Address" in [Global] > [Communications & I/O] > [PLC-
- Result Output Address: Specify the first data memory for the
result data output by CV-X.
* The result data is stored starting from this address by 2 words per
data item (2 words per character).
- Result Ready Address (bit): Specify the data memory for CV-X to
notify when the result data has been written.
* The address to use is 1 word.
- Result Ack Address (bit): Specify the data memory for the PLC to
notify when the result data has been read.
* The address to use is 1 word.
2 Check the example of outputting the result data to the data memory.
The CV-X outputs the result data as follows:
Data is stored in the PLC as follows (When "Fixed- point" is selected for "Decimal Point" on CV-X).
* The following screen is the "Registration monitor" function screen in KV STUDIO.
Operations of data output procedure depending on "Result Output Settings" configured in step 1
1. When both "Acknowledge result output completion" and "Enable Handshake" are checked
Follows the above procedure, and guarantees that all result data output from CV-X is sent to the PLC.
However, if the PLC repeats measurement without controlling Result Ack Address (bit), the output buffer of CV-X
overflows, and trigger input becomes impossible.
2. When "Acknowledge result output completion" is checked and "Enable Handshake" is unchecked (default)
CV-X does not check the value of Result Ack Address (bit) in and of the above procedure.
This speeds up the output. If the PLC overwrites the 1 of Result Ready Address (bit) written by CV-X with 0, the PLC can
find the result update timing of CV-X.
3. When "Acknowledge result output completion" is unchecked (In this case, "Enable Handshake" is also
unchecked)
CV-X neither checks the value of Result Ack Address (bit) in and of the above procedure nor updates the value of
Result Ready Address (bit) in and of the above procedure. This speeds up the output more, but the PLC cannot
find the result update timing of CV-X. It can be used when you wish to obtain the latest result only.
1 On the "Global" menu, select [Communications & I/O] > [PLC-Link] to open the global "PLC-Link" settings
screen.
1 Refer to "Control/Data Output via Commands" in the user's manual to check the commands to use and the
formats of the number-specified commands.
Here is an example of using the PW command (command No. 24) that switches the program setting.
"PLC Terminal"
Executes a command when the input terminal IN15 "PLC Terminal" is set.
"Polling"
Always monitors (polls) the data memory specified in "Command Execute Address (bit)", and executes a command when it
is set.
4. Check if the values of the data memory When the command is successful: CV-X writes "1" into Command
corresponding to the PLC Command Complete Address Complete Address (bit), and "0" into Command Result Address.
(bit) and Command Result Address (DM003 and DM200
respectively in this example) have changed.
When the command fails: CV-X writes "1" into Command Complete
Address (bit), and an error code into Command Result Address.
4. Check if the values of the data memory corresponding to When the command is successful: CV-X writes "1" into Command
the PLC Command Complete Address (bit) and Command Complete Address (bit), and "0" into Command Result Address.
Result Address (DM003 and DM200 respectively in this
example) have changed.
4. Check if the values of the data memory corresponding to When the command is successful: CV-X writes "1" into Command
the PLC Command Complete Address (bit) and Command Complete Address (bit), and "0" into Command Result Address.
Result Address (DM003 and DM200 respectively in this
example) have changed.
4. Check if the values of the data memory corresponding to When the command is successful: CV-X writes "1" into Command
the PLC Command Complete Address (bit) and Command Complete Address (bit), and "0" into Command Result Address.
Result Address (DM003 and DM200 respectively in this
example) have changed.
When the command fails: CV-X writes "1" into Command Complete
Address (bit), and an error code into Command Result Address.