IV2 Series: User's Manual
IV2 Series: User's Manual
IV2 Series: User's Manual
1 Safety information
A Index
TCP/IP
Introduction
Introduction
Read this manual before using the product in order to achieve maximum performance.
Keep this manual in a safe place after reading it so that it can be used at any time.
Symbols
The following symbols alert the reader to important messages.
Be sure to read these messages carefully.
Indicates the reference pages in this manual or the reference pages in separate manuals.
Cautions
(1) Unauthorized reproduction of this manual in whole or part is prohibited.
(2) The contents of this manual may be changed for improvements without prior notice.
(3) An utmost effort has been made to ensure the contents of this manual are as complete as possible. If
there are any mistakes or questions, please contact a KEYENCE office listed in the back of the manual.
(4) Regardless of item (3), KEYENCE will not be liable for any effect resulting from the use of this unit.
(5) Any manuals with missing pages or other paging faults will be replaced.
The company names and product names used in this manual are registered trademarks or the trademarks
of their respective companies.
EtherNet/IP is a trademark of ODVA, inc.
Safety Information
Safety Information
General Precautions
yyThis product is only intended to detect objects. Do not use this product for the purpose of
protecting a human body or a part of the human body.
yyThis product is not intended for use as an explosion-proof product. Do not use this product in
a hazardous location and/or potentially explosive atmosphere.
yyThis product cannot be used in an application that requires functional safety. Do not use this
product in applications that are expected to have a major impact on human life or property such
as nuclear power generation, aviation, rail transport, ships, automobiles, medical equipment,
and amusement equipment.
yyIf this product is used in a manner not specified by the manufacturer, the protection provided
by this product may be impaired.
yyPrior to installing this product, perform a sufficient risk assessment for the machine where
this product is to be installed. Then, check that appropriate risk reduction measures have been
implemented. Provide appropriate protective fail-safe measures on the machine independent
from this product to ensure that the machine operates safely even in the event that an error
occurs on this product.
Verify that this product is operating correctly in terms of functionality and performance before
the start and the operation of this product.
yyDo not modify this product or use it in any way other than described in the specification. The
functions and performance cannot be guaranteed in any such situations.
yyWhen this product is used in combination with other instruments, functions and performance
may be degraded depending on the operating conditions and surrounding environment.
yyDo not subject the instruments, including peripherals, to rapid temperature changes. Doing so
may cause condensation and may damage instruments or peripherals.
yyRemove the power cable from the power supply if you will not use this product for a long time.
869GB 1
Version of the IV2 Series
You can download the most recent operation software for the sensor (IV2-G150MA, IV2-G500MA, IV2-G500CA,
IV2-G300CA, IV2-G600MA) and the control panel (IV2-CP50) from the KEYENCE website.
Refer to the description on the website for the installation method.
URL : https://www.keyence.com/
Version Description
R1.10. ** This version is covered by this manual.
Version Description
R1.10. ** This version is covered by this manual.
Version Description
R1.10. ** This version is covered by this manual.
1 Getting Started
This chapter describes the system configuration and
overview of the IV2 Series. 1
2 EtherNet/IP
This chapter describes the overview of EtherNet/IP and the
EtherNet/IP communication specifications and functions of
2
the IV2 Series.
A Index
Contents
Output Assembly Address 6 to 11:
4 PROFINET
Threshold
Overview of PROFINET.......................................4-2
(for a tool other than the OCR tool).....3-24
What is PROFINET?.........................................4-2
Output Assembly Address 6 to 11:
PROFINET communication specifications and
Master text (for the OCR tool)..............3-25
functions in the IV2 Series....................................4-3
Error code list..................................................3-27
IV2 Series PROFINET communication
Warning code list.............................................3-29
specifications....................................................4-3
Operating procedure
Specifying the IP address
of the cyclic communication...............................3-33
using the DCP protocol.....................................4-3
Reading out the status result
Overview of the PROFINET communication
(handshake control: [Disable],
functions of the IV2 Series................................4-4
image buffer: [Disable])...................................3-33
List of supported PLCs......................................4-5
When a trigger is successful................3-33
Siemens PLC.................................................4-5
When a trigger is unsuccessful............3-34
Phoenix Contact PLC....................................4-5
Reference programs....................................3-35
KEYENCE KV series...........................3-35
5 Data I/O communication
Rockwell Automation PLC...................3-36
Reading out the status result Overview of the data I/O communication.............5-2
Position Adjust Result..........................5-15 Reading out the status result
Tool Result (other than OCR tool)........5-15 (handshake control: [Disable],
Tool Result (for the OCR tool)..............5-16 image buffer: [Disable])...................................5-37
Control Modules parameter details.................5-17
When a trigger is successful................5-37
Command Control Address 0 to 1:
When a trigger is unsuccessful............5-38
Control request....................................5-17 Reference programs....................................5-39
Command Control Address 2 to 3:
Siemens PLC.......................................5-39
Handshake control...............................5-18 Reading out the status result
Command Control Address 4 to 5: (handshake control: [Enable],
Program No.........................................5-18 image buffer: [Disable])...................................5-40
Command Control Address 6 to 11: Reference programs....................................5-41
Threshold
Siemens PLC.......................................5-41
(for a tool other than the OCR tool).....5-19 Reading out the status result
Command Control Address 6 to 11: (handshake control: [Disable],
Master text (for the OCR tool)..............5-20 image buffer: [Enable])....................................5-42
Status Modules parameter details..................5-22 Switching the programs..................................5-43
Command Status Bits Address 0: Reference programs....................................5-44
Control result (response).....................5-22
Siemens PLC.......................................5-44
Command Status Bits Address 1: Changing the tool adjustment threshold.........5-45
Control error result...............................5-22 Reference programs....................................5-46
Command Status Bits Address 2 to 3:
Siemens PLC.......................................5-46
Handshake control/status/ Changing the master text................................5-47
error result...........................................5-23 Registering a master image externally............5-49
Device Results Bits Address 0 to 3:
Status result.........................................5-25 6 TCP/IP No Procedure
Device Status Words Address 0 to 15: Communication
Error/status/status result information...5-26 Overview of TCP/IP No Procedure
Device Statistics Address 0 to 27 Communication....................................................6-2
(Statistics information).........................5-27 Establishing the connection..............................6-2
Tool Result Modules parameter details...........5-28 Overview of commands and responses............6-2
Position Adjust Result Address 0 to 19
Command format...................................6-3
(Position correction information)..........5-28
Response format...................................6-3
Tool Result Address 0 to 19
Error response format............................6-3
(Tool information :
Automatic status result transmission.....6-4
other than OCR tool)............................5-29 Communication Specifications and Functions......6-5
Tool Result Address 0 to 19 IV2 Series TCP/IP no procedure
(Tool information: for the OCR tool).....5-30 communication specifications...........................6-5
Error code list..................................................5-31 IV2 Series TCP/IP no procedure
Warning code list.............................................5-33 communication function overview.....................6-5
Operating procedure Setting the IV2 Series...........................................6-6
of the data I/O communication...........................5-37 Setting the IV2 Series.......................................6-6
Appendices
Index.................................................................... A-2
MEMO
Getting Started
Overview of IV2 Series.......................................1-2
1 IV2 Series
Getting Started
The IV2 Series is a “Vision Sensor”. This sensor can be installed easily, so detections of the shapes of parts
and other such detections that were difficult to perform with a photoelectric switch can be achieved easily.
To set the operating conditions, use IV2-Navigator (IV2-H1), software for the IV2, or the control panel (IV2-
CP50). After setting is completed, the sensor can be operated independently.
The IV2 Series operates as an EtherNet/IP communication adapter, a PROFINET communication I/O device,
or a TCP/IP communication server.
With EtherNet/IP communication, PROFINET communication, or TCP/IP no procedure communication, the
control output signal, status result, etc. can be output to the PLC, PC, etc. as communication data.
IV2 Series
Sensor amplifier
Ethernet network
• EtherNet/IP
• PROFINET
• TCP/IP no procedure
Getting Started
Operation of the sensor head indicator
lights
5
Indicator lights
yyGreen (lit)..........Overall status result is “OK”.
1 PWR/ERR
yyGreen ..........Starting or in [Setting] status.
(blinking) Operation is stopped. yyGreen (lit)..........In [RUN] status.
Blinks approximately once a yyGreen ..........Starting or in [Setting] status.
(blinking) Operation is stopped. Blinks
second.
approximately once a second.
yyRed (lit).............Overall status result is “NG”.
yyRed (blinking)....An error or a warning has yyRed (lit).............An unrecoverable error has
occurred. occurred.
yy(Unlit)................• Standby status until the yyRed (blinking)....A recoverable warning has
first judgment finishes after occurred.
starting operation or after yyOrange ..........Flash LED has been
(blinking) requested by the PROFINET
switching the program
number. communication I/O controller.
• The versions of the sensor Or, a request has been made
head and sensor amplifier for the sensor LED to blink.
do not match. The LED blinks 4 times with
• An incompatible type of a period of approximately 1
sensor head is connected. second.
yyGreen and red....• A request has been made for yy(Unlit)................Power is not supplied.
are blinking the sensor LED to blink. 2 OUT
alternately • Flash LED has been Indicates the overall status result.
requested by the PROFINET yyGreen................Overall status result is “OK”.
communication I/O yyRed...................Overall status result is “NG”.
controller. yyOrange ..........Flash LED has been
(blinking) requested by the PROFINET
communication I/O controller.
Or, a request has been made
for the sensor LED to blink.
The LED blinks 4 times with
a period of approximately 1
second.
yy(Unlit)................In [Setting] status.
Standby status until the
first judgment finishes after
starting operation or after
switching the program
number.
1 3 TRIG
Lights in green (one-shot) according to the input
Getting Started
EtherNet/IP
Overview of EtherNet/IP.....................................2-2
EtherNet/IP communication specifications and
functions in the IV2 Series................................2-3
Overview of EtherNet/IP
What is EtherNet/IP?
EtherNet/IP is an open industrial networking standard developed and maintained by the ODVA (Open
2 DeviceNet Vendor Association, Inc.). All supported devices can use the communication network regardless
of the vendor.
EtherNet/IP
Ethernet and an industrial protocol have been combined and standardized as EtherNet/IP (Industrial Protocol).
Communication is achieved by combining a protocol called CIP (Common Industrial Protocol) and TCP/IP
and Ethernet. This allows the network to be shared and used with standard Ethernet.
To start the EtherNet/IP communication, one device needs to open a communication line called a “connection”
with the other device. The device that will open a connection is referred to as the “scanner”, and the device
whose connection will be opened is referred to as the “adapter” (IV2 Series is an adapter device).
The EtherNet/IP communication offers the following two types of communications: Cyclic communication
for sending and receiving data periodically (Implicit communication), and message communication for
sending and receiving commands/responses at a timing defined by the user.
In cyclic communication, you can set the RPI (Request Packet Interval: communication cycle) based
on the priority of the data to be sent/received, enabling sending/receiving of data with adjusted overall
communication load. Various data including the control output, status result import, trigger control, and
program switch requests can be communicated without a ladder program.
In message communication, you can send/receive the required commands and responses at the required
timings. Message communication is used for applications requiring no specific timing, unlike cyclic
communication, such as for reading and writing the adapter device settings.
EtherNet/IP
communication
scanner
Normal
(communication
cycle: 100 ms)
EtherNet/IP
Cyclic communication Number of
16
(Implicit messages) connections
Function Content
Trigger input Executes a trigger input for the sensor.
Program switching Switches the currently running program for the sensor.
External master registration Executes an external master registration for the sensor.
Setting value (judgment threshold)
Rewrites the threshold that is used as the reference for tool judgment.
rewriting
Rewrites the master text/master date that is used as the reference for
Master text/master date rewriting
OCR tool judgment.
Warning clear input Executes a warning clear.
Read out status Allows you to check the unit status (Imaging, RUN, BUSY, Error, etc.).
Read overall status result Reads out the overall status result.
Read judgment processing time Reads out the judgment processing time.
Read each tool’s status result Read each tool’s status result
Reads out the number of triggers issued that generated a trigger
Read statistics information
error and the number of trigger errors.
yyIf you are switching programs using EtherNet/IP communication, set the [Switching method] option to
[Panel/PC/Network]. For details on the setting method, refer to the “IV2 Series User’s Manual (Control
Panel/PC Software)”.
yyIf the external master registration will be executed frequently using EtherNet/IP communication, set
the [Write to ROM at external master reg.] option to [No] in order to protect the non-volatile memory
within the sensor. For details of the setting, refer to the “IV2 Series User’s Manual (Control Panel / PC
Software)”.
CPU unit
EtherNet/IP Version of the
PLC model firmware Software used
communication unit software used
version
Built-in port
KV-8000 KV-XLE02 Ver. 1.0 or later Ver. 10.0 or later
KV-EP21V
Built-in port Ver. 1.0 or later Ver. 8.0 or later
KV-7500 KV-XLE02 Ver. 2.2 or later Ver. 9.2 or later
KV-EP21V Ver. 1.0 or later Ver. 8.0 or later
KV-XLE02 Ver. 2.2 or later Ver. 9.2 or later
KV-7300
KV-EP21V Ver. 1.0 or later Ver. 8.0 or later
KV STUDIO
Built-in port
KV-5500
KV-EP21V
Ver. 2.0 or later Ver. 6.0 or later
KV-5000 KV-EP21V
KV-3000 KV-EP21V
KV-NC32T
KV-N24**
KV-NC1EP Ver. 2.0 or later Ver. 7.1 or later
KV-N40**
KV-N60**
communication communication.
Cyclic communication
Overview of the cyclic communication............3-2
Cyclic communication setting method.............3-3
Data allocation in
the cyclic communication...............................3-11
Operating procedure of
the cyclic communication...............................3-33
yyCommunication settings for cyclic communication, such as the RPI (communication cycle) and the data
size, will be configured on the PLC side.
yyIn a network with many connected devices (including the EtherNet/IP devices), a network delay and/
or packet loss may occur when there is a heavy load on the network. Conduct a thorough verification
before operation.
This following explains the setting method when 3 Tap [FieldNet/Comm. Unit (DL)].
using cyclic communication.
Cyclic communication
yyIf you have modified the protocol settings, the
connection with the sensor will be terminated
and then restarted.
4 Select [EtherNet/IP(TM)] for the protocol.
Setting the IV2 Series
You can configure the following settings for the IV2
Series using the control panel (IV2-CP50) or IV2-
Navigator (IV2-H1).
zz
Disable (default value)
Select if the trigger interval is greater than the
communication cycle (RPI). A status result can
Cyclic communication
“Operating procedure of the cyclic
communication” (Page 3-33)
zz
Byte swap
To enable byte swap in the data region, select
[Enable].
PLC settings
You can set the following settings for the PLC:
(1) Set the connection to be used for cyclic communication.
(2) Set the device to be used for cyclic communication.
3 For details of the setting, refer to the instruction manual of each PLC.
Cyclic communication
If you are using the KEYENCE KV series, (1) and (2) can be set automatically simply by making a
selection in KV STUDIO.
yyA compatibility check is used to check whether the device set by the scanner and the IV2 Series are in
match with one another, in order to prevent the scanner from communicating with a wrong device when
it attempts communication with the IV2 Series.
yyCommunication settings for cyclic communication, such as the communication cycle (RPI) and the data
size, will be configured on the scanner side.
In a network with many connected devices (including the EtherNet/IP devices), a network delay and/
or packet loss may occur when there is a heavy load on the network. Conduct a thorough verification
before the operation.
There are many types of connections, and the connections available for each device are defined in the
EDS file. The EDS file can be downloaded from the KEYENCE web site. The EDS file is also included in
the folder in which the PC software for IV2 Series IV2-Navigator (IV2-H1) has been installed.
For the EDS file when using the KEYENCE KV Series, download the [IV2 Series] KV STUDIO
communication unit setup file (the ez1 file) and register it in KV STUDIO. 3
Cyclic communication
The following shows the list of connections that are available in the IV2 Series.
Assembly Size
No Connection name Application type I/O RPI
Instance (bytes)
When using the KEYENCE KV series (EtherNet/IP communication scanner), the names of the connections
with the IV2 Series will be “Monitor/External Input” and “Monitor Data”. The relationship of each connection
name is as described below.
1 : Monitor Data And External Input → Monitor/External input
2 : Monitor Data (Input Only) → Monitor data
yyThe trigger timings of each connection are controlled by the cyclic communications; and both the point-
to-point and Multicast connection types are supported.
yyIf you wish to open “Exclusive Owner” and “Input Only” connections simultaneously, set the connection
type to “Multicast” and match the RPI and the size.
yyThe details of each application type are as described below.
[Exclusive Owner]
yyThis connection allows you to configure the data transmission from the scanner to the IV2 Series, and
vice versa.
yyThis connection type is used when the scanner will not only monitor the data of the IV2 Series but
also provide external input to the IV2 Series.
yyIt is not possible for multiple scanners to open "Exclusive Owner" connections for a single IV2 Series
unit.
[Input Only]
yyThis connection only allows you to configure the data transmission from the IV2 Series to the scanner.
yyThis connection is used when the scanner will only monitor the data of the IV2 Series.
yyMultiple scanners can simultaneously open “Input Only” connections for a single IV2 Series unit.
yyIf connections will be opened simultaneously from multiple scanners, set the connection type to
“Multicast” and match the RPI and the size.
zz
Connection name
Select [Monitor Data and External Input] or
[Monitor data].
zz
RPI (communication cycle)
You can set the cyclic communication cycle.
zz
Connection type
Select [Point-to-point] or [Multicast].
Cyclic communication
the I/O configuration of RsLogix5000, and
then right-click to select [New Module].
Click [Details].
The [Register unit device] screen will open.
Cyclic communication
Setting value SD card Statistics Warning Program Master
Buffer clear Trigger
0 change saving stop reset clear switching registration
response response
response response response response response response
Setting value SD card Program Master
Trigger
1 change saving Reserved by system switching registration
failed
failed stop failed failed failed
SD card Result
Trigger Imaging Result
2 identification Ready RUN BUSY update
ready status available
status complete
Insufficient
Buffer
3 Error Warning free space Reserved by system
overrun
on SD card
Overall Overall
Reserved Position
4 judgment LOGIC4 LOGIC3 LOGIC2 LOGIC1 judgment
by system correction
NG OK
5 Reserved by system
6 Tool 8 Tool 7 Tool 6 Tool 5 Tool 4 Tool 3 Tool 2 Tool 1
7 Tool 16 Tool 15 Tool 14 Tool 13 Tool 12 Tool 11 Tool 10 Tool 9
8-9 Error No. (Unsigned 16-bit integer)
10 - 11 Warning No. (Unsigned 16-bit integer)
12 - 13 Number of remaining buffers (Unsigned 16-bit integer)
14 - 15 Checksum (Unsigned 16-bit integer)
16 - 17 Current program No. (Unsigned 16-bit integer)
18 - 19 Program No. during judgment (Unsigned 16-bit integer)
20 - 21 Result No. (Unsigned 16-bit integer)
22 - 23 Processing time (Unsigned 16-bit integer)
24 - 25 Processing time MAX (16-bit unsigned integer)
26 - 27 Processing time MIN (Unsigned 16-bit integer)
28 - 29 Processing time AVE (Unsigned 16-bit integer)
30 - 31 Reserved by system
32 - 35 Number of triggers (Unsigned 32-bit integer)
36 - 39 Number of OKs (Unsigned 32-bit integer)
40 - 43 Number of NGs (Unsigned 32-bit integer)
44 - 47 Number of trigger errors (Unsigned 32-bit integer)
48 - 51 Reserved by system
Input Assembly Address 0: Control result (response)
The Bits at Address 0 of the Input Assembly have the following functions:
Cyclic communication
Master image registration Stores the master image 0 : OFF
1
response registration response. 1 : ON
Program switching Stores the program switching 0 : OFF
2
response response. 1 : ON
Stores the warning clear 0 : OFF
3 Warning clear response
response. 1 : ON
0
Stores the statistics reset 0 : OFF
4 Statistics reset response
response. 1 : ON
0 : OFF
5 Buffer clear response Stores the buffer clear response.
1 : ON
SD card saving stop Stores the SD card saving stop 0 : OFF
6
response response. 1 : ON
Setting value change Stores the setting value change 0 : OFF
7
response response. 1 : ON
Input Assembly Address 1: Control error result
The Bits at Address 1 of the Input Assembly have the following functions:
Input Assembly Address 2 to 3: Handshake control/status/error result
The Bits at Address 2 to 3 of the Input Assembly have the following functions:
0 <=> 1:
This bit switches the ON/OFF
The statuses will be
1 Result update complete statuses when the status result
switched when the
is updated.
status result is updated.
This bit is output when the unit
is unable to accept new trigger 0 : The unit is not in
inputs, such as while performing busy status.
2 BUSY
imaging, processing a judgment, 1 : The unit is in busy
registering an external master status.
image, switching programs, etc.
0 : The unit is not
performing imaging
This bit is output while the unit
3 Imaging operation.
is performing imaging operation.
2 1 : The unit is
performing imaging.
0 : The unit is not in
This bit is output when the unit
operation.
4 RUN is “RUN” and no system errors
1 : The unit is operating
have occurred.
normally.
0 : The start-up has
This bit is output when the
not completed yet.
5 Ready start-up sequence of this unit
1 : The start-up has
completes after power-on.
completed.
This bit is output when the 0 : The trigger cannot
trigger can be received. be received.
6 Trigger ready
Set [Trigger Control] to 1 : The trigger can be
[Interlocked With Ready Output]. received.
0 : The SD card has
SD card identification This bit is output when the SD not been identified.
7
status card is identified correctly. 1 : The SD card has
been identified.
Cyclic communication
occurred.
If handshake control is 0 : No buffer overrun
[Enabled], this bit is output when has occurred.
3 5 Buffer overrun status
an overrun of the status result 1 : The buffer is in
has occurred. overrun status.
0 : The unit is not in
This bit outputs the warning warning status.
6 Warning status
status of the unit. 1 : The unit is in
warning status.
0 : The unit is not in
This bit outputs the error status error status.
7 Error status
of the unit. 1 : The unit is in error
status.
yyBy monitoring whether the unit is in “Imaging” status, you can determine whether the target object or
the unit can be moved before completion of the image processing.
yy“BUSY” and “Imaging” statuses may be skipped in some cyclic frequency settings. It is therefore
necessary to take the imaging condition into consideration when setting the cyclic frequency.
yyWarning statuses can be cleared from the EtherNet/IP communication. For the warning details, refer to
the warning code. The first occurred warning code will be displayed.
yyWhen two or more warnings are issued, all subsequent warnings after the first warning will be saved in
the history. If you clear the warnings, the warning code of the highest priority warning will be displayed.
Warning
Warning clear
yyError statuses cannot be cleared from the EtherNet/IP communication. For the error details, refer to the
error code. The error code of the highest priority error will be displayed.
yyThe buffer overrun status can be cleared using a warning clear.
Input Assembly Address 4 to 7: Status result
The Bits at Address 4 to 7 of the Input Assembly have the following functions:
yyIf the position correction/logic/tool is not set, the data content will be “0”.
yyIf the status result of the tool is either “trigger standby” (no judgment) or “judgment not possible”, the
data content will be OFF (0).
Input Assembly Address 8 to 23: Error/status/status result information
The Bits at Address 8 to 23 of the Input Assembly have the following functions:
Data
Address Item Content Data content
type*
Cyclic communication
Displays the currently occurring
10 to 11 UINT Warning code 0 to 128
warning code.
Displays the number of status
Number of remaining
12 to 13 UINT results that can be buffered, if 0 to 10
buffers
handshake control is [Enabled].
Displays the current sensor
14 to 15 UINT Checksum setting status using an arbitrary 0 to 65535
5-digit integer.
Displays the current program
16 to 17 UINT Current program No. 0 to 127
No.
Program No. during Displays the program No. of the
18 to 19 UINT 0 to 127
judgment latest judgment process.
Displays the judgment process
20 to 21 UINT Result No. 0 to 32767
counts.
Displays the processing time of
22 to 23 UINT Processing time 0 to 10000
the latest judgment process.
* UINT : Unsigned 16-bit integer
UDINT : Unsigned 32-bit integer
Input Assembly Address 24 to 51: Statistics information
The Bits at Address 24 to 51 of the Input Assembly have the following functions:
Data
Address Item Content Data content
type*
Input Assembly Address 52 to 71: Position correction information
The Bits at Address 52 to 71 of the Input Assembly have the following functions:
Data
Address Item Content Data content
type*
52 to 53 UINT
Position correction tool
matching rate
Stores the matching rate of the
position correction tool.
0 to 100 3
Stores the maximum matching
Position correction tool
Cyclic communication
54 to 55 UINT rate value of the position 0 to 100
matching rate MAX
correction tool.
Stores the minimum matching
Position correction tool
56 to 57 UINT rate value of the position 0 to 100
matching rate MIN
correction tool.
Position correction tool Stores the threshold value of the
58 to 59 UINT 0 to 100
threshold position correction tool.
60 to 71 --- Reserved by system --- ---
* UINT : Unsigned 16-bit integer
UDINT : Unsigned 32-bit integer
Maximum and minimum matching rate values of the position correction tool will be reset in the same
manner as the statistics information.
If the position correction tool is not set, the data content will be “0”.
Input Assembly Address 72 to 391: Tool information (other than OCR tool)
The Bits at Address 72 to 391 of the Input Assembly have the following functions:
Data
Address Item Content Data content
type*
3 72 to 73 UINT Tool 1 matching rate Stores the matching rate of Tool 1. 0 to 9999
Tool 1 matching rate Stores the maximum matching
74 to 75 UINT 0 to 9999
Cyclic communication
yyMaximum and minimum matching rate values of the tool will be reset in the same manner as the
statistics information.
yyIf the tool is not set, the data content will be “0”.
yyIf the upper threshold value of the tool is not set, the data content of the tool’s upper limit value will be
“65535”.
yyThe decimal point position when the scaling is enabled is applied to the data results of matching rate,
matching rate MAX, matching rate MIN, lower threshold, upper threshold, pitch present value MAX,
pitch present value MIN.
(Example): When the “Tool 1 matching rate” is 505 and “Tool 1 decimal point position” is 1, the matching
rate of Tool 1 is “50.5”.
Input Assembly Address 72 to 391: Tool information (for the OCR tool)
The Bits at Address 72 to 391 of the Input Assembly have the below functions.
Data
Address Items Description Data content
type*1
Shade contrast
setting
3
72 to 73 UINT Tool 1 matching rate Stores the matching rate of Tool 1.
Disable: 0, 100
Cyclic communication
Enable: 0 to 100
Shade contrast
setting
Stores the lower threshold value
74 to 75 UINT Tool 1 lower threshold Disable: 50 (fixed
of Tool 1.
value)
Enable: 0 to 100
Stores text read (up to 16
letters) by Tool 1. If the number
76 to 91 ---- Tool 1 text read of letters is less than 16, the ASCII
remaining devices are stored as
NULL.
92 to 111 Tool 2 (20 byte)*2
… …
372 to 391 Tool 16 (20 byte)*2
*1: UINT: Unsigned 16-bit integer
*2: 0 is stored for all devices (20 byte) for data for which a tool is not set.
zz
Example of tool 1 text read
Number Address
of Text read
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
triggers
A B C D E F NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
1st ABCDEF
(0x41) (0x42) (0x43) (0x44) (0x45) (0x46) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00)
A B F NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
2nd ABF
(0x41) (0x42) (0x46) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00)
A B C D E F G H I J K L M N O P
3rd ABCDEFGHIJKLMNOP
(0x41) (0x42) (0x43) (0x44) (0x45) (0x46) (0x47) (0x48) (0x49) (0x4A) (0x4B) (0x4C) (0x4D) (0x4E) (0x4F) (0x50)
2 0 1 9 . 3 . 2 8 NULL NULL NULL NULL NULL NULL NULL
4th 2019.3.28
(0x32) (0x30) (0x31) (0x39) (0x2E) (0x33) (0x2E) (0x32) (0x38) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00)
---- NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
5th
(No text read) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00)
yyAll addresses (72 to 91) are simultaneously updated at each trigger. The previous data is discarded.
yyData with no read text is stored as NULL (0x00).
yyRead text is output as ASCII code.
yyCorrectly set byte swap in accordance with the PLC specifications.
“Setting the IV2 Series” (Page 3-3)
yyIf outputting the data type of STRING, use 15 or fewer characters of the read text. As NULL cannot be
stored for the 16th letter, the text may not be output correctly.
3 handshake control.
For details of each parameter, refer to “Output Assembly parameter details” (Page 3-23).
Cyclic communication
Output Assembly Address 0 to 1: Control request
The Bits at Address 0 to 1 of the Output Assembly have the following functions:
Cyclic communication
Master image registration Requests a master image
1 0 : OFF 1 : ON
request registration.
2 Program switching request Requests program switching. 0 : OFF 1 : ON
3 Warning clear request Requests a warning clear. 0 : OFF 1 : ON
4 Statistics reset request Requests a statistics reset. 0 : OFF 1 : ON
0
5 Buffer clear request Requests a buffer clear. 0 : OFF 1 : ON
Requests to stop the saving of
SD card saving stop data to the SD card. Execute
6 0 : OFF 1 : ON
request this request before turning off
the sensor.
Setting value change Requests a setting value
7 0 : OFF 1 : ON
request change.
1 0 to 7 Reserved by system --- ---
Output Assembly Address 2 to 3: Handshake control
The Bits at Address 2 to 3 of the Output Assembly have the following functions:
Output Assembly Address 4 to 5: Program No.
The Bits at Address 4 to 5 of the Output Assembly have the following functions:
Data
Address Items Description Data content
type*
Stores the program No. for when a
4 to 5 UINT Program number 0 to 127
program switching is requested.
* UINT: Unsigned 16-bit integer
Output Assembly Address 6 to 11: Threshold (for a tool other than the OCR tool)
The Bits at Address 6 to 11 of the Output Assembly for tools other than the OCR tool have the following
functions:
Data
Address Items Description Data content
type*
Setting value Stores the tool and direction of the
6 to 7 UINT 0 to 33
setting No. threshold value to be changed.
Stores the threshold value for when a
8 to 11 UDINT Setting value 0 to 99999
threshold value change is requested.
* UINT: Unsigned 16-bit integer
UDINT: Unsigned 32-bit integer
Cyclic communication
...
To change the threshold of a tool which is using scaling function, input the value which is 10 times of the
threshold in [Threshold].
Example) 9999 → 99990 99.9 → 999
Output Assembly Address 6 to 11: Master text (for the OCR tool)
The Bits at Address 6 to 11 of the Output Assembly for the OCR tool have the following functions:
Data
Address Items Description Data content
type*
Stores the destination
yyWhen the text is read: 101 to
for a master text change.
164
Divides the 16 master letters
Master text yyWhen the date is read: 301 to
6 to 7 UINT into groups of four letters.
setting No. 364
Specifies a tool number and
yyWhen only judging the number
location of the text to be
of letters: 201 to 232
changed.
yyMaster text (ASCII) when the
Stores the master text/
text/date reading settings are set
number of letters after a
yyMinimum and maximum number
8 to 11 ---- Master text change. The master text is
of letters from 0 to 16 when
changed in groups of four
judging only the number of
letters.
letters (UDINT*)
* UINT: Unsigned 16-bit integer
UDINT: Unsigned 32-bit integer
zz
To change the master text/date
yySpecify [Master text setting No.] and write the text in the applicable address number in the table below.
yyThe master text/date changes in groups of four letters. Also append NULL (0x00) to the end of the text
that you want to change. Overwrite the text from the beginning of the text until NULL (0x00) at the end in
groups of four letters. Not appending NULL (0x00) will not allow you to correctly change the master text/
3 date. If you overwrite all 16 letters, NULL (0x00) does not need to be appended.
yyFor details of how to change the master text, see “Changing the master text” (Page 3-47).
Cyclic communication
Stored data
Address
Tool 1 Tool 2 … Tool 16
6 to 7
101 102 103 104 105 … … … 164
(UINT)
8 1st letter 5th letter 9th letter 13th letter 1st letter … … … 13th letter
9 2nd letter 6th letter 10th letter 14th letter 2nd letter … … … 14th letter
10 3rd letter 7th letter 11th letter 15th letter 3rd letter … … … 15th letter
11 4th letter 8th letter 12th letter 16th letter 4th letter … … … 16th letter
Stored data
Address
Tool 1 Tool 2 … Tool 16
6 to 7
301 302 303 304 305 … … … 364
(UINT)
8 1st letter 5th letter 9th letter 13th letter 1st letter … … … 13th letter
9 2nd letter 6th letter 10th letter 14th letter 2nd letter … … … 14th letter
10 3rd letter 7th letter 11th letter 15th letter 3rd letter … … … 15th letter
11 4th letter 8th letter 12th letter 16th letter 4th letter … … … 16th letter
zz
To set the number of letters when judging only the number of letters
Stored data
Address
Tool 1 Tool 2 Tool 3 … Tool 16
6 to 7
201 202 203 204 205 … … 231 232
(UINT)
Minimum Maximum Minimum Maximum Minimum Minimum Maximum
8 to 11
number number number number number … … number number
(UDINT)
of letters of letters of letters of letters of letters of letters of letters
Error
Content Cause Countermeasure
code
0 No error --- --- 3
yyA data error has
Cyclic communication
occurred in program No. yyInitialize the program No. xx.
xx. yyCycle power to the sensor.
Program No. xx yyData corruption may yyDo not switch off the unit while the
1 - 32
corruption error have occurred due to a settings are being saved.
power-off while writing yyIf the error persists, contact your
settings data and/or due nearest KEYENCE office.
to noise.
Use the control panel or a PC (IV2-
Navigator) to clear the error message.
The error is cleared, and the sensor
On startup, a program changes to setup mode. After that,
Program switching
switching error (external perform the following operations.
52 error (on startup;
input) occurred in the yyIdentify the SD card containing the
external input)
expansion program. correct expansion program once
more.
yyUse external input to select a value
from P000 to P031.
Use the control panel or a PC (IV2-
Navigator) to clear the error message.
The error is cleared, and the sensor
changes to setup or operation mode.
After that, perform the following
On startup, a program operations.
Program switching
switching error (Panel/PC/ yyIdentify the SD card containing the
53 error (on startup;
Network) occurred in the correct expansion program once
Panel/PC/Network)
expansion program. more.
yySelect a value from P000 to P031.
yyYou can select whether to continue
operation with P000 or to change to
setup mode when the error message
is cleared.
Non-volatile memory yyA data error has
yyInitialize the settings of this unit.
75 error occurred.
yyCycle power to the sensor.
(EEPROM) yyData corruption may
yyDo not switch off the unit while the
have occurred due to a
Non-volatile memory settings are being saved.
power-off while writing
76 error yyIf the error persists, contact your
settings data and/or due
(FLASHROM) nearest KEYENCE office.
to noise.
Use the control panel or a PC (IV2-
Navigator) to clear the error message.
The error is cleared, and the sensor
While the unit was in
changes to setup mode. After that,
Program switching [RUN] status, a program
79 perform the following operations.
error (in [RUN] status) switching error occurred in
yyIdentify the SD card containing the
the expansion program.
correct expansion program once
more.
yySelect a value from P000 to P031.
Error
Content Cause Countermeasure
code
yyCycle power to the sensor.
81-123 An error may have
System error yyIf the error persists, contact your
125-128 occurred in the sensor.
nearest KEYENCE office.
3 No sensor head is
Connect a sensor head to the sensor
amplifier, and then cycle power to the
124 System error connected to the sensor
Cyclic communication
If two or more errors are occurring at the same time, the error code of the highest priority will be
displayed.
The greater the error code, the higher the priority of the error will be.
Warning
Content Cause Countermeasure
code
0 No error --- --- 3
While the unit was in
Cyclic communication
Expansion program
[Setting] status, a program Identify the SD card containing the
54 setting mismatch error
setting error occurred in correct expansion program once more.
(normal)
the expansion program.
yyAs a guideline, set the strobe output
one-shot time to half the image
capture interval displayed on the
operation screen (50% of the duty
ratio with the shortest cycle).
yyThe strobe error can be cleared with
the following procedure.
A strobe error has yyWait for a strobe output that does
55 Strobe Error
occurred. not occur during the previous one.
yyRequest the clearing of the warning.
yySwitch the program number.
yySwitch to the sensor’s setup
screen.
yyThis warning does not occur when
“Strobe Error Output” is set to
[Disable].
Check the following SNTP server
connection settings.
yyThe IP address when connecting with
the server.
yyThe host name and DNS server when
connecting with the server.
yyCheck that the SNTP server is
An SNTP synchronization
56 SNTP Sync Error operating correctly.
error has occurred.
yyConnect the sensor to the network
and configure the network settings (IP
address, subnet mask, and default
gateway) correctly.
yyThis warning does not occur
when [Disable] is specified for the
synchronization error output.
yyCheck if there are any problems with
For the new master image,
External master the registered image and the detection
the characters and date
58 registration error tool or the position correction setting.
cannot be read with the
(OCR) yyAdjust the brightness of the image to
OCR tool.
be registered.
Warning
Content Cause Countermeasure
code
yyMake requests while the device is
running.
yyInput a valid master text setting No. or
3 yyA change to the
valid master text.
In the following situations, input setting
master text/date or values and numbers are invalid:
Cyclic communication
Warning
Content Cause Countermeasure
code
A trigger was applied while
the busy bit was ON or the
Do not apply triggers while the unit is in
65 Trigger error trigger ready bit was OFF.
the busy or not in trigger ready status.
(If you have set the trigger
error option to [Enable].)
3
Cyclic communication
External master The outline tool is unable
66 registration error to extract the outline of the
(Insufficient outline) new master image.
yyCheck if there are any problems with
External master The color area/area tool is
the registered image and the detection
67 registration error unable to extract the area
tool or the position correction setting.
(Insufficient area) of the new master image.
yyAdjust the brightness of the image to
External master be registered.
The brightness of the new
registration error
68 master image cannot be
(Brightness correction
corrected appropriately.
failed)
yyCheck if there are any problems with
External master The edge tool is unable the registered image and the detection
69 registration error to extract the edge of the tool or the position correction setting.
(Insufficient edge faild) new master image. yyAdjust the brightness of the image to
be registered.
Transfer has failed
FTP Transfer Error because a volume of data
yyModify the trigger cycle of this unit.
70 (Insufficient Data exceeding the remaining
yyCheck the load status of the network.
Buffer) FTP buffer capacity has
been generated.
Warning
Content Cause Countermeasure
code
yySet the sensor trigger cycle to a
longer value.
SD Card Transfer Error An SD card transfer error
yyUse the result update complete bit to
93 (Insufficient Transfer occurred because the data
3 Buffer) buffer was insufficient.
control the trigger. In this situation, set
the busy output timing to “Until Data
Transfer Is Complete”.
Cyclic communication
yyWhen two or more warnings are issued, all subsequent warnings after the first warning will be saved in
the history.
If you clear the warnings, the warning code of the highest priority warning will be displayed.
Warning
Warning clear
yyThe greater the warning code, the higher the priority of the warning will be.
yyThe SD card saving stop failed warning will not occur.
This section explains the method for communicating from the PLC to the IV2 Series using cyclic
communication.
It also introduces reference programs. When making use of the reference programs, give thought to items
such as error processing during programming.
Reading out the status result (handshake control: [Disable], image buffer: [Disable]) 3
Select [Interlocked With Busy Output] for [Trigger Reception Timing]. The image buffer function is disabled.
Cyclic communication
For details on the setting method, refer to the “IV2 Series User’s Manual (Control Panel/PC Software)”.
The operation procedure when the data handshake control is set to [Disable] is shown below.
When a trigger is successful
Trigger request A B
Trigger response A B
BUSY A B
Imaging status A B
Result available
Result No. A B
yy[Result update complete] will switch (toggle) to “1” if its value was “0” after the previous judgment
update or switch to “0” if its value was “1”.
yy[Result available] will switch from 0 to 1 at the timing when the first judgment process has been
confirmed; and the new value will be retained thereafter.
yy[Result available] will be reset in the following conditions:
yyIf handshake control is set to [Disabled]
- When the program is switched
- When the unit’s status is switched from “Setting” to “RUN”
- When a buffer clear request is issued
yyIf handshake control is set to [Enabled]
- When a buffer clear request is issued
yy[Result No.] will be counted up each time the status result is updated. The upper limit value is 32767. If
the maximum value is exceeded, it will go back to 0 and start counting up again.
yy[Result No.] will also count the judgment process counts that were skipped due to the cyclic frequency
setting.
yy[Busy] and [Imaging] may be skipped in some cyclic frequency settings. It is therefore necessary to take
the imaging condition into consideration when setting the cyclic frequency.
When a trigger is unsuccessful
Trigger request A B C
Trigger response A B C
3 Trigger failed B C
BUSY A C
Cyclic communication
Imaging status A C
Result available
Result No. A C
Warning
yy[Result update complete] will switch to “1” if its value was “0” after the previous judgment update (or
from “0” to “1” if the previous value was “1”).
yy[Result available] will switch from 0 to 1 at the timing when the first judgment process has been
confirmed; and the new value will be retained thereafter.
yy[Result No.] will be counted up each time the status result is updated. The upper limit value is 32767. If
the maximum value is exceeded, it will go back to 0 and start counting up again.
yy[Result No.] will also count the judgment process counts that were skipped due to the cyclic frequency
setting.
yy[Busy] and [Imaging] may be skipped in some cyclic frequency settings. It is therefore necessary to take
the imaging condition into consideration when setting the cyclic frequency.
yy[Number of trigger errors] will be counted up at the timing when the [Result updated] BIT is switched.
Reference programs
KEYENCE KV series
REQ Trigger response Trigger request
Line 1
3
Cyclic communication
Trigger request
Line 2
Result update
Result available complete MOV
Tool score DM2000
Line 3
Result update
complete
Line 4
zz
Line 3/Line 4
“Result available” ON + Rising or falling of “Result update complete” will copy the data that have been
written to the tool score to DM2000.
Rockwell Automation PLC
REQ Trigger Ack Trigger
ONS
Rung0
3 Trigger
Cyclic communication
MOV
Result Ready Complete Toggle Move
ONS Source Tool Score
Rung1
Dest Result
Complete Toggle
ONS
zz
Rung1
“Result Ready” ON + Rising or falling of “Complete Toggle” will copy the data that have been written to “Tool
Score” to “Result”.
To ensure synchronicity between Input Data and Output Data, use the CPS instruction at the beginning of
the ladder.
Reading out the status result (handshake control: [Enable], image buffer: [Disable])
Select [Interlocked With Busy Output] for [Trigger Reception Timing]. The image buffer function is disabled.
For details on the setting method, refer to the “IV2 Series User’s Manual (Control Panel/PC Software)”.
The following describes the operating procedure when the data handshake control is set to [Enabled].
You can acquire all status results without fail by setting the data handshake control to [Enabled].
3
Trigger request A B C
Cyclic communication
Trigger response A B C
Trigger failed
BUSY A B C
Imaging status A B C
Result update B C
A
complete
Result available A C
Result acquisition A B
complete notification
Result No. A B C
Overall judgment/
each tool’s status result Result of A Result of B Result of C
Number of
10 9 8 9 10 9
remaining buffers
yy[Result update complete] will switch (toggle) to “1” if its value was “0” after the previous judgment
update or switch to “0” if its value was “1”.
yy[Result No.] will be counted up each time the status result is updated. The upper limit value is 32767. If
the maximum value is exceeded, it will go back to 0 and start counting up again.
yy[Result No.] will also count the judgment process counts that were skipped due to the cyclic frequency
setting.
yy[Busy] and [Imaging] may be skipped in some cyclic frequency settings. It is therefore necessary to take
the imaging condition into consideration when setting the cyclic frequency.
yy[Number of trigger errors] will be counted up at the timing when the [Result updated] BIT is switched.
yyIf handshake control has been set to [Enabled], the status result will not be updated until [Result
acquisition complete notice] is set ON/OFF (0 → 1 → 0), even if the next trigger has been input and a
judgment process has been executed.
yyIf a new trigger is input when [Number of remaining buffers] is “0”, [Buffer overrun] will switch from “0” to
“1”. The status result from the new trigger will be ignored.
yy[Buffer overrun] can be cleared using [Warning clear].
Reference programs
KEYENCE KV series
REQ Trigger response Trigger request
3 Line 1
Cyclic communication
Trigger request
Line 2
Result acquisition
Result available Result available complete notification
Line 4
Result acquisition
complete notification
Line 5
zz
Line 3
The result available bit becomes ON to copy the data written in the tool score to DM2000.
zz
Line 4/Line 5
“Result available” ON will execute a result acquisition completion notice.
“Result available” OFF will set “Result acquisition completion notice” to OFF (“Result acquisition completion
notice” will be retained until “Result available” becomes OFF).
Rockwell Automation PLC
REQ Trigger Ack Trigger
ONS
Rung0
Trigger 3
Cyclic communication
MOV
Result Ready Move
ONS Source Tool Score
Rung1
Dest Result
zz
Rung1
“Result Ready” ON will copy the data written in “Tool Score” to “Result”.
zz
Rung2
“Result Ready” ON will execute “Result Ready Ack”.
“Result Ready” OFF will set “Result Ready Ack” to OFF (“Result Ready Ack” will be retained until “Result
Ready” becomes OFF).
To ensure synchronicity between Input Data and Output Data, use the CPS instruction at the beginning of
the ladder.
Reading out the status result (handshake control: [Disable], image buffer: [Enable])
Select [Interlocked With Ready Output] for [Trigger Reception Timing]. The image buffer function is enabled.
For details on the setting method, refer to the “IV2 Series User’s Manual (Control Panel/PC Software)”.
Trigger request
3
A C
Trigger response A B C
Cyclic communication
Trigger ready A B C
BUSY
Imaging status A B C
Result update
complete A B C
Result available
Result No. A B C
Overall judgment/
Result of A Result of B Result of C
each tool’s status result
yy[Result update complete] will switch (toggle) to 1 if its value was 0 after the previous judgment update
or switch to 0 if its value was 1.
yy[Result available] will switch from 0 to 1 when the first judgment process is confirmed; and the new
value will be retained thereafter.
yy[Result available] will be reset under the following conditions:
yyIf handshake control is set to [Disable]
- When the program is switched
- When the unit’s status is switched from “Setting” to “RUN”
- When a buffer clear request is issued
yyIf handshake control is set to [Enable]
- When a buffer clear request is issued
yy[Result No.] will be incremented each time the status result is updated. The upper limit is 32767. If the
maximum value is exceeded, it will go back to 0 and start being incremented again.
yy[Result No.] will also count the judgment process counts that were skipped due to the cyclic frequency
setting.
yy[Trigger ready] and [Imaging] may be skipped due to the cyclic frequency setting. It is therefore
necessary to take the imaging condition into consideration when setting the cyclic frequency.
Cyclic communication
(1) Write the program No. to be set to [Program No.].
(2) Execute [Program switching request], maintaining the state (0 → 1) until [Program switching response]
is received.
(3) When the program switch is complete, [Program switching response] (0 → 1) is received.
(4) Once [Program switching response] is received, clear [Program switching request] (1 → 0). When
[Program switching request] is cleared, [Program switching response] is cleared.
yyDo not cancel (1 → 0) [Program switching request] before [Program switching response] changes from
0 to 1. The program may not be able to switch correctly.
yyWhen [Program switching request] was canceled (1 → 0) before [Program switching response] changes
from 0 to 1, execute (0 → 1) [Program switching request] and cancel (1 → 0) it again.
Reference programs
KEYENCE KV series
REQ MOV
DM1000 Program No.
3 Line 1
Line 2
Program switching
request
Line 3
zz
Line 2/Line 3
Sets “REQ” to ON and executes a program switching request.
“Program switching response” ON to will set “Program switching request” to OFF (“Program switching
request” will be retained until “Program switching response” becomes ON).
Rockwell Automation PLC
MOV
REQ Move
ONS Source Number
Rung0
Dest Program Number
3
Cyclic communication
REQ Program Change Ack Program Change
ONS
Rung1
Program Change
zz
Rung1
Sets “REQ” to ON and executes “Program Change”.
“Program Change Ack” ON will set “Program Change” to OFF (“Program Change” will be retained until
“Program Change Ack” becomes ON).
(1) Write the tool number and threshold type of the threshold to be changed to [Setting value setting No.].
(2) Write the threshold to be changed to [Setting value].
(3) Execute [Setting value change request]. (0→1)
(4) You can check the input status in [Setting value change response].
yyIf the setting value change fails, [Setting value change failed] will switch from “0” to “1”.
yyIf the setting value change fails, [Warning] will switch from “0” to “1” and [Warning No.] will be updated
to 61. For details, refer to “Warning code list” (Page 3-29).
Reference programs
KEYENCE KV series
MOV
REQ DM1000 3
Line 1
Threshold setting No.
Cyclic communication
MOV
DM1004
Line 2
Threshold
Rockwell Automation PLC
MOV
REQ Move
ONS Source Number
Rung0
3 Dest Limit Setting No.
Cyclic communication
MOV
Move
Source Value
Dest Upper/Lower Limit
Upper/Lower Limit
Change
zz
Rung1
Sets “REQ” to ON and executes “Upper/Lower Limit Change”.
“Upper/Lower Limit Change Ack” ON will set “Upper/Lower Limit Change” to OFF.
(“Upper/Lower Limit Change” will be retained until “Upper/Lower Limit Change Ack” becomes ON.)
Cyclic communication
Setting value change request (PLC→IV2)
(1) Overwrite [Master text setting No.: Address 6 to 7] with 101 (master text (first to fourth letter) when the
read text settings are set with Tool 1).
(2) Overwrite [Master text: Address 8] with A (0x41), [Master text: Address 9] with B (0x42), [Master text:
Address 10] with C (0x43), and [Master text: Address 11] with D (0x44).
(3) Execute [Setting value change request] (0→1). The request is retained until [Setting value change
response] can be confirmed.
(4) Once the change is complete, [Setting value change response] changes from 0 to 1.
(5) Setting [Setting value change request] to 0 sets [Setting value change response] to 0.
(6) Overwrite [Master text setting No.: Address 6 to 7] with 102 (master text (fifth to eighth letter) when
the read text settings are set with Tool 1).
(7) Overwrite [Master text: Address 8] with E (0x45), [Master text: Address 9] with F (0x46), [Master text:
Address 10] with NULL (0x00), and [Master text: Address 11] with NULL (0x00).
(8) Execute [Setting value change request] (0→1). The request is retained until [Setting value change
response] can be confirmed.
(9) Once the change is complete, [Setting value change response] changes from 0 to 1.
(10) Setting [Setting value change request] to 0 sets [Setting value change response] to 0.
Master text/date
Example of a failure
1st 2nd 3rd 4th 5th 6th 7th 8th
Master text/date before change A B C D E F G NULL
Text to be written 1 2 3 4 None
Master text/date after change 1 2 3 4 E F G
Master text/date
Example of a success
1st 2nd 3rd 4th 5th 6th 7th 8th
Master text/date before change A B C D E F G NULL
NULL NULL NULL NULL
Text to be written 1 2 3 4
(0x00) (0x00) (0x00) (0x00)
Master text/date after change 1 2 3 4
Master text/date
3 1st 2nd 3rd 4th 5th 6th 7th 8th
Cyclic communication
yyChanges in groups of four are applied immediately. Do not execute a trigger until all text changes are
complete.
BUSY 3
Cyclic communication
(1) Execute a [Master registration request]. (0 → 1)
(2) You can check the input status in [Master registration response].
yy[BUSY] will change from 0 to 1 while the master image registration is in progress.
yyIf the master image registration is unsuccessful, [Master registration failed] will change from 0 to 1.
yyIf the master image registration is unsuccessful, [Warning] will switch from “0” to “1” and [Warning No.]
will be updated according to the failure details. For details, refer to “Warning code list” (Page 3-29).
yyYou cannot register a master image from the EtherNet/IP communication while the unit is in [Setting]
status.
yyIf you wish to write the master registration data to the sensor ROM, set the [Write to ROM at external
master reg.] option to [Yes]. For details on the setting method, refer to the “IV2 Series User’s Manual
(Control Panel/PC Software)”.
MEMO
3
Cyclic communication
Overview of PROFINET......................................4-2
4
PROFINET
PROFINET communication specifications and
functions in the IV2 Series................................4-3
Overview of PROFINET
What is PROFINET?
PROFINET is an open industrial networking standard developed and maintained by the PI (PROFINET
International).
All supported devices can use the communication network regardless of the vendor.
PROFINET allows easy integration with the currently used field bus (such as PROFIBUS), enabling you to
protect existing assets without modifying the legacy system.
4 The following two types of communication standards exist for the PROFINET communication: PROFINET
CBA communication for data communications between processes and between I/O controllers, and
PROFINET
PROFINET I/O communication for data communications between the I/O controller and I/O device.
The PROFINET communication for the IV2 Series supports the PROFINET I/O communication and
complies with Conformance Class A.
The PROFINET I/O communication offers the following two types of communication methods for cyclic
data: Real-time communication (RT) and isochronous real-time communication (IRT).
Real-time communication provides similar communication performance as the existing field bus, such as
the device control in normal factory automation, using Ethernet. The isochronous real-time communication
is capable of meeting stringent real-time requirements, including synchronized motion control.
Real-time communications offer the following two types of communications: Data I/O communication
for sending and receiving data periodically, and record data communication for sending and receiving
commands/responses at arbitrary timings. In data I/O communication, you can set the SendCycle
(Communication cycle) based on the priority of the data to be sent/received, enabling sending/receiving
of data with adjusted overall communication load. Record data communication is used for communication
applications that require little punctuality (unlike the data I/O communication).
The IV2 Series supports the data I/O communication provided by the real-time communications (RT).
PROFINET
communication
I/O controller
PROFINET
The DCP protocol offers two methods for setting the IP address.
(1) The IP address can be set by the I/O controller based on the device name information of the I/O
device.
(2) The IP address and device name of the I/O device can be set by the I/O supervisor (PC, etc.).
(1) Check the presence of an I/O device
(2) Response
PROFINET
communication
(3) Set the IP address
I/O Controller
(4) Response
I/O device
yyIf the IP address of the I/O device will be set by the I/O controller, the I/O device name must match the
name in the config of the I/O controller.
yyIf the IP address will be set by the DCP protocol, the IP address of the sensor will be initialized.
yyThe IP address set by the DCP protocol will be stored in the volatile memory. When you restart the
sensor, the sensor will start up with its IP address in “----” (unregistered) status.
Function Content
Trigger input Executes a trigger input for the sensor.
Program switching Executes program switching for the sensor.
External master registration Executes an external master registration for the sensor.
4 Setting value (judgment
Rewrites the threshold that is used as the reference for tool judgment.
threshold) rewriting
PROFINET
Rewrites the master text/master date that is used as the reference for
Master text/master date rewriting
OCR tool judgment.
Warning clear input Executes a warning clear.
Allows you to check the unit status (Imaging, RUN, BUSY, Error,
Read out status
etc.).
Read overall status result Reads out the overall status result.
Read judgment processing time Reads out the processing time of the judgment.
Read each tool’s status result Read each tool’s status result
Reads out the number of triggers issued that generated a trigger
Read statistics information
error and the number of trigger errors.
yyIf you are switching programs using PROFINET communication, set the [Switching method] option to
[Monitor/PC/Network]. For details on the setting method, refer to the “IV2 Series User’s Manual (Control
Panel/PC Software)”.
yyIf external master registration will be executed frequently using PROFINET communication, set the
[Write to ROM at external master reg.] option to [No] in order to protect the non-volatile memory within
the sensor. For details on the setting method, refer to the “IV2 Series User’s Manual (Control Panel/PC
Software)”.
Siemens PLC
PROFINET
S7 300 series -
V4.2 TIA Portal 15.1
Example: CPU1212C (Built in the unit)
S7 1500 series -
V2.06.0 TIA Portal 15.1
Example: CPU1516-3 PN/DP (Built in the unit)
When using STEP 7, use V5.6.
MEMO
4
PROFINET
PROFINET
communication
5 I/O Controller
Data I/O communication
yyCommunication settings for data I/O communication, such as SendCycle (communication cycle) and
the data size, will be configured on the PLC side.
yyIn a network with many connected devices (including PROFINET devices), a network delay and/or
packet loss may occur when there is a heavy load on the network. Conduct a thorough verification
before the operation.
This following explains the setting method when 3 Tap [FieldNet/Comm. Unit (DL)].
using data I/O communication.
zz
Disable (default value)
Select if the trigger interval is greater than the
communication cycle (RPI). A status result can
be obtained in real time. In most situations,
select [Disable].
zz
Enable
Select if the trigger interval is less than the
2 Tap the [Utility] tab. communication cycle (RPI) and the number of
triggers is 10 or less. If the status result is not
picked up due to the trigger interval being faster
than the communication cycle, the status result
can be saved up to ten times in the buffer.
zz
Handshake Control
7 Once you have finished configuring the yyDisable (default value)
settings, touch the [OK] button.
Select if the trigger interval is greater than the
communication cycle (RPI). A status result
can be obtained in real time. Normally select
[Disable].
yyEnable
Select if the trigger interval is less than the
communication cycle (RPI) and the number
of triggers is 10 or less. If the status result is
not picked up due to the trigger interval being
faster than the communication cycle, the
status result can be saved up to ten times in
the buffer.
zz
Byte swap
To enable byte swap in the data region, select 5
[Enable].
PLC settings
You can set the following settings for the PLC:
(1) Establish a real-time communication for setting up the data I/O communication.
(2) Set the I/O device to be used for the data I/O communication.
For details of the setting process, refer to the instruction manual of each PLC.
I/O device
Communication settings for data I/O communication, such as SendCycle (communication cycle) and the
data size, will be configured on the I/O controller side.
In a network with many connected devices (including PROFINET devices), a network delay and/or packet
loss may occur when there is a heavy load on the network. Conduct a thorough verification before the
operation.
Setting the Siemens TIA Portal 4 Right-click the selected CPU in [Project
tree], and then click [Open].
This following explains the setting method when
using TIA Portal.
5
Data I/O communication
The [Add new device] screen will appear. 5 Set the IP address and subnet mask of
the CPU from [General] - [PROFINET
3 Select the CPU to be connected. interface] - [Ethernet addresses], and then
click the [Add new subnet] button.
6 Install the GSDML file if you are 8 Connect the PLC with the IV2 Series by
configuring the IV2 Series for the first mouse operation.
time.
The GSDML file for the IV2 Series can be 9 Double-click the IV2 Series’ icon on the
downloaded from the KEYENCE web site. [Device & networks] screen.
https: //www.keyence.com The [IV2] screen will appear.
7 Open [Other field devices] - [PROFINET 10 Enter the same character string as the
PROFINET device name of the IV2 Series
I/O] - [Sensors] - [KEYENCE
to be connected.
CORPORATION] - [Keyence Vision
Sensors] from [Hardware catalog] on the
[Devices] - [Device & networks] screen,
and then drag & drop [IV2-G30*].
11 Click the [Properties] tab. Select 12 Click the [Properties] tab. Select
[PROFINET interface [x1]] - [Ethernet [PROFINET interface [x1]] - [Advanced
addresses] under [General], and then options] - [Real time settings] in
select the IP address setting method for [General], and then set the SendCycle
the IV2 Series. (communication cycle) for the data I/O
communication in [Update time].
zz
To set a new IP address for the IV2 Series
using the DCP protocol
5
Data I/O communication
14 Click the CPU in the [Devices] tab. Select 16 Set the CPU mode switch to “RUN”.
[Download to device] - [All] to download If the connection is successful, the RUN LED
the setting to the CPU. of the CPU will light in green and data I/O
communication will become enabled.
PROFINET communication for the IV2 Series is defined using the following modules:
yyCommand Control Module
yyCommand Status Bits Module
yyDevice Result Bits Module
yyDevice Status Words Module
yyDevice Statistics Module
yyPosition Adjust Result Module
yyTool Result Module
These parameters are responsible for the control instructions for the IV2 Series, clearing of warnings, and
handshake control.
For details of each parameter, refer to “Control Modules parameter details” (Page 5-17).
Command Control
Slot No.: 1
Module size: 12 bytes
Command Status Bits
Slot No.: 2
Module size: 4 bytes
Device Result Bits
Slot No.: 3
Module size: 4 bytes
Device Status Words
Slot No.: 4
Module size: 16 bytes
Device Statistics
Slot No.: 5
Module size: 28 bytes
Position Adjust Result
Slot No.: 6
Module size: 20 bytes
Tool Result (other than OCR tool)
Slot No.: 7 to 22
Module size: 20 bytes
*1: When scaling is enabled with the Width/Diameter/Pitch tool. For other tools and when scaling is not
enabled, the contents of the data are 0.
*2: When using the Pitch/Color Average tool. When not using these tools, the contents of the data are 0.
*3: When using the Pitch/Color Average/Brightness Average tool. When not using these tools, the contents
of the data are 0.
Tool Result (for the OCR tool)
Slot No.: 7 to 22
Module size: 20 bytes
Command Control Address 0 to 1: Control request
The Bits at Address 0 to 1 of the Command Control have the following functions:
2
Program switching
request
Requests program switching.
0 : OFF
1 : ON 5
0 : OFF
Command Control Address 2 to 3: Handshake control
The Bits at Address 2 to 3 of the Command Control have the following functions:
For details, refer to “Reading out the status result (handshake control: [Enable], image buffer: [Disable])”
(Page 5-40).
Command Control Address 4 to 5: Program No.
The Bits at Address 4 to 5 of the Command Control have the following functions:
Data
Address Items Description Data content
type*
Stores the program No. when program
4 to 5 WORD Program number 0 to 127
switching is requested.
* WORD: Unsigned 16-bit integer
Command Control Address 6 to 11: Threshold (for a tool other than the OCR tool)
The Bits at Address 6 to 11 of the Command Control for tools other than the OCR tool have the following
functions:
Data
Address Items Description Data content
type*
Setting value Stores the tool and direction of the
6 to 7 WORD 0 to 33
setting No. threshold value to be changed.
Stores the threshold value for when a
8 to 11 DWORD Setting value 0 to 99999
threshold value change is requested.
* WORD: Unsigned 16-bit integer
DWORD: Unsigned 32-bit integer
5
To change the threshold of a tool which is using the scaling function, input the value which is 10 times the
threshold in [Threshold].
Example) 9999 → 99990 99.9 → 999
Command Control Address 6 to 11: Master text (for the OCR tool)
The Bits at Address 6 to 11 of the Command Control for the OCR tool have the following functions:
Data
Address Items Description Data content
type*
Stores the destination
yyWhen the text is read: 101 to
for a master text change.
164
Divides the 16 master letters
Master text yyWhen the date is read: 301 to
6 to 7 WORD into groups of four letters.
setting No. 364
Specifies a tool number and
yyWhen only judging the number
location of the text to be
of letters: 201 to 232
changed.
yyMaster text (ASCII) when the
5 Stores the master text/
number of letters after a
text/date reading settings are set
yyMinimum and maximum number
8 to 11 ---- Master text change. The master text is
of letters from 0 to 16 when
Data I/O communication
zz
To change the master text/date
yySpecify [Master text setting No.] and write the text in the applicable address number in the table below.
yyThe master text/date changes in groups of four letters. Also append NULL (0x00) to the end of the text
that you want to change. Overwrite the text from the beginning of the text until NULL (0x00) at the end in
groups of four letters. Not appending NULL (0x00) will not allow you to correctly change the master text/
date. If you overwrite all 16 letters, NULL (0x00) does not need to be appended.
yyFor details of how to change the master text, see “Changing the master text” (Page 5-47).
Stored data
Address
Tool 1 Tool 2 … Tool 16
6 to 7
101 102 103 104 105 … … … 164
(WORD)
8 1st letter 5th letter 9th letter 13th letter 1st letter … … … 13th letter
9 2nd letter 6th letter 10th letter 14th letter 2nd letter … … … 14th letter
10 3rd letter 7th letter 11th letter 15th letter 3rd letter … … … 15th letter
11 4th letter 8th letter 12th letter 16th letter 4th letter … … … 16th letter
Stored data
Address
Tool 1 Tool 2 … Tool 16
6 to 7
301 302 303 304 305 … … … 364
(WORD)
8 1st letter 5th letter 9th letter 13th letter 1st letter … … … 13th letter
9 2nd letter 6th letter 10th letter 14th letter 2nd letter … … … 14th letter
10 3rd letter 7th letter 11th letter 15th letter 3rd letter … … … 15th letter
11 4th letter 8th letter 12th letter 16th letter 4th letter … … … 16th letter
zz
To set the number of letters for judging only the number of letters
Stored data
Address
Tool 1 Tool 2 Tool 3 … Tool 16
6 to 7
201 202 203 204 205 … … 231 232
(WORD)
Minimum Maximum Minimum Maximum Minimum Minimum Maximum
8 to 11
number number number number number … … number number
(DWORD)
of letters of letters of letters of letters of letters of letters of letters
5
Correctly set byte swap in accordance with the PLC specifications.
Command Status Bits Address 0: Control result (response)
The Bits at Address 0 of the Command Status Bits have the following functions:
5 2
Program switching
response
Stores the program switching
response.
0 : OFF
1 : ON
Data I/O communication
0 : OFF
5 Buffer clear response Stores the buffer clear response.
1 : ON
SD card saving stop Stores the SD card saving stop 0 : OFF
6
response response. 1 : ON
Setting value change Stores the setting value change 0 : OFF
7
response response. 1 : ON
Command Status Bits Address 1: Control error result
The Bits at Address 1 of the Command Status Bits have the following functions:
Address Bit Item Content Data content
0 : -
This bit is output when the
0 Trigger failed 1 : The external trigger
external trigger is unsuccessful.
has failed.
0 : -
This bit is output when
Master image registration 1 : Master image
1 master image registration is
failed registration has
unsuccessful.
failed.
0 : -
This bit is output when program
2 Program switching failed 1 : Program switching
switching is unsuccessful.
has failed.
1
3 to 5 Reserved by system --- ---
This bit is output when
the SD card saving stop is
0 : -
SD card saving stop unsuccessful. This occurs when
6 1 : The SD card saving
failed the sensor is in [Setting] status.
stop has failed.
This bit does not turn ON when
the SD card is not identified.
This bit is output when the 0 : -
Setting value change
7 setting value change is 1 : The setting value
failed
unsuccessful. change has failed.
Command Status Bits Address 2 to 3: Handshake control/status/error result
The Bits at Address 2 to 3 of the Command Status Bits have the following functions:
yyBy monitoring whether the unit is in “Imaging” status, you can determine whether the target object or
the unit can be moved before completion of the image processing.
y
y “BUSY” and “Imaging” statuses may be skipped in some data I/O cycle settings. It is therefore
necessary to take the imaging condition into consideration when setting the cyclic frequency.
yyWarning statuses can be cleared from PROFINET communication. For the warning details, refer to the
warning code. The first occurred warning code will be displayed.
yyWhen two or more warnings are issued, all subsequent warnings after the first warning will be saved in
the history. If you clear the warnings, the warning code of the highest priority warning will be displayed.
Warning
Warning clear
yyError statuses cannot be cleared from the PROFINET communication. For the error details, refer to the
error code. The error code of the highest priority error will be displayed.
yyThe buffer overrun status can be cleared using a warning clear.
Device Results Bits Address 0 to 3: Status result
The Bits at Address 0 to 3 of the Device Results Bits have the following functions:
yyIf the position correction/logic/tool is not set, the data content will be “0”.
yyIf the status result of the tool is either “trigger standby” (no judgment) or “judgment not possible”, the
data content will be OFF (0).
Device Status Words Address 0 to 15: Error/status/status result information
The Bits at Address 0 to 15 of the Device Status Words have the following functions:
Data
Address Item Content Data content
type*
Displays the currently occurring
0 to 1 WORD Error code 0 to 128
error code.
Device Statistics Address 0 to 27 (Statistics information)
The Bits at Address 0 to 27 of the Device Statistics have the following functions:
Data
Address Item Content Data content
type*
Position Adjust Result Address 0 to 19 (Position correction information)
The Bits at Address 0 to 19 of the Position Adjust Result (slot No.: 6) have the following functions:
Data
Address Item Content Data content
type*
Position correction tool Stores the matching rate of the
0 to 1 WORD 0 to 100
matching rate position correction tool.
Stores the maximum matching
Position correction tool
2 to 3 WORD rate value of the position 0 to 100
Matching rate MAX
5 correction tool.
Stores the minimum matching
Position correction tool
Data I/O communication
Maximum and minimum matching rate values of the position correction tool will be reset in the same
manner as the statistics information.
Tool Result Address 0 to 19 (Tool information : other than OCR tool)
The Bits at Address 0 to 19 of the Tool Result (slot No.: 7 to 22) have the following functions:
Data
Address Item Content Data content
type*
Stores the matching rate of the
0 to 1 WORD Tool matching rate 0 to 9999
Tool.
Stores the maximum matching
2 to 3 WORD Tool matching rate MAX 0 to 9999
rate value of the Tool.
Stores the minimum matching
4 to 5 WORD Tool matching rate MIN 0 to 9999
rate value of the Tool.
yyMaximum and minimum matching rate values of the tool will be reset in the same manner as the
statistics information.
yyIf the upper threshold value of the tool is not set, the data content of the tool’s upper limit value will be
“65535”.
yyThe decimal point position when scaling is enabled is applied to the data results of matching rate,
matching rate MAX, matching rate MIN, lower threshold, upper threshold, pitch present value MAX,
pitch present value MIN.
(Example): When the “Tool 1 matching rate” is 505 and “Tool 1 decimal point position” is 1, the matching
rate of Tool 1 is “50.5”.
Tool Result Address 0 to 19 (Tool information: for the OCR tool)
The Bits at Address 0 to 319 of the Tool Result have the below functions.
Data
Address Items Description Data content*2
type*1
Shade contrast
Stores the matching rate of the setting
0 to 1 WORD Tool matching rate
Tool. Disable: 0, 100
Enable: 0 to 100
Shade contrast
setting
Stores the lower threshold value
5 2 to 3 WORD Tool lower threshold
of the Tool.
Disable: 50 (fixed
value)
Enable: 0 to 100
Data I/O communication
zz
Example of tool 1 text read
Number Address
of Text read
triggers 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91
A B C D E F NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
1st ABCDEF
(0x41) (0x42) (0x43) (0x44) (0x45) (0x46) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00)
A B F NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
2nd ABF
(0x41) (0x42) (0x46) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00)
A B C D E F G H I J K L M N O P
3rd ABCDEFGHIJKLMNOP
(0x41) (0x42) (0x43) (0x44) (0x45) (0x46) (0x47) (0x48) (0x49) (0x4A) (0x4B) (0x4C) (0x4D) (0x4E) (0x4F) (0x50)
2 0 1 9 . 3 . 2 8 NULL NULL NULL NULL NULL NULL NULL
4th 2019.3.28
(0x32) (0x30) (0x31) (0x39) (0x2E) (0x33) (0x2E) (0x32) (0x38) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00)
---- NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL
5th
(No text read) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00) (0x00)
yyAll addresses (0 to 19) are simultaneously updated at each trigger. The previous data is discarded.
yyData with no read text is stored as NULL (0x00).
yyRead text is output as ASCII code.
yyCorrectly set byte swap in accordance with the PLC specifications.
“Setting the IV2 Series” (Page 5-3)
yyIf outputting the data type of STRING, use 15 or fewer characters of the read text. As NULL cannot be
stored for the 16th letter, the text may not be output correctly.
Error
Content Cause Countermeasure
code
0 No error --- ---
yyA data error has
occurred in program No. yyInitialize the program No. xx.
xx. yyCycle power to the sensor.
Program No. xx yyData corruption may yyDo not switch off the unit while the
1 - 32
corruption error have occurred due to a settings are being saved.
power-off while writing
settings data and/or due
yyIf the error persists, contact your
nearest KEYENCE office.
5
to noise.
Error
Content Cause Countermeasure
code
yyCycle power to the sensor.
81-123 An error may have
System error yyIf the error persists, contact your
125-128 occurred in the sensor.
nearest KEYENCE office.
Connect a sensor head to the sensor
No sensor head is
amplifier, and then cycle power to the
124 System error connected to the sensor
sensor. If the error persists, contact your
amplifier.
nearest KEYENCE office.
5 If two or more errors are occurring at the same time, the error code of the highest priority will be
displayed.
Data I/O communication
The greater the error code, the higher the priority of the error will be.
Warning
Content Cause Countermeasure
code
0 No error --- ---
While the unit was in
Expansion program
[Setting] status, a program Identify the SD card containing the
54 setting mismatch error
setting error occurred in correct expansion program once more.
(normal)
the expansion program.
yyAs a guideline, set the strobe output
one-shot time to half the image 5
capture interval displayed on the
Warning
Content Cause Countermeasure
code
yyMake requests while the device is
running.
yyInput a valid master text setting No. or
valid master text.
yyA change to the In the following situations, input setting
master text/date or values and numbers are invalid:
character count has --The settings number is outside of
been requested from the range of the data content
Field Network Error, PROFINET while the --The specified tool is not being used
60
Invalid request (OCR) unit is in “Setting” status. --The specified tool is not the OCR
5 yyAn invalid master text
setting No. or invalid
tool
--The specified OCR tool detection
master text has been operation (character/date/character
Data I/O communication
Warning
Content Cause Countermeasure
code
A trigger was applied while
the busy bit was ON or the
Do not apply triggers while the unit is in
65 Trigger error trigger ready bit was OFF.
the busy or not in trigger ready status.
(If you have set the trigger
error option to [Enable].)
External master The outline tool is unable
66 registration error to extract the outline of the
(Insufficient outline) new master image.
yyCheck if there are any problems with
External master The color area/area tool is
67 registration error
(Insufficient area)
unable to extract the area
of the new master image.
the registered image and the detection
tool or the position correction setting. 5
yyAdjust the brightness of the image to
Warning
Content Cause Countermeasure
code
yySet the sensor trigger cycle to a
longer value.
SD Card Transfer Error An SD card transfer error
yyUse the result update complete bit to
93 (Insufficient Transfer occurred because the data
control the trigger. In this situation, set
Buffer) buffer was insufficient.
the busy output timing to “Until Data
Transfer Is Complete”.
yyCheck the free space.
An SD card transfer error yyRemove the SD card from its slot,
SD Card Transfer Error
96 occurred because the reinsert the SD card, and then close
(Transfer Failed)
5
transfer failed. the cover. Check that the SD card
indicator lights.
Data I/O communication
yyWhen two or more warnings are issued, all subsequent warnings after the first warning will be saved in
the history.
If you clear the warnings, the warning code of the highest priority warning will be displayed.
Warning
Warning clear
yyThe greater the warning code, the higher the priority of the warning will be.
yyThe SD card saving stop failed warning will not occur.
This section explains the method for communicating from the PLC to the IV2 Series using cyclic
communication.
It also introduces reference programs. When making use of the reference programs, give thought to items
such as error processing during programming.
Reading out the status result (handshake control: [Disable], image buffer: [Disable])
Select [Interlocked With Busy Output] for [Trigger Reception Timing]. The image buffer function is disabled.
For details on the setting method, refer to the “IV2 Series User’s Manual (Control Panel/PC Software)”.
The operation procedure when the data handshake control is set to [Disable] is shown below.
When a trigger is successful
5
Trigger request A B
BUSY A B
Imaging status A B
Result available
Result No. A B
yy[Result update complete] will switch (toggle) to “1” if its value was “0” after the previous judgment
update or switch to “0” if its value was “1”.
yy[Result available] will switch from 0 to 1 at the timing when the first judgment process has been
confirmed; and the new value will be retained thereafter.
yy[Result available] will be reset in the following conditions:
yyIf handshake control is set to [Disabled]
- When the program is switched
- When the unit’s status is switched from “Setting” to “RUN”
- When a buffer clear request is issued
yyIf handshake control is set to [Enabled]
- When a buffer clear request is issued
yy[Result No.] will be counted up each time the status result is updated. The upper limit value is 32767. If
the maximum value is exceeded, it will go back to 0 and start counting up again.
yy[Result No.] will also count the judgment process counts that were skipped due to the cyclic frequency
setting.
yy[Busy] and [Imaging] may be skipped in some cyclic frequency settings. It is therefore necessary to take
the imaging condition into consideration when setting the cyclic frequency.
When a trigger is unsuccessful
Trigger request A B C
Trigger response A B C
Trigger failed B C
BUSY A C
Imaging status A C
5 Result available
Data I/O communication
Result No. A C
Warning
yy[Result update complete] will switch to “1” if its value was “0” after the previous judgment update (or
from “0” to “1” if the previous value was “1”).
yy[Result available] will switch from 0 to 1 at the timing when the first judgment process has been
confirmed; and the new value will be retained thereafter.
yy[Result No.] will be counted up each time the status result is updated. The upper limit value is 32767. If
the maximum value is exceeded, it will go back to 0 and start counting up again.
yy[Result No.] will also count the judgment process counts that were skipped due to the data I/O cycle
setting.
yy[BUSY] and [Imaging] may be skipped due to the data I/O cycle setting. It is therefore necessary to take
the imaging condition into consideration when setting the data I/O cycle.
yy[Number of trigger errors] will be counted up at the timing when the [Result updated] BIT is switched.
Reference programs
Siemens PLC
REQ Trigger Ack Trigger
P
Network1
Trigger
MOV 5
Result Ready Complete Toggle
Complete Toggle
N
zz
Network2
“Result Ready” ON + Rising or falling of “Complete Toggle” will copy the data that have been written to “Tool
Score” to “Result”.
Reading out the status result (handshake control: [Enable], image buffer: [Disable])
Select [Interlocked With Busy Output] for [Trigger Reception Timing]. The image buffer function is disabled.
For details on the setting method, refer to the “IV2 Series User’s Manual (Control Panel/PC Software)”.
The following describes the operating procedure when the data handshake control is set to [Enabled].
You can acquire all status results without fail by setting the data handshake control to [Enabled].
Trigger request A B C
Trigger response A B C
Trigger failed
5 BUSY A B C
Data I/O communication
Imaging status A B C
Result update B C
A
complete
Result available A C
Result acquisition A B
complete notification
Result No. A B C
Overall judgment/
each tool’s status result Result of A Result of B Result of C
Number of
10 9 8 9 10 9
remaining buffers
yy[Result update complete] will switch (toggle) to “1” if its value was “0” after the previous judgment
update or switch to “0” if its value was “1”.
yy[Result No.] will be counted up each time the status result is updated. The upper limit value is 32767. If
the maximum value is exceeded, it will go back to 0 and start counting up again.
yy[Result No.] will also count the judgment process counts that were skipped due to the cyclic frequency
setting.
yy[Busy] and [Imaging] may be skipped in some cyclic frequency settings. It is therefore necessary to take
the imaging condition into consideration when setting the cyclic frequency.
yy[Number of trigger errors] will be counted up at the timing when the [Result updated] BIT is switched.
yyIf handshake control has been set to [Enabled], the status result will not be updated until [Result
acquisition complete notice] is set ON/OFF (0 → 1 → 0), even if the next trigger has been input and a
judgment process has been executed.
yyIf a new trigger is input when [Number of remaining buffers] is “0”, [Buffer overrun] will switch from “0” to
“1”. The status result from the new trigger will be ignored.
yy[Buffer overrun] can be cleared using [Warning clear].
Reference programs
Siemens PLC
REQ Trigger Ack Trigger
P
Network1
Trigger
MOV 5
Result Ready
zz
Network2
“Result Ready” ON will copy the data written in “Tool Score” to “Result”.
zz
Network3
“Result Ready” ON will execute “Result Ready Ack”.
“Result Ready” OFF will set “Result Ready Ack” to OFF (“Result Ready Ack” will be retained until “Result
Ready” becomes OFF).
Reading out the status result (handshake control: [Disable], image buffer: [Enable])
Select [Interlocked With Ready Output] for [Trigger Reception Timing]. The image buffer function is enabled.
For details on the setting method, refer to the “IV2 Series User’s Manual (Control Panel/PC Software)”.
Trigger request A C
Trigger response A B C
Trigger ready A B C
BUSY
5 Imaging status
Result update
A B C
complete A B C
Data I/O communication
Result available
Result No. A B C
Overall judgment/
Result of A Result of B Result of C
each tool’s status result
yy[Result update complete] will switch (toggle) to 1 if its value was 0 after the previous judgment update
or switch to 0 if its value was 1.
yy[Result available] will switch from 0 to 1 when the first judgment process is confirmed; and the new
value will be retained thereafter.
yy[Result available] will be reset under the following conditions:
yyIf handshake control is set to [Disable]
- When the program is switched
- When the unit’s status is switched from “Setting” to “RUN”
- When a buffer clear request is issued
yyIf handshake control is set to [Enable]
- When a buffer clear request is issued
yy[Result No.] will be incremented each time the status result is updated. The upper limit is 32767. If the
maximum value is exceeded, it will go back to 0 and start being incremented again.
yy[Result No.] will also count the judgment process counts that were skipped due to the data I/O cycle
setting.
yy[Trigger ready] and [Imaging] may be skipped due to the data I/O cycle setting. It is therefore necessary
to take the imaging condition into consideration when setting the data I/O cycle.
BUSY
yyDo not cancel (1 → 0) [Program switching request] before [Program switching response] changes from
0 to 1. The program may not be able to switch correctly.
yyWhen [Program switching request] was canceled (1 → 0) before [Program switching response] changes
from 0 to 1, execute (0 → 1) [Program switching request] and cancel (1 → 0) it again.
Reference programs
Siemens PLC
MOV
REQ
P EN ENO
Network1
Number IN OUT Program Number
Program Change
zz
Network2
Sets “REQ” to ON and executes “Program Change”.
“Program Change Ack” ON will set “Program Change” to OFF (“Program Change” will be retained until
“Program Change Ack” becomes ON).
(1) Write the tool number and threshold type of the threshold to be changed to [Setting value setting No.].
(2) Write the threshold to be changed to [Setting value]. 5
(3) Execute [Setting value change request]. (0→1)
yyIf the setting value change fails, [Setting value change failed] will switch from “0” to “1”.
yyIf the setting value change fails, [Warning] will switch from “0” to “1” and [Warning No.] will be updated
to 61. For details, refer to “Warning code list” (Page 5-33).
Reference programs
Siemens PLC
MOV
REQ
P EN ENO
Network1
Number Limit
IN OUT Setting
No.
5
MOV
EN ENO
Data I/O communication
Value Upper/
IN OUT Lower
Limit
Upper/Lower Limit
Change
(1) Overwrite [Master text setting No.: Address 6 to 7] with 101 (master text (first to fourth letter) when the 5
read text settings are set with Tool 1).
Master text/date
Example of a failure
1st 2nd 3rd 4th 5th 6th 7th 8th
Master text/date before change A B C D E F G NULL
Text to be written 1 2 3 4 None
Master text/date after change 1 2 3 4 E F G
Master text/date
Example of a success
1st 2nd 3rd 4th 5th 6th 7th 8th
Master text/date before change A B C D E F G NULL
NULL NULL NULL NULL
Text to be written 1 2 3 4
(0x00) (0x00) (0x00) (0x00)
Master text/date after change 1 2 3 4
Master text/date
1st 2nd 3rd 4th 5th 6th 7th 8th
Master text/date before change 2 0 1 9 . 4 . 5
Text to be written None . 4 . 6
Master text/date after change 2 0 1 9 . 4 . 6
5 yyChanges in groups of four are applied immediately. Do not execute a trigger until all text changes are
complete.
Data I/O communication
BUSY
5
yy[BUSY] will change from 0 to 1 while the master image registration is in progress.
MEMO
5
Data I/O communication
Overview of
TCP/IP No Procedure Communication.............6-2
Communication Specifications and
Functions............................................................6-5
Setting the IV2 Series.........................................6-6
List of Commands Supported by
6
the IV2 Series......................................................6-8
TCP/IP no procedure communication is a function that transmits and receives data between Ethernet
devices using the TCP/IP protocol. This makes it possible to communicate not only with PCs or PLCs but
also with various devices that support Ethernet.
External devices such as PCs and PLCs use socket communication function to perform TCP/IP no
procedure communication with the IV2 Series.
6
Client Server
TCP/IP No Procedure Communication
Connection open
Command
Response
Command format
a a , b b ・・・ , c c d
aa Use the first 2 or 3 characters to specify the type of command on the basis of the control details.
bb、cc Specify the parameters according to the command type. The number of parameters and the
number of characters vary depending on the command.
Use a comma (0x2C) to separate the parameters.
d Specify [CR(0x0D)] as the delimiter.
Command example
D R , 0 3 , 1 CR
a a , b b ・・・ , c c d
Response example
P R , 0 6 4 CR
Error response format
The response when the command was not processed successfully.
E R , a a , b b CR
When creating a control program, confirm that this unit has received the response before transmitting the
next command to this unit.
Automatic status result transmission
Judgment processing can be performed during internal triggers or input signals (external triggers) from an
external device such as a PLC or photoelectric switch, and status results can be transmitted automatically.
This eliminates the need to transmit the status result read command.
Use the OE command (Page 6-17) in advance to enable the automatic transmission function.
External trigger
Status result or internal trigger
6
TCP/IP No Procedure Communication
If the next status result is confirmed while the initial status result is being transmitted, the new data will be
discarded. (The status result will not be transmitted.)
Number of
1
connections
8500 (default value)
Port*
1024 to 65535
Transmission code ASCII
Data delimiter CR (0x0D)
*Normally, there is no need to change this setting. The port number assigned for use with IV2-CP50/IV2-
Navigator (default value: 63000) cannot be used.
Function Description
Trigger input Executes a trigger input for the sensor.
Change Program Executes a program switch for the sensor.
Ext. Master Save Executes an external master registration for the sensor.
Setting value (judgment
Rewrites the threshold that is used as the reference for tool judgment.
threshold) rewriting
Rewrites the master text/master date that is used as the reference for
Master text/master date rewriting
OCR tool judgment.
Warning clear input Executes a warning clear.
Allows you to check the unit status (Imaging, RUN, BUSY, Error,
Read status
etc.).
Read overall status result Reads the overall status result.
Read processing time Reads the processing time of the judgment.
Read each tool’s status result Reads each tool’s status result and matching rate.
Reads the number of triggers issued that generated a total status of
Read statistical information
OK or NG and the number of trigger errors.
yyIf you are switching programs using TCP/IP no procedure communication, set the [Switching method]
option to [Panel/PC/Network]. For details on the setting method, refer to the “IV2 Series Userʼs Manual
(Control Panel/PC Software)”.
yyIf the external master registration will be executed frequently using TCP/IP no procedure
communication, set the [Write to ROM when using Ext. Master Save] option to [No] to protect the non-
volatile memory in the sensor. For details on the setting method, refer to the “IV2 Series Userʼs Manual
(Control Panel/PC Software)”.
This section explains how to configure the settings 3 Tap [FieldNet/Comm. Unit (DL)].
when using TCP/IP no procedure communication.
Navigator (IV2-H1).
6
3 Select [Nonprocedural command] for the
5 Click [OK].
List of commands
Reception
possible
with the Reference
Control details Command Response
unit in page
[Setting]
status
Trigger T1 [CR] T1 [CR] - Page 6-9
“Reading the status
Status result reading RT [CR] - Page 6-9
result” (Page 6-9)
Trigger + status result “Trigger + status result
T2 [CR] - Page 6-9
6 reading reading” (Page 6-9)
Program number reading PR [CR] PR, nnn [CR] Page 6-10
TCP/IP No Procedure Communication
Trigger
Command Explanation
T 1
C Issues a trigger to start judgment processing.
R
The response is returned immediately. It does not
0x31
wait until the judgment processing is finished.
Response
C
T 1 R
Response
C
Explanation
P R , n n n R Reads the current program number.
Response example
PR, 099 [CR]
P W , n n n
C nnn Program number (000 to 127)
R
Up to 3 characters
Response
C
Explanation
P W R Switches the program number.
After the program number is switched, the response
is returned.
Command example
Switching to P099 (PROG099)
PW, 099 [CR]
Threshold reading
Command Parameters
D R , n n , a
C nn 00: Position adjustment tool
R
01 to 16: Detection window/tool number
a 0: Upper limit
Response
C
1: Lower Limit
D R , n n , a , b b b b b b b R bbbbbbb Threshold
Fixed to 7 characters
0000000 to 9999999
Explanation
Reads the threshold of the specified detection
window (learning mode)/tool (standard mode). 6
When 00 is specified, the threshold of the position
Examples
Response when the lower limit of Tool 1 is 80
DR, 01, 0, 0000080 [CR]
Threshold changing
Command Parameters
D W , n n , a , b b b b
C nn 00: Position adjustment tool
R
01 to 16: Detection window/tool number
a 0: Upper limit
Response
C
1: Lower Limit
D W , n n R bbbb Threshold
Up to 7 characters
0 to 9999999
Only 2 characters can be specified when
this parameter is 2 characters long.
6 Explanation
Changes the threshold of the specified detection
TCP/IP No Procedure Communication
Examples
Change the lower limit of Tool 1 to 80.
DW, 01, 0, 80 [CR]
Fill a threshold made of 4 characters with 0.
DW, 01, 0, 0080 [CR]
Change the lower limit of Tool 2 to 23.25 mm.
DW, 02, 0, 0023250 [CR]
Command examples
CW, 01, 123456789 [CR]
CW, 01, 1234567[NULL][NULL]
- IV2 Series User’s Manual (Field Network) - 6-13
List of Commands Supported by the IV2 Series
Response example
CNR, 01, 06, 10 [CR]
Command example
CNW, 01, 06, 10 [CR]
Response example
SR, 1, 0, 1, 1, 0, 0 [CR]
Parameter
Response
C
nnn Fixed to 3 characters
R E R , n n n R 000: No error
For details on error codes, see “Error
code list” (Page 6-23).
Response example
RER, 079 [CR]
Parameter
Response
C
nnn Fixed to 3 characters
W R , n n n R 000: No warning
For details on warning codes, see
“Warning code list” (Page 6-25).
Response example
WR, 065 [CR]
6
TCP/IP No Procedure Communication
Warning clearing
Command Explanation
W C
C Clears the warning.
R
Response
C
W C R
6
the RT command.
This function is set to [Disable] when the power
is turned on. To use the automatic transmission
Parameter
n 0: Disabled
1: Enabled
Command example
OE, 1 [CR]
Command example
OF, 01 [CR]
Response
S T R , a a a a a , b b b b b , c c c c c
, d d d d d d d d d d , e e e e e e e e e e
, f f f f f f f f f f , g g g g g g g g g g
6 , Tool statistic 1
, Tool statistic 2
TCP/IP No Procedure Communication
, Tool statistic 3
・・・
C
, Tool statistic n R
Explanation
Reads the confirmed statistical information when this command is received.
Parameters
aaaaa MAX processing time [ms], fixed to 5 characters
bbbbb MIN processing time [ms], fixed to 5 characters
ccccc AVE processing time (ms), fixed to 5 characters
dddddddddd Trigger count, fixed to 10 characters
eeeeeeeeee OK count, fixed to 10 characters
ffffffffff NG count, fixed to 10 characters
gggggggggg Trigger error count, fixed to 10 characters
Statistics resetting
Command Explanation
S T C
C Resets the statistical information.
R
Response
C
S T C R
Version reading
Command Parameters
V I
C nn・・nn Sensor head model, variable length
R
0x49
vv・・vv Sensor version, variable length 6
Parameter
aaaaa 00000 to 65535
Decimal, unsigned integer
Fixed to 5 characters
Standard format
This is the format when the power is turned on or when 00 is specified with the OF command.
R T , a a a a a , b b
, Tool result 1
, Tool result 2
, Tool result 3
・・・
6
TCP/IP No Procedure Communication
C
, Tool result n R
Parameters
aaaaa Result number, fixed to 5 characters
0 to 32767
The count is incremented each time the status result is updated. If the maximum value is
exceeded, the count is returned to 0 and is incremented again. By comparing the result number,
you can also confirm that no status results have been missed (that they have all been obtained).
bb Overall status result, fixed to 2 characters
OK: Total status is OK.
NG: Total status is NG.
Output example
Result number 1234, total status NG
Tool 1: Area tool, result OK, matching rate 80
Tool 2: Diameter tool, result NG, matching rate: 21.5 mm
RT, 01234, NG, 01, OK, 0000080, 02, NG, 0021500 [CR]
Detailed format
This is the format when 01 is specified with the OF command.
R T , a a a a a , b b , v w x y , d d d d d , e e e
, Tool result 1
, Tool result 2
6
C
, Tool result n R
Parameters
aaaaa Result number, fixed to 5 characters
0 to 32767
The count is incremented each time the status result is updated. If the maximum value is
exceeded, the count is returned to 0 and is incremented again. By comparing the result
number, you can also confirm that no status results have been missed (that they have all
been obtained).
bb Overall status result, fixed to 2 characters
OK: Total status is OK.
NG: Total status is NG.
vwxy Logic result, fixed to 4 characters
v: logic 1, w: logic 2, x: logic 3, y: logic 4
0: OFF
1: ON
ddddd Processing time [ms], fixed to 5 characters
eee Program number, 000 to 127, fixed to 3 characters
6 f f , g g , h h h h h h h , n n n , o o o , p p p
S S S S S S S
P P P P P P P
TCP/IP No Procedure Communication
Error
Content Cause Countermeasure
code
0 No error --- ---
yyA data error has
occurred in program No. yyInitialize the program No. xx.
xx. yyCycle power to the sensor.
Program No. xx yyData corruption may yyDo not switch off the unit while the
1 - 32
corruption error have occurred due to a settings are being saved.
power-off while writing yyIf the error persists, contact your
settings data and/or due nearest KEYENCE office.
to noise.
Use the control panel or a PC (IV2-
Navigator) to clear the error message.
6
The error is cleared, and the sensor
Error
Content Cause Countermeasure
code
yyCycle power to the sensor.
81-123 An error may have
System error yyIf the error persists, contact your
125-128 occurred in the sensor.
nearest KEYENCE office.
Connect a sensor head to the sensor
No sensor head is
amplifier, and then cycle power to the
124 System error connected to the sensor
sensor. If the error persists, contact your
amplifier.
nearest KEYENCE office.
If two or more errors are occurring at the same time, the error code of the highest priority will be
displayed.
6 The greater the error code, the higher the priority of the error will be.
TCP/IP No Procedure Communication
Warning
Content Cause Countermeasure
code
0 No error --- ---
While the unit was in
Expansion program
[Setting] status, a program Identify the SD card containing the
54 setting mismatch error
setting error occurred in correct expansion program once more.
(normal)
the expansion program.
yyAs a guideline, set the strobe output
one-shot time to half the image
capture interval displayed on the
operation screen (50% of the duty
ratio with the shortest cycle).
yyThe strobe error can be cleared with
6
the following procedure.
Warning
Content Cause Countermeasure
code
yyMake requests while the device is
running.
yyInput valid parameters.
yyA change to the master In the following situations, input
text/date or character parameters are invalid:
count has been --The specified tool is not the OCR
Field Network Error, requested using TCP/ tool
60
Invalid request (OCR) IP while the unit is in --The specified OCR tool detection
“Setting” status. operation (character/date/character
yyA parameter that is not count) does not match the change
valid has been entered. request
--When only judging the number of
characters, the number of characters
is outside of the data content range
6 yyThreshold changing has
been requested using
Field network yyMake requests while the device is
TCP/IP No Procedure Communication
Warning
Content Cause Countermeasure
code
External master The outline tool is unable
66 registration error to extract the outline of the
(Insufficient outline) new master image.
yyCheck if there are any problems with
External master The color area/area tool is
the registered image and the detection
67 registration error unable to extract the area
tool or the position correction setting.
(Insufficient area) of the new master image.
yyAdjust the brightness of the image to
External master be registered.
The brightness of the new
registration error
68 master image cannot be
(Brightness correction
corrected appropriately.
failed)
yyCheck if there are any problems with
External master The edge tool is unable the registered image and the detection
69 registration error to extract the edge of the
(Insufficient edge faild) new master image.
tool or the position correction setting.
yyAdjust the brightness of the image to
6
be registered.
Warning
Content Cause Countermeasure
code
yyCheck the free space.
An SD card transfer error yyRemove the SD card from its slot,
SD Card Transfer Error
96 occurred because the reinsert the SD card, and then close
(Transfer Failed)
transfer failed. the cover. Check that the SD card
indicator lights.
yyWhen two or more warnings are issued, all subsequent warnings after the first warning will be saved in
the history.
If you clear the warnings, the warning code of the highest priority warning will be displayed.
yyThe greater the warning code, the higher the priority of the warning will be.
Communication Methods
Communication flow
PC/PLC IV2
Passive
open
6
TCP/IP No Procedure Communication
・
When creating a control program, confirm that this
・
unit has received the response before transmitting
・
the next command to this unit.
Command
Response
Connection closed
Use the [T2] command.
PC/PLC IV2
Trigger + status result reading [T2]
Transmits the [T2] command.
Use the automatic status result transmission.
PC/PLC IV2
Automatic transmission: Enabled Use the [OE] command to change the automatic
[OE, 1] transmission function to [Enable].
Response [OE]
Trigger issuance
(external/internal)
Judgment
processing
execution
When the automatic transmission function is set to
Transmission disabled
[Disable], the status result will not be transmitted.
Response [RT]
The [RT] command can be used to obtain the
status result.
Index...................................................................A-2
Index
C J
Changing the master text......................... 3-47, 5-47
Judgment processing communication
Changing the master text/date...........................6-13
methods..............................................................6-31
Changing the tool adjustment threshold
................................................................. 3-44, 5-45 K
Communication flow...........................................6-30
KEYENCE KV series settings..............................3-8
Communication Methods....................................6-30
KEYENCE PLC....................................................2-4
Communication Specifications and Functions......6-5
Configuring settings using the control panel
L
(IV2-CP50)...........................................................6-6
Control Modules parameter details....................5-17 List of commands.................................................6-8
A Control Modules (PLC → IV2 Series).................5-12 List of Commands Supported by the
Cyclic communication setting method..................3-3 IV2 Series.............................................................6-8
List of supported PLCs................................. 2-4, 4-5
D
M
Data allocation in the cyclic communication.......3-11
Data allocations in the data Master image registration...................................6-14
I/O communication.............................................5-12 Master text/date reading.....................................6-13
Data I/O communication setting method..............5-3 Master text number changing.............................6-14
Detailed format...................................................6-21 Master text reading.............................................6-14
Details of commands and responses...................6-9
O
E Operating procedure of the cyclic
Error code list.................................. 3-27, 5-31, 6-23 communication...................................................3-33
Error number reading.........................................6-15 Operating procedure of the data I/O
Establishing the connection.......................... 3-6, 6-2 communication...................................................5-37
Establishing the data I/O communication.............5-7 Operating status reading....................................6-15
EtherNet/IP communication specifications and Operation of the indicator lights............................1-3
functions in the IV2 Series....................................2-3 Output Assembly parameter details...................3-23
EtherNet/IP communication specifications in the Output Assembly (PLC → IV2 Series)................3-22
IV2 series.............................................................2-3 Overview of commands and responses...............6-2
Overview of EtherNet/IP.......................................2-2
I Overview of IV2 Series.........................................1-2
Overview of PROFINET.......................................4-2
Input Assembly (IV2 Series → PLC)..................3-11
Overview of TCP/IP No Procedure
Input Assembly parameter details......................3-13
Communication....................................................6-2
IV2 Series.............................................................1-2
Overview of the cyclic communication.................3-2
IV2 Series PROFINET communication
Overview of the data I/O communication.............5-2
specifications........................................................4-3
MEMO
/*
* EDMA3 LLD
*
* Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/
*
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the
* distribution.
*
* Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
(1) KEYENCE warrants the Products to be free of defects in materials and workmanship for a period of
one (1) year from the date of shipment. If any models or samples were shown to Buyer, such models
or samples were used merely to illustrate the general type and quality of the Products and not to
represent that the Products would necessarily conform to said models or samples. Any Products
found to be defective must be shipped to KEYENCE with all shipping costs paid by Buyer or offered
to KEYENCE for inspection and examination. Upon examination by KEYENCE, KEYENCE, at its sole
option, will refund the purchase price of, or repair or replace at no charge any Products found to be
defective. This warranty does not apply to any defects resulting from any action of Buyer, including but
not limited to improper installation, improper interfacing, improper repair, unauthorized modification,
misapplication and mishandling, such as exposure to excessive current, heat, coldness, moisture,
vibration or outdoors air. Components which wear are not warranted.
(2) KEYENCE is pleased to offer suggestions on the use of its various Products. They are only
suggestions, and it is Buyer’s responsibility to ascertain the fitness of the Products for Buyer’s intended
use. KEYENCE will not be responsible for any damages that may result from the use of the Products.
(3) The Products and any samples (“Products/Samples”) supplied to Buyer are not to be used internally in
humans, for human transportation, as safety devices or fail-safe systems, unless their written specifications
state otherwise. Should any Products/Samples be used in such a manner or misused in any way,
KEYENCE assumes no responsibility, and additionally Buyer will indemnify KEYENCE and hold KEYENCE
harmless from any liability or damage whatsoever arising out of any misuse of the Products/Samples.
(4) OTHER THAN AS STATED HEREIN, THE PRODUCTS/SAMPLES ARE PROVIDED WITH
NO OTHER WARRANTIES WHATSOEVER. ALL EXPRESS, IMPLIED, AND STATUTORY
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF PROPRIETARY
RIGHTS, ARE EXPRESSLY DISCLAIMED. IN NO EVENT SHALL KEYENCE AND ITS AFFILIATED
ENTITIES BE LIABLE TO ANY PERSON OR ENTITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING, WITHOUT LIMITATION,
ANY DAMAGES RESULTING FROM LOSS OF USE, BUSINESS INTERRUPTION, LOSS OF
INFORMATION, LOSS OR INACCURACY OF DATA, LOSS OF PROFITS, LOSS OF SAVINGS,
THE COST OF PROCUREMENT OF SUBSTITUTED GOODS, SERVICES OR TECHNOLOGIES,
OR FOR ANY MATTER ARISING OUT OF OR IN CONNECTION WITH THE USE OR INABILITY TO
USE THE PRODUCTS, EVEN IF KEYENCE OR ONE OF ITS AFFILIATED ENTITIES WAS ADVISED
OF A POSSIBLE THIRD PARTY’S CLAIM FOR DAMAGES OR ANY OTHER CLAIM AGAINST
BUYER. In some jurisdictions, some of the foregoing warranty disclaimers or damage limitations may
not apply.
E 1101-3
Copyright (c) 2019 KEYENCE CORPORATION. All rights reserved. 244063GB 2010-2 869GB Printed in Japan