KV-X Series × IV4-H/IV4 Series
EtherNet/IP™ Connection Guide
Return to KV Series Connection Guide
Contents
Step 1 : Devices Required for Connection



Step 2 : IV4-H/IV4 Series [EtherNet/IP] Settings
Configure the IV4 Series network settings using the IV Smart Navigator. As an example, this guide describes the procedure to assign the following IP addresses to the PC, KV-X Series, and IV4-H/IV4 Series. Set an IP address for PC beforehand.
- IP address to be assigned to the PC: (example) 192.168.0.200
- IP address to be assigned to the KV-X Series: (example) 192.168.0.10 (initial value)
- IP address to be assigned to the IV4-H/IV4 Series: (example) 192.168.0.1
1. Using a LAN cable, connect the PC and the amplifier of the IV4-H/IV4 Series. Start up the IV Smart Navigator, and click [Settings and Operation].
2. Select the IP address of the PC set beforehand for "Network adapter", and click [Search Sensor].
3. The IV4-H/IV4 Series connected with the LAN cable is displayed. Click [Connect], and then click [OK].
4. Set the IP address to be assigned to the IV4-H/IV4 Series. In this example, enter the following values, and click [Connect].
5. The main screen is displayed. Click [Sensor Setup], and adjust the brightness, register the master image, etc. This guide describes the procedure when "Standard Mode" is selected as a mode used for judgment. For details about the sensor settings, refer to the "IV4-H User's Manual" or "IV4 Series User’s Manual".
- *When controlling the imaging timing on the KV-X Series, set the trigger condition to "External Trigger".
6. After the sensor settings are completed, the main screen is displayed again. Click [Sensor Advanced].
7. Open the "Utility" tab, and click〔Communication Setting〕→〔FieldNet/Comm.Unit〕. The [FieldNet/Comm. Unit (DL)] dialog is displayed. Configure the settings as shown below. Click [OK], and then [OK]. The settings are transfered, and the IV4 Series automatically restarts to reflect the settings.
Step 3 : KV-X Series Connection Settings
This section explains how to connect with a fictitious device called "Vendor Series". Replace the "Vender Series" with the device to be connected.
One point
For the KV-X Series with a CPU function version of 2.0 or later, variables can be assigned to the connection of EtherNet/IP.
When assigning variables to the connection of EtherNet/IP®, check the box of “Displays the variable setting dialog when updating the EtherNet/IP settings (E)” for “Other settings” of “System settings” on the “CPU system settings” dialog.
The “CPU system settings” dialog is displayed by selecting [Display (V)] ⇒ [CPU system settings (P)] from the ”KV STUDIO” menu.
When the box of "Displays the variable setting dialog when updating the EtherNet/IP settings (E)" is checked, at the timing when the EtherNet/IP setting is updated and the changed content of the unit editor is confirmed, a dialog to assign variables to the connection is displayed.
1. Start up the KV STUDIO and create a new project. Set the model option to “KV-X520” and click [OK].
A [Confirm unit configuration setting] dialog box is displayed. Click [Yes (Y)].
2. The unit editor is displayed. On the “Setup unit(2)” tab, click the icon of EtherNet/IP setting. A configuration type selection dialog box is displayed. Click [Manual (M)].
3. On the “Unit setting (2)” tab, set the IP address for KV-X Series. In this example, configure the setting as shown below.
* Step 4 needs to be performed to import a sensor setting file. When the sensor setting file has already been imported, proceed to Step 5.
4. Select [EDS file (D)] → [Reg (I)] to import the KEYENCE sensor setting file(ez1 file) or EDS file.
* Download the sensor setting file from the KEYENCE website.
5. With the KV-X Series and the EtherNet/IP devices connected using the Ethernet cable, select [File (F)] → [Auto configuration (S)] on the [EtherNet/IP settings] window.
6. When the configuration on the unit editor differs from that of the actual device, a dialog for confirming transfer of the project is displayed. With the PC and KV-X Series connected using the USB cable, click [Yes (Y)].
7. When transfer of the project is completed, the [Search unit settings] dialog is displayed. Then click [Search (F)]. After the auto configuration is completed, "Vendor Series" is automatically registered. Then click [OK] to close the [EtherNet/IP settings] window.
8. Click [OK] on the unit editor to exit.
One point
When the box of "Displays the variable setting dialog when updating the EtherNet/IP settings (E)" is checked, the [EtherNet/IP equipment Variable settings] dialog is displayed.
Enter the name of variable assigned to the connection, and click [OK].
- The way of Device Configuration Settings manually
In the [Unit list (1)] tab of “EtherNet/IP Settings”, drag and drop "Vendor Series" and create a device configuration.
Transferring and Monitoring Setting Data
1. From the menu, select [Monitor/Simulator (N)] > [Transfer to PLC (W) → Monitor mode (C)].
In the [Send comm. cmd. to PLC] dialog box, click [Execute(E)].
2. If the following dialog box is displayed before and after transferring the data, click [Yes] both times.
3. Right-click on “Vender Series” in the workspace, and select [Sensor IO monitor (M)].
Scores and other information can be easily monitored.
One point
The information can also be checked on a graph by starting up the real time chart monitor.
Right-click on “Sensor I/O monitor” and select [Real time chart monitor (H)].
Range adjustment is not required since the real time chart monitor performs scaling automatically.
When Manipulating Parameters with a Program
Changing the Setting Values
The setting values of the sensors can be changed by the following two methods:
A : Change from a PC
B : Change from a ladder program
A : Change from a PC
To change the settings from a PC, use the transmission adapter function in KV STUDIO.
1. Expand the unit configuration in the workspace. Right-click on "Vender Series" and select [Transmission adapter settings (A)].
2. Place a check mark in Setting Value for "Vender Series" and enter the setting value.
Click [Write adapter (W)] to write the setting value to the sensor.
*To read the setting value of a sensor, select [Read adapter (R)].
B : Changed from a ladder program
Use message communication to change the setting values from a ladder program.
To perform message communication with KV STUDIO, use the sensor setting commands (SPWR [sensor parameter write] and SPRD [sensor parameter read]).
1. In Editor mode, create a ladder program as shown below.
* For the parameter numbers, refer to Parameter list.
2. Transfer the ladder program.
3. When MR100 is turned on, the setting value is changed.
* Store the setting value in DM4 ([Leading device to store results] + 4).
One point
RT (Real-Time) Edit function
When you use a ladder program, you can input device comments or parameter names directly to have input candidates be searched for and displayed automatically.
Extra 1 : Variable Assignment
List of parameters that can be obtained in cyclic communication
In this part, the variable names are shown as VariableName_IN and VariableName_OUT, but please substitute the variable names you entered in Step 3, Procedure 8.
Available Connections (IV4-H/IV4 Series)
The following connections are available for the IV4-H/IV4 series.
| Connection name | Connection point | IN/OUT | Data size(Word) | Application type |
|---|---|---|---|---|
| Monitor Data And External Input | IN_100 | IN | 197 | Exclusive owner |
| OUT_110 | OUT | 6 | ||
| x4 Details Monitor Data And External Input | IN_101 | IN | 197 | Exclusive owner |
| OUT_110 | OUT | 6 | ||
| x8 Details Monitor Data And External Input | IN_102 | IN | 197 | Exclusive owner |
| OUT_110 | OUT | 6 | ||
| Simple Monitor Data And External Input | IN_103 | IN | 111 | Exclusive owner |
| OUT_110 | OUT | 6 | ||
| Monitor Data | IN_100 | IN | 197 | Input only |
| - | - | - | ||
| x4 Details Monitor Data | IN_101 | IN | 197 | Input only |
| - | - | - | ||
| x8 Details Monitor Data | IN_102 | IN | 197 | Input only |
| - | - | - | ||
| Simple Monitor Data | IN_103 | IN | 111 | Input only |
| - | - | - |
Structure Definition(IV4-H)
Input(IV4-H→KV-X、Connection point: IN_100)
| Variable name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| VariableName_IN | IV4H_Series_IN100 | ||
| Common | IV4H_Series_CommonInput | IV4-H common input data | |
| Tool | ARRAY[0..15] OF BOOL | Tool01-16 | |
| ErrorNo | UINT | Error No. | |
| WarningNo | UINT | Warning No. | |
| RemainBufferNum | UINT | Number of remaining buffers | |
| Checksum_Lower | UINT | Checksum Lower | |
| CurProgramNo | UINT | Current program No. | |
| ProgramNoDuringJudge | UINT | Program No. during judgment | |
| ResultNo | UINT | Result No. | |
| ProcessTime | UINT | Processing time | |
| ProcessTime_MAX | UINT | Processing time MAX | |
| ProcessTime_MIN | UINT | Processing time MIN | |
| ProcessTime_AVE | UINT | Processing time AVE | |
| Checksum_Upper | UINT | Checksum Upper | |
| TriggerNum | UDINT | Number of triggers | |
| OK_Num | UDINT | Number of OKs | |
| NG_Num | UDINT | Number of NGs | |
| TriggerErrorNum | UDINT | Number of trigger errors | |
| OutputTransfers | UDINT | Output transfers | |
| PosAdj_Score | UINT | Position Adj. score | |
| PosAdj_Score_MAX | UINT | Position Adj. score MAX | |
| PosAdj_Score_MIN | UINT | Position Adj. score MIN | |
| PosAdj_Score_LowThre | UINT | Position score Lower threshold | |
| Tool_Info | ARRAY[0..15] OF IV4H_Series_Tool_Info | Tool information | |
| ClassificationResult | UINT | Classification Result | |
Input(IV4-H→KV-X、Connection point: IN_101)
| Variable name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| VariableName_IN | IV4H_Series_IN101 | ||
| Common | IV4H_Series_CommonInput | IV4-H common input data | |
| Tool | ARRAY[0..15] OF BOOL | Tool01-16 | |
| ErrorNo | UINT | Error No. | |
| WarningNo | UINT | Warning No. | |
| RemainBufferNum | UINT | Number of remaining buffers | |
| Checksum_Lower | UINT | Checksum Lower | |
| CurProgramNo | UINT | Current program No. | |
| ProgramNoDuringJudge | UINT | Program No. during judgment | |
| ResultNo | UINT | Result No. | |
| ProcessTime | UINT | Processing time | |
| ProcessTime_MAX | UINT | Processing time MAX | |
| ProcessTime_MIN | UINT | Processing time MIN | |
| ProcessTime_AVE | UINT | Processing time AVE | |
| Checksum_Upper | UINT | Checksum Upper | |
| TriggerNum | UDINT | Number of triggers | |
| OK_Num | UDINT | Number of OKs | |
| NG_Num | UDINT | Number of NGs | |
| TriggerErrorNum | UDINT | Number of trigger errors | |
| OutputTransfers | UDINT | Output transfers | |
| PosAdj_Score | UINT | Position Adj. score | |
| PosAdj_Score_MAX | UINT | Position Adj. score MAX | |
| PosAdj_Score_MIN | UINT | Position Adj. score MIN | |
| PosAdj_Score_LowThre | UINT | Position score Lower threshold | |
| Tool_Info_X4 | ARRAY[0..15] OF IV4H_Series_Tool_Info_X4 | Tool information (x4 Details) | |
| ClassificationResult | UINT | Classification Result | |
Input(IV4-H→KV-X、Connection point: IN_102)
| Variable name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| VariableName_IN | IV4H_Series_IN102 | ||
| Common | IV4H_Series_CommonInput | IV4-H common input data | |
| Tool | ARRAY[0..15] OF BOOL | Tool01-16 | |
| ErrorNo | UINT | Error No. | |
| WarningNo | UINT | Warning No. | |
| RemainBufferNum | UINT | Number of remaining buffers | |
| Checksum_Lower | UINT | Checksum Lower | |
| CurProgramNo | UINT | Current program No. | |
| ProgramNoDuringJudge | UINT | Program No. during judgment | |
| ResultNo | UINT | Result No. | |
| ProcessTime | UINT | Processing time | |
| ProcessTime_MAX | UINT | Processing time MAX | |
| ProcessTime_MIN | UINT | Processing time MIN | |
| ProcessTime_AVE | UINT | Processing time AVE | |
| Checksum_Upper | UINT | Checksum Upper | |
| TriggerNum | UDINT | Number of triggers | |
| OK_Num | UDINT | Number of OKs | |
| NG_Num | UDINT | Number of NGs | |
| TriggerErrorNum | UDINT | Number of trigger errors | |
| OutputTransfers | UDINT | Output transfers | |
| PosAdj_Score | UINT | Position Adj. score | |
| PosAdj_Score_MAX | UINT | Position Adj. score MAX | |
| PosAdj_Score_MIN | UINT | Position Adj. score MIN | |
| PosAdj_Score_LowThre | UINT | Position score Lower threshold | |
| Tool_Info_X8 | ARRAY[0..15] OF IV4H_Series_Tool_Info_X8 | Tool information (x8 Details) | |
| ClassificationResult | UINT | Classification Result | |
Input(IV4-H→KV-X、Connection point: IN_103)
| Variable name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| VariableName_IN | IV4H_Series_IN103 | ||
| Common | IV4H_Series_CommonInput | IV4-H common input data | |
| ErrorNo | UINT | Error No. | |
| WarningNo | UINT | Warning No. | |
| RemainBufferNum | UINT | Number of remaining buffers | |
| Checksum_Lower | UINT | Checksum Lower | |
| CurProgramNo | UINT | Current program No. | |
| ProgramNoDuringJudge | UINT | Program No. during judgment | |
| ResultNo | UINT | Result No. | |
| ProcessTime | UINT | Processing time | |
| ProcessTime_MAX | UINT | Processing time MAX | |
| ProcessTime_MIN | UINT | Processing time MIN | |
| ProcessTime_AVE | UINT | Processing time AVE | |
| Checksum_Upper | UINT | Checksum Upper | |
| TriggerNum | UDINT | Number of triggers | |
| OK_Num | UDINT | Number of OKs | |
| NG_Num | UDINT | Number of NGs | |
| TriggerErrorNum | UDINT | Number of trigger errors | |
| OutputTransfers | UDINT | Output transfers | |
| ClassificationResult | UINT | Classification Result | |
| Tool | ARRAY[0..63] OF BOOL | Tool01-64 | |
| ToolScore | ARRAY[0..64] OF UINT | Tool00-64 score | |
Output(KV-X→IV4-H、Connection point: OUT_110)
| Variable name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| VariableName_OUT | IV4H_Series_OUT110 | ||
| TriggerReq | BOOL | Trigger request | |
| MasterRegReq | BOOL | Master registration request | |
| ProgramSwitchReq | BOOL | Program switching request | |
| WarningClrReq | BOOL | Warning clear request | |
| StatResetReq | BOOL | Statistics reset request | |
| Rslt_BufferClrReq | BOOL | Result / Buffer clear response | |
| SD_SavingStopReq | BOOL | SD card saving stop request | |
| SettingValChgReq | BOOL | Setting value change request | |
| AllStatResetReq | BOOL | All statistics reset request | |
| CountUpInputReq | BOOL | Count up input request | |
| CountResetReq | BOOL | Count reset request | |
| ResultAcqComp | BOOL | Result acquisition complete | |
| ProgramNo | UINT | Program No. | |
| SettingNo | UINT | Setting No. | |
| SettingVal | UDINT | Setting value | |
Structure(IV4-H) IV4H_Series_CommonInput
| Structure name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| IV4H_Series_CommonInput | |||
| TriggerResp | BOOL | Trigger response | |
| MasterRegResp | BOOL | Master registration response | |
| ProgramSwitchResp | BOOL | Program switching response | |
| WarningClrResp | BOOL | Warning clear response | |
| StatResetResp | BOOL | Statistics reset response | |
| Rslt_BufferClrResp | BOOL | Result / Buffer clear response | |
| SD_SavingStopResp | BOOL | SD card saving stop response | |
| SetValChgResp | BOOL | Setting value change response | |
| TriggerFail | BOOL | Trigger failed | |
| MasterRegFail | BOOL | Master registration failed | |
| ProgramSwitchFail | BOOL | Program switching failed | |
| CountUpInputResp | BOOL | Count up input response | |
| CountResetResp | BOOL | Count reset response | |
| SD_SavingStopFail | BOOL | SD card saving stop failed | |
| SetValChgFail | BOOL | Setting value change failed | |
| ResultAvailable | BOOL | Result available | |
| ResultUpdateComp | BOOL | Result update complete | |
| BUSY | BOOL | BUSY | |
| ImagingStatus | BOOL | Imaging status | |
| RUN | BOOL | RUN | |
| Ready | BOOL | Ready | |
| TriggerReady | BOOL | Trigger ready | |
| SD_Status | BOOL | SD card identification status | |
| ClassificationMode | BOOL | Classification Mode | |
| AI_ThroughCountStatus | BOOL | AI-Through count status | |
| SD_NoSpace | BOOL | Insufficient free space on SD | |
| BufferOverRun | BOOL | Buffer overrun | |
| Warning | BOOL | Warning | |
| Error | BOOL | Error | |
| OverallJudgeOK | BOOL | Overall judgment OK | |
| PositionCorrection | BOOL | Position correction | |
| LOGIC1 | BOOL | LOGIC 1 result | |
| LOGIC2 | BOOL | LOGIC 2 result | |
| LOGIC3 | BOOL | LOGIC 3 result | |
| LOGIC4 | BOOL | LOGIC 4 result | |
| OverallJudgeNG | BOOL | Overall judgment NG | |
| LOGIC5 | BOOL | LOGIC 5 result | |
| LOGIC6 | BOOL | LOGIC 6 result | |
| LOGIC7 | BOOL | LOGIC 7 result | |
| LOGIC8 | BOOL | LOGIC 8 result | |
Structure(IV4-H) IV4H_Series_Tool_Info
| Structure name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| IV4H_Series_Tool_Info | |||
| MatchRate | UINT | score | |
| MatchRateMAX_Thre | UINT | score MAX / Threshold | |
| MatchRateMIN_OCR1 | UINT | score MIN / OCR1 | |
| LowThre_OCR2 | UINT | lower threshold / OCR2 | |
| UpThre_OCR3 | UINT | upper threshold / OCR3 | |
| DecPos_OCR4 | UINT | Dec.Pos / OCR4 | |
| PitchMax_H_OCR5 | UINT | Pitch MAX / ColorH / OCR5 | |
| PitchMIN_S_OCR6 | UINT | Pitch MIN / ColorS / OCR6 | |
| PitchNum_V_OCR7 | UINT | Pitch Num / ColorV / OCR7 | |
| OCR8 | UINT | OCR8 | |
Structure(IV4-H) IV4H_Series_Tool_Info_X4
| Structure name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| IV4H_Series_Tool_Info_X4 | |||
| MatchRate | UINT | score | |
| MatchRateMAX_Thre | UINT | score MAX / Threshold | |
| MatchRateMIN_SerialNoLower | UINT | score MIN / S.N.(Lower) | |
| LowThre_SerialNoHigher | UINT | lower threshold / S.N.(Higher) | |
| UpThre_SerialNoAscii1 | UINT | upper threshold / S.N.(Ascii) | |
| DecPos_SerialNoAscii2 | UINT | Dec.Pos / S.N.(Ascii) | |
| PitchMax_H_SerialNoAscii3 | UINT | Pitch MAX / ColorH / S.N.(Ascii) | |
| PitchMIN_S_Reserved | UINT | Pitch MIN / ColorS / Reserved | |
| PitchNum_V_ReadLength | UINT | Pitch Num / ColorV / Length | |
| Reserved_ReadBytes | UINT | Reserved / Bytes | |
| ExtInfo | ARRAY[0..29] OF UINT | OCR1-30 | |
Structure(IV4-H) IV4H_Series_Tool_Info_X8
| Structure name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| IV4H_Series_Tool_Info_X8 | |||
| MatchRate | UINT | score | |
| MatchRateMAX_Thre | UINT | score MAX / Threshold | |
| MatchRateMIN_SerialNoLower | UINT | score MIN / S.N.(Lower) | |
| LowThre_SerialNoHigher | UINT | lower threshold / S.N.(Higher) | |
| UpThre_SerialNoAscii1 | UINT | upper threshold / S.N.(Ascii) | |
| DecPos_SerialNoAscii2 | UINT | Dec.Pos / S.N.(Ascii) | |
| PitchMax_H_SerialNoAscii3 | UINT | Pitch MAX / ColorH / S.N.(Ascii) | |
| PitchMIN_S_Reserved | UINT | Pitch MIN / ColorS / Reserved | |
| PitchNum_V_ReadLength | UINT | Pitch Num / ColorV / Length | |
| Reserved_ReadBytes | UINT | Reserved / Bytes | |
| ExtInfo | ARRAY[0..47] OF UINT | OCR1-48 | |
| Reserved | ARRAY[0..21] OF UINT | ||
Structure Definition(IV4 Series)
Input(IV4→KV-X、Connection point: IN_100)
| Variable name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| VariableName_IN | IV4_Series_IN100 | ||
| Common | IV4_Series_CommonInput | IV4 common input data | |
| Tool | ARRAY[0..15] OF BOOL | Tool01-16 | |
| ErrorNo | UINT | Error No. | |
| WarningNo | UINT | Warning No. | |
| RemainBufferNum | UINT | Number of remaining buffers | |
| Checksum | UINT | Checksum | |
| CurProgramNo | UINT | Current program No. | |
| ProgramNoDuringJudge | UINT | Program No. during judgment | |
| ResultNo | UINT | Result No. | |
| ProcessTime | UINT | Processing time | |
| ProcessTime_MAX | UINT | Processing time MAX | |
| ProcessTime_MIN | UINT | Processing time MIN | |
| ProcessTime_AVE | UINT | Processing time AVE | |
| TriggerNum | UDINT | Number of triggers | |
| OK_Num | UDINT | Number of OKs | |
| NG_Num | UDINT | Number of NGs | |
| TriggerErrorNum | UDINT | Number of trigger errors | |
| OutputTransfers | UDINT | Output transfers | |
| PosAdj_Score | UINT | Position Adj. score | |
| PosAdj_Score_MAX | UINT | Position Adj. score MAX | |
| PosAdj_Score_MIN | UINT | Position Adj. score MIN | |
| PosAdj_Score_LowThre | UINT | Position score Lower threshold | |
| Tool_Info | ARRAY[0..15] OF IV4_Series_Tool_Info | Tool information | |
| ClassificationResult | UINT | Classification Result | |
Input(IV4→KV-X、Connection point: IN_101)
| Variable name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| VariableName_IN | IV4_Series_IN101 | ||
| Common | IV4_Series_CommonInput | IV4 common input data | |
| Tool | ARRAY[0..15] OF BOOL | Tool01-16 | |
| ErrorNo | UINT | Error No. | |
| WarningNo | UINT | Warning No. | |
| RemainBufferNum | UINT | Number of remaining buffers | |
| Checksum | UINT | Checksum | |
| CurProgramNo | UINT | Current program No. | |
| ProgramNoDuringJudge | UINT | Program No. during judgment | |
| ResultNo | UINT | Result No. | |
| ProcessTime | UINT | Processing time | |
| ProcessTime_MAX | UINT | Processing time MAX | |
| ProcessTime_MIN | UINT | Processing time MIN | |
| ProcessTime_AVE | UINT | Processing time AVE | |
| TriggerNum | UDINT | Number of triggers | |
| OK_Num | UDINT | Number of OKs | |
| NG_Num | UDINT | Number of NGs | |
| TriggerErrorNum | UDINT | Number of trigger errors | |
| OutputTransfers | UDINT | Output transfers | |
| PosAdj_Score | UINT | Position Adj. score | |
| PosAdj_Score_MAX | UINT | Position Adj. score MAX | |
| PosAdj_Score_MIN | UINT | Position Adj. score MIN | |
| PosAdj_Score_LowThre | UINT | Position score Lower threshold | |
| Tool_Info_X4 | ARRAY[0..15] OF IV4_Series_Tool_Info_X4 | Tool information (x4 Details) | |
| ClassificationResult | UINT | Classification Result | |
Input(IV4→KV-X、Connection point: IN_102)
| Variable name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| VariableName_IN | IV4_Series_IN102 | ||
| Common | IV4_Series_CommonInput | IV4 common input data | |
| Tool | ARRAY[0..15] OF BOOL | Tool01-16 | |
| ErrorNo | UINT | Error No. | |
| WarningNo | UINT | Warning No. | |
| RemainBufferNum | UINT | Number of remaining buffers | |
| Checksum | UINT | Checksum | |
| CurProgramNo | UINT | Current program No. | |
| ProgramNoDuringJudge | UINT | Program No. during judgment | |
| ResultNo | UINT | Result No. | |
| ProcessTime | UINT | Processing time | |
| ProcessTime_MAX | UINT | Processing time MAX | |
| ProcessTime_MIN | UINT | Processing time MIN | |
| ProcessTime_AVE | UINT | Processing time AVE | |
| TriggerNum | UDINT | Number of triggers | |
| OK_Num | UDINT | Number of OKs | |
| NG_Num | UDINT | Number of NGs | |
| TriggerErrorNum | UDINT | Number of trigger errors | |
| OutputTransfers | UDINT | Output transfers | |
| PosAdj_Score | UINT | Position Adj. score | |
| PosAdj_Score_MAX | UINT | Position Adj. score MAX | |
| PosAdj_Score_MIN | UINT | Position Adj. score MIN | |
| PosAdj_Score_LowThre | UINT | Position score Lower threshold | |
| Tool_Info_X8 | ARRAY[0..15] OF IV4_Series_Tool_Info_X8 | Tool information (x8 Details) | |
| ClassificationResult | UINT | Classification Result | |
Input(IV4→KV-X、Connection point: IN_103)
| Variable name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| VariableName_IN | IV4_Series_IN103 | ||
| Common | IV4_Series_CommonInput | IV4 common input data | |
| ErrorNo | UINT | Error No. | |
| WarningNo | UINT | Warning No. | |
| RemainBufferNum | UINT | Number of remaining buffers | |
| Checksum | UINT | Checksum | |
| CurProgramNo | UINT | Current program No. | |
| ProgramNoDuringJudge | UINT | Program No. during judgment | |
| ResultNo | UINT | Result No. | |
| ProcessTime | UINT | Processing time | |
| ProcessTime_MAX | UINT | Processing time MAX | |
| ProcessTime_MIN | UINT | Processing time MIN | |
| ProcessTime_AVE | UINT | Processing time AVE | |
| TriggerNum | UDINT | Number of triggers | |
| OK_Num | UDINT | Number of OKs | |
| NG_Num | UDINT | Number of NGs | |
| TriggerErrorNum | UDINT | Number of trigger errors | |
| OutputTransfers | UDINT | Output transfers | |
| ClassificationResult | UINT | Classification Result | |
| Tool | ARRAY[0..63] OF BOOL | Tool01-64 | |
| ToolScore | ARRAY[0..64] OF UINT | Tool00-64 score | |
Output(KV-X→IV4、Connection point: OUT_110)
| Variable name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| VariableName_OUT | IV4_Series_OUT110 | ||
| TriggerReq | BOOL | Trigger request | |
| MasterRegReq | BOOL | Master registration request | |
| ProgramSwitchReq | BOOL | Program switching request | |
| WarningClrReq | BOOL | Warning clear request | |
| StatResetReq | BOOL | Statistics reset request | |
| Rslt_BufferClrReq | BOOL | Result / Buffer clear response | |
| SD_SavingStopReq | BOOL | SD card saving stop request | |
| SettingValChgReq | BOOL | Setting value change request | |
| AllStatResetReq | BOOL | All statistics reset request | |
| CountUpInputReq | BOOL | Count up input request | |
| CountResetReq | BOOL | Count reset request | |
| ResultAcqComp | BOOL | Result acquisition complete | |
| ProgramNo | UINT | Program No. | |
| SettingNo | UINT | Setting No. | |
| SettingVal | UDINT | Setting value | |
Structure(IV4) IV4_Series_CommonInput
| Structure name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| IV4_Series_CommonInput | |||
| TriggerResp | BOOL | Trigger response | |
| MasterRegResp | BOOL | Master registration response | |
| ProgramSwitchResp | BOOL | Program switching response | |
| WarningClrResp | BOOL | Warning clear response | |
| StatResetResp | BOOL | Statistics reset response | |
| Rslt_BufferClrResp | BOOL | Result / Buffer clear response | |
| SD_SavingStopResp | BOOL | SD card saving stop response | |
| SetValChgResp | BOOL | Setting value change response | |
| TriggerFail | BOOL | Trigger failed | |
| MasterRegFail | BOOL | Master registration failed | |
| ProgramSwitchFail | BOOL | Program switching failed | |
| CountUpInputResp | BOOL | Count up input response | |
| CountResetResp | BOOL | Count reset response | |
| SD_SavingStopFail | BOOL | SD card saving stop failed | |
| SetValChgFail | BOOL | Setting value change failed | |
| ResultAvailable | BOOL | Result available | |
| ResultUpdateComp | BOOL | Result update complete | |
| BUSY | BOOL | BUSY | |
| ImagingStatus | BOOL | Imaging status | |
| RUN | BOOL | RUN | |
| Ready | BOOL | Ready | |
| TriggerReady | BOOL | Trigger ready | |
| SD_Status | BOOL | SD card identification status | |
| ClassificationMode | BOOL | Classification Mode | |
| AI_ThroughCountStatus | BOOL | AI-Through count status | |
| SD_NoSpace | BOOL | Insufficient free space on SD | |
| BufferOverRun | BOOL | Buffer overrun | |
| Warning | BOOL | Warning | |
| Error | BOOL | Error | |
| OverallJudgeOK | BOOL | Overall judgment OK | |
| PositionCorrection | BOOL | Position correction | |
| LOGIC1 | BOOL | LOGIC 1 result | |
| LOGIC2 | BOOL | LOGIC 2 result | |
| LOGIC3 | BOOL | LOGIC 3 result | |
| LOGIC4 | BOOL | LOGIC 4 result | |
| OverallJudgeNG | BOOL | Overall judgment NG | |
| LOGIC5 | BOOL | LOGIC 5 result | |
| LOGIC6 | BOOL | LOGIC 6 result | |
| LOGIC7 | BOOL | LOGIC 7 result | |
| LOGIC8 | BOOL | LOGIC 8 result | |
Structure(IV4) IV4_Series_Tool_Info
| Structure name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| IV4_Series_Tool_Info | |||
| MatchRate | UINT | score | |
| MatchRateMAX_Thre | UINT | score MAX / Threshold | |
| MatchRateMIN_OCR1 | UINT | score MIN / OCR1 | |
| LowThre_OCR2 | UINT | lower threshold / OCR2 | |
| UpThre_OCR3 | UINT | upper threshold / OCR3 | |
| DecPos_OCR4 | UINT | Dec.Pos / OCR4 | |
| PitchMax_H_OCR5 | UINT | Pitch MAX / ColorH / OCR5 | |
| PitchMIN_S_OCR6 | UINT | Pitch MIN / ColorS / OCR6 | |
| PitchNum_V_OCR7 | UINT | Pitch Num / ColorV / OCR7 | |
| OCR8 | UINT | OCR8 | |
Structure(IV4) IV4_Series_Tool_Info_X4
| Structure name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| IV4_Series_Tool_Info_X4 | |||
| MatchRate | UINT | score | |
| MatchRateMAX_Thre | UINT | score MAX / Threshold | |
| MatchRateMIN_SerialNoLower | UINT | score MIN / S.N.(Lower) | |
| LowThre_SerialNoHigher | UINT | lower threshold / S.N.(Higher) | |
| UpThre_SerialNoAscii1 | UINT | upper threshold / S.N.(Ascii) | |
| DecPos_SerialNoAscii2 | UINT | Dec.Pos / S.N.(Ascii) | |
| PitchMax_H_SerialNoAscii3 | UINT | Pitch MAX / ColorH / S.N.(Ascii) | |
| PitchMIN_S_Reserved | UINT | Pitch MIN / ColorS / Reserved | |
| PitchNum_V_ReadLength | UINT | Pitch Num / ColorV / Length | |
| Reserved_ReadBytes | UINT | Reserved / Bytes | |
| ExtInfo | ARRAY[0..29] OF UINT | OCR1-30 | |
Structure(IV4) IV4_Series_Tool_Info_X8
| Structure name | Data type | Comment | |
|---|---|---|---|
| Member name | |||
| IV4_Series_Tool_Info_X8 | |||
| MatchRate | UINT | score | |
| MatchRateMAX_Thre | UINT | score MAX / Threshold | |
| MatchRateMIN_SerialNoLower | UINT | score MIN / S.N.(Lower) | |
| LowThre_SerialNoHigher | UINT | lower threshold / S.N.(Higher) | |
| UpThre_SerialNoAscii1 | UINT | upper threshold / S.N.(Ascii) | |
| DecPos_SerialNoAscii2 | UINT | Dec.Pos / S.N.(Ascii) | |
| PitchMax_H_SerialNoAscii3 | UINT | Pitch MAX / ColorH / S.N.(Ascii) | |
| PitchMIN_S_Reserved | UINT | Pitch MIN / ColorS / Reserved | |
| PitchNum_V_ReadLength | UINT | Pitch Num / ColorV / Length | |
| Reserved_ReadBytes | UINT | Reserved / Bytes | |
| ExtInfo | ARRAY[0..47] OF UINT | OCR1-48 | |
| Reserved | ARRAY[0..21] OF UINT | ||
Extra 2 : Reference Programs
Reading judgment results (handshaking control disabled)
Mnemonic symbol list
LDP xTrgReq
OR IV4H_OUT.TriggerReq
ANB IV4H_IN.Common.TriggerResp
OUT IV4H_OUT.TriggerReq
LD IV4H_IN.Common.ResultAvailable
LDP IV4H_IN.Common.ResultUpdateComp
ORF IV4H_IN.Common.ResultUpdateComp
ANL
FUN MOVE IV4H_IN.Tool_Info[0].MatchRate uiToolScore
▶ Variable definiton
| Variable name | Data type | Comment |
|---|---|---|
| xTrgReq | BOOL | Imaging start request |
| IV4H_OUT.TriggerReq | BOOL | Trigger request |
| IV4H_IN.Common.TriggerResp | BOOL | Trigger response |
| IV4H_IN.Common.ResultAvailable | BOOL | Result available |
| IV4H_IN.Common.ResultUpdateComp | BOOL | Result update complete |
| IV4H_IN.Tool_Info[0].MatchRate | UINT | Tool information score |
| uiToolScore | UINT | Tool score |
- (1) Turns ON the trigger request, and holds until the trigger response is turned ON.
- (2) Copies the data written to the tool score when the result acquisition possible is turned ON and at the rising or falling of result update completion
One point
Program can be created with a manual-less ladder!
Relay input is possible only by entering some portion of the device comments during entry of operand. (RT edit function)
Time to search for relay numbers is eliminated, leading to the reduction of man hours for program creation.
Reading judgment results (handshaking control enabled)
Mnemonic symbol list
LDP xTrgReq
OR IV4H_OUT.TriggerReq
ANB IV4H_IN.Common.TriggerResp
OUT IV4H_OUT.TriggerReq
LDP IV4H_IN.Common.ResultAvailable
FUN MOVE IV4H_IN.Tool_Info[0].MatchRate uiToolScore
LDP IV4H_IN.Common.ResultAvailable
OR IV4H_OUT.ResultAcqComp
AND IV4H_IN.Common.ResultAvailable
OUT IV4H_OUT.ResultAcqComp
▶ Variable definiton
| Variable name | Data type | Comment |
|---|---|---|
| xTrgReq | BOOL | Imaging start request |
| IV4H_OUT.TriggerReq | BOOL | Trigger request |
| IV4H_IN.Common.TriggerResp | BOOL | Trigger response |
| IV4H_IN.Common.ResultAvailable | BOOL | Result available |
| IV4H_IN.Common.ResultUpdateComp | BOOL | Result update complete |
| IV4H_IN.Tool_Info[0].MatchRate | UINT | Tool information score |
| uiToolScore | UINT | Tool score |
| IV4H_OUT.ResultAcqComp | BOOL | Result acquisition complete notification |
- (1) Turns ON the trigger request, and holds until the trigger response is turned ON.
- (2) Copies the data written to the tool score when the result acquisition possible is turned ON.
- (3) Turns ON the result acquisition completion notification when the result acquisition possible is turned ON, and holds until the result acquisition possible is turned OFF.
Switching the program
Mnemonic symbol list
LDP xChangePrg
FUN MOVE uiProgramNo IV4H_OUT.ProgramNo
LDP xChangePrg
OR IV4H_OUT.ProgramSwitchReq
ANB IV4H_IN.Common.ProgramSwitchResp
OUT IV4H_OUT.ProgramSwitchReq
▶ Variable definiton
| Variable name | Data type | Comment |
|---|---|---|
| xChangePrg | BOOL | Program switching |
| uiProgramNo | UINT | Program No. |
| IV4H_OUT.ProgramNo | UINT | Output program No. |
| IV4H_OUT.ProgramSwitchReq | BOOL | Program switching request |
| IV4H_IN.Common.ProgramSwitchResp | BOOL | Program switching response |
- (1) Writes the program number.
- (2) Turns ON the program switching request, and holds until the program switching response is turned ON.
Changing the judgment threshold of tools
Mnemonic symbol list
LDP xChangeThres
FUNAND MOVE uiThreshold IV4H_OUT.SettingNo
FUN MOVE udiThresholdValue IV4H_OUT.SettingVal
LDP xChangeThres
OR IV4H_OUT.SettingValChgReq
ANB IV4H_IN.Common.ProgramSwitchResp
OUT IV4H_OUT.SettingValChgReq
▶ Variable definiton
| Variable name | Data type | Comment |
|---|---|---|
| xChangeThres | BOOL | Judgment threshold change request |
| uiThreshold | UINT | Judgment threshold setting No. |
| IV4H_OUT.SettingNo | UINT | Setting value No. |
| udiThresholdValue | UDINT | Judgment threshold value |
| IV4H_OUT.SettingVal | UDINT | Setting value |
| IV4H_OUT.SettingValChgReq | BOOL | Setting value change request |
| IV4H_IN.Common.SetValChgResp | BOOL | Setting value change response |
- (1) Writes upper/lower threshold setting numbers*1 and upper/lower thresholds.
- (2) Turns ON the setting value change request, and holds until the setting value change response is turned ON.
- *1Upper/lower threshold setting numbers differ depending on the tool number and the type of threshold.
For details, refer to the IV4-H/IV4 Series User’s Manual.
Changing the master text
Mnemonic symbol list
LDP xChangeMasterChar
FUN MOVE uiMasterCharSetNo IV4H_OUT.SettingNo
FUN ByteBlockMove strMasterChar +0 IV4H_OUT.SettingVal +0 TRUE +4
LDP xChangeMasterChar
OR IV4H_OUT.SettingValChgReq
ANB IV4H_IN.Common.SetValChgResp
OUT IV4H_OUT.SettingValChgReq
▶ Variable definiton
| Variable name | Data type | Comment |
|---|---|---|
| xChangeMasterChar | BOOL | Master character change |
| uiMasterCharSetNo | UINT | Master character setting No. |
| IV4H_OUT.SettingNo | UINT | Setting value No. |
| strMasterChar | STRING[4] | Master character |
| IV4H_OUT.SettingVal | UDINT | Setting value |
| IV4H_OUT.SettingValChgReq | BOOL | Setting value change request |
| IV4H_IN.Common.SetValChgResp | BOOL | Setting value change response |
- (1) Writes the master text setting number*1 and master text.
- (2) Turns ON the setting value change request, and holds until the setting value change response is turned ON.
- *1The setting number differs depending on the tool that changes the master text.
For details, refer to the IV4-H/IV4 Series User’s Manual
One point
The IV4-H/IV4 Series handles character strings using the character code UTF-8.
Since the KV Series handles character strings using the character code Shift JIS, character strings that cannot be expressed with the ASCII code cannot be specified.
One point
The default connection setting can change only up to 4 master text at a time.
Changing the connection setting allows 5 or more master text to be changed at a time.
Select [Tool (T)] → [Built-in EtherNet settings (E)] → [EtherNet/IP settings (W)], and open the [EtherNet/IP settings] window. On the [EtherNet/ IP settings] window, right-click the IV4-H/IV4 Series icon, and select [Connection setting (N)].
Click "Setup parameter" and increase the "External Input Size" setting value. Then the number of characters that can be changed at a time can be expanded.