Keyence IV Series
Keyence IV Series
Keyence IV Series
Vision Sensor
IV Series
Users Manual
(Field Network)
Getting Started
EtherNet/IP
Cyclic communication
PROFINET
Reference program
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 you to important messages.
Be sure to read these messages carefully.
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.
yyYou must verify that the IV Series are operating correctly in terms of functionality and
performance before the start and the operation of the IV Series.
yyWe recommend that you take substantial safety measures to avoid any damage in the event of
a problem occurring.
yyKEYENCE never warrants the function or performance of the IV Series if it is used in manner
that differs from the IV Series specifications contained in this instruction manual or if the IV
Series are modified by yourself.
yyWhen the IV Series is used in combination with other instruments, functions and performance
may be degraded, depending on operating conditions and the surrounding environment.
yyDo not place the instruments, including peripherals, under the rapid temperature change. It
may cause condensation and may damage instruments or peripherals.
yyRemove the power cable from the power supply if you do not use this product for a long time.
256GB
Important Instructions
Important Instructions
Observe the following precautions to prevent malfunction of the IV Series and to
ensure that it is used properly.
Precautions on use
yyThe power of this product and instruments connected to this product must be turned off when
the cable is to be installed or removed. Failure to do so may cause an electric shock or a
product damage.
yyUse this product in the correct supply voltage. Failure to do so may cause a product damage.
yyFor instructions
yyDo not turn OFF the power while setting the items or saving the settings. Otherwise, all or
part of the setting data may be lost.
yyDo not let water, dust or oil stick to the camera/light of the sensor. Failure to do so may cause
a malfunction.
yyWhen this product becomes dirty, do not rub it with a wet cloth, benzene, thinner, or alcohol.
Doing so may change the color or shape of the unit.
yyIf the unit is heavily contaminated, disconnect all the cables including the power supply cable,
wipe off the dirt with a cloth soaked with mild detergent, and then wipe with a soft dry cloth.
yyFor external master image registration
If the external master image registration is to be performed frequently, set [Write ROM when
using Ext. Master Save] of the input option to [No] for nonvolatile memory protection of the
internal sensor. When the option is set to [Yes], the nonvolatile memory is guaranteed to write
for 100,000 times.
yyFor automatic focus function
yyAutomatic focus function is used for adjusting the focusing position at the time of installation.
This will not activate during the operation.
yyFocusing position can be registered in each program. The program configurations are
guaranteed to switch for 100,000 times. If the focusing position does not need to change for
each program, set [Auto Focus Adjustment Position] to [Common] for extending the life-span.
yyDo not apply shock or vibration during the focusing position adjustment. Failure to do so may
cause a product damage.
Important Instructions
Precautions on installation
yyTo use this product correctly and safely, avoid installing it in the following locations. Failure to
do so may cause fire, electric shock, or malfunction.
yyOutdoors
yyAltitude above 2000 m
yyLocations that are humid, dusty or poorly ventilated
yyLocations where the temperature is high such as those exposed to direct sunlight
yyLocations where there are flammable or corrosive gases
yyLocations where the unit may be directly subjected to vibration or impact
yyLocations where water, oil, or chemicals may splash onto the unit
yyTo improve the anti-noise feature, install the unit following the precautions below. Otherwise, a
malfunction may occur.
yyMount the sensor onto the insulated attached mounting adapter.
yyGround the FG cable (drain cable) of the sensor.
yyDo not mount the unit in a cabinet where high-voltage equipment is already installed.
yyMount the unit as far from power lines as possible.
yySeparate the unit as far as possible from the devices that emit strong electric or magnetic
field (such as solenoid or chopper).
yySeparate the I/O signal line from the power line or high-voltage line.
yyFor power supply
yyNoise superimposed on the power supply could cause malfunction. Use a stabilized DC
power supply configured with an isolation transformer.
yyWhen using a commercially available switching regulator, be sure to ground the frame ground
terminal.
yyDevices including this unit are precision components. Do not apply shock or vibration.
yyWhen connecting to a network, let engineers who are knowledgeable about networks handle it.
CE Marking
Keyence Corporation has confirmed that this product complies with the essential requirements of
the applicable EC Directive, based on the following specifications. Be sure to consider the following
specifications when using this product in the Member State of European Union.
Description
R1.00.00
R1.01.00
R1.10.00
The processing time and the response time to program switching input have been
speeded up.
R2.00.00
Description
R1.00.00
R1.01.01
R1.02.00
R1.10.00
Compatibility with Tool Auto Tuning using a registration information file (*.ivt).
R2.00.00
IV-Navigator (IV-H1)
Version
Description
R1.00.00
R1.01.00
R1.02.00
R1.10.00
R2.00.00
Getting Started
EtherNet/IP
Cyclic communication
PROFINET
Reference program
4
5
Contents
Contents
Introduction
Symbols
Cautions
Safety Information for IV Series..............................1
General Precautions............................................1
Safety precautions on LED product.....................1
Important Instructions..............................................2
Precautions on use..............................................2
Measures to be taken when an abnormality
occurs..................................................................2
Precautions on installation...................................3
Precautions on Regulations and Standards............4
For IV-500C/IV-500CA/IV-500M/IV-500MA/
IV-150M/IV-150MA/IV-2000M/IV-2000MA............4
UL Certification.................................................4
CE Marking.......................................................4
Version of the IV Series...........................................5
Operation software of the sensor
(IV-150/500/2000)................................................5
Operation software of the monitor (IV-M30).........5
IV-Navigator (IV-H1).............................................6
Structure of This Manual.........................................7
Contents..................................................................8
Chapter 2 EtherNet/IP
Overview of EtherNet/IP.......................................2-2
What is EtherNet/IP?........................................2-2
EtherNet/IP communication specifications and
functions in the IV series......................................2-3
EtherNet/IP communication specifications
in the IV series..................................................2-3
Overview of the Ethernet/IP
communications functions in the IV series........2-3
List of supported PLCs......................................2-4
Keyence PLC.................................................2-4
KV series...............................................2-4
Status result.........................................3-15
Input Assembly Address 8 to 23:
Statistics information............................3-17
Input Assembly Address 52 to 71:
Tool information...................................3-18
Output Assembly (PLC IV series)...............3-19
Output Assembly parameter details................3-20
Output Assembly Address 0 to 1:
Control request....................................3-20
Output Assembly Address 2 to 3:
Handshake control...............................3-21
Output Assembly Address 4 to 11:
Program No.........................................3-21
Error code list..................................................3-22
Warning code list.............................................3-23
Operating procedure of
the cyclic communication...................................3-26
Reading out the overall status result of
the IV series
(Handshake control [Disabled]).......................3-26
When a trigger is successful................3-26
Contents
Chapter 4 PROFINET
Overview of PROFINET.......................................4-2
What is PROFINET?.........................................4-2
PROFINET communication specifications and
functions in the IV series......................................4-3
IV series PROFINET communication
specifications....................................................4-3
Specifying the IP address using
the DCP protocol...............................................4-3
Overview of the PROFINET communication
functions in the IV series...................................4-4
List of supported PLCs......................................4-5
Siemens PLC.................................................4-5
Phoenix Contact PLC....................................4-5
OMRON PLC.................................................4-5
Device Statistics..................................5-18
Tool Result...........................................5-19
Control request....................................5-20
Command Control Address 2 to 3:
Handshake control...............................5-21
Command Control Address 4 to 11:
Program No.........................................5-21
Status Modules parameter details..................5-22
Command Status Bits Address 0:
Status result.........................................5-25
Address 0 to 15:
Error/status/status result information....5-26
Device Statistics Address 0 to 27
(Statistics information).........................5-27
Tool Result Modules parameter details...........5-28
Position Adjust Result
Address 0 to 19
(Position correction information)..........5-28
Tool Result Address 0 to 19
(Tool information).................................5-28
Error code list..................................................5-29
Warning code list.............................................5-30
Operating procedure of
the data I/O communication...............................5-32
Reading out the overall status result of
the IV series
(Handshake control [Disabled]).......................5-32
When a trigger is successful................5-32
Appendices
Reference program (EtherNet/IP)....................... A-2
Handshake control [Disabled].......................... A-2
Keyence KV series....................................... A-2
Description of the reference program.... A-2
Index.................................................................. A-12
Contents
MEMO
10
1
System Configuration........................................1-2
Overview of IV Series.........................................1-4
1-1
1
Getting Started
Getting Started
System Configuration
System Configuration
1
Getting Started
IV Series
Ethernet cable
(2m/5m/10m)
Sensor
IV-500C
IV-500CA
IV-500M
IV-500MA
IV-150M
IV-150MA
IV-2000M
IV-2000MA
Photoelectric/
proximity sensor etc.
Sends the signal to the
trigger input when the
target is detected.
1-2
Indicator light/buzzer
etc.
Alarm can be output
by the status output
function.
- IV Series Users Manual (Field Network) -
System Configuration
Ethernet switch
Ethernet cable
(2m/5m/10m)
1-3
Getting Started
Overview of IV Series
Overview of IV Series
1
IV Series
Getting Started
The IV Series is an all-in-one Vision Sensor featuring a camera, a light, and a controller. This sensor
can be attached easily so complicated detection operations such as detecting the shapes of parts with a
photoelectric switch can be achieved easily.
Operation conditions settings require the IV Software, IV-Navigator (IV-H1) or
the intelligent monitor (IVM30). After setting is completed, the sensor can be operated independently.
The IV Series operates as an EtherNet/IP communication adaptor or a PROFINET communication I/O device.
With EtherNet/IP communication or PROFINET communication, the control output signal and status result,
etc., can be input to the PLC as communication data.
1-4
Overview of IV Series
1 2 3
1 PWR/ERR
Indicates the power supplying status to the
sensor and the error status of the sensor.
yyGreen (ON).......Operating.
yyGreen (Blink).....Setting processing. Operation
is stopped. Blinks once a
second.
yyRed (ON)...........Unrecoverable error has
occurred.
yyRed (Blink)........Recoverable error has
occurred.
yyOrange (Blink)...Flash LED has been required on
the PROFINET communication
I/O controller. Blinks 4 times
with a period of about a second.
yy(OFF)................Power is not supplied.
Adjusting the focusing position
(manual focus only).
2 OUT
Indicates the comprehensive result.
yyGreen................Comprehensive result is OK.
yyRed...................Comprehensive result is NG.
yy(OFF)................Setting processing.
Standby status until the first
judge finishes after starting the
operation or after switching
the program number.
yyOrange (Blink)....Indicates the focusing status
while adjusting the focusing
position with the blinking speed
(manual focus type only).
Flash LED has been required on
the PROFINET communication
I/O controller. Blinks 4 times
with a period of about a second.
4 STATUS
Indicates the connecting status to the PC.
yyGreen (ON).......Normally connected with monitor,
PC, EtherNet/IP communication
scanner, or PROFINET
communication I/O controller.
yyGreen (Blink).....IP address has been retrieved
but the sensor is not correctly
connected with monitor, PC,
EtherNet/IP communication
scanner, or PROFINET
communication I/O controller.
yyRed (Blink)........Timeout has occurred at the
communication with EtherNet/
IP communication scanner.
yyRed (ON)...........IP address coincides with
another device.
yy(OFF)................IP address is not assigned.
Not correctly connecting with
PC.
yyOrange (Blink)...Indicates the focusing status
while adjusting the focusing
position with the blinking speed
(manual focus type only).
5 LINK/ACT
Indicates the linking status within PC or
Ethernet switch.
yyGreen (ON).......Normally linked.
yyGreen (Blink).....Normally linked, and the data
is sending/receiving.
y
Sensor is not normally linked.
(OFF)................
y
1-5
1
Getting Started
3 TRIG
Green light lights up (one-shot) according to
input of the internal or external trigger.
yyOrange (Blink)...Flash LED has been required on
the PROFINET communication
I/O controller. Blinks 4 times
with a period of about a second.
Overview of IV Series
MEMO
1
Getting Started
1-6
2
EtherNet/IP
2
EtherNet/IP
Overview of EtherNet/IP.....................................2-2
EtherNet/IP communication specifications
and functions in the IV series...........................2-3
2-1
Overview of EtherNet/IP
Overview of EtherNet/IP
What is EtherNet/IP?
2
EtherNet/IP
EtherNet/IP is an open industrial networking standard developed and maintained by the ODVA (Open
DeviceNet Vendor Association, Inc.). All supported devices can use the communication network regardless
of the vendor.
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 the 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"
for 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" (IV 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 arbitrary timings.
In the 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
switching to the set program No. can be communicated without a ladder program.
In the message communication, you can send/receive the required commands and responses at the required
timings. The message communication is used for applications requiring no punctuality unlike the cyclic
communication, such as for reading and writing the adapter device settings.
The IV series supports cyclic communication (Implicit communication).
EtherNet/IP
communication
scanner
High-speed
(Communication cycle: 5 ms)
Normal
(Communication
cycle: 100 ms)
EtherNet/IP
communication
adapter
2-2
EtherNet/IP
communication
adapter
EtherNet/IP
communication
adapter
EtherNet/IP
Cyclic communication
(Implicit messages)
16
Content
Trigger input
Program switching
Allows you to check the unit status (Imaging, RUN, BUSY, Error).
yyIf you are switching programs using the EtherNet/IP communication, set the [Switching method] option
to [Monitor/PC]. For details of the setting, refer to the IV Series Users Manual (Monitor / PC Software).
yyIf the master registration will be executed using the EtherNet/IP communication, set the [Write to ROM
at external master reg.] option to [No]. For details of the setting,refer to the IV Series Users Manual
(Monitor / PC Software).
2-3
Check the instruction manual of each PLC for details of the setting methods.
EtherNet/IP
Keyence PLC
KV series
PLC model
EtherNet/IP
communication unit
Firmware
version
KV-3000
KV-EP21V
Ver.2 or later
KV-5000
KV-EP21V
Ver.2 or later
KV-5500
Ver.2 or later
Software used
KV STUDIO
Version of the
software used
Ver.6.0 or later
EtherNet/IP
communication unit
Firmware
version
1756-ENBT
1756-EN2T
Ver.13 or later
Ver.13 or later
Software used
RSLogix5000
Version of the
software used
Ver.13 or later
OMRON PLC
PLC model
2-4
EtherNet/IP
communication unit
Firmware
version
SYSMAC CJ2
(Built-in port or
CJ1W-EIP21)
V1.0 or later
SYSMAC CJ1
CJ1W-EIP21
V1.0 or later
SYSMAC CS1
CJ1W-EIP21
V1.0 or later
Software used
CX-One
Version of the
software used
Ver.3.0 or later
3
Cyclic
communication
3-1
Cyclic communication
This function enables cyclic (i.e. in fixed intervals) data communications with the EtherNet/IP devices.
This function provides high-speed control with several to several tens of milliseconds.
The communication can be controlled by referencing and updating the variables in the PLC, making it easy
to control the programs on the PLC side.
Cyclic communication
Input Area
Output data
yyStatus result
yyControl/status/error result
yyStatistics information
yyTool information
Output Area
yyTrigger control
yyExternal master image
registration control
yyProgram switching control
yyHandshake control
yyStatus result
yyControl/status/error result
yyStatistics information
yyTool information
RPI
(Communication
cycle)
Input data
yyTrigger control
yyExternal master image
registration control
yyProgram switching control
yyHandshake control
yyCommunication settings for the 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 the operation.
3-2
Network.
3
Cyclic communication
3-3
Cyclic communication
PLC settings
You can set the following settings for the PLC:
(1) Set the connection to be used for the cyclic communication.
(2) Set the device to be used for the cyclic communication.
For details of the setting, refer to the instruction manual of each PLC.
Adapter device
yyA compatibility check is used to check whether the device set by the scanner and the IV series are in
match with one another, in order to prevent the scanner from communicating with a wrong device when
it communicates with the IV series.
yyCommunication settings for the 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.
3-5
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.
There are many types of connections, and the connection available for each device are defined in the EDS
file.
The following shows the list of connections that are available in the IV series.
No
Cyclic communication
Connection name
Monitor Data And
External Input
(Monitor/External
input)
Monitor Data (Input
Only)
(Monitor data)
Application type
Exclusive Owner
Input Only
I/O
Assembly
Instance
Size
(bytes)
This unit
Scanner
64H (100)
2 to 392
Scanner
This unit
65H (101)
2 to 12
This unit
Scanner
64H (100)
2 to 392
Scanner
This unit
FEH (254)
RPI
5 to 10000ms
5 to 10000ms
0
When using the Keyence KV series (EtherNet/IP communication scanner), the names of the connections
with the IV 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 pointto-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 IV series, and
vice versa.
yyThis connection type is used when the scanner will not only monitor the data of the IV series but also
provide external input to the IV series.
yyIt is not possible for multiple scanners to open "Exclusive Owner" connections for a single IV series
unit.
[Input Only]
yyThis connection only allows you to configure the data transmission from the IV series to the scanner.
yyThis connection is used when the scanner will only monitor the data of the IV series.
yyMultiple scanners can simultaneously open Input Only connections for a single IV series unit.
yyIf connections will be opened simultaneously from multiple scanners, set the connection type to
Multicast and match the RPI and the size.
3-6
3
The [Connection settings] screen will appear.
Connection name
zz
Select [Monitor/External input] or [Monitor data].
Connection type
zz
Select [Point-to-point] or [Multicast].
3-7
Cyclic communication
Cyclic communication
Click [Details].
The [Register unit device] screen will appear.
3-8
Comm Format
Setting contents
Input Data-INT
Input
100
(Assembly Instance)
Comm Format
zz
You can enter a desired format. Due to the
structure of the assembly object, programming
will be easier with a format that supports a
2-byte alignment.
IP Address
zz
You can enter the IP address of the IV series.
Input (Size)
Output
(Assembly Instance)
254
Output (Size)
Enter 100.
Input (Size)
zz
You can enter the Input Assembly size of the IV
series.
Output (Size)
zz
You can enter the Output Assembly size for the
IV series.
Configuration Size
zz
Enter 0.
3-9
Cyclic communication
Item
Input Assembly are devices that write responses from the IV series to the PLC.
The device map of the data allocated for the Input Assembly is as shown below.
These parameters output the statuses, status results and statistics information of the IV series.
For details of each parameter, refer to
Input Assembly parameter details (Page 3-12).
Cyclic communication
Address
0
Bit7
Bit6
Reserved by system
2
3
4
Bit5
Buffer
clear
response
Bit4
Statistics
reset
response
Bit3
Warning
clear
response
Reserved by system
Reserved by system
Error
Warning
Reserved by system
Ready
RUN
Imaging
status
Buffer
overrun
LOGIC4
Bit2
Bit1
Bit0
Program
switching
response
Master
Trigger
registration
response
response
Program
switching
failed
Master
Trigger
registration
failed
failed
BUSY
Result
update
complete
Result
available
Reserved by system
LOGIC3
LOGIC2
LOGIC1
Position
correction
Overall
judgment
Reserved by system
Tool 8
Tool 7
Tool 6
Tool 5
Tool 4
Tool 3
Tool 2
Tool 1
Tool 16
Tool 15
Tool 14
Tool 13
Tool 12
Tool 11
Tool 10
Tool 9
8-9
10 - 11
12 - 13
14 - 15
16 - 17
18 - 19
20 - 21
22 - 23
24 - 25
26 - 27
28 - 29
30 - 31
Reserved by system
32 - 35
36 - 39
40 - 43
44 - 47
48 - 51
Reserved by system
52 - 53
3-10
Address
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
56 - 57
58 - 59
60 - 71
Reserved by system
72 - 73
74 - 75
76 - 77
78 - 79
80 - 81
82 - 91
Reserved by system
92 - 391
3
Cyclic communication
54 - 55
Bit0
3-11
The Bits at Address 0 of the Input Assembly have the following functions:
Address
Cyclic communication
Bit
Item
Content
Stores the external trigger
response.
Data content
0 : OFF
1 : ON
Trigger response
0 : OFF
1 : ON
Program switching
response
0 : OFF
1 : ON
0 : OFF
1 : ON
0 : OFF
1 : ON
0 : OFF
1 : ON
6 to 7
Reserved by system
---
---
The Bits at Address 1 of the Input Assembly have the following functions:
Address
Bit
Content
Data content
Trigger failed
0 : 1 : Program switching
has failed.
Reserved by system
---
---
3 to 7
3-12
Item
0 : 1 : Master image
registration has failed.
The Bits at Address 2 to 3 of the Input Assembly have the following functions:
Address
Bit
Item
Data content
0 <=> 1:
The statuses will
be switched when
the status result is
updated.
BUSY
Imaging
RUN
Ready
6 to 7
Reserved by system
---
---
0 to 4
Reserved by system
---
---
If handshake control is
0 : No buffer overrun
[Enabled], this bit is output when
has occurred.
1 : The buffer is in
an overrun of the status result
overrun status.
has occurred.
Warning status
Error status
2
2
3-13
3
Cyclic communication
Result available
0 : The status
result cannot be
acquired.
1 : The status result
can be acquired.
Content
3
Cyclic communication
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.
yyBUSY 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
Warning No.
Warning code 1
Warning code 2
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.
3-14
The Bits at Address 4 to 7 of the Input Assembly have the following functions:
Address
Bit
Data content
0 : NG 1 : OK
Position correction
0 : NG 1 : OK
Logic 1
0 : NG 1 : OK
Logic 2
0 : NG 1 : OK
Logic 3
0 : NG 1 : OK
Logic 4
0 : NG 1 : OK
6 to 7
Reserved by system
---
---
0 to 7
Reserved by system
---
---
Tool 1
0 : NG 1 : OK
Tool 2
0 : NG 1 : OK
Tool 3
0 : NG 1 : OK
Tool 4
0 : NG 1 : OK
Tool 5
0 : NG 1 : OK
Tool 6
0 : NG 1 : OK
Tool 7
0 : NG 1 : OK
Tool 8
0 : NG 1 : OK
Tool 9
0 : NG 1 : OK
Tool 10
0 : NG 1 : OK
Tool 11
0 : NG 1 : OK
Tool 12
0 : NG 1 : OK
Tool 13
0 : NG 1 : OK
Tool 14
0 : NG 1 : OK
Tool 15
0 : NG 1 : OK
Tool 16
0 : NG 1 : OK
3
Cyclic communication
Content
Overall judgment
Item
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).
3-15
The Bits at Address 8 to 23 of the Input Assembly have the following functions:
3
Cyclic communication
Address
Data
type*
8 to 9
UINT
Error code
0 to 128
10 to 11
UINT
Warning code
0 to 128
12 to 13
UINT
Number of remaining
buffers
0 to 10
14 to 15
UINT
Checksum
0 to 65535
16 to 17
UINT
0 to 31
18 to 19
UINT
0 to 31
20 to 21
UINT
Result No.
0 to 32767
22 to 23
UINT
Processing time
0 to 10000
Item
Content
Data content
3-16
The Bits at Address 24 to 51 of the Input Assembly have the following functions:
Address
Data
type*
24 to 25
UINT
0 to 10000
26 to 27
UINT
0 to 10000
28 to 29
UINT
30 to 31
---
Reserved by system
---
---
32 to 35
UDINT
Number of triggers
0-999999999
36 to 39
UDINT
Number of OKs
0-999999999
40 to 43
UDINT
Number of NGs
0-999999999
44 to 47
UDINT
0-999999999
48 to 51
---
Reserved by system
---
---
Item
Content
Data content
3
Cyclic communication
3-17
The Bits at Address 52 to 71 of the Input Assembly have the following functions:
3
Cyclic communication
Address
Data
type*
52 to 53
UINT
0 to 100
54 to 55
UINT
0 to 100
56 to 57
UINT
0 to 100
58 to 59
UINT
60 to 71
---
Reserved by system
---
Item
Content
Data content
---
The Bits at Address 72 to 391 of the Input Assembly have the following functions:
Address
Data
type*
72 to 73
UINT
0 to 999
74 to 75
UINT
0 to 999
76 to 77
UINT
0 to 999
78 to 79
UINT
80 to 81
UINT
0 to 999
82 to 91
---
Reserved by system
---
---
Item
Content
Data content
Thereafter, the information of tool 2, 3, ... 16 will be assigned for each 20-byte Address of Input Assembly.
* UINT : Unsigned 16-bit integer
UDINT : Unsigned 32-bit integer
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 tools upper limit value will be
65535.
3-18
0
1
2
Bit7
Bit6
Reserved by system
Bit5
Buffer
clear
request
Bit4
Statistics
reset
request
Bit3
Warning
clear
request
Bit2
Bit1
Program
switching
request
Master
registration
request
Bit0
Trigger
request
Reserved by system
Reserved by system
Reserved by system
4-5
Program No.
6 - 11
Reserved by system
Result
acquisition
complete
notification
3-19
Cyclic communication
Address
The Bits at Address 0 to 1 of the Output Assembly have the following functions:
Address
Cyclic communication
Bit
Item
Content
Requests the external trigger.
Data content
Trigger request
0 : OFF 1 : ON
0 : OFF 1 : ON
Program switching
request
0 : OFF 1 : ON
0 : OFF 1 : ON
0 : OFF 1 : ON
0 : OFF 1 : ON
6 to 7
Reserved by system
---
---
0 to 7
Reserved by system
---
---
3-20
The Bits at Address 2 to 3 of the Output Assembly have the following functions:
Address
2
Item
Content
Data content
Result acquisition
complete notification
0: OFF 1: ON
1 to 7
Reserved by system
---
---
0 to 7
Reserved by system
---
---
The Bits at Address 4 to 11 of the Output Assembly have the following functions:
Address
Data
type
4 to 5
UINT
6 to 11
---
Item
Content
Data content
Program No.
0 to 31
Reserved by system
---
---
3-21
Cyclic communication
Bit
Error
code
0
Cyclic communication
1 - 32
Content
Countermeasure
No error
---
---
Program No. xx
corruption error
75
Non-volatile memory
error
(EEPROM)
76
Non-volatile memory
error
(FLASHROM)
81-128
Cause
System error
If two or more errors are occurring at the same time, the error code of the highest priority error will be
displayed.
Greater the error code, higher the priority of the error will be.
3-22
Content
Cause
Countermeasure
No error
---
---
62
63
External master
registration has been
requested from EtherNet/
IP while the unit is in
Setting status.
65
Trigger error
66
External master
registration error
(Insufficient outline)
67
External master
registration error
(Insufficient area)
68
External master
registration error
(Brightness correction
failed)
64
3-23
Cyclic communication
Warning
code
Content
Cyclic communication
Cause
Countermeasure
70
71
72
73
External master
registration error
(Insufficient work
memory)
74
External master
registration error
(No images)
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
Warning No.
Warning code 1
Warning code 2
yyGreater the warning code, higher the priority of the warning will be.
3-24
MEMO
3
Cyclic communication
3-25
Cyclic communication
Trigger request
Trigger response
BUSY
Imaging status
Result available
Result No.
Overall judgment
(1)
(2)
(3)
(4)
A
Result of A
B
Result of B
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 available] will be reset in the following conditions:
yyIf handshake control is set to [Disabled]
- When the program is switched
- When the units 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.
3-26
Trigger request
Trigger response
B
A
Trigger failed
C
B
Imaging status
Cyclic communication
BUSY
3
C
Result available
Result No.
Overall judgment
A
Result of A
C
Result of C
Warning
Warning No.
Warning No.
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.
3-27
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
Cyclic communication
Trigger response
BUSY
Imaging status
Trigger failed
Result update
complete
Result available
Result acquisition
complete notification
Result No.
Overall judgment
Number of
remaining buffers
10
Result of A
Result of B
8
10
Result of C
9
Program No.
Cyclic communication
BUSY
3-29
Cyclic communication
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.]
Warning code list (Page 3-23).
will be updated according to the failure details. For details, refer to
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 of the setting, refer to the IV Series Users Manual (Monitor /
PC Software).
3-30
4
PROFINET
4-1
4
PROFINET
Overview of PROFINET......................................4-2
PROFINET communication specifications
and functions in the IV series...........................4-3
Overview of PROFINET
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 the existing assets without modifying the legacy system.
4
PROFINET
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 I/O communication for data communications between the I/O controller and I/O device.
The PROFINET communication for the IV 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.
The 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 the 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. The record data communication is used for communication
applications that require little punctuality (unlike the data I/O communication).
The IV series supports the data I/O communication provided by the real-time communications (RT).
PROFINET
communication
I/O controller
High-speed
(Communication cycle:
4* ms)
Normal
(Communication
cycle: 64 * ms)
PROFINET
communication
I/O device
PROFINET
communication
I/O device
PROFINET
communication
I/O device
** If you configure the setting to "auto", the overall communication load will be adjusted and the
SendCycle (Communication cycle) will be set automatically.
4-2
Communication size
to 408 byte
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
PROFINET
communication
I/O Controller
(2) Response
(3) Set the IP address
(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.
4-3
Content
PROFINET
Trigger input
Program switching
Allows you to check the unit status (Imaging, RUN, BUSY, Error).
yyIf you are switching programs using the EtherNet/IP communication, set the [Switching method] option
to [Monitor/PC]. For details of the setting, refer to the IV Series Users Manual (Monitor / Software).
yyIf the external master registration will be executed using the PROFINET communication, set the [Write
to ROM at external master reg.] option to [No]. For details of the setting, refer to the IV Series Users
Manual (Monitor / Software).
4-4
Siemens PLC
PROFINET
communication unit
PLC model
Firmware
version
Software used
Version of the
software used
V2.6 or later
STEP 7
V5.5.0.0 or later
S7 400 series
Example: CPU414-3 PN/DP (Built in the unit)
V5.3 or later
STEP 7
V5.5.0.0 or later
S7 1200 series
Example: CPU1212C
V2.0 or later
STEP 7 Basic
Version V11
Update 1
PROFINET
communication unit
ILC 350 PN
Firmware
version
V 3.53F.13
Software used
PC WORX
Version of the
software used
6.10.56
OMRON PLC
PLC model
SYSMAC CJ2/CJ1
PROFINET
communication unit
CJ1W-PNT21
Firmware
version
V1.04 or later
Software used
CX-One
Version of the
software used
Ver.4.04 or later
4-5
4
PROFINET
S7 300 series
Example: CPU315-2 PN/DP (Built in the unit)
MEMO
4
PROFINET
4-6
5
5-1
5
Data I/O communication
PROFINET
communication
I/O Controller
5
Data I/O communication
Input Area
Output data
yyStatus result
yyControl/status/error result
yyStatistics information
yyTool information
Output Area
yyTrigger control
yyExternal master image
registration control
yyProgram switching control
yyHandshake control
yyStatus result
yyControl/status/error result
yyStatistics information
yyTool information
SendCycle
(Communication
cycle)
Input data
yyTrigger control
yyExternal master image
registration control
yyProgram switching control
yyHandshake control
yyCommunication settings for the 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 the 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.
5-2
network.
5-3
5
Data I/O communication
5-4
Device name
zz
Displays the name of the sensor.
To rename a sensor, click the [Rename device]
button and enter a desired name on the device
name screen.
You can assign a desired name to and manage
the sensor.
5-5
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) Se the I/O device to be used for the data I/O communication.
For details of the setting, Refer to the instruction manual of each PLC.
5
Data I/O communication
To start a data I/O communication, you need to create a communication path called AR (Application
Relation) and establish a real-time communication between the I/O controller and the I/O device . When
you create the AR, separate communication channels for data I/O and record data communications will be
set up. These communication channels are called CR (Communication Relation).
The communication is started in the following procedure:
(1) The I/O controller requests an AR connection to the I/O device.
(2) A response is returned from the I/O device, establishing a real-time communication.
(3) A connection will open if no error is encountered in the compatibility check.
PROFINET
communication
I/O Controller
yyCommunication settings for the 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 the 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.
5-6
5
Data I/O communication
5-7
5
Data I/O communication
5-8
5-9
5
Data I/O communication
5-10
5-11
7 Set the IP address and subnet mask of the 10 Install the GSDML file if you are
CPU, and then click the [New] button.
5
Data I/O communication
5-12
5
Data I/O communication
5-13
5-14
MEMO
5
Data I/O communication
5-15
Control Modules are modules that write instructions from the PLC to the IV series.
The device map of the data allocated for the Control Modules is as shown below.
These parameters are responsible for the control instructions for the IV series, clearing of warnings and
handshake control.
For details of each parameter, refer to
Control Modules parameter details (Page 5-20).
Command Control
Slot No.: 1
Module size: 12 bytes
Address
0
1
2
Bit7
Bit6
Reserved by system
Bit5
Buffer
clear
request
Bit4
Statistics
reset
request
Bit3
Warning
clear
request
Program
switching
request
Bit1
Bit0
Master
Trigger
registration
request
request
Reserved by system
Reserved by system
Reserved by system
4-5
Program No.
6 - 11
Reserved by system
5-16
Bit2
Result
acquisition
complete
notification
Slot No.: 2
Module size: 4 bytes
Address
Bit6
Reserved by system
2
3
Bit5
Bit4
Bit3
Bit2
Buffer
clear
response
Statistics
reset
response
Warning
clear
response
Program
switching
response
Master
Trigger
registration
response
response
Program
switching
failed
Master
Trigger
registration
failed
failed
BUSY
Result
update
complete
Reserved by system
Reserved by system
Error
Warning
Ready
RUN
Buffer
overrun
Imaging
status
Bit1
Bit0
Result
available
Reserved by system
Slot No.: 3
Module size: 4 bytes
Address
0
Bit7
Bit6
Reserved by system
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0
LOGIC4
LOGIC3
LOGIC2
LOGIC1
Position
correction
Overall
judgment
Reserved by system
Tool 8
Tool 7
Tool 6
Tool 5
Tool 4
Tool 3
Tool 2
Tool 1
Tool 16
Tool 15
Tool 14
Tool 13
Tool 12
Tool 11
Tool 10
Tool 9
5-17
5
Data I/O communication
Bit7
Slot No.: 4
Module size: 16 bytes
Address
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
0-1
2-3
4-5
6-7
8-9
10 - 11
12 - 13
14 - 15
Bit1
Bit0
Bit1
Bit0
Device Statistics
Slot No.: 5
Module size: 28 bytes
Address
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
0-1
2-3
4-5
6-7
Reserved by system
8 - 11
12 - 15
16 - 19
20 - 23
24 - 27
Reserved by system
5-18
Slot No.: 6
Module size: 20 bytes
Address
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
2-3
4-5
6-7
8 - 19
Reserved by system
Tool Result
Slot No.: 7 to 22
Module size: 20 bytes
Address
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
0-1
2-3
4-5
6-7
8-9
10 - 19
Reserved by system
Bit1
5
Data I/O communication
0-1
Bit0
Bit0
5-19
The Bits at Address 0 to 1 of the Command Control have the following functions:
Address
5
Data I/O communication
Bit
Item
Content
Requests the external trigger.
Data content
0 : OFF
1 : ON
Trigger request
0 : OFF
1 : ON
Program switching
request
0 : OFF
1 : ON
0 : OFF
1 : ON
0 : OFF
1 : ON
0 : OFF
1 : ON
6 to 7
Reserved by system
---
---
0 to 7
Reserved by system
---
---
5-20
The Bits at Address 2 to 3 of the Command Control have the following functions:
Address
2
3
Bit
Item
Content
Data content
Result acquisition
complete notification
0 : OFF
1 : ON
1 to 7
Reserved by system
---
---
0 to 7
Reserved by system
---
---
The Bits at Address 4 to 11 of the Command Control have the following functions:
Address
Bit
4 to 5
UINT
6 to 11
---
Item
Content
Data content
Program No.
0 to 31
Reserved by system
---
---
5-21
5
Data I/O communication
The Bits at Address 0 of the Command Status Bits have the following functions:
Address
5
Data I/O communication
Bit
Item
Content
Stores the external trigger
response.
Data content
0 : OFF
1 : ON
Trigger response
0 : OFF
1 : ON
Program switching
response
0 : OFF
1 : ON
0 : OFF
1 : ON
0 : OFF
1 : ON
0 : OFF
1 : ON
6 to 7
Reserved by system
---
---
The Bits at Address 1 of the Command Status Bits have the following functions:
Address
Bit
Content
Data content
Trigger failed
0 : 1 : Program switching
has failed.
Reserved by system
---
---
3 to 7
5-22
Item
0 : 1 : Master image
registration has
failed.
The Bits at Address 2 to 3 of the Command Status Bits have the following functions:
Address
Bit
Item
Data content
Result available
0 <=> 1:
The statuses will
be switched when
the status result is
updated.
BUSY
Imaging
RUN
Ready
6 to 7
Reserved by system
---
---
0 to 4
Reserved by system
---
---
Warning status
Error status
5-23
Content
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.
yyBUSY 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 the 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
Warning No.
Warning code 1
Warning code 2
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.
5-24
The Bits at Address 0 to 3 of the Device Results Bits have the following functions:
Address
Item
Content
Data content
Overall judgment
0 : NG 1 : OK
Position correction
0 : NG 1 : OK
Logic 1
0 : NG 1 : OK
Logic 2
0 : NG 1 : OK
Logic 3
0 : NG 1 : OK
Logic 4
0 : NG 1 : OK
6 to 7
Reserved by system
---
---
0 to 7
Reserved by system
---
---
Tool 1
0 : NG 1 : OK
Tool 2
0 : NG 1 : OK
Tool 3
0 : NG 1 : OK
Tool 4
0 : NG 1 : OK
Tool 5
0 : NG 1 : OK
Tool 6
0 : NG 1 : OK
Tool 7
0 : NG 1 : OK
Tool 8
0 : NG 1 : OK
Tool 9
0 : NG 1 : OK
Tool 10
0 : NG 1 : OK
Tool 11
0 : NG 1 : OK
Tool 12
0 : NG 1 : OK
Tool 13
0 : NG 1 : OK
Tool 14
0 : NG 1 : OK
Tool 15
0 : NG 1 : OK
Tool 16
0 : NG 1 : OK
5
Data I/O communication
Bit
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).
5-25
The Bits at Address 0 to 15 of the Device Status Words have the following functions:
5
Data I/O communication
Address
Data
type*
0 to 1
WORD
Error code
0 to 128
2 to 3
WORD
Warning code
0 to 128
4 to 5
WORD
Number of remaining
buffers
0 to 10
6 to 7
WORD
Checksum
0 to 65535
8 to 9
WORD
0 to 31
10 to 11
WORD
0 to 31
12 to 13
WORD
Result No.
0 to 32767
14 to 15
WORD
Processing time
0 to 10000
Item
Content
Data content
5-26
The Bits at Address 0 to 27 of the Device Statistics have the following functions:
Address
Data
type*
0 to 1
WORD
0 to 10000
2 to 3
WORD
0 to 10000
4 to 5
WORD
6 to 7
---
Reserved by system
---
---
8 to 11
DWORD
Number of triggers
0-999999999
12 to 15
DWORD
Number of OKs
0-999999999
16 to 19
DWORD
Number of NGs
0-999999999
20 to 23
DWORD
0-999999999
24 to 27
---
Reserved by system
---
---
Item
Content
Data content
5
Data I/O communication
* WORD :
Unsigned 16-bit integer
DWORD : Unsigned 32-bit integer
yyThe unit of processing time is msec.
yyThe maximum number of triggers is 999999999. If the maximum value is exceeded, it will go back to 0
and start counting up again.
yyThe maximum value for the number of OK triggers, number of NG triggers, and the number of trigger
errors is 999999999. The value will stop updating when the upper limit value is reached.
yyA reset will occur in the following conditions:
yyWhen [Statistics reset] is input
yyWhen a tool is added/deleted/copied
yyWhen the enable/disable status of the upper threshold value for the color area/area tool or the
setting scale has been changed via user operation or tool auto-tuning
yyWhen a tool auto-tuning is started with two or more tools other than the position correction tool set
yyWhen the sensor is switched OFF
yyWhen the program is switched
yyWhen a correction for the sensor is started
yyWhen the sensor is initialized
5-27
The Bits at Address 0 to 19 of the Position Adjust Result have the following functions:
5
Data I/O communication
Address
Data
type*
0 to 1
WORD
2 to 3
WORD
4 to 5
WORD
6 to 7
WORD
8 to 19
---
* WORD :
DWORD :
Item
Content
Stores the matching rate of the
position correction tool.
Stores the maximum matching
rate value of the position
correction tool.
Stores the minimum matching
rate value of the position
correction tool.
Stores the threshold value of the
position correction tool.
---
Data content
0 to 100
0 to 100
0 to 100
0 to 100
---
Maximum and minimum matching rate values of the position correction tool will be reset in the same
manner as the statistics information.
The Bits at Address 0 to 19 of the Tool Result have the following functions:
Address
Data
type*
0 to 1
WORD
2 to 3
WORD
4 to 5
WORD
6 to 7
WORD
8 to 9
WORD
10 to 19
---
Item
Content
Data content
0 to 999
0 to 999
0 to 999
0 to 999
---
* WORD :
Unsigned 16-bit integer
DWORD : Unsigned 32-bit integer
Thereafter, the information of tool 2, 3, ... 16 will be assigned for each 20-byte Address of Tool Result.
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 tools upper limit value will be 65535.
5-28
1 - 32
Content
Countermeasure
---
---
Program No. xx
corruption error
Non-volatile memory
error (EEPROM)
76
Non-volatile memory
error (FLASHROM)
System error
yyIf two or more errors are occurring at the same time, the error code of the highest priority error will be
displayed.
yyGreater the error code, higher the priority of the error will be.
5-29
5
Data I/O communication
No error
75
81-128
Cause
Content
Cause
Countermeasure
No error
---
---
62
63
65
Trigger error
66
External master
registration error
(Insufficient outline)
67
External master
registration error
(Insufficient area)
68
External master
registration error
(Brightness correction
failed)
64
5-30
Warning
code
Content
Cause
Countermeasure
70
71
73
External master
registration error
(Insufficient work
memory)
74
External master
registration error
(No images)
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
Warning No.
Warning code 1
Warning code 2
yyGreater the warning code, higher the priority of the warning will be.
5-31
72
Reading out the overall status result of the IV series (Handshake control
[Disabled])
When a trigger is successful
Trigger request
Trigger response
BUSY
Imaging status
Result available
Result No.
Overall judgment
(1)
(2)
(3)
(4)
A
Result of A
B
Result of B
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 available] will be reset in the following conditions:
yyIf handshake control is set to [Disabled]
- When the program is switched
- When the units 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 data I/O cycle
setting.
yy[BUSY] and [Imaging] may be skipped in some data I/O cycle settings. It is therefore necessary to take
the imaging condition into consideration when setting the data I/O cycle.
5-32
Trigger request
Trigger response
B
A
Trigger failed
C
B
BUSY
Imaging status
Result available
Overall judgment
A
Result of A
C
Result of C
Warning
Warning No.
Warning No.
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 in some data I/O cycle settings. 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.
5-33
Result No.
Reading out the overall status result of the IV series (Handshake control
[Enabled])
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
Trigger response
BUSY
Imaging status
Trigger failed
5
Data I/O communication
Result update
complete
Result available
Result acquisition
complete
notification
Result No.
Overall judgment
Number of
remaining buffers
10
Result of A
Result of B
8
10
Result of C
9
5-34
Program No.
5-35
5
Data I/O communication
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.]
Warning code list (Page 5-30).
will be updated according to the failure details. For details, refer to
yyYou cannot register a master image from the PROFINET 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 of the setting, refer to the IV Series Users Manual (Monitor /
PC Software).
5-36
Appendices
A-1
Trigger response
Trigger request
Line 1
Trigger request
Line 2
Result available
Result update
complete
MOV
Tool score
Line 3
DM2000
Result update
complete
Line 4
Line 1/Line 2
zz
Sets REQ to ON and executes a trigger request.
Trigger response ON will set Trigger request to OFF (Trigger request is retained until Trigger
response is set to ON).
Line 3/Line 4
zz
Result available ON + Rising or falling of Result update complete will copy the data that have been
written to the tool score to DM2000.
A-2
REQ
Trigger
ONS
Rung0
Trigger
Result Ready
Complete Toggle
ONS
Rung1
MOV
Move
Source
Dest
Tool Score
Result
Complete Toggle
ONS
Rung0
zz
Sets REQ to ON and executes Trigger.
Trigger Ack ON will set Trigger to OFF (Trigger will be retained until Trigger Ack becomes ON).
Rung1
zz
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.
A-3
Trigger response
Trigger request
Line 1
Trigger request
Line 2
MOV
Result available
Tool score
Line 3
Result available
Result available
DM2000
Result acquisition
complete notification
Line 4
Result acquisition
complete notification
Line 5
Line 1/Line 2
zz
Sets REQ to ON and executes a trigger request.
Trigger response ON will set Trigger request to OFF (Trigger request is retained until Trigger
response is set to ON).
Line 3
zz
The result available bit becomes ON to copy the data written in the tool score to DM2000.
Line 4/Line 5
zz
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).
A-4
REQ
Trigger
ONS
Rung0
Trigger
MOV
Move
Source
Dest
Result Ready
ONS
Rung1
Result Ready
Result Ready
Tool Score
Result
ONS
Rung2
Rung0
zz
Sets REQ to ON and executes Trigger.
Trigger Ack ON will set Trigger to OFF (Trigger will be retained until Trigger Ack becomes ON).
Rung1
zz
Result Ready ON will copy the data written in Tool Score to Result.
Rung2
zz
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.
A-5
Program switching
Keyence KV series
REQ
MOV
DM1000
Line 1
Program switching
response
REQ
Program No.
Program switching
request
Line 2
Program switching
request
Line 3
Line 1
zz
This line sets REQ to ON and copies the DM1000 data, which contains the program No. to be set, to the
program No.
Line 2/Line 3
zz
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).
A-6
REQ
ONS
Rung0
REQ
Number
Program Number
Program Change
ONS
Rung1
Program Change
A
Description of the reference program
Rung0
zz
This line sets REQ to ON and copies the Number data, which contains the program No. to be set, to the
program No.
Rung1
zz
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).
A-7
REQ
P
Trigger Ack
Trigger
Trigger
Result Ready
Network2
MOV
Complete Toggle
P
EN
Tool Score
IN
ENO
OUT
Result
Complete Toggle
N
Network1
zz
Sets REQ to ON and executes Trigger.
Trigger Ack ON will set Trigger to OFF (Trigger will be retained until Trigger Ack becomes ON).
Network2
zz
Result Ready ON + Rising or falling of Complete Toggle will copy the data that have been written to Tool
Score to Result.
A-8
REQ
P
Trigger Ack
Trigger
Trigger
Network2
MOV
Result Ready
P
EN
Tool Score
Network3
Result Ready
P
Result Ready
IN
ENO
OUT
Result
Network1
zz
Sets REQ to ON and executes Trigger.
Trigger Ack ON will set Trigger to OFF (Trigger will be retained until Trigger Ack becomes ON).
Network2
zz
Result Ready ON will copy the data written in Tool Score to Result.
Network3
zz
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).
A-9
Program switching
Siemens PLC
Network1
MOV
REQ
P
EN
Number
Network2
REQ
P
IN
ENO
OUT
Program Number
Program Change
Program Change
Network1
zz
This line sets REQ to ON and copies the Number data, which contains the program No. to be set, to the
program No.
Network2
zz
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).
A-10
MEMO
A-11
Index
Index
B
C
Connecting the host device and
multiple sensors...................................................1-3
Connecting the host device and single sensor.....1-2
Control Modules parameter details....................5-20
Control Modules (PLC IV series)...................5-16
Cyclic communication...........................................3-2
Cyclic communication setting method..................3-3
D
Data allocation in the cyclic communication.......3-10
Data allocations in the data I/O communication....5-16
Data I/O communication.......................................5-2
Data I/O communication setting method..............5-3
E
Error code list........................................... 3-22, 5-29
Establishing the connection..................................3-5
Establishing the data I/O communication.............5-6
EtherNet/IP...........................................................2-2
Ethernet/IP communications functions in
the IV series.........................................................2-3
EtherNet/IP communication specifications and
functions in the IV series......................................2-3
EtherNet/IP communication specifications in
the IV series.........................................................2-3
H
Handshake control [Disabled]......................A-2, A-8
Handshake control [Enabled].......................A-4, A-9
P
Phoenix Contact PLC...........................................4-5
PLC settings................................................. 3-5, 5-6
PROFINET...........................................................4-2
PROFINET communication functions in
the IV series.........................................................4-4
PROFINET communication specifications and
functions in the IV series......................................4-3
Program switching......................................A-6, A-10
R
Reading out the overall status results of
the IV series
(Handshake control [Disabled])................ 3-26, 5-32
Reading out the overall status results of
the IV series
(Handshake control [Enabled])................. 3-28, 5-34
Reference program (EtherNet/IP)....................... A-2
Reference program (PROFINET)........................ A-8
Registering a master image for
the IV series externally............................. 3-30, 5-36
Rockwell Automation Control Logix series
settings.................................................................3-8
Rockwell Automation PLC....................................2-4
I
Input Assembly (IV series PLC).....................3-10
Input Assembly parameter details......................3-12
IV Series...............................................................1-4
IV series PROFINET communication
specifications........................................................4-3
K
Keyence KV series settings..................................3-7
Keyence PLC.......................................................2-4
A-12
Index
T
Tool Result Modules (IV series PLC)..............5-19
W
Warning code list...................................... 3-23, 5-30
What is cyclic communication?............................3-2
What is data I/O communication?........................5-2
What is EtherNet/IP?............................................2-2
What is PROFINET?............................................4-2
A-13
Revision history
Revision history Edition number
December, 2012
1st edition
December, 2013
2nd edition
April, 2014
3rd edition
Revision details
E 1101-3
2012