358GB High-speed, High-capacity Machine Vision System CV-X Series Easy Setup Guide Control/Communication PLC-Link (MELSEC FX Series)
Contents Easy Setup Guide: Control/Communication PLC-Link (MELSEC FX Series) 1. Establishing the PLC-Link (RS-232C PLC-Link) Page 3 2. Outputting the Measured Value/Judged Value (PLC-Link) Page 6 3. Controlling the Controller (PLC-Link) Page 9 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. KEYENCE CORPORATION. Vision System Division ‐2‐ www.keyence.
1. Establishing the PLC-Link (RS-232C PLC-Link) [MELSEC FX Series] ✎Checking the Global Settings of the CV-X Series This section describes how to establish the PLC‐Link. [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]. Configure the PLC‐Link settings.
✎Configuring the FX Series Settings 1 2 3 Start GX Developer, and select [Project] > [New project]. Select "FXCPU" for "Series" and a model*2 to use for "Type", and then press the "OK" button. *1 Programmable Controller *2 Select a model described in the CV-X user's manual. Select "PLC Parameter" from the project data list, and change the parameters according to the CV-X Series Global Settings. Use the same values as those set for the CV‐X Series Global Settings.
4 5 Select [Online] > [Write to PLC], and press "Execute" to connect to PLC. Restart both the CV-X Series and the MELSEC FX Series. * Start the MELSEC FX Series first, and then start the CV‐X Series. 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...
2. Outputting the Measured Value/Judged Value (PLC-Link) [MELSEC FX Series] ✎Configuring the Output Settings Set the measured values/judged values to output in "Output Settings". This section describes how to assign tool measurement values/judgment values. (In the description, the following are output: 1: Total Status Value, 2: T100: Pattern Search. Pattern X Position Result, 3: T100: Pattern Search. Pattern XY Position Result, 4: T101: Area. Area Result, 5: T102: OCR.
✎Checking the Output Format/Flow for the Data Memory 1 Check the data memory and word count to use for the result output. Use "Result Output Address", "Result Ready Address" and "Result Ack Address" in [Global] > [Communications & I/O] > [PLC‐ Link]. - 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 at 2 words per data item (2 words per character).
3 Representative data output procedure 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 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.
3. Controlling the Controller (PLC-Link) [MELSEC FX Series] ✎Checking the Global Settings of the CV-X Series 1 2 On the "Global" menu, select [Communications & I/O] > [PLC-Link] to open the global "PLC-Link" settings screen. Check the setting items necessary for controller control. Select the Command Execute Event. Select Polling for Command Execute Event. Check the data memory to use for the following three items.
✎Command Processing Flow To control the controller via PLC‐Link, use the number‐specified commands. 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. The following must be specified to execute the PW command: Command No. (24) SD card No. (d) of the switch target program setting Setting No.
✎Command Processing Flow 2 Command execution procedure There are two methods for executing a command: "PLC Terminal" and "Polling". If "Polling" is selected, terminal control is not required but the communication for polling is required, and the command execution may be slower than "PLC Terminal". "PLC Terminal" Executes a command when the input terminal IN15 "PLC Terminal" is set.
✎ Command Execution Procedure Example Save Settings (SS Command) Here is an example of a representative command execution procedure. This section explains an example of executing the SS (Save Settings) command, which does not use a command parameter, with Command Execute Event set to "Polling". The screens with blue frames show when the "Registration monitor" function of GX Developer is used for confirmation. 1 Check the SS (Save Settings) command operation. 1. Enter "12", the SS command No.
✎Command Execution Procedure Example: Switch Program Setting No. (PW) Here is an example of a representative command execution procedure. This section explains an example of executing the PW (Switch Program Setting No.) command, which uses a command parameter, with Command Execute Event set to "Polling". The screens with blue frames show when the "Device Registration monitor" function screen of GX Developer is used for confirmation. 1 Check the PW (Switch Program Setting No.) command operation. 1.
✎ Command Execution Procedure Example: Rewrite Judgment Conditions (DW) Here is an example of a representative command execution procedure. This section explains an example of executing a DW (Rewrite Judgment Conditions) command, which specifies numeric values as command parameters, with Command Execute Event set to "Polling". The screens with blue frames show when the "Device Registration monitor" function screen of GX Developer is used for confirmation.
✎Command Execution Procedure Example: Rewrite Registered String (CW) Here is an example of a representative command execution procedure. This section explains an example of executing the CW (Rewrite Registered String) command, which specifies a string for the command parameter, with Command Execute Event set to "Polling". The screens with blue frames show when the "Device Registration monitor" function screen of GX Developer is used for confirmation.
Copyright (c) 2014 KEYENCE CORPORATION. All rights reserved.