You are on page 1of 134

521GB

1 Getting Started

Ultra Compact Vision Sensor 2 EtherNet/IP

IV-HG Series 3 Cyclic communication

Vision Sensor 4 PROFINET

IV-H Series 5 Data I/O communication

A Reference program
User’s Manual
(Field Network)
Read this manual before use.
After you read this manual, keep it in a safe place for future
reference.
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.

It indicates a hazardous situation which, if not avoided, will result


in death or serious injury.

It indicates a hazardous situation which, if not avoided, could


result in death or serious injury.

It indicates a hazardous situation which, if not avoided, could


result in minor or moderate injury.

It indicates a situation which, if not avoided, could result in


product damage as well as property damage.

It indicates cautions and limitations that must be followed during operation.

It indicates additional information on proper operation.

It indicates tips for better understanding or useful information.

It 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 for IV-H/IV-HG Series

Safety Information for IV-H/IV-HG Series

General Precautions

yyDo not use this product for the purpose to protect a human body or a part of human body.
yyThis product is not intended for use as an explosion-proof product. Do not use this product in
hazardous location and/or potentially explosive atmosphere.

yyYou must verify that the IV-H/IV-HG Series are operating correctly in terms of functionality and
performance before the start and the operation of the IV-H/IV-HG 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-H/IV-HG Series if it is used
in manner that differs from the IV-H/IV-HG Series specifications contained in this instruction
manual or if the IV-H/IV-HG Series are modified by yourself.
yyWhen the IV-H/IV-HG 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.

521GB 1
Important Instructions

Important Instructions
Observe the following precautions to prevent malfunction of the IV-H/IV-HG 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.

Measures to be taken when an abnormality occurs

In the following cases, turn the power OFF immediately. Using the IV-H/IV-HG Series in an
abnormal condition could cause fire, electric shock, or malfunction.
Contact our office for repair.
yyIf water or debris enters the IV-H/IV-HG Series.
yyIf the IV-H/IV-HG Series is dropped or the case is damaged.
yyIf abnormal smoke or odor emanates from the IV-H/IV-HG Series.

2 - IV-H/IV-HG Series User’s Manual (Field Network) -


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.
yyGround the FG 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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3


Precautions on Regulations and Standards

Precautions on Regulations and Standards

UL Certification

For IV-HG500CA/IV-HG500MA/IV-HG150MA/IV-HG300CA/IV-HG600MA/IV-HG10/IV-HG15
This product is a UL/C-UL Listed product.
yyUL File No. E301717
yyCategory NRKH2, NRKH8

Be sure to consider the following specifications when using this product as a UL/C-UL Listed Product.
yyUse a power supply with Class 2 output defined in NFPA70 (NEC: National Electrical Code).
yyPower supply/External input/Control output shall be connected to a single Class 2 source only.
yyUse copper wire of AWG 16 to 18 (stranded wire) whose temperature rating is 60 ºC or higher for the
power terminal block.
yyEnclosure Type 1 (Based on UL50)
yyUse under pollution level 2.

For IV-H500CA/IV-H500MA/IV-H150MA/IV-H2000MA
This product is a UL/C-UL Listed product.
yyUL File No. E301717
yyCategory NRKH, NRKH7

Be sure to consider the following specifications when using this product as a UL/C-UL Listed Product.
yyUse a power supply with Class 2 output defined in NFPA70 (NEC: National Electrical Code).
yyPower supply/External input/Control output shall be connected to a single Class 2 source only.
yyUse with an over current protection device which is rated 24 V or more and not more than 1A.
yyEnclosure Type 1 (Based on UL50)
yyUse under pollution level 2.

4 - IV-H/IV-HG Series User’s Manual (Field Network) -


Precautions on Regulations and Standards

CE Marking

For IV-HG500CA/IV-HG500MA/IV-HG150MA/IV-HG300CA/IV-HG600MA/IV-HG10/
IV-HG15/IV-H500CA/IV-H500MA/IV-H150MA/IV-H2000MA
Keyence Corporation has confirmed that this product complies with the essential requirements of
the applicable EU Directive, based on the following specifications. Be sure to consider the following
specifications when using this product in the Member State of European Union.
zz
EMC Directive
yyApplicable Standard EN60947-5-2
yyThe length of power I/O cable, Ethernet cable and Monitor cable must be less than or equal to 30m.

Remarks:
These specifications do not give any guarantee that the end-product with this product incorporated
complies with the essential requirements of EMC Directive. The manufacturer of the end-product is solely
responsible for the compliance on the end-product itself according to EMC Directive.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5


Version of the IV-H/IV-HG Series

Version of the IV-H/IV-HG Series

You can download the most recent operation software for the sensor (IV-H150/500/2000, IV-HG150/500/300/600)
and IV-Navigator (IV-H1) from the KEYENCE web site.
Please refer to the description on the homepage for the introduction method.
URL : http://www.keyence.com/

Supported versions
Version 5.00.00 or later is the version of this document.

6 - IV-H/IV-HG Series User’s Manual (Field Network) -


Structure of This Manual

Structure of This Manual

1 Getting Started
This chapter explains the system configurations and
overview of IV-H/IV-HG Series. 1

2 EtherNet/IP
This chapter describes the overview of EtherNet/IP and
the communication specifications and functions of
2
the EtherNet/IP communication in the IV-H/IV-HG Series.

This chapter describes the overview, setting method, data 3


3 Cyclic communication allocation, and operating procedure of
the cyclic communication in the EtherNet/IP communication.
4
This chapter describes the overview of PROFINET and
4 PROFINET the communication specifications and functions of
the PROFINET communication in the IV-H/IV-HG Series. 5
This chapter describes the overview, setting method, data
5 Data I/O communication allocation, and operating procedure of A
the data I/O communication in the PROFINET communication.

A Reference program This chapter explains Reference program, etc.

- IV-H/IV-HG Series User’s Manual (Field Network) - 7


Contents

Contents

Introduction
Symbols Chapter 2 EtherNet/IP
Cautions Overview of EtherNet/IP.......................................2-2
Safety Information for IV-H/IV-HG Series................1 What is EtherNet/IP?........................................2-2
General Precautions............................................1 EtherNet/IP communication specifications
Important Instructions..............................................2 and functions in the IV-H/IV-HG Series................2-3
Precautions on use..............................................2 EtherNet/IP communication specifications
Measures to be taken when an abnormality in the IV-H/IV-HG Series...................................2-3
occurs..................................................................2 Overview of the EtherNet/IP communications
Precautions on installation...................................3 functions in the IV-H/IV-HG Series....................2-3
Precautions on Regulations and Standards............4 List of supported PLCs......................................2-4
UL Certification.....................................................4 Keyence PLC.................................................2-4
For IV-HG500CA/IV-HG500MA/ „„ KV series...............................................2-4
IV-HG150MA/IV-HG300CA/IV-HG600MA/ Rockwell Automation PLC.............................2-4
IV-HG10/IV-HG15.............................................4 OMRON PLC.................................................2-4
For IV-H500CA/IV-H500MA/IV-H150MA/
IV-H2000MA.....................................................4
CE Marking..........................................................5
Chapter 3 Cyclic communication
For IV-HG500CA/IV-HG500MA/ Overview of the cyclic communication.................3-2
IV-HG150MA/IV-HG300CA/IV-HG600MA/ What is cyclic communication?.........................3-2
IV-HG10/IV-HG15/IV-H500CA/IV-H500MA/ Cyclic communication setting method..................3-3
IV-H150MA/IV-H2000MA..................................5 Setting the IV-H/IV-HG Series...........................3-3
Version of the IV-H/IV-HG Series............................6 When settings on the monitor (IV-M30).........3-3
Supported versions ..........................................6 When setting by IV-Navigator (IV-H1)............3-4
Structure of This Manual.........................................7 PLC settings......................................................3-6
Contents..................................................................8 Establishing the connection...........................3-6
Keyence KV series settings...........................3-8
Chapter 1 Getting Started Rockwell Automation Control Logix series
settings..........................................................3-9
System Configuration...........................................1-2 Data allocation in the cyclic communication.......3-11
Basic configurations of IV-H/IV-HG Series........1-2 Input Assembly (IV-H/IV-HG Series → PLC)...3-11
Connecting the host device Input Assembly parameter details...................3-13
and single sensor (IV-H Series).....................1-2 „„ Input Assembly Address 0:
Connecting the host device Control result (response).....................3-13
and single sensor (IV-HG Series)..................1-3 „„ Input Assembly Address 1:
Connecting the host device Control error result...............................3-13
and multiple sensors......................................1-4 „„ Input Assembly Address 2 to 3:
Overview of IV-H/IV-HG Series............................1-5 Handshake control/status/
IV-H/IV-HG Series.............................................1-5 error result...........................................3-14
System configuration example......................1-5 „„ Input Assembly Address 4 to 7:
Operation of the indicator light.......................1-6 Status result.........................................3-16
„„ IV-H Series: Operation „„ Input Assembly Address 8 to 23:
of the sensor indicator light....................1-6 Error/status/status result information...3-17
„„ IV-HG Series: Operation „„ Input Assembly Address 24 to 51:
of the sensor head indicator light...........1-7 Statistics information............................3-18
„„ IV-HG Series: Operation „„ Input Assembly Address 52 to 71:
of the sensor amplifier indicator light.....1-7 Position correction information............3-19
„„ Input Assembly Address 72 to 391:
Tool information
(other than OCR tool)..........................3-20
„„ Input Assembly Address 72 to 391:
Tool information (for the OCR tool)......3-21

8 - IV-H/IV-HG Series User’s Manual (Field Network) -


Contents

Output Assembly
(PLC → IV-H/IV-HG Series)............................3-22 Chapter 5 Data I/O communication
Output Assembly parameter details................3-23 Overview of the data I/O communication.............5-2
„„ Output Assembly Address 0 to 1: What is data I/O communication?.....................5-2
Control request....................................3-23 Data I/O communication setting method..............5-3
„„ Output Assembly Address 2 to 3: Setting the IV-H/IV-HG Series...........................5-3
Handshake control...............................3-23 When settings on the monitor (IV-M30).........5-3
„„ Output Assembly Address 4 to 5: When setting by IV-Navigator (IV-H1)............5-4
Program No.........................................3-24 Setting the device name...................................5-6
„„ Output Assembly Address 6 to 11: When settings on the monitor (IV-M30).........5-6
Threshold When setting by IV-Navigator (IV-H1)............5-6
(for a tool other than the OCR tool).....3-24 PLC settings......................................................5-7
„„ Output Assembly Address 6 to 11: Establishing the data I/O communication......5-7
Master text (for the OCR tool)..............3-25 Setting the Siemens TIA Portal......................5-8
Error code list..................................................3-27 Setting the Siemens SIMATIC Manager......5-12
Warning code list.............................................3-28 Data allocations
Operating procedure in the data I/O communication............................5-16
of the cyclic communication...............................3-31 Control Modules
Reading out the overall status result/ (PLC → IV-H/IV-HG Series)............................5-16
each tool’s status result „„ Command Control................................5-16
(Handshake control [Disabled]).......................3-31 Status Modules
„„ When a trigger is successful................3-31 (IV-H/IV-HG Series → PLC)............................5-17
„„ When a trigger is unsuccessful............3-32 „„ Command Status Bits..........................5-17
Reading out the overall status result/ „„ Device Result Bits................................5-17
each tool’s status result „„ Device Status Words...........................5-18
(Handshake control [Enabled]).......................3-33 „„ Device Statistics..................................5-18
Switching the programs..................................3-34 Tool Result Modules
Changing the tool adjustment threshold.........3-35 (IV-H/IV-HG Series→ PLC).............................5-19
Changing the master text................................3-36 „„ Position Adjust Result..........................5-19
Registering a master image externally............3-38 „„ Tool Result (other than OCR tool)........5-19
„„ Tool Result (for the OCR tool)..............5-20
Chapter 4 PROFINET Control Modules parameter details.................5-21
Overview of PROFINET.......................................4-2
„„ Command Control Address 0 to 1:
Control request....................................5-21
What is PROFINET?.........................................4-2 „„ Command Control Address 2 to 3:
PROFINET communication specifications Handshake control...............................5-22
and functions in the IV-H/IV-HG Series................4-3 „„ Command Control Address 4 to 5:
IV-H/IV-HG Series Program No.........................................5-22
PROFINET communication specifications........4-3 „„ Command Control Address 6 to 11:
Specifying the IP address Threshold
using the DCP protocol.....................................4-3 (for a tool other than the OCR tool).....5-23
Overview of the PROFINET communication „„ Command Control Address 6 to 11:
functions in the IV-H/IV-HG Series....................4-4 Master text (for the OCR tool)..............5-24
List of supported PLCs......................................4-5 Status Modules parameter details..................5-26
Siemens PLC.................................................4-5 „„ Command Status Bits Address 0:
Phoenix Contact PLC....................................4-5 Control result (response).....................5-26
OMRON PLC.................................................4-5 „„ Command Status Bits Address 1:
Control error result...............................5-26
„„ Command Status Bits Address 2 to 3:
Handshake control/status/
error result...........................................5-27
„„ Device Results Bits Address 0 to 3:
Status result.........................................5-29
„„ Device Status Words Address 0 to 15:
Error/status/
status result information.......................5-30
„„ Device Statistics Address 0 to 27
(Statistics information).........................5-31

- IV-H/IV-HG Series User’s Manual (Field Network) - 9


Contents

Tool Result Modules parameter details...........5-32


„„ Position Adjust Appendices
Result Address 0 to 19 Reference program (EtherNet/IP)....................... A-2
(Position correction information)..........5-32 Handshake control [Disabled].......................... A-2
„„ Tool Result Address 0 to 19 Keyence KV series....................................... A-2
(Tool information : „„ Description of the reference program... A-2
other than OCR tool)............................5-33 Rockwell Automation PLC............................ A-3
„„ Tool Result Address 0 to 319 „„ Description of the reference program... A-3
(Tool information: for the OCR tool).....5-34 Handshake control [Enabled]........................... A-4
Error code list..................................................5-35 Keyence KV series....................................... A-4
Warning code list.............................................5-36 „„ Description of the reference program... A-4
Operating procedure Rockwell Automation PLC............................ A-5
of the data I/O communication...........................5-39 „„ Description of the reference program... A-5
Reading out the overall status result/ Program switching........................................... A-6
each tool’s status result Keyence KV series....................................... A-6
(Handshake control [Disabled]).......................5-39 „„ Description of the reference program... A-6
„„ When a trigger is successful................5-39 Rockwell Automation PLC............................ A-7
„„ When a trigger is unsuccessful............5-40 „„ Description of the reference program... A-7
Reading out the overall status result/ Changing adjustment threshold....................... A-8
each tool’s status result Keyence KV series...................................... A-8
(Handshake control [Enabled]).......................5-41 „„ Description of the reference program... A-8
Switching the programs..................................5-42 Rockwell Automation PLC............................ A-9
Changing the tool adjustment threshold.........5-43 „„ Description of the reference program... A-9
Changing the master text................................5-44 Reference program (PROFINET)...................... A-10
Registering a master image externally............5-46 Handshake control [Disabled]........................ A-10
Siemens PLC.............................................. A-10
„„ Description of the reference program.A-10
Handshake control [Enabled]......................... A-11
Siemens PLC.............................................. A-11
„„ Description of the reference program. A-11
Program switching......................................... A-12
Siemens PLC.............................................. A-12
„„ Description of the reference program.A-12
Changing adjustment threshold..................... A-13
Siemens PLC.............................................. A-13
„„ Description of the reference program.A-13
Index.................................................................. A-14

10 - IV-H/IV-HG Series User’s Manual (Field Network) -


1 
This chapter explains the system configurations 1
and overview of IV-H/IV-HG Series.
Getting Started

Getting Started
System Configuration........................................1-2
Overview of IV-H/IV-HG Series..........................1-5

- IV-H/IV-HG Series User’s Manual (Field Network) - 1-1


System Configuration

System Configuration

1 Basic configurations of IV-H/IV-HG Series


Getting Started

Connecting the host device and single sensor (IV-H Series)

In addition to the status result


Host device such as PLC import, the trigger control and
switching of the set program
number can be performed with
the control output.

IV-H Series

Ethernet cable
OP-87907 (1 m)
OP-87457 (2 m)
OP-87458 (5 m)
OP-87459 (10 m)
OP-88042 (1m:L-type)
OP-88043 (2m:L-type)
OP-88044 (5m:L-type)
OP-88045 (10m:L-type) PC software for
IV-H/IV-HG Series (IV-H1)

Power I/O cable


OP-87440 (2 m)
OP-87441 (5 m)
Sensor OP-87442 (10 m)
IV-H500CA OP-88036 (2m:L-type)
IV-H500MA OP-88037 (5m:L-type)
OP-88038 (10m:L-type)
IV-H150MA
IV-H2000MA (Optional)
Dome attachment
IV-D10
Polarizing filter attachment
OP-87436/OP-87437

24 V DC power

Photoelectric/ Indicator light/buzzer


proximity sensor etc. etc.
Sends the signal to the Alarm can be output
trigger input when the by the status output
target is detected. function.

1-2 - IV-H/IV-HG Series User’s Manual (Field Network) -


System Configuration

Connecting the host device and single sensor (IV-HG Series)


1

Getting Started
In addition to the status result
Host device such as PLC import, the trigger control and
switching of the set program
number can be performed with
the control output.
IV-HG Series

Ethernet cable
OP-87950 (1m)
OP-87951 (3m)
OP-87952 (5m)
OP-87953 (10m)

PC software for
IV-H/IV-HG Series (IV-H1)

Sensor amplifier (Main)


IV-HG10
Sensor Head
IV-HG500CA
IV-HG500MA
IV-HG150MA
IV-HG300CA
IV-HG600MA

I/O cable for IV-HG Series


IV-HG Series OP-87906

24 V DC power

Photoelectric/ Indicator light/buzzer etc.


proximity sensor etc. Alarm can be output
Sends the signal to the by the status output
trigger input when the function.
target is detected.

- IV-H/IV-HG Series User’s Manual (Field Network) - 1-3


System Configuration

1 Connecting the host device and multiple sensors


Getting Started

Ethernet switch
(Example) NE-Q05

Host device such as PLC


In addition to the status
result import, the trigger
control and switching of the
set program number can be
performed with the control
output.

Ethernet cable
OP-87907 (1 m)
OP-87457 (2 m)
OP-87458 (5 m)
OP-87459 (10 m)
LAN cable OP-88042 (1m:L-type)
OP-87950 (1 m) OP-88043 (2m:L-type)
OP-87951 (3 m) OP-88044 (5m:L-type)
OP-87952 (5 m) OP-88045 (10m:L-type)
OP-87953 (10 m)

IV-HG Series

Sensor head/
amplifier cable for
IV-HG Series
OP-87903 (2 m)
OP-87904 (5 m)
OP-87905 (10 m)
IV-H Series

PC software for
IV-H/IV-HG Series (IV-H1)

1-4 - IV-H/IV-HG Series User’s Manual (Field Network) -


Overview of IV-H/IV-HG Series

Overview of IV-H/IV-HG Series

IV-H/IV-HG Series 1

Getting Started
The IV-H/IV-HG Series is a “Vision Sensor”. 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 PC software for IV-H/IV-HG Series, IV-Navigator (IV-H1) or
the intelligent monitor (IV‑M30). After setting is completed, the sensor can be operated independently.
The IV-H/IV-HG 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.

System configuration example

Host device such as PLC


(EtherNet/IP communication scanner,
PROFINET communication I/O controller)

EtherNet/IP communication
adapter, PROFINET
communication I/O device
Sensor Head
Sensor
Sensor Amplifier
IV-HG Series IV-H Series

yyEtherNet/IP communication and PROFINET communication cannot be used simultaneously.


yyFor the details of installation, connection, and operation methods of the IV-H/IV-HG Series, refer to
“IV-H/IV-HG Series User’s Manual (Monitor/PC Software)”.

- IV-H/IV-HG Series User’s Manual (Field Network) - 1-5


Overview of IV-H/IV-HG Series

1 Operation of the indicator light


3 TRIG
Green light lights up (one-shot) according to
Getting Started

„„
IV-H Series: Operation of the sensor input of the internal or external trigger.
indicator light yyOrange (Blink)...Flash LED has been required on
Details on operations of the indicator light are the PROFINET communication
shown below. I/O controller. Blinks 4 times
with a period of about a second.
4 5
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
1 2 3 connected with monitor, PC,
1 PWR/ERR EtherNet/IP communication
scanner, or PROFINET
Indicates the power supplying status to the communication I/O controller.
sensor and the error status of the sensor. yyRed (Blink)........Timeout has occurred at the
yyGreen (ON).......Operating. communication with EtherNet/
yyGreen (Blink).....Setting processing. Operation IP communication scanner.
is stopped. Blinks once a yyRed (ON)...........IP address coincides with
second. another device.
yyRed (ON)...........Unrecoverable error has yy(OFF)................IP address is not assigned.
occurred. Not correctly connecting with
yyRed (Blink)........Recoverable error has PC.
occurred. yyOrange (Blink)...Indicates the focusing status
yyOrange (Blink)...Flash LED has been required on while adjusting the focusing
the PROFINET communication position with the blinking speed
I/O controller. Blinks 4 times (manual focus type only).
with a period of about a second. 5 LINK/ACT
yy(OFF)................Power is not supplied.
Indicates the linking status within PC or
Adjusting the focusing position
(manual focus only). Ethernet switch.
2 OUT yyGreen (ON).......Normally linked.
Indicates the comprehensive result. yyGreen (Blink).....Normally linked, and the data
yyGreen................Comprehensive result is “OK”. is sending/receiving.
yyRed...................Comprehensive result is “NG”. yy(OFF)................Sensor is not normally linked.
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.

1-6 - IV-H/IV-HG Series User’s Manual (Field Network) -


Overview of IV-H/IV-HG Series

„„
IV-HG Series: Operation of the sensor „„
IV-HG Series: Operation of the sensor 1
head indicator light amplifier indicator light

Getting Started
1
2
3
Indicator
light
4
5
yyGreen (ON).......Comprehensive result is “OK”.
yyGreen (Blink).....Under startup or setting
in progress. Operation is 1 PWR/ERR
stopped. Indicates the power supplying status to the
Blinks once a second. sensor and the error status of the sensor.
yyRed (ON)...........Comprehensive result is “NG”. yyGreen (ON).......Operating.
yyRed (Blink)........An error has occurred. yyGreen (Blink).....Under startup or setting
yy(OFF)................Standby status until the in progress. Operation is
first judgment finishes after stopped. Blinks once a
second.
starting the operation or
yyRed (ON)...........Unrecoverable error has
after switching the program occurred.
number. yyRed (Blink)........Recoverable error has
 Version of the sensor head and occurred.
sensor amplifier does not match. yyOrange (Blink)...Flash LED has been
 The sensor head of incompatible required on the PROFINET
communication I/O controller.
type is connected.
Or LED Blinking has been
yyGreen and red are ....Flash LED has been required. Blinks 4 times with a
blinking alternately required on the PROFINET
period of about a second.
communication I/O controller.
yy(OFF)................Power is not supplied.
Or LED Blinking has been
required. 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)...Flash LED has been
required on the PROFINET
communication I/O controller.
Or LED Blinking has been
required. Blinks 4 times with a
period of about a second.

- IV-H/IV-HG Series User’s Manual (Field Network) - 1-7


Overview of IV-H/IV-HG Series

1 3 TRIG
Green light lights up (one-shot) according to
Getting Started

input of the internal or external trigger.


yyOrange (Blink)...Flash LED has been
required on the PROFINET
communication I/O controller.
Or LED Blinking has been
required. 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)...........The IP address coincides with
other device or a network loop
is detected.
yy(OFF)................IP address is not assigned.
Not correctly connecting with PC.
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.
yy(OFF)................Sensor is not normally linked.

1-8 - IV-H/IV-HG Series User’s Manual (Field Network) -


2 
This chapter describes the overview of EtherNet/IP
and the communication specifications and functions
EtherNet/IP of the EtherNet/IP communication in the IV-H/IV-HG
Series.
2

EtherNet/IP
Overview of EtherNet/IP.....................................2-2
EtherNet/IP communication specifications
and functions in the IV-H/IV-HG Series.............2-3

- IV-H/IV-HG Series User’s Manual (Field Network) - 2-1


Overview of EtherNet/IP

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 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-H/IV-HG 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-H/IV-HG Series supports cyclic communication (Implicit communication).

EtherNet/IP
communication
scanner

Low-speed (Communication cycle: 1000 ms)


High-speed
(Communication cycle: 5 ms)

Normal
(Communication
cycle: 100 ms)

EtherNet/IP EtherNet/IP EtherNet/IP


communication communication communication
adapter adapter adapter

2-2 - IV-H/IV-HG Series User’s Manual (Field Network) -


EtherNet/IP communication specifications and functions in the IV-H/IV-HG Series

EtherNet/IP communication specifications and


functions in the IV-H/IV-HG Series
This section describes the overview of the EtherNet/IP communication functions supported in the
IV-H/IV-HG series.

EtherNet/IP communication specifications in the IV-H/IV-HG Series


2

EtherNet/IP
Cyclic communication Number of
16
(Implicit messages) connections

Overview of the EtherNet/IP communications functions in the IV-H/IV-HG


Series
The following shows the list of functions that can be used to control the IV-H/IV-HG Series using the
EtherNet/IP communication.

Function Content
Trigger input Executes a trigger input for the sensor.
Program switching Executes a program switching for the sensor.
External master registration Executes an external master registration for the sensor.
Error clear input Executes an error clear.
Read out status Allows you to check the unit status (Imaging, RUN, BUSY, Error).
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 the EtherNet/IP communication, set the [Switching method] option
to [Monitor/PC]. For details of the setting, refer to the “IV-H/IV-HG Series User’s 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-H/IV-HG Series User’s
Manual (Monitor / PC Software)”.

- IV-H/IV-HG Series User’s Manual (Field Network) - 2-3


EtherNet/IP communication specifications and functions in the IV-H/IV-HG Series

List of supported PLCs


Check the instruction manual of each PLC for details of the setting methods.
2
Keyence PLC
EtherNet/IP

„„
KV series

EtherNet/IP Firmware Version of the


PLC model Software used
communication unit version software used
-
KV-7500 (Built-in port or Ver.1.0 or later
KV-EP21V) Ver.8.0 or later

KV-7300 KV-EP21V Ver.1.0 or later


-
KV-5500 (Built-in port or Ver.2.0 or later
KV-EP21V) Ver.6.0 or later
KV STUDIO
KV-5000 KV-EP21V Ver.2.0 or later
KV-3000 KV-EP21V Ver.2.0 or later
KV-NC32T KV-NC1EP Ver.2.0 or later
KV-N24** KV-NC1EP Ver.2.0 or later
Ver.7.1 or later
KV-N40** KV-NC1EP Ver.2.0 or later
KV-N60** KV-NC1EP Ver.2.0 or later

Rockwell Automation PLC

EtherNet/IP Firmware Version of the


PLC model Software used
communication unit version software used
1756-ENBT
1756 ControlLogix Ver.13 or later
1756-EN2T
RSLogix5000 Ver.13 or later
-
1769 CompactLogix Ver.13 or later
(Built in the unit)

OMRON PLC

EtherNet/IP Firmware Version of the


PLC model Software used
communication unit version software used
-
SYSMAC CJ2 (Built-in port or V1.0 or later
CJ1W-EIP21) CX-One Ver.3.0 or later
SYSMAC CJ1 CJ1W-EIP21 V1.0 or later
SYSMAC CS1 CJ1W-EIP21 V1.0 or later

2-4 - IV-H/IV-HG Series User’s Manual (Field Network) -


3 
This chapter describes the overview, setting
method, data allocation, and operating procedure
Cyclic of the cyclic communication in the EtherNet/IP

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-31

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-1


Overview of the cyclic communication

Overview of the cyclic communication

What is 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

3 to control the programs on the PLC side.


Cyclic communication

Input Area Output data

yyStatus result yyStatus result


yyControl/status/error result yyControl/status/error result
yyStatistics information yyStatistics information
yyTool information yyTool information
RPI
(Communication
Output Area cycle) Input data

yyTrigger control yyTrigger control


yyExternal master image yyExternal master image
registration control registration control
yyProgram switching control yyProgram switching control
yyHandshake 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 - IV-H/IV-HG Series User’s Manual (Field Network) -


Cyclic communication setting method

Cyclic communication setting method

This following explains the setting method when 3 Tap the [Settings] button in the “Field
using the cyclic communication. Network”.

yyTo control the IV-H/IV-HG Series using the


EtherNet/IP communication, select [Network
connection] for the sensor connection setting. 3
When connected directly, the field network

Cyclic communication
settings will be greyed out and disabled.
yyIf you have modified the protocol settings, the
connection with the sensor will be terminated
and then restarted.
4 Select [Ethernet/IP] for the protocol.
Setting the IV-H/IV-HG Series
You can configure the following settings for the
IV-H/IV-HG Series using the monitor (IV-M30) or
IV-Navigator (IV-H1).

When settings on the monitor (IV-M30)


Set the field network settings of the sensor to
[EtherNet/IP]. 5 To enable the handshake control, select
[Enable].
1 Tap the [Sensor Advanced] button on the
[Sensor Setup Menu] screen.

zz
Disable (default value)
Select if the trigger interval is greater than the
communication cycle (RPI). A status result can
2 Tap the [Environmental] button, and then be obtained in real time. In most situations,
the [Adv. Network Settings] button.
select [Disable].
zz
Enable
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 internal being faster
than the communication cycle, the status result
can be saved up to ten times in the buffer.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-3


Cyclic communication setting method

When setting by IV-Navigator (IV-H1)


yyWhen the protocol is set as [Disable],
this setting item is shaded and cannot be Set the field network settings of the sensor to
selected. [EtherNet/IP].
yyWhen the data handshake control is set
3 as [Enabled], the status result will not be 1 Display the Advanced Sensor Settings
updated until [Result acquisition complete screen.
notice] (“Address2, Bit0” of Output Assembly)
Cyclic communication

is input. 2 Select the [Environmental] tab, and then


“Operating procedure of the cyclic click the [Setting] button under [Field
communication” (Page 3-31) network].

6 To enable byte swap for the data region,


select [Enable].

3 Select [EtherNet/IP] in [Protocol] for the


field network.

You can change the order data is stored in the


memory. Change the storage order in units of
two bytes.
yyDisable: Last > First (Example: ABCDEF)
yyEnable: First > Last (Example: BADCFE)
Set byte swap in accordance with the
specifications of each PLC. For details, see
the instruction manual for the PLC.
To connect to the Keyence KV Series, select zz
Handshake Control
[Enable]. To enable the handshake control, check this
check box .
7 After the setting is completed, tap the [OK] yyNot selected (disable) (default value)
button. Select if the trigger interval is greater than the
communication cycle (RPI). A status result can
be obtained in real time. In most situations, do
not select (disable) this setting.
yySelected (enable)
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.

3-4 - IV-H/IV-HG Series User’s Manual (Field Network) -


Cyclic communication setting method

yyWhen the protocol is set as [Disable],


this setting item is shaded and cannot be
selected.
yyWhen the data handshake control is set as
[Enabled], the status result will not be updated
until [Result acquisition complete notice]
3
(“Address2, Bit0” Output Assembly) is input.

Cyclic communication
“Operating procedure of the cyclic
communication” (Page 3-31)

zz
Byte swap
To enable byte swap in the data region, check
this check box .

You can change the order data is stored in the


memory. Change the storage order in units of
two bytes.
yyDisable: Last > First (Example: ABCDEF)
yyEnable: First > Last (Example: BADCFE)
Set byte swap in accordance with the
specifications of each PLC. For details, see
the instruction manual for the PLC.
To connect to the Keyence KV Series, select
[Enable].

4 After the setting is completed, click the


[OK] button.
The system returns to the Advanced Sensor
Settings screen.

5 Click the [OK] button.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-5


Cyclic communication setting method

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.
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.

Establishing the connection


In the cyclic communication, one device opens a logical communication circuit called a “connection” for the
other device; and data communication will become possible if the open is successful.
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-H/IV-HG Series is an adapter device)
In the EtherNet/IP communication, a connection must be opened from the scanner when the cyclic
communication is started.

The communication is started in the following procedure:


(1) The scanner requests a connection open request to the adapter.
(2) Compatibility will be checked on the adapter side.
(3) A connection will open if no error is encountered in the compatibility check.

(1) Connection open request


(2) Compatibility check
(3) Connection open

Scanner Adapter device

yyA compatibility check is used to check whether the device set by the scanner and the IV-H/IV-HG 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-H/IV-HG 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-6 - IV-H/IV-HG Series User’s Manual (Field Network) -


Cyclic communication setting method

There are many types of connections, and the connection 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 IV-H/IV-HG Series IV-Navigator (IV-H1) has been installed.

Note that the EDS file for the IV-H Series is different from that for the IV-HG Series.
The following shows the list of connections that are available in the IV-H/IV-HG Series. 3

Cyclic communication
Assembly Size
No Connection name Application type I/O RPI
Instance (bytes)

Monitor Data And This unit


64H (100) 2 to 392
External Input → Scanner
1 Exclusive Owner 5 to 10000ms
(Monitor/External Scanner
input) 65H (101) 2 to 12
→ This unit
This unit
Monitor Data (Input 64H (100) 2 to 392
→ Scanner
2 Only) Input Only 5 to 10000ms
(Monitor data) Scanner
FEH (254) 0
→ This unit

When using the Keyence KV series (EtherNet/IP communication scanner), the names of the connections
with the IV-H/IV-HG 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 IV-H/IV-HG
Series, and vice versa.
yyThis connection type is used when the scanner will not only monitor the data of the IV-H/IV-HG Series
but also provide external input to the IV-H/IV-HG Series.
yyIt is not possible for multiple scanners to open "Exclusive Owner" connections for a single IV-H/IV-HG
Series unit.
[Input Only]
yyThis connection only allows you to configure the data transmission from the IV-H/IV-HG Series to the
scanner.
yyThis connection is used when the scanner will only monitor the data of the IV-H/IV-HG Series.
yyMultiple scanners can simultaneously open “Input Only” connections for a single IV-H/IV-HG Series
unit.
yyIf connections will be opened simultaneously from multiple scanners, set the connection type to
“Multicast” and match the RPI and the size.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-7


Cyclic communication setting method

Keyence KV series settings 4 Modify the settings as necessary.


Click the connection name in the scan list.
This following explains the setting method when
using KV-5500.
For details of the required setting, such as the unit

3 configuration for the PLC and the KV STUDIO


settings for connecting with the PC, refer to the “KV
Cyclic communication

STUDIO User’s Manual” and the “KV-EP21V User’s


Manual”. The [Connection settings] screen will appear.

1 Right-click KV‑5500 in the unit editor of


KV STUDIO, and then select [EtherNet/IP
setting].

2 Drag [IV-H Series] from the Unit list and


add it to the scan list.
If the IV-HG Series is used, drag [IV-HG Series]
and add it to the scan list.

zz
Connection name

3 Set the Node address and IP address Select [Monitor Data and External Input] or
[Monitor data].
for the IV-H/IV-HG Series on the [Initial
adapter settings] screen. zz
RPI (communication cycle)
You can set the cyclic communication cycle.
zz
Connection type
Select [Point-to-point] or [Multicast].

5 Save the settings and close [EtherNet/IP


settings] and the unit editor.

3-8 - IV-H/IV-HG Series User’s Manual (Field Network) -


Cyclic communication setting method

6 Select [Device comment edit window] Rockwell Automation Control Logix


from the [Edit] menu in KV STUDIO.
series settings
The [Device comment edit] screen will appear.
This following explains the setting method when
using a Control Logix PLC.

1 Select the EtherNet/IP communication unit 3


to be connected with the IV-H/IV-HG Series

Cyclic communication
in the I/O configuration of RsLogix5000,
and then right-click to select [New
Module].

Click [Details].
The [Register unit device] screen will appear.

7 Make sure that the [IV-H Series] checkbox


is ON in the [Select unit] field, and then
click the [Reg] button.

The [Select Module] screen will appear.

2 Click the [+] button next to Communications,


and then select EtherNET-MODULE (Generic
Ethernet Module) and click the [OK] button.

8 Select [PLC Transfer] from the [Monitor/


Simulator] menu of KV STUDIO.

The [New Module] screen will appear.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-9


Cyclic communication setting method

3 Modify the settings as necessary.


yySetting the Comm Format option to [Input
Data] will enable you to establish cyclic
communication with multiple PLCs using the
“Input only” connection.
3 To set the Comm Format to [Input Data],
perform the following settings on each PLC.
Cyclic communication

Item Setting contents


Comm Format Input Data-INT
Input
100
zz
Name (Device name) (Assembly Instance)
You can assign a desired name. The following Input Assembly size
tags will be generated based on the entered Input (Size) of the IV-H/IV-HG
names and used for the data sent and received Series
in the cyclic communication. Output
yy(Device name): I...... Information received from 254
(Assembly Instance)
the IV-H/IV-HG Series
Output Assembly size
yy(Device name): O.... Information to be sent to Output (Size) for the IV-H/IV-HG
the IV-H/IV-HG Series Series
yy(Device name): C.... Not used.
If communications with multiple PLCs will be
zz
Comm Format established using the “Input Only” connection,
You can enter a desired format. Due to the set the connection type to “Multicast”.
structure of the assembly object, programming yyFor details of the Input Assembly and Output
will be easier with a format that supports a Assembly sizes for the IV-H/IV-HG Series,
2-byte alignment. refer to “EtherNet/IP communication
specifications in the IV-H/IV-HG Series”
zz
IP Address
(Page 2-3) .
You can enter the IP address of the IV-H/IV-HG
Series.
4 Set the RPI (communication cycle) for the
zz
Input (Assembly Instance) cyclic communication.
Enter “100”. Make sure to set a value longer than or equal to 5 ms.
zz
Input (Size)
You can enter the Input Assembly size of the
IV-H/IV-HG Series.
zz
Output (Assembly Instance)
Enter “101”.
zz
Output (Size)
You can enter the Output Assembly size for the
IV-H/IV-HG Series.
zz
Configuration (Assembly Instance)
Enter “1”. 5 Download the settings to the PLC.
The EtherNet/IP communication will be enabled
zz
Configuration (Size) when you switch to online after downloading the
Enter “0”. settings.

3-10 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocation in the cyclic communication

Data allocation in the cyclic communication

Input Assembly (IV-H/IV-HG Series → PLC)


Input Assembly are devices that write responses from the IV-H/IV-HG 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-H/IV-HG Series.
For details of each parameter, refer to “Input Assembly parameter details” (Page 3-13).
3
Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0

Cyclic communication
Setting value Statistics Warning Program Master
Reserved Buffer clear Trigger
0 change reset clear switching registration
by system response response
response response response response response
Setting value Program Master
Trigger
1 change Reserved by system switching registration
failed
failed failed failed
Result
Imaging Result
2 Reserved by system Ready RUN BUSY update
status available
complete
Buffer
3 Error Warning Reserved by system
overrun
Overall
Reserved Position Overall
4 judgment LOGIC4 LOGIC3 LOGIC2 LOGIC1
by system correction judgment
NG
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
52 - 53 Position correction score (Unsigned 16-bit integer)

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-11


Data allocation in the cyclic communication

Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0


54 - 55 Position correction score MAX (Unsigned 16-bit integer)
56 - 57 Position correction score MIN (Unsigned 16-bit integer)
58 - 59 Position correction score Lower threshold (Unsigned 16-bit integer)
3 60 - 71 Reserved by system
72 - 73 Tool 1 matching rate (Unsigned 16-bit integer)
Cyclic communication

74 - 75 Tool 1 matching rate MAX (Unsigned 16-bit integer)


76 - 77 Tool 1 matching rate MIN (Unsigned 16-bit integer)
78 - 79 Tool 1 lower threshold (Unsigned 16-bit integer)
80 - 81 Tool 1 upper threshold (Unsigned 16-bit integer)
82 - 83 Decimal point position (Unsigned 16-bit integer)*1
84 - 85 Pitch present value MAX (Unsigned 16-bit integer)*2
86 - 87 Pitch present value MIN (Unsigned 16-bit integer)*2
88 - 89 Number of pitches (Unsigned 16-bit integer)*2
90 - 91 Reserved by system
Tool 2 to 16 (Same as Tool 1)
92 - 391
The start address of tool number “n” is 72 + (n-1) x 20
*1: When the scaling is enabled with the Width/Diameter/Pitch tool. When the scaling is not enabled, the
data contents is 0.
*2: When using the Pitch tool. When the scaling is not enabled, the data contents is 0.

The data allocation when the OCR tool is used is as follows:


yy72-73: Tool 1 matching rate (unsigned 16-bit integer)
yy74-75: Tool 1 lower threshold (unsigned 16-bit integer)
yy76-77: Text read #1 to 2
yy78-79: Text read #3 to 4
yy80-81: Text read #5 to 6
yy82-83: Text read #7 to 8
yy84-85: Text read #9 to 10
yy86-87: Text read #11 to 12
yy88-89: Text read #13 to 14
yy90-91: Text read #15 to 16

3-12 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocation in the cyclic communication

Input Assembly parameter details

„„
Input Assembly Address 0: Control result (response)
The Bits at Address 0 of the Input Assembly have the following functions:

Address Bit Item Content Data content


3
Stores the external trigger 0 : OFF
0 Trigger response

Cyclic communication
response. 1 : ON
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
0 response. 1 : ON
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
6 Reserved by system --- ---
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:

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.
This bit is output when the 0 : -
Master image registration
1 master image registration is 1 : Master image
failed
unsuccessful. registration has failed.
1 This bit is output when 0 : -
2 Program switching failed the program switching is 1 : Program switching
unsuccessful. has failed.
3 to 6 Reserved by system --- ---
0 : -
Setting value change This bit is output when the setting
7 1 : The setting value
failed value change is unsuccessful.
change has failed.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-13


Data allocation in the cyclic communication

„„
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:

Address Bit Item Content Data content


0 : The status
3 0 Result available
This bit is output when the
result cannot be
acquired.
status result can be acquired.
1 : The status result
Cyclic communication

can be acquired.
0 <=> 1:
This bit switches the ON/OFF The statuses will
1 Result update complete statuses when the status result be switched when
is updated. the 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.
2 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.
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
have occurred.
operating 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.
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.
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
3 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.

3-14 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocation in the 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.
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 3
the warning code. The first occurred warning code will be displayed.

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

Warning No. 0 Warning code 1 0 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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-15


Data allocation in the cyclic communication

„„
Input Assembly Address 4 to 7: Status result
The Bits at Address 4 to 7 of the Input Assembly have the following functions:

Address Bit Item Content Data content


0 Overall judgment Displays the overall status result. 0 : NG 1 : OK
3 1 Position correction Displays the position correction result. 0 : NG 1 : OK
2 Logic 1 Displays the result of Logic 1. 0 : NG 1 : OK
Cyclic communication

3 Logic 2 Displays the result of Logic 2. 0 : NG 1 : OK


4
4 Logic 3 Displays the result of Logic 3. 0 : NG 1 : OK
5 Logic 4 Displays the result of Logic 4. 0 : NG 1 : OK
6 Overall judgment NG* Displays the “total status result is NG”. 0 : NG 1 : OK
7 Reserved by system --- ---
5 0 to 7 Reserved by system --- ---
0 Tool 1 Displays the result of Tool 1. 0 : NG 1 : OK
1 Tool 2 Displays the result of Tool 2. 0 : NG 1 : OK
2 Tool 3 Displays the result of Tool 3. 0 : NG 1 : OK
3 Tool 4 Displays the result of Tool 4. 0 : NG 1 : OK
6
4 Tool 5 Displays the result of Tool 5. 0 : NG 1 : OK
5 Tool 6 Displays the result of Tool 6. 0 : NG 1 : OK
6 Tool 7 Displays the result of Tool 7. 0 : NG 1 : OK
7 Tool 8 Displays the result of Tool 8. 0 : NG 1 : OK
0 Tool 9 Displays the result of Tool 9. 0 : NG 1 : OK
1 Tool 10 Displays the result of Tool 10. 0 : NG 1 : OK
2 Tool 11 Displays the result of Tool 11. 0 : NG 1 : OK
3 Tool 12 Displays the result of Tool 12. 0 : NG 1 : OK
7
4 Tool 13 Displays the result of Tool 13. 0 : NG 1 : OK
5 Tool 14 Displays the result of Tool 14. 0 : NG 1 : OK
6 Tool 15 Displays the result of Tool 15. 0 : NG 1 : OK
7 Tool 16 Displays the result of Tool 16. 0 : NG 1 : OK

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-16 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocation in the cyclic communication

„„
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*

8 to 9 UINT Error code


Displays the currently occurring
error code.
0 to 128 3

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 31
No.
Program No. during Displays the program No. of the
18 to 19 UINT 0 to 31
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

yyThe unit of processing time is msec.


yyIf two or more errors are occurring at the same time, the error code of the highest priority error will be
displayed.
“Error code list” (Page 3-27)
yyThe first occurred warning code will be displayed.
“Warning code list” (Page 3-28)
yyA checksum can be used to monitor whether the sensor settings have been modified by a third party.
yyThe checksum will remain unchanged even if you switch programs.
yyThe checksum will remain unchanged even if you change the IP address, subnet mask, default gateway
or port number of the IV-H/IV-HG Series.
yyFor the number of remaining buffers, refer to “Reading out the overall status result/each tool’s status
result (Handshake control [Enabled])” (Page 3-33).
yyThe upper limit value of the result No. is 32767. If the maximum value is exceeded, it will go back to 0
and start counting up again.
yyThe result No. will also count the judgment process counts that were skipped due to the cyclic
frequency setting.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-17


Data allocation in the cyclic communication

„„
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*

3 24 to 25 UINT Processing time MAX


Displays the maximum
processing time value.
0 to 10000
Cyclic communication

Displays the minimum


26 to 27 UINT Processing time MIN 0 to 10000
processing time value.
Displays the average processing
28 to 29 UINT Processing time AVE 0 to 10000
time value.
30 to 31 --- Reserved by system --- ---
Displays the total number of
32 to 35 UDINT Number of triggers 0-999999999
triggers issued.
Displays the total number of
36 to 39 UDINT Number of OKs triggers issued whose overall 0-999999999
status result was “OK”.
Displays the total number of
40 to 43 UDINT Number of NGs triggers issued whose overall 0-999999999
status result was “NG”.
Number of triggers issued that
44 to 47 UDINT Number of trigger errors 0-999999999
generated a trigger error
48 to 51 --- Reserved by system --- ---
* UINT : Unsigned 16-bit integer
UDINT : 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

3-18 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocation in the cyclic communication

„„
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”.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-19


Data allocation in the cyclic communication

„„
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
Cyclic communication

Stores the maximum matching


74 to 75 UINT Tool 1 matching rate MAX 0 to 9999
rate value of Tool 1.
Stores the minimum matching
76 to 77 UINT Tool 1 matching rate MIN 0 to 9999
rate value of Tool 1.
Stores the lower threshold value
78 to 79 UINT Tool 1 lower threshold 0 to 9999
of Tool 1.
Stores the upper threshold
80 to 81 UINT Tool 1 upper threshold 0 to 9999
value of Tool 1.
0: No decimal point
1: 1 digit after
Stores the decimal point position
decimal point
Tool 1 decimal point of matching rate when scaling
82 to 83 UINT 2: 2 digits after
position is enabled with the Width/
decimal point
Diameter/Pitch tool.
3: 3 digits after
decimal point
Tool 1 pitch present Stores the maximum value of all
84 to 85 UINT 0 to 9999
value MAX pitches when using pitch tool.
Tool 1 pitch present Stores the minimum value of all
86 to 87 UINT 0 to 9999
value MIN pitches when using pitch tool.
Stores the number of pitches
88 to 89 UINT Tool 1 number of pitches 0 to 9999
when using pitch tool.
90 to 91 --- Reserved by system --- ---
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 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”.

3-20 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocation in the cyclic communication

„„
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

Stores the matching rate of Tool


Shade contrast
setting
3
72 to 73 UINT Tool 1 matching rate
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.
“Cyclic communication setting method” (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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-21


Data allocation in the cyclic communication

Output Assembly (PLC → IV-H/IV-HG Series)


Output Assembly are devices that write instructions from the PLC to the IV-H/IV-HG Series.
The device map of the data allocated for the Output Assembly is as shown below.
These parameters are responsible for the control instructions for the IV-H/IV-HG Series, clearing of

3 warnings and handshake control.


For details of each parameter, refer to “Output Assembly parameter details” (Page 3-23).
Cyclic communication

Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0


Setting value
Reserved Buffer clear Statistics Warning Program Master
Trigger
0 change reset clear switching registration
by system request request request request request
request
request
1 Reserved by system
Result
acquisition
2 Reserved by system
complete
notification
3 Reserved by system
4-5 Program No.
6-7 Setting value setting No.
8 - 11 Setting value

3-22 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocation in the cyclic communication

Output Assembly parameter details

„„
Output Assembly Address 0 to 1: Control request
The Bits at Address 0 to 1 of the Output Assembly have the following functions:

Address Bit Item Content Data content


3
0 Trigger request Requests the external trigger. 0 : OFF 1 : ON

Cyclic communication
Master image registration Requests a master image
1 0 : OFF 1 : ON
request registration.
2 Program switching request Requests a program switching. 0 : OFF 1 : ON
3 Warning clear request Requests a warning clear. 0 : OFF 1 : ON
0
4 Statistics reset request Requests a statistics reset. 0 : OFF 1 : ON
5 Buffer clear request Requests a buffer clear. 0 : OFF 1 : ON
6 Reserved by system --- ---
Setting value change Requests a setting value
7 0 : OFF 1 : ON
request change.
1 0 to 7 Reserved by system --- ---

The following will occur when a buffer clear is requested:


yyIf handshake control is [Enabled]
yyThe current status result will be cleared.
yyThe status result in the buffer will be cleared.
yyThe result available bit will become OFF (0).
yyThe number of remaining buffers will become “10”.
yyIf the handshake control is [Disabled]
yyThe current status result will be cleared.
yyThe result available bit will become OFF (0).
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-H/IV-HG Series User’s Manual (Monitor / PC Software)”.
yyBuffer overrun and warning statuses will not be cleared even if you execute a buffer clear request.

„„
Output Assembly Address 2 to 3: Handshake control
The Bits at Address 2 to 3 of the Output Assembly have the following functions:

Address Bit Item Content Data content


Result acquisition Permits the updating of the
0 0: OFF 1: ON
2 complete notification status result.
1 to 7 Reserved by system --- ---
3 0 to 7 Reserved by system --- ---

A result acquisition completion notice is used when handshake control is [Enabled].


Updating of the status result will be permitted when you request a result acquisition completion notice.
For details, refer to “Reading out the overall status result/each tool’s status result (Handshake control
[Enabled])” (Page 3-33).

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-23


Data allocation in the cyclic communication

„„
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*

3 4 to 5 UINT Program number


Stores the program No. when a program
switching is requested.
0 to 31
Cyclic communication

* 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 destination of reflecting a
6 to 7 UINT 0 to 33
setting No. threshold value change.
Stores the threshold value 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

The threshold setting number rules are shown below.


0: Position correction lower threshold
1: Reserved by system
2: Tool 1 lower threshold 3: Tool 1 upper threshold
4: Tool 2 lower threshold 5: Tool 2 upper threshold
6: Tool 3 lower threshold 7: Tool 3 upper threshold
...

32: Tool 16 lower threshold 33: Tool 16 upper threshold

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

yyThe cutoff processing is done for the number of 4 or more digits.


Example) 99995 → 99990
yyChanging the threshold is guaranteed for 1,000,000 times (life-span). Do not change the
threshold frequently.

3-24 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocation in the cyclic communication

„„
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 of
reflecting a master text
yyWhen the text is read: 101 to 164
3
change. Divides the 16
Setting value yyWhen the date is read: 301 to 364

Cyclic communication
6 to 7 UINT master letters into groups of
setting No. yyWhen only judging the number
four letters. Specifies a tool
of letters: 201 to 232
number and location of the
text to be 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 ---- Setting value 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 [Setting value 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 3-36).

Stored data
Address
Tool 1 Tool 2 … Tool 16
6 to 7
101 102 103 104 105 … … … 164
(DINT)
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
(DINT)
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

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-25


Data allocation in the cyclic communication

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
3 (DINT)
201 202 203 204 205 … … 231 232

Minimum Maximum Minimum Maximum Minimum Minimum Maximum


Cyclic communication

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

Correctly set byte swap in accordance with the PLC specifications.


“Cyclic communication setting method” (Page 3-3)

Changing the following settings are guaranteed for 1,000,000 times (life-span).
yyMaster text (When the “Reading Settings” are set to [Character])
yyMinimum/Maximum number of characters in the [Judging number of characters only] (When
the “Reading Settings” are set to [Character])
yyMaster Date (When the “Reading Settings” are set to [Date])
Do not change the above settings frequently.

3-26 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocation in the cyclic communication

Error code list


The following shows the list of error codes that are generated in the IV-H/IV-HG Series.

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. yySwitch on the power back ON.
Program No. xx yyThe data 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.
Non-volatile memory yyA data error has
yyInitialize the settings of this unit.
75 error occurred.
yySwitch on the power back ON.
(EEPROM) yyThe data 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.
yySwitch on the power back ON.
An error may have
81-128 System error yyIf the error persists, contact your
occurred in the sensor.
nearest KEYENCE office.
* When the IV-HG Series sensor is used, error code 124 will be displayed if the sensor head is not
connected to the sensor amplifier.

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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-27


Data allocation in the cyclic communication

Warning code list


The following shows the list of warning codes that are generated in the IV-H/IV-HG Series.

Warning
Content Cause Countermeasure
code
3 0 No error --- ---

For the new master image, yyCheck if there are any problems with
Cyclic communication

External master the registered image and the detection


the characters and date
58 registration error tool or the position correction setting.
(OCR) cannot be read with the
yyAdjust the brightness of the image to
OCR tool. be registered.
yyUse the monitor or PC application
The master date in the OCR to set the sensor add date and time
59 Sync error tool failed to synchronize information function to [Enable].
with the calendar. yyCheck the connection with the monitor
or PC application.
yyInput settings in the correct range
while the device is running.
yyInput valid setting values or numbers.
In the following situations, input setting
yyA setting change has values and numbers are invalid:
been requested from --The settings number is outside of
EtherNet/IP while the the range of the data content
Field network bad --The specified tool is not being used
60 unit is in “Setting” status.
request error (OCR) --The specified tool is not the OCR tool
yySetting values or --The specified OCR tool detection
numbers that are not operation (character/date/character
valid are entered. count) does not match the change
request
--When only judging the number of
characters, the number of characters
is outside of the data content range
yyThreshold changing has
been requested from
yyWhile running, enter a threshold which
Field network EtherNet/IP while the
is in the correct range.
61 bad request error unit is in “Setting” status.
yyEnter a valid threshold or threshold
(Threshold changing) yyAn invalid threshold or
setting No.
threshold setting No. has
been entered.
Request a result acquisition completion
Field network overrun An overrun of the status
62 notice to permit the updating of the
error result has occurred.
status result.
External master
Field network bad registration has been Do not request an external master
63 request error (Master requested from EtherNet/ registration while the unit is in “Setting”
registration) IP while the unit is in status.
“Setting” status.

3-28 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocation in the cyclic communication

Warning
Content Cause Countermeasure
code
yyProgram switching has
been requested from
EtherNet/IP while the
unit is in “Setting” status. yyDo not request a program switching
yyA program switching
3
while the unit is in “Setting” status.
request to a non-existent yyThe program No. should be set in the

Cyclic communication
Field network bad
program No. was made
64 request error (Program range between 0 and 31.
from EtherNet/IP.
switching) yyA program switching yyIf you are switching programs from
requested was made EtherNet/IP, set the program switching
from EtherNet/IP while via external input to [Disabled].
the program switching
method was set to
[External input].
A trigger has been input
while the unit was in busy
Do not input triggers while the unit is in
65 Trigger error status. (If you have set
busy status.
the trigger error option to
[Enabled])
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.
The 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.

The data transfer to the


FTP Transfer Error Check the access permissions of the
71 destination folder has
(Transfer Failed) destination folder.
failed.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-29


Data allocation in the cyclic communication

Warning
Content Cause Countermeasure
code
yyCheck the IP address of the FTP
server.
yyCheck the port number of the FTP
3 72 FTP connection error
Connection to the FTP server.
server has failed. yyCheck the user name for logging into
Cyclic communication

the FTP server.


yyCheck the password for logging into
the FTP server.
External master
registration error There is insufficient work
73 Delete one or more detection tools.
(Insufficient work memory.
memory)
External master There are no registered Perform the master image registration
74 registration error images for master after having captured the image to be
(No images) registration. used for the registration.

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. 0 Warning code 1 0 Warning code 2

yyGreater the warning code, higher the priority of the warning will be.

3-30 - IV-H/IV-HG Series User’s Manual (Field Network) -


Operating procedure of the cyclic communication

Operating procedure of the cyclic communication

This section explains the method for communicating from the PLC to the IV-H/IV-HG Series using cyclic
communication.

Reading out the overall status result/each tool’s status result


(Handshake control [Disabled])
3
„„
When a trigger is successful

Cyclic communication
Trigger request A B

Trigger response A B

BUSY A B

Imaging status A B

Result update complete A B

Result available

Result No. A B

Overall judgment/ Result of A Result of B


each tool’s status result

(1) Execute a [Trigger request]. (0 → 1)


(2) If the trigger is valid, [Trigger response] will change from 0 to 1.
(3) Once the judgment process ends, the [Result update complete] Bit will switch and [Overall judgment]/
[Each tool’s status result] will be updated. The read text will be updated for the OCR tool.

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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-31


Operating procedure of the cyclic communication

„„
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 update complete A C

Result available

Result No. A C

Overall judgment Result of A Result of C

Warning

Warning No. Warning No.

(1) Execute a [Trigger request]. (0 → 1)


(2) If the trigger is valid, [Trigger response] will change from 0 to 1.
(3) [BUSY] will change from 0 to 1 when a trigger is input.
(4) [BUSY] will change from 1 to 0 when the judgment process ends.
The [Result update complete] BIT will be switched at this time; and [Overall judgment] will be updated.
(5) If you wish to output trigger errors, set the trigger error option to [Enabled].
If a trigger has been input while the trigger error option is set to [Enabled] and the unit is in “BUSY”
status, [Trigger failed] will change from 0 to 1 ignoring the trigger input. No judgment process will be
performed for trigger B.
(6) If the trigger input is unsuccessful, [Warning] will switch from “0” to “1” and [Warning No.] will be
updated to “65”. For details, refer to “Warning code list” (Page 3-28).

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-32 - IV-H/IV-HG Series User’s Manual (Field Network) -


Operating procedure of the cyclic communication

Reading out the overall status result/each tool’s status result


(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 A B C
3

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

(1) Execute a [Trigger request]. (0 → 1)


(2) If the trigger is valid, [Trigger response] will change from 0 to 1.
(3) Once the judgment process ends, the [Result update complete] Bit will switch, [Result available] will
switch from 0 to 1, and [Overall judgment]/[Each tool’s status result] will be updated. The read text will
be updated for the OCR tool.
(4) [Number of remaining buffers] will be decremented by 1 when the status result is updated.
(5) Executes [Result acquisition complete notice] (0 → 1). [Number of remaining buffers] will be
incremented by 1.

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].

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-33


Operating procedure of the cyclic communication

Switching the programs

Program No. Program No.

Program switching request

3 Program switching response

BUSY
Cyclic communication

(1) Write the program No. to be set to [Program No.].


For the write range setting, refer to “Output Assembly parameter details” (Page 3-23).
(2) Execute [Program switching request]. (0 → 1)
(3) You can check the input status in [Program switching response].

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.

yy[BUSY] will change from 0 to 1 while the program switching is in progress.


yyIf the program switching fails, [Program switching failed] will change from “0” to “1”.
yyIf the program switching is unsuccessful, [Warning] will switch from “0” to “1” and [Warning No.] will be
updated to “64”. For details, refer to “Warning code list” (Page 3-28).
yyYou cannot switch programs from the EtherNet/IP communication while the unit is in “Setting” status.
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-H/IV-HG Series User’s Manual (Monitor /
PC Software)”.

3-34 - IV-H/IV-HG Series User’s Manual (Field Network) -


Operating procedure of the cyclic communication

Changing the tool adjustment threshold

Setting value setting No. Setting value setting No.

Setting value Setting value

Setting value change request


3

Cyclic communication
Setting value change reponse

(1) Write the tool number and threshold type of the threshold to be changed to [Setting value setting No.].
For the write range setting, refer to “Control Modules parameter details” (Page 5-21).
(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].

Changing the setting value is guaranteed for 1,000,000 times (life-span).


Do not change the setting value frequently.

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-28).

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-35


Operating procedure of the cyclic communication

Changing the master text


This section shows the master text for Tool 1 changing to [ABCDEF] as an example. The text is overwritten
twice in groups of four letters.

Setting value setting No. (PLC→IV) 101 102


3 Setting value (master text) (PLC→IV) ABCD EF(NULL)(NULL)
Cyclic communication

Setting value change request (PLC→IV)

Setting value change response (IV→PLC)

(1) Overwrite [Setting value 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 [Settings value: Address 8] with A (0x41), [Settings value: Address 9] with B (0x42), [Settings
value: Address 10] with C (0x43), and [Settings value: 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 [Setting value 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 [Settings value: Address 8] with E (0x45), [Settings value: Address 9] with F (0x46), [Settings
value: Address 10] with NULL (0x00), and [Settings value: 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.

Append NULL text to the end of the text.


If you change “ABCDEFG” to “1234” and did not write NULL, the text is changed to “1234EFG”.

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

3-36 - IV-H/IV-HG Series User’s Manual (Field Network) -


Operating procedure of the cyclic communication

yyOnly arbitrary text can be changed in groups of four letters.


To change “2019.4.5” to “2019.4.6”, you can change only 102 for [Setting value setting No.: Address 6
to 7] (master text (fifth to eighth letter) when the read text settings are set with Tool 1).

Master text/date
1st 2nd 3rd 4th 5th 6th 7th 8th
3

Cyclic communication
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

yyChanges in groups of four are applied immediately. Do not execute a trigger until all text changes are
complete.

- IV-H/IV-HG Series User’s Manual (Field Network) - 3-37


Operating procedure of the cyclic communication

Registering a master image externally

Master registration request

Master registration response

3 BUSY
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-28).
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-H/IV-HG Series User’s Manual
(Monitor / PC Software)”.

3-38 - IV-H/IV-HG Series User’s Manual (Field Network) -


4 
This chapter describes the overview of PROFINET
and the communication specifications and functions
PROFINET of the PROFINET communication in the IV-H/IV-HG
Series.

Overview of PROFINET......................................4-2
4

PROFINET
PROFINET communication specifications
and functions in the IV-H/IV-HG Series.............4-3

- IV-H/IV-HG Series User’s Manual (Field Network) - 4-1


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 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 IV-H/IV-HG 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-H/IV-HG Series supports the data I/O communication provided by the real-time communications (RT).

PROFINET
communication
I/O controller

Low-speed (Communication cycle: 512*ms)


High-speed
(Communication cycle:
4* ms)
Normal
(Communication
cycle: 64 * ms)

PROFINET PROFINET PROFINET


communication communication communication
I/O device I/O device 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 - IV-H/IV-HG Series User’s Manual (Field Network) -


PROFINET communication specifications and functions in the IV-H/IV-HG Series

PROFINET communication specifications and


functions in the IV-H/IV-HG Series
IV-H/IV-HG Series PROFINET communication specifications

Data I/O communication Communication size to 408 byte

Specifying the IP address using the DCP protocol


In the PROFINET communication, you can specify the IP address of I/O devices using the DCP protocol
(Discovery and Configuration Protocol). 4

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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 4-3


PROFINET communication specifications and functions in the IV-H/IV-HG Series

Overview of the PROFINET communication functions in the IV-H/IV-HG


Series
The following shows the list of functions that can be used to control the IV-H/IV-HG Series in the
PROFINET communication.

Function Content
Trigger input Executes a trigger input for the sensor.
4 Program switching Executes a program switching for the sensor.
External master registration Executes an external master registration for the sensor.
PROFINET

Error clear input Executes an error clear.


Read out status Allows you to check the unit status (Imaging, RUN, BUSY, Error).
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 the EtherNet/IP communication, set the [Switching method] option
to [Monitor/PC]. For details of the setting, refer to the “IV-H/IV-HG Series User’s 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-H/IV-HG Series
User’s Manual (Monitor / Software)”.

4-4 - IV-H/IV-HG Series User’s Manual (Field Network) -


PROFINET communication specifications and functions in the IV-H/IV-HG Series

List of supported PLCs


Check the instruction manual of each PLC for details of the setting methods.

Siemens PLC

PROFINET Firmware Version of the


PLC model Software used
communication unit version software used
S7 300 series -
V2.6 or later STEP 7 V5.5.0.0 or later
4
Example: CPU315-2 PN/DP (Built in the unit)

PROFINET
S7 400 series -
V5.3 or later STEP 7 V5.5.0.0 or later
Example: CPU414-3 PN/DP (Built in the unit)
S7 1200 series - Version V11
V2.0 or later STEP 7 Basic
Example: CPU1212C (Built in the unit) Update 1

Phoenix Contact PLC

PROFINET Firmware Version of the


PLC model Software used
communication unit version software used
-
ILC 350 PN V 3.53F.13 PC WORX 6.10.56
(Built in the unit)

OMRON PLC

PROFINET Firmware Version of the


PLC model Software used
communication unit version software used
SYSMAC CJ2/CJ1 CJ1W-PNT21 V1.04 or later CX-One Ver.4.04 or later

- IV-H/IV-HG Series User’s Manual (Field Network) - 4-5


PROFINET communication specifications and functions in the IV-H/IV-HG Series

MEMO

4
PROFINET

4-6 - IV-H/IV-HG Series User’s Manual (Field Network) -


5 
This chapter describes the overview, setting
method, data allocation, and operating procedure
Data I/O communication of the data I/O communication in the PROFINET
communication.

Overview of the data I/O communication.........5-2


Data I/O communication setting method..........5-3
Data allocations 5
in the data I/O communication........................5-16

Data I/O communication


Operating procedure
of the data I/O communication........................5-39

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-1


Overview of the data I/O communication

Overview of the data I/O communication

What is data I/O communication?


This function enables cyclic (i.e. in fixed intervals) data communications with the PROFINET 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.

PROFINET
communication

5 I/O Controller
Data I/O communication

Input Area Output data

yyStatus result yyStatus result


yyControl/status/error result yyControl/status/error result
yyStatistics information yyStatistics information
yyTool information yyTool information
SendCycle
(Communication
Output Area cycle) Input data

yyTrigger control yyTrigger control


yyExternal master image yyExternal master image
registration control registration control
yyProgram switching control yyProgram switching control
yyHandshake 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 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data I/O communication setting method

Data I/O communication setting method

This following explains the setting method when 3 Touch the [Settings] button for the field
using the data I/O communication. network.

yyTo control the IV-H/IV-HG Series using the PROFINET


communication, select [Network connection] for the
sensor connection setting. When connected directly, the
field network settings will be greyed out and disabled.
yyThe PROFINET function will stop if the scanner is
connected directly while the PROFINET function
is in use. To use the PROFINET function again,
you need to restart the sensor.
yyIf you have modified the protocol settings, the
4 Select [PROFINET] for the protocol. 5
connection with the sensor will be terminated and

Data I/O communication


then restarted.

Setting the IV-H/IV-HG Series


You can configure the following settings for the
IV-H/IV-HG Series using the monitor (IV-M30) or
IV-Navigator (IV-H1).
5 To enable the handshake control, select
When settings on the monitor (IV-M30) [Enable].
Set the field network settings of the sensor to
[PROFINET].

1 Touch the [Sensor Advanced] button on the


[Sensor Setup Menu] screen.

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].
2 Touch the [Environmental] button, zz
Enable
followed by the [Adv. Network Settings] Select if the trigger interval is less than the
button. 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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-3


Data I/O communication setting method

When setting by IV-Navigator (IV-H1)


yyIf the protocol is set to [Disabled], the
settings will be greyed out and disabled. Set the field network settings of the sensor to
yyIf data handshake control has been set [PROFINET].
to [Enabled], the status result will not be
updated until [Result acquisition complete 1 Open the Advanced Sensor Settings screen.
notice] (Address2, Bit0 of Command Control)
is input. 2 Select the [Environmental] tab, and then
“Operating procedure of the data I/O click the [Setting] button under [Field
communication” (Page 5-39) network].

5 6 To enable byte swap for the data region,


select [Enable].
Data I/O communication

3 Select [PROFINET] in [Protocol] for the


field network.

You can change the order data is stored in the


memory. Change the storage order in units of
two bytes.
yyDisable: Last > First (Example: ABCDEF)
yyEnable: First > Last (Example: BADCFE)
Set byte swap in accordance with the
specifications of each PLC. For details, see
the instruction manual for the PLC.
To connect to the Keyence KV Series, select zz
Handshake Control
[Enable]. Tick the checkbox if you wish to enable the
data handshake control.
7 Once you have finished configuring the yyNot selected (disable) (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. In most situations, do
not select (disable) this setting.
yySelected (enable)
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.

5-4 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data I/O communication setting method

yyIf the protocol is set to [Disabled], the


settings will be greyed out and disabled.
yyIf data handshake control has been set to
[Enabled], the status result will not be updated
until [Result acquisition complete notice]
(“Address2 Bit0” of Command Control) is input.
“Operating procedure of the data I/O
communication” (Page 5-39)

zz
Byte swap
To enable byte swap in the data region, check 5
this check box .

Data I/O communication


You can change the order data is stored in the
memory. Change the storage order in units of
two bytes.
yyDisable: Last > First (Example: ABCDEF)
yyEnable: First > Last (Example: BADCFE)
Set byte swap in accordance with the
specifications of each PLC. For details, see
the instruction manual for the PLC.
To connect to the Keyence KV Series, select
[Enable].

4 When you have finished configuring the


settings, click the [OK] button.
The system returns to the Advanced Sensor
Settings screen.

5 Click the [OK] button.


You will return to the main screen of [Setting].

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-5


Data I/O communication setting method

Setting the device name When setting by IV-Navigator (IV-H1)

yyDevice naming rules for when the PROFINET


1 Open Advanced Sensor Settings screen.
communication is used
yyDo not use characters other than “a-z”, “0-9”,
2 Select the [Device settings] tab.
“-”, and “.”.
yy“-” (Half-width hyphen) cannot be used at the
3 Set the environment settings of the sensor.
beginning and end of the name.
yy“port-x (x: 0-999)” cannot be used.
yy“n.n.n.n (n: 0-999)” cannot be used.
5 yyThe sensor will be restarted if the device
name or network setting is modified while the
zz
Device name
Data I/O communication

PROFINET function is in use.


Displays the name of the sensor.
To rename a sensor, click the [Rename device]
When settings on the monitor (IV-M30) button and enter a desired name on the device
name screen.
1 Touch the [Sensor Advanced] button on the You can assign a desired name to and manage
sensor settings menu screen.
the sensor.
2 Touch the [Environmental] button,
followed by the [Device Name/Pass]
button.

3 Set the device settings of the sensor.

4 Touching the [Edit] button under [Device name]


will bring up the screen for entering the device
name.
Enter a desired name, and then touch the [OK] button.

5 Once you have finished configuring the


settings, touch the [OK] button.
You will return to the sensor expansion screen.
5-6 - IV-H/IV-HG Series User’s Manual (Field Network) -
Data I/O communication setting method

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.

Establishing the 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 5
you create the AR, separate communication channels for data I/O and record data communications will be

Data I/O communication


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 (1) Requesting an AR connection


communication
I/O Controller
(2) Establishing a real-time communication

I/O device

Communication 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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-7


Data I/O communication setting method

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.

1 Launch [TIA Portal V11] with the PC and


CPU connected.

5
Data I/O communication

2 Select the [Device & Networks] tab, and


then click [Add new device].

The [(Set device name [Selected CPU])] screen


will appear.

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.

5-8 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data I/O communication setting method

6 Install the GSDML file if you are 8 Connect the PLC with the IV-H/IV-HG
configuring the IV-H/IV-HG Series for the Series by mouse operation.
first time.

If the connection is successful, the following


yySelect [Install general station description file information will appear.
(GSD)] from the [OptIOns] menu. 5
yySelect the GSDML file for the IV-H/IV-HG

Data I/O communication


Series you wish to install, and then click the
[Install] button.
yyRestart TIA Portal V11 after the installation.

The GSDML file for the IV-H/IV-HG Series can


be downloaded from the KEYENCE web site.
http: //www.keyence.com 9 Double-click the IV-H/IV-HG Series’ icon
on the [Device & networks] screen.
7 Open [Other field devices] - [PROFINET The [IV] screen will appear.
I/O] - [Sensors] - [KEYENCE
CORPORATION] - [Keyence Vision 10 Enter the same character string as the
Sensors] from [Hardware catalog] on the PROFINET device name of the IV-H/IV-HG
[Devices] - [Device & networks] screen, Series to be connected.
and then drag & drop [IV-xxxx].
If the IV-HG Series is used, drag and drop;
yyIV-HG Main unit for [IV-HG10]
yyIV-HG Expansion unit for [IV-HG15]

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-9


Data I/O communication setting method

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 IV-H/IV-HG Series. (communication cycle) for the data I/O
communication in [Update time].
zz
To set a new IP address for the IV-H/IV-HG
Series using the DCP protocol

5
Data I/O communication

13 Click the CPU in the [Devices] tab. Select


[Compile] - [All] and save the settings.
zz
To use the IP address that is already
registered for the IV-H/IV-HG Series

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.

5-10 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data I/O communication setting method

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 the data I/O
communication will become enabled.

yyBy default, [Size of the process-image input


area] is set to “128”.
To be able to access the addresses after
address 128, expand the setting as shown
below.

Data I/O communication


yyModifying [Size of the process image
input] may affect the scan time of the PLC.
The [Extended download to device] screen will Conduct a thorough verification before the
appear. operation.

15 Click the [Load] button to perform the


download.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-11


Data I/O communication setting method

Setting the Siemens SIMATIC Manager 4 Expand [Object Hierarchy] and select
[SIMATIC 300], and then double-click
This following explains the setting method when [Hardware].
using SIMATIC Manager.

1 Launch [SIMATIC Manager] with the PC


and CPU connected, and then select [New]
from the [File] menu.

2 Enter the project name into the [Name]


field, and then click the [OK] button.
5 The [HW Config] window will appear.
Data I/O communication

5 Expand [SIMATIC] - [RACK-300] from


[Hardware Catalog], and then drag & drop
[Rail] onto the Station Window.

3 Right click the project name in the Object


Hierarchy in [SIMATIC Manager], and then
select [Insert New Object] - [SIMATIC 300
Station]. “Rail” will be added to the Station window.

6 Drag & drop the CPU to be connected


from [Hardware Catalog] and add it to the
hardware configuration diagram.

[SIMATIC 300] will be added.

The [Properties-Ethernet interface PN-IO]


window will appear.

5-12 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data I/O communication setting method

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. configuring the IV-H/IV-HG Series for the
first time.

5
The [Properties-New subnet Industrial Ethernet]

Data I/O communication


yySelect [Options] - [Install GSD File] in the [HW
window will appear.
Config] window.

8 Click the [OK] button to return to the yyClick the [Browse] button in the [Install GSD
File] window and specify the folder containing
[Properties-Ethernet interface PN-IO]
window. the GSDML file.
yySelect the GSDML file for the IV-H/IV-HG
Series you wish to install, and then click the
[Install] button.

The GSDML file for the IV-H/IV-HG Series can


be downloaded from the KEYENCE web site.
http: //www.keyence.com

9 Click the [OK] button.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-13


Data I/O communication setting method

11 Open [PROFINET IO] - [Additional Field 12 Double-click the IV-H/IV-HG Series icon in
Devices] - [Sensors] - [Keyence Vision the [HW Config] window.
Sensors] from [Hardware Catalog] in the The [Properties - IV-H/IV-HG Series] window
[HW Config] window, and then drag & will appear.
drop [IV-xxxx] onto [PROFINET-IO-System]
in the Station Window. 13 Enter the same character string as the
If the IV-HG Series is used, drag and drop; PROFINET device name of the IV-H/IV-HG
yyIV-HG Main Unit for [IV-HG10] Series to be connected into the [Device
yyIV-HG Expansion Unit for [IV-HG15] name] field.

5
Data I/O communication

The IV-H/IV-HG Series will be added to the


Station Window; and all modules available
for the IV-H/IV-HG Series will be added
automatically. 14 Click the [Ethernet] button.
The [Properties - Ethernet interface IV-H/IV-HG
If [PROFINET-IO-System] is not displayed Series] window will appear.
on the Station Window, right-click [PN-IO]
of the CPU and select [Insert PROFINET IO 15 Enter the IP address for the IV-H/IV-
HG Series to be connected into the [IP
System].
address] field.

16 Click the [OK] button to return to the [HW


config] window.

5-14 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data I/O communication setting method

17 Select [Station] - [Save and Compile] in


the [HW Config] window, and save the
settings.

18 Select [PLC] - [Download] in the [HW


Config] window to download the settings
to the CPU.

19 Set the CPU mode switch to “RUN”.


If the connection is successful, the RUN LED
of the CPU will light in green and the data I/O
communication will become enabled. 5

Data I/O communication


yyBy default, [Size of the process-image input
area] is set to “128”.
To be able to access the addresses after
address 128, expand the setting as shown
below.

yyModifying [Size of the process-image input


area] may affect the scan time of the PLC.
Make sure to conduct a thorough verification
before the operation.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-15


Data allocations in the data I/O communication

Data allocations in the data I/O communication

The PROFINET communication for the IV-H/IV-HG 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

Control Modules (PLC → IV-H/IV-HG Series)


5 Control Modules are modules that write instructions from the PLC to the IV-H/IV-HG Series.
The device map of the data allocated for the Control Modules is as shown below.
Data I/O communication

These parameters are responsible for the control instructions for the IV-H/IV-HG Series, clearing of
warnings and handshake control.
For details of each parameter, refer to “Control Modules parameter details” (Page 5-21).

„„
Command Control
Slot No.: 1
Module size: 12 bytes

Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0


Setting value Buffer Statistics Warning Program Master
Reserved Trigger
0 change clear reset clear switching registration
by system request
request request request request request request
1 Reserved by system
Result
acquisition
2 Reserved by system
complete
notification
3 Reserved by system
4-5 Program No.
6-7 Setting value setting No.
8 - 11 Setting value

5-16 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

Status Modules (IV-H/IV-HG Series → PLC)


Status Modules are modules that write responses from the IV-H/IV-HG Series to the PLC.
The device map of the data allocated for the Status Modules is as shown below.
These parameters output the statuses, status results and statistics information of the IV-H/IV-HG Series.
For details of each parameter, refer to “Status Modules parameter details” (Page 5-26).

„„
Command Status Bits
Slot No.: 2
Module size: 4 bytes

Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 5


Setting value Buffer Statistics Warning Program Master

Data I/O communication


Reserved Trigger
0 change clear reset clear switching registration
by system response
response response response response response response
Setting value Program Master
Trigger
1 change Reserved by system switching registration
failed
failed failed failed
Result
Imaging Result
2 Reserved by system Ready RUN BUSY update
status available
complete
Buffer
3 Error Warning Reserved by system
overrun

„„
Device Result Bits
Slot No.: 3
Module size: 4 bytes

Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0


Overall
Reserved Position Overall
0 judgment LOGIC4 LOGIC3 LOGIC2 LOGIC1
by system correction judgment
NG
1 Reserved by system
2 Tool 8 Tool 7 Tool 6 Tool 5 Tool 4 Tool 3 Tool 2 Tool 1
3 Tool 16 Tool 15 Tool 14 Tool 13 Tool 12 Tool 11 Tool 10 Tool 9

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-17


Data allocations in the data I/O communication

„„
Device Status Words
Slot No.: 4
Module size: 16 bytes

Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0


0-1 Error No. (Unsigned 16-bit data)
2-3 Warning No. (Unsigned 16-bit data)
4-5 Number of remaining buffers (Unsigned 16-bit data)
6-7 Checksum (Unsigned 16-bit data)
5 8-9 Current program No. (Unsigned 16-bit data)
10 - 11 Program No. during judgment (Unsigned 16-bit data)
Data I/O communication

12 - 13 Result No. (Unsigned 16-bit data)


14 - 15 Processing time (Unsigned 16-bit data)

„„
Device Statistics
Slot No.: 5
Module size: 28 bytes

Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0


0-1 Processing time MAX (Unsigned 16-bit data)
2-3 Processing time MIN (Unsigned 16-bit data)
4-5 Processing time AVE (Unsigned 16-bit data)
6-7 Reserved by system
8 - 11 Number of triggers (Unsigned 32-bit data)
12 - 15 Number of OKs (Unsigned 32-bit data)
16 - 19 Number of NGs (Unsigned 32-bit data)
20 - 23 Number of trigger errors (Unsigned 32-bit data)
24 - 27 Reserved by system

5-18 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

Tool Result Modules (IV-H/IV-HG Series→ PLC)


Tool Result Modules are modules that write responses from the IV-H/IV-HG Series to the PLC.
The device map of the data allocated for the Tool Result Modules is as shown below.
Stores the matching rate and threshold information of the position correction and other tools.
For details of each parameter, refer to “Tool Result Modules parameter details” (Page 5-32).

„„
Position Adjust Result
Slot No.: 6
Module size: 20 bytes

Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 5

Data I/O communication


0-1 Position correction score (Unsigned 16-bit data)
2-3 Position correction score MAX (Unsigned 16-bit data)
4-5 Position correction score MIN (Unsigned 16-bit data)
6-7 Position correction score Lower threshold (Unsigned 16-bit data)
8 - 19 Reserved by system

„„
Tool Result (other than OCR tool)
Slot No.: 7 to 22
Module size: 20 bytes

Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0


0-1 Tool matching rate (Unsigned 16-bit data)
2-3 Tool matching rate MAX (Unsigned 16-bit data)
4-5 Tool matching rate MIN (Unsigned 16-bit data)
6-7 Tool lower threshold (Unsigned 16-bit data)
8-9 Tool upper threshold (Unsigned 16-bit data)
10 - 11 Decimal position (Unsigned 16-bit integer)*1
12 - 13 Pitch present value MAX (Unsigned 16-bit integer)*2
14 - 15 Pitch present value MIN (Unsigned 16-bit integer)*2
16 - 17 Number of pitches (Unsigned 16-bit integer)*2
18 - 19 Reserved by system

*1: When the scaling is enabled with the Width/Diameter/Pitch tool. When the scaling is not enabled, the
data contents is 0.
*2: When using the Pitch tool. When the scaling is not enabled, the data contents is 0.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-19


Data allocations in the data I/O communication

„„
Tool Result (for the OCR tool)
Slot No.: 7 to 22
Module size: 20 bytes

Address Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0


0-1 Tool 1 matching rate (Unsigned 16-bit integer)
2-3 Tool 1 lower threshold (Unsigned 16-bit integer)
4-5 Characters read (First and second)
6-7 Characters read (Third and fourth)
5 8-9 Characters read (Fifth and sixth)
10 - 11 Characters read (Seventh and eighth)
Data I/O communication

12 - 13 Characters read (Ninth and tenth)


14 - 15 Characters read (11th and 12th)
16 - 17 Characters read (13th and 14th)
18 - 19 Characters read (15th and 16th)

5-20 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

Control Modules parameter details

„„
Command Control Address 0 to 1: Control request
The Bits at Address 0 to 1 of the Command Control have the following functions:

Address Bit Item Content Data content


0 : OFF
0 Trigger request Requests the external trigger.
1 : ON
Master image registration Requests a master image 0 : OFF
1
request registration. 1 : ON

2
Program switching
Requests a program switching.
0 : OFF 5
request 1 : ON

Data I/O communication


0 : OFF
3 Warning clear request Requests a warning clear.
0 1 : ON
0 : OFF
4 Statistics reset request Requests a statistics reset.
1 : ON
0 : OFF
5 Buffer clear request Requests a buffer clear.
1 : ON
6 Reserved by system --- ---
Setting value change Requests a setting value 0 : OFF
7
request change. 1 : ON
1 0 to 7 Reserved by system --- ---

The following will occur when a buffer clear is requested:


yyIf handshake control is [Enabled]
yyThe current status result will be cleared.
yyThe status result in the buffer will be cleared.
yyThe result available bit will become OFF (0).
yyThe number of remaining buffers will become “10”.
yyIf handshake control is [Disabled]
yyThe current status result will be cleared.
yyThe result available bit will become OFF (0).
yyIf you are switching programs using the PROFINET communication, set the [Switching method] option to
[Monitor/PC]. For details of the setting, refer to the “IV-H/IV-HG Series User’s Manual (Monitor / PC Software)”.
yyBuffer overrun and warning statuses will not be cleared even if you execute a buffer clear request.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-21


Data allocations in the data I/O communication

„„
Command Control Address 2 to 3: Handshake control
The Bits at Address 2 to 3 of the Command Control have the following functions:

Address Bit Item Content Data content


Result acquisition Permits the updating of the 0 : OFF
0
2 complete notification status result. 1 : ON
1 to 7 Reserved by system --- ---
3 0 to 7 Reserved by system --- ---

5 A result acquisition completion notice is used when handshake control is [Enabled].


Updating of the status result will be permitted when you request a result acquisition completion notice.
Data I/O communication

For details, refer to “Reading out the overall status result/each tool’s status result (Handshake control
[Enabled])” (Page 5-41).

„„
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 a program
4 to 5 UINT Program number 0 to 31
switching is requested.
* UINT: Unsigned 16-bit integer

5-22 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

„„
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 destination of reflecting a
6 to 7 UINT 0 to 33
setting No. threshold value change.
Stores the threshold value when a
8 to 11 UDINT Setting value 0 to 99999
threshold value change is requested.
* UINT: Unsigned 16-bit integer 5
UDINT: Unsigned 32-bit integer

Data I/O communication


The threshold setting number rules are shown below.
0: Position correction lower threshold
1: Reserved by system
2: Tool 1 lower threshold 3: Tool 1 upper threshold
4: Tool 2 lower threshold 5: Tool 2 upper threshold
6: Tool 3 lower threshold 7: Tool 3 upper threshold
...

32: Tool 16 lower threshold 33: Tool 16 upper threshold

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

yyThe cutoff processing is done for the number of 4 or more digits.


Example) 99995 → 99990
yyChanging the threshold is guaranteed for 1,000,000 times (life-span). Do not change the
threshold frequently.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-23


Data allocations in the data I/O communication

„„
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 of
reflecting a master text
yyWhen the text is read: 101 to 164
change. Divides the 16
Setting value yyWhen the date is read: 301 to 364
6 to 7 UINT master letters into groups of
setting No. yyWhen only judging the number
four letters. Specifies a tool
of letters: 201 to 232
number and location of the

5
text to be changed.
yyMaster text (ASCII) when the
Stores the master text/
text/date reading settings are set
number of letters after a
Data I/O communication

yyMinimum and maximum number


8 to 11 ---- Setting value 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 [Setting value 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-44).

Stored data
Address
Tool 1 Tool 2 … Tool 16
6 to 7
101 102 103 104 105 … … … 164
(DINT)
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
(DINT)
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

5-24 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

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
(DINT)
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

5
Correctly set byte swap in accordance with the PLC specifications.

Data I/O communication


“Data I/O communication setting method” (Page 5-3)

Changing the following settings are guaranteed for 1,000,000 times (life-span).
yyMaster text (When the “Reading Settings” are set to [Character])
yyMinimum/Maximum number of characters in the [Judging number of characters only] (When
the “Reading Settings” are set to [Character])
yyMaster Date (When the “Reading Settings” are set to [Date])
Do not change the above settings frequently.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-25


Data allocations in the data I/O communication

Status Modules parameter details

„„
Command Status Bits Address 0: Control result (response)
The Bits at Address 0 of the Command Status Bits have the following functions:

Address Bit Item Content Data content


Stores the external trigger 0 : OFF
0 Trigger response
response. 1 : ON
Master image registration Stores the master image 0 : OFF
1
response registration response. 1 : ON

5 2
Program switching
response
Stores the program switching
response.
0 : OFF
1 : ON
Data I/O communication

Stores the warning clear 0 : OFF


3 Warning clear response
0 response. 1 : ON
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
6 Reserved by system --- ---
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 the
Master image registration 1 : Master image
1 master image registration is
failed registration has
unsuccessful.
failed.
1
This bit is output when 0 : -
2 Program switching failed the program switching is 1 : Program switching
unsuccessful. has failed.
3 to 6 Reserved by system --- ---
0 : -
Setting value change This bit is output when the setting
7 1 : The setting value
failed value change is unsuccessful.
change has failed.

5-26 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

„„
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:

Address Bit Item Content Data content


0 : The status result
This bit is output when the cannot be acquired.
0 Result available
status result can be acquired. 1 : The status result
can be acquired.
0 <=> 1:
This bit switches the ON/OFF The statuses will
1 Result update complete statuses when the status result
is updated.
be switched when
the status result is 5
updated.

Data I/O communication


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.
2 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.
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
have occurred.
operating 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.
6 to 7 Reserved by system --- ---
0 to 4 Reserved by system --- ---
0 : No buffer overrun
If handshake control is [Enabled],
has occurred.
5 Buffer overrun status this bit is output when an overrun
1 : The buffer is in
of the status result has occurred.
overrun status.
0 : The unit is not in
3 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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-27


Data allocations in the data I/O 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.
yy“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 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.

5
Warning

Warning clear
Data I/O communication

Warning No. 0 Warning code 1 0 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-28 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

„„
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:

Address Bit Item Content Data content


0 Overall judgment Displays the overall status result. 0 : NG 1 : OK
1 Position correction Displays the position correction result. 0 : NG 1 : OK
2 Logic 1 Displays the result of Logic 1. 0 : NG 1 : OK
3 Logic 2 Displays the result of Logic 2. 0 : NG 1 : OK
0
4 Logic 3 Displays the result of Logic 3. 0 : NG 1 : OK
5 Logic 4 Displays the result of Logic 4. 0 : NG 1 : OK 5
6 Overall judgment NG* Displays the “total status result is NG”. 0 : NG 1 : OK

Data I/O communication


7 Reserved by system --- ---
1 0 to 7 Reserved by system --- ---
0 Tool 1 Displays the result of Tool 1. 0 : NG 1 : OK
1 Tool 2 Displays the result of Tool 2. 0 : NG 1 : OK
2 Tool 3 Displays the result of Tool 3. 0 : NG 1 : OK
3 Tool 4 Displays the result of Tool 4. 0 : NG 1 : OK
2
4 Tool 5 Displays the result of Tool 5. 0 : NG 1 : OK
5 Tool 6 Displays the result of Tool 6. 0 : NG 1 : OK
6 Tool 7 Displays the result of Tool 7. 0 : NG 1 : OK
7 Tool 8 Displays the result of Tool 8. 0 : NG 1 : OK
0 Tool 9 Displays the result of Tool 9. 0 : NG 1 : OK
1 Tool 10 Displays the result of Tool 10. 0 : NG 1 : OK
2 Tool 11 Displays the result of Tool 11. 0 : NG 1 : OK
3 Tool 12 Displays the result of Tool 12. 0 : NG 1 : OK
3
4 Tool 13 Displays the result of Tool 13. 0 : NG 1 : OK
5 Tool 14 Displays the result of Tool 14. 0 : NG 1 : OK
6 Tool 15 Displays the result of Tool 15. 0 : NG 1 : OK
7 Tool 16 Displays the result of Tool 16. 0 : NG 1 : OK

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).

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-29


Data allocations in the data I/O communication

„„
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.
Displays the currently occurring
2 to 3 WORD Warning code 0 to 128
warning code.
Displays the number of status
Number of remaining
5 4 to 5 WORD
buffers
results that can be buffered, if
handshake control is [Enabled].
0 to 10
Data I/O communication

Displays the current sensor


6 to 7 WORD Checksum setting status using an arbitrary 0 to 65535
5-digit integer.

Displays the current program


8 to 9 WORD Current program No. 0 to 31
No.

Program No. during Displays the program No. of the


10 to 11 WORD 0 to 31
judgment latest judgment process.
Displays the judgment process
12 to 13 WORD Result No. 0 to 32767
counts.
Displays the processing time of
14 to 15 WORD Processing time 0 to 10000
the latest judgment process.
* WORD : Unsigned 16-bit integer
DWORD : Unsigned 32-bit integer

yyThe unit of processing time is msec.


yyIf two or more errors are occurring at the same time, the error code of the highest priority error will be
displayed.
“Error code list” (Page 5-35)
yyThe first occurred warning code will be displayed.
“Warning code list” (Page 5-36)
yyA checksum can be used to monitor whether the sensor settings have been modified by a third party.
yyThe checksum will remain unchanged even if you switch programs.
yyThe checksum will remain unchanged even if you change the IP address, subnet mask, default gateway
or port number of the IV-H/IV-HG Series.
yyFor the number of remaining buffers, refer to “Reading out the overall status result/each tool’s status
result (Handshake control [Enabled])” (Page 5-41).
yyThe upper limit value of the result No. is 32767. If the maximum value is exceeded, it will go back to 0
and start counting up again.
yyThe result No. will also count the judgment process counts that were skipped due to the real-time
communication cycle setting.

5-30 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

„„
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*
Displays the maximum
0 to 1 WORD Processing time MAX 0 to 10000
processing time value.
Displays the minimum
2 to 3 WORD Processing time MIN 0 to 10000
processing time value.
Displays the average processing
4 to 5 WORD Processing time AVE 0 to 10000
time value. 5
6 to 7 --- Reserved by system --- ---

Data I/O communication


Displays the total number of
8 to 11 DWORD Number of triggers 0-999999999
triggers issued.
Displays the total number of
12 to 15 DWORD Number of OKs triggers issued whose overall 0-999999999
status result was “OK”.
Displays the total number of
16 to 19 DWORD Number of NGs triggers issued whose overall 0-999999999
status result was “NG”.
Number of triggers issued that
20 to 23 DWORD Number of trigger errors 0-999999999
generated a trigger error
24 to 27 --- Reserved by system --- ---
* 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

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-31


Data allocations in the data I/O communication

Tool Result Modules parameter details

„„
Position Adjust Result Address 0 to 19 (Position correction information)
The Bits at Address 0 to 19 of the Position Adjust Result 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
5 Matching rate MAX
correction tool.
Stores the minimum matching
Position correction tool
Data I/O communication

4 to 5 WORD rate value of the position 0 to 100


Matching rate MIN
correction tool.
Position correction tool Stores the threshold value of the
6 to 7 WORD 0 to 100
Threshold value position correction tool.
8 to 19 --- Reserved by system --- ---
* WORD : Unsigned 16-bit integer
DWORD : 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.

5-32 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

„„
Tool Result Address 0 to 19 (Tool information : other than OCR tool)
The Bits at Address 0 to 19 of the Tool Result have the following functions:
Data
Address Item Content Data content
type*
0 to 1 WORD Tool 1 matching rate Stores the matching rate of Tool 1. 0 to 9999
Stores the maximum matching
2 to 3 WORD Tool 1 matching rate MAX 0 to 9999
rate value of Tool 1.
Stores the minimum matching
4 to 5 WORD Tool 1 matching rate MIN 0 to 9999
rate value of Tool 1.
6 to 7 WORD Tool 1 lower threshold
Stores the lower threshold value
of Tool 1.
0 to 9999 5
Stores the upper threshold

Data I/O communication


8 to 9 WORD Tool 1 upper threshold 0 to 9999
value of Tool 1.
0: No decimal point
Stores the decimal point position 1: 1 digit after
Tool 1 decimal point of matching rate when scaling decimal point
10 to 11 WORD 2: 2 digits after
position is enabled with the Width/ decimal point
Diameter/Pitch tool. 3: 3 digits after
decimal point
Tool 1 pitch present Stores the maximum value of all
12 to 13 WORD 0 to 9999
value MAX pitches when using pitch tool.
Tool 1 pitch present Stores the minimum value of all
14 to 15 WORD 0 to 9999
value MIN pitches when using pitch tool.
Stores the number of pitches
16 to 17 WORD Tool 1 number of pitches 0 to 9999
when using pitch tool.
18 to 19 --- Reserved by system --- ---
* 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 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”.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-33


Data allocations in the data I/O communication

„„
Tool Result Address 0 to 319 (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
type*1
Shade contrast
Stores the matching rate of Tool setting
0 to 1 UINT Tool 1 matching rate
1. Disable: 0, 100
Enable: 0 to 100
Shade contrast

5 2 to 3 UINT Tool 1 lower threshold


Stores the lower threshold value
of Tool 1.
setting
Disable: 50 (fixed
value)
Data I/O communication

Enable: 0 to 100
Stores text read (up to 16
letters) by Tool 1. If the number
4 to 19 ---- Tool 1 text read of letters is less than 16, the ASCII
remaining devices are stored as
NULL.
20 to 39 Tool 2 (20 byte)*2
… …
300 to 319 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
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.
“Data I/O communication setting method” (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.

5-34 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

Error code list


The following shows the list of error codes that are generated in the IV-H/IV-HG Series.

Error
Content Cause Countermeasure
code

0 No error --- ---

yyA data error has occurred


yyInitialize the program No. xx.
in program No. xx.
yySwitch on the power back ON.
yyThe data corruption may
Program No. xx yyDo not switch off the unit while the
1 - 32
corruption error
have occurred due to a
power-off while writing
settings are being saved. 5
yyIf the error persists, contact your
settings data and/or due

Data I/O communication


nearest KEYENCE office.
to noise.
yyA data error has occurred. yyInitialize the settings of this unit.
Non-volatile memory
75 yyThe data corruption may yySwitch on the power back ON.
error (EEPROM)
have occurred due to a yyDo not switch off the unit while the
power-off while writing settings are being saved.
Non-volatile memory settings data and/or due yyIf the error persists, contact your
76
error (FLASHROM) to noise. nearest KEYENCE office.
yySwitch on the power back ON.
An error may have
81-128 System error yyIf the error persists, contact your
occurred in the sensor.
nearest KEYENCE office.
* When the IV-HG Series sensor is used, error code 124 will be displayed if the sensor head is not
connected to the sensor amplifier.

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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-35


Data allocations in the data I/O communication

Warning code list


The following shows the list of warning codes that are generated in the IV-H/IV-HG Series.

Warning
Content Cause Countermeasure
code

0 No error --- ---

For the new master image, yyCheck if there are any problems with
External master the characters and date
the registered image and the detection
58 registration error tool or the position correction setting.
cannot be read with the
(OCR) yyAdjust the brightness of the image to
5 OCR tool. be registered.
yyUse the monitor or PC application
Data I/O communication

The master date in the OCR to set the sensor add date and time
59 Sync error tool failed to synchronize information function to [Enable].
with the calendar. yyCheck the connection with the monitor
or PC application.
yyInput settings in the correct range
while the device is running.
yyInput valid setting values or numbers.
In the following situations, input setting
yyA setting change has values and numbers are invalid:
been requested from --The settings number is outside of
PROFINET while the the range of the data content
Field network bad --The specified tool is not being used
60 unit is in “Setting” status.
request error (OCR) --The specified tool is not the OCR tool
yySetting values or --The specified OCR tool detection
numbers that are not operation (character/date/character
valid are entered. count) does not match the change
request
--When only judging the number of
characters, the number of characters
is outside of the data content range
yyThreshold changing has
been requested from
yyWhile running, enter a threshold which
Field network PROFINET while the unit
is in the correct range.
61 bad request error is in “Setting” status.
yyEnter a valid threshold or threshold
(Threshold changing) yyAn invalid threshold or
setting No.
threshold setting No. has
been entered.
Request a result acquisition completion
Field network overrun An overrun of the status
62 notice to permit the updating of the
error result has occurred.
status result.
External master registration
Field network bad Do not request an external master
has been requested from
63 request error (Master registration while the unit is in “Setting”
PROFINET while the unit
registration) status.
is in “Setting” status.

5-36 - IV-H/IV-HG Series User’s Manual (Field Network) -


Data allocations in the data I/O communication

Warning
Content Cause Countermeasure
code
yyProgram switching has
been requested from
PROFINET while the
unit is in “Setting” status.
yyDo not request a program switching
yyA program switching
while the unit is in “Setting” status.
request to a non-existent
Field network bad yyThe program No. should be set in the
program No. was made
64 request error range between 0 and 31.
from PROFINET.
(Program switching) yyIf you are switching programs from
yyA program switching
PROFINET, set the program switching
requested was made
from PROFINET while
via external input to [Disabled]. 5
the program switching

Data I/O communication


method was set to
[External input].
A trigger has been input
while the unit was in busy
Do not input triggers while the unit is in
65 Trigger error status. (If you have set
busy status.
the trigger error option to
[Enabled])
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.
The 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.
FTP Transfer Error The data transfer to the Check the access permissions of the
71
(Transfer Failed) destination folder has failed. destination folder.
yyCheck the IP address of the FTP server.
yyCheck the port number of the FTP server.
Connection to the FTP yyCheck the user name for logging into
72 FTP connection error
server has failed. the FTP server.
yyCheck the password for logging into
the FTP server.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-37


Data allocations in the data I/O communication

Warning
Content Cause Countermeasure
code
External master
registration error There is insufficient work
73 Delete one or more detection tools.
(Insufficient work memory.
memory)
External master There are no registered Perform the master image registration
74 registration error images for master after having captured the image to be
(No images) registration. used for the registration.

5
yyWhen two or more warnings are issued, all subsequent warnings after the first warning will be saved in
Data I/O communication

the history. If you clear the warnings, the warning code of the highest priority warning will be displayed.

Warning

Warning clear

Warning No. 0 Warning code 1 0 Warning code 2

yyGreater the warning code, higher the priority of the warning will be.

5-38 - IV-H/IV-HG Series User’s Manual (Field Network) -


Operating procedure of the data I/O communication

Operating procedure of the data I/O communication

This section explains the method for communicating from the PLC to the IV-H/IV-HG Series using data I/O
communication.

Reading out the overall status result/each tool’s status result


(Handshake control [Disabled])

„„
When a trigger is successful
Trigger request A B

Trigger response A B

BUSY A B 5
Imaging status A B

Data I/O communication


Result update complete A B

Result available

Result No. A B

Overall judgment/ Result of A Result of B


each tool’s status result

(1) Execute a [Trigger request]. (0 → 1)


(2) If the trigger is valid, [Trigger response] will change from 0 to 1.
(3) Once the judgment process ends, the [Result update complete] Bit will switch and [Overall judgment]/
[Each tool’s status result] will be updated. The read text will be updated for the OCR tool.

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 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.

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-39


Operating procedure of the data I/O communication

„„
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

Result update complete A C

5 Result available

Result No. A C
Data I/O communication

Overall judgment Result of A Result of C

Warning

Warning No. Warning No.

(1) Execute a [Trigger request]. (0 → 1)


(2) If the trigger is valid, the [Trigger response] will change from 0 to 1.
(3) [BUSY] will change from 0 to 1 when a trigger is input.
(4) [BUSY] will change from 1 to 0 when the judgment process ends.
At this time, the [Result update complete] BIT will be switched and [Overall judgment] will be updated.
(5) If you wish to output trigger errors, set the trigger error option to [Enabled].
If a trigger has been input while the trigger error option is set to [Enabled] and the unit is in “BUSY”
status, [Trigger failed] will change from 0 to 1 ignoring the trigger input. No judgment process will be
performed for trigger B.
(6) If the trigger input is unsuccessful, [Warning] will switch from “0” to “1” and [Warning No.] will be
updated to “65”. For details, refer to “Warning code list” (Page 5-36).

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-40 - IV-H/IV-HG Series User’s Manual (Field Network) -


Operating procedure of the data I/O communication

Reading out the overall status result/each tool’s status result


(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 A B C

Trigger response A B C

Trigger failed

5
BUSY A B C

Imaging status A B C

Data I/O communication


Result update B C
A
complete

Result available A C

Result acquisition
complete A B
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

(1) Execute a [Trigger request]. (0 → 1)


(2) If the trigger is valid, [Trigger response] will change from 0 to 1.
(3) Once the judgment process ends, the [Result update complete] Bit will switch, [Result available] will
switch from 0 to 1, and [Overall judgment]/[Each tool’s status result] will be updated. The read text will
be updated for the OCR tool.
(4) [Number of remaining buffers] will be decremented by 1 when the status result is updated.
(5) Executes [Result acquisition complete notice] (0 → 1). [Number of remaining buffers] will be
incremented by 1.

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 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 settings.
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 executed (0 → 1), 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].

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-41


Operating procedure of the data I/O communication

Switching the programs

Program No. Program No.

Program switching request

Program switching response

BUSY

(1) Write the program No. to be set to [Program No.].


For the write range setting, refer to “Control Modules parameter details” (Page 5-21).
5 (2) Execute [Program switching request]. (0 → 1)
(3) You can check the input status in [Program switching response].
Data I/O communication

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.

yy[BUSY] will change from 0 to 1 while the program switching is in progress.


yyIf the program switching fails, [Program switching failed] will change from “0” to “1”.
yyIf the program switching is unsuccessful, [Warning] will switch from “0” to “1” and [Warning No.] will be
updated to “64”. For details, Refer to “Warning code list” (Page 5-36).
yyYou cannot switch programs from the PROFINET communication while the unit is in [Setting] status.
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-H/IV-HG Series User’s Manual (Monitor / PC Software)”.

5-42 - IV-H/IV-HG Series User’s Manual (Field Network) -


Operating procedure of the data I/O communication

Changing the tool adjustment threshold

Setting value setting No. Setting value setting No.

Setting value Setting value

Setting value change request

Setting value change reponse

(1) Write the tool number and threshold type of the threshold to be changed to [Setting value setting No.].
For the write range setting, refer to “Control Modules parameter details” (Page 5-21). 5
(2) Write the threshold to be changed to [Setting value].

Data I/O communication


(3) Execute [Setting value change request]. (0→1)
(4) You can check the input status in [Setting value change response].

Changing the setting value is guaranteed for 1,000,000 times (life-span).


Do not change the setting value frequently.

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-36).

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-43


Operating procedure of the data I/O communication

Changing the master text


This section shows the master text for Tool 1 changing to [ABCDEF] as an example. The text is overwritten
twice in groups of four letters.

Setting value setting No. (PLC→IV) 101 102

Setting value (master text) (PLC→IV) ABCD EF(NULL)(NULL)

Setting value change request (PLC→IV)

Setting value change response (IV→PLC)

5 (1) Overwrite [Setting value setting No.: Address 6 to 7] with 101 (master text (first to fourth letter) when
the read text settings are set with Tool 1).
Data I/O communication

(2) Overwrite [Settings value: Address 8] with A (0x41), [Settings value: Address 9] with B (0x42), [Settings
value: Address 10] with C (0x43), and [Settings value: 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 [Setting value 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 [Settings value: Address 8] with E (0x45), [Settings value: Address 9] with F (0x46), [Settings
value: Address 10] with NULL (0x00), and [Settings value: 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.

Append NULL text to the end of the text.


If you change “ABCDEFG” to “1234” and did not write NULL, the text is changed to “1234EFG”.

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

5-44 - IV-H/IV-HG Series User’s Manual (Field Network) -


Operating procedure of the data I/O communication

yyOnly arbitrary text can be changed in groups of four letters.


To change “2019.4.5” to “2019.4.6”, you can change only 102 for [Setting value setting No.: Address 6
to 7] (master text (fifth to eighth letter) when the read text settings are set with Tool 1).

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

yyChanges in groups of four are applied immediately. Do not execute a trigger until all text changes are
5
complete.

Data I/O communication

- IV-H/IV-HG Series User’s Manual (Field Network) - 5-45


Operating procedure of the data I/O communication

Registering a master image externally

Master registration request

Master registration response

BUSY

(1) Execute a [Master registration request]. (0 → 1)


(2) You can check the input status in [Master registration response].

5
yy[BUSY] will change from 0 to 1 while the master image registration is in progress.
Data I/O communication

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 5-36).
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-H/IV-HG Series User’s Manual
(Monitor / PC Software)”.

5-46 - IV-H/IV-HG Series User’s Manual (Field Network) -


Appendices

Reference program (EtherNet/IP)..................... A-2


Reference program (PROFINET).................... A-10
Index.................................................................A-14

- IV-H/IV-HG Series User’s Manual (Field Network) - A-1


Reference program (EtherNet/IP)

Reference program (EtherNet/IP)

This section introduces a reference program for when using EtherNet/IP communication in the
IV-H/IV-HG Series.
In the actual operation, programming must be performed taking the error processing, etc. into
consideration.

Handshake control [Disabled]

Keyence KV series
REQ Trigger response Trigger request

Line 1

A Trigger request

Line 2

Result update
Result available complete MOV
Tool score DM2000
Line 3

Result update
complete

Line 4

„„
Description of the reference program
zz
Line 1/Line 2
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).

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.

A-2 - IV-H/IV-HG Series User’s Manual (Field Network) -


Reference program (EtherNet/IP)

Rockwell Automation PLC


REQ Trigger Ack Trigger
ONS
Rung0

Trigger

MOV
Result Ready Complete Toggle Move
ONS Source Tool Score
Rung1
Dest Result

Complete Toggle
A
ONS

„„
Description of the reference program
zz
Rung0
Sets “REQ” to ON and executes “Trigger”.
“Trigger Ack” ON will set Trigger to OFF (“Trigger” will be retained until “Trigger Ack” becomes ON).

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.

- IV-H/IV-HG Series User’s Manual (Field Network) - A-3


Reference program (EtherNet/IP)

Handshake control [Enabled]

Keyence KV series
REQ Trigger response Trigger request

Line 1

Trigger request

Line 2

Result available MOV


A Line 3
Tool score DM2000

Result acquisition
Result available Result available complete notification

Line 4

Result acquisition
complete notification

Line 5

„„
Description of the reference program
zz
Line 1/Line 2
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).

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).

A-4 - IV-H/IV-HG Series User’s Manual (Field Network) -


Reference program (EtherNet/IP)

Rockwell Automation PLC


REQ Trigger Ack Trigger
ONS
Rung0

Trigger

MOV
Result Ready Move
ONS Source Tool Score
Rung1
Dest Result

Result Ready Result Ready Result Ready Ack


A
ONS
Rung2

Result Ready Ack

„„
Description of the reference program
zz
Rung0
Sets “REQ” to ON and executes “Trigger”.
“Trigger Ack” ON will set Trigger to OFF (“Trigger” will be retained until “Trigger Ack” becomes ON).

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.

- IV-H/IV-HG Series User’s Manual (Field Network) - A-5


Reference program (EtherNet/IP)

Program switching

Keyence KV series
REQ MOV
DM1000 Program No.
Line 1

Program switching Program switching


REQ response request

Line 2

Program switching
request
A Line 3

„„
Description of the reference program
zz
Line 1
This line sets “REQ” to ON and copies the DM1000 data, which contains the program No. to be set, to the
program No.

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).

A-6 - IV-H/IV-HG Series User’s Manual (Field Network) -


Reference program (EtherNet/IP)

Rockwell Automation PLC

MOV
REQ Move
ONS Source Number
Rung0
Dest Program Number

REQ Program Change Ack Program Change


ONS
Rung1

Program Change

A
„„
Description of the reference program
zz
Rung0
This line sets “REQ” to ON and copies the Number data, which contains the program No. to be set, to the
program No.

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).

- IV-H/IV-HG Series User’s Manual (Field Network) - A-7


Reference program (EtherNet/IP)

Changing adjustment threshold

Keyence KV series

MOV
REQ DM1000
Line 1
Threshold setting No.

MOV
DM1004
Line 2
Threshold
A
REQ Threshold changing response Threshold changing request
Line 3

Threshold changing request


Line 4

„„
Description of the reference program
zz
Line 1
This line sets “REQ” to ON and copies the DM1000 data, which contains the threshold setting No. to be
set, to the threshold setting No.
zz
Line 2
This line sets “REQ” to ON and copies the DM1004 data, which contains the threshold to be set, to the
threshold.
zz
Line 3/Line 4
Sets “REQ” to ON and executes a threshold changing request.
“Threshold changing response” ON will set “Threshold changing request” to OFF (“Threshold changing
request” will be retained until “Threshold changing response” becomes ON).

A-8 - IV-H/IV-HG Series User’s Manual (Field Network) -


Reference program (EtherNet/IP)

Rockwell Automation PLC

MOV
REQ Move
ONS Source Number
Rung0
Dest Limit Setting No.

MOV
Move
Source Value
Dest Upper/Lower Limit

Upper/Lower Limit Upper/Lower


REQ
ONS
Change Ack Limit Change A
Rung1

Upper/Lower Limit
Change

„„
Description of the reference program
zz
Rung0
This line sets “REQ” to ON and copies the Number data, which contains the Limit Setting No. to be set, to
the Limit Setting No. This line also copies the Value data, which contains the Upper/Lower Limit to be set,
to the Upper/Lower Limit.

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.)

- IV-H/IV-HG Series User’s Manual (Field Network) - A-9


Reference program (PROFINET)

Reference program (PROFINET)

This section introduces a reference program for when using the PROFINET communication in the
IV-H/IV-HG Series.
In the actual operation, programming must be performed taking the error processing, etc. into consideration.

Handshake control [Disabled]

Siemens PLC
REQ Trigger Ack Trigger
P
Network1

A Trigger

MOV
Result Ready Complete Toggle
P EN ENO
Network2
Tool Score IN OUT Result

Complete Toggle
N

„„
Description of the reference program
zz
Network1
Sets “REQ” to ON and executes “Trigger”.
“Trigger Ack” ON will set “Trigger” to OFF (“Trigger” will be retained until “Trigger Ack” becomes ON).

zz
Network2
“Result Ready” ON + Rising or falling of “Complete Toggle” will copy the data that have been written to “Tool
Score” to “Result”.

A-10 - IV-H/IV-HG Series User’s Manual (Field Network) -


Reference program (PROFINET)

Handshake control [Enabled]

Siemens PLC
REQ Trigger Ack Trigger
P
Network1

Trigger

MOV
Result Ready

Network2
P EN ENO A
Tool Score IN OUT Result

Result Ready Result Ready Result Ready Ack


P
Network3

Result Ready Ack

„„
Description of the reference program
zz
Network1
Sets “REQ” to ON and executes “Trigger”.
“Trigger Ack” ON will set “Trigger” to OFF (“Trigger” will be retained until “Trigger Ack” becomes ON).

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).

- IV-H/IV-HG Series User’s Manual (Field Network) - A-11


Reference program (PROFINET)

Program switching

Siemens PLC

MOV
REQ
P EN ENO
Network1
Number IN OUT Program Number

REQ Program Change Ack Program Change


P
Network2

A
Program Change

„„
Description of the reference program
zz
Network1
This line sets “REQ” to ON and copies the Number data, which contains the program No. to be set, to the
program No.

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).

A-12 - IV-H/IV-HG Series User’s Manual (Field Network) -


Reference program (PROFINET)

Changing adjustment threshold

Siemens PLC

MOV
REQ
P EN ENO
Network1
Number Limit
IN OUT Setting
No.

MOV

EN ENO
Value
IN OUT
Upper/
Lower
A
Limit

Upper/Lower Limit Upper/Lower


REQ Change Ack Limit Change
P
Network2

Upper/Lower Limit
Change

„„
Description of the reference program
zz
Network1
This line sets “REQ” to ON and copies the Number data, which contains the Limit Setting No. to be set, to
the Limit Setting No. This line also copies the Value data, which contains the Upper/Lower Limit to be set,
to the Upper/Lower Limit.
zz
Network2
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).

- IV-H/IV-HG Series User’s Manual (Field Network) - A-13


Index

Index

B O
Basic configurations of IV-H/IV-HG Series...........1-2 OMRON PLC................................................ 2-4, 4-5
Operating procedure
C of the cyclic communication...............................3-31
Operating procedure
Changing the master text......................... 3-36, 5-44
of the data I/O communication...........................5-39
Changing the tool adjustment threshold... 3-35, 5-43
Operation of the indicator light.............................1-6
Connecting the host device
Output Assembly parameter details...................3-23
and multiple sensors............................................1-4
Output Assembly (PLC → IV-H/IV-HG series)....3-22
Connecting the host device and
Overview of EtherNet/IP.......................................2-2
single sensor (IV-HG series)................................1-3
Overview of IV-H/IV-HG Series............................1-5
Connecting the host device and
Overview of PROFINET.......................................4-2
single sensor (IV-H Series)...................................1-2
Overview of the cyclic communication.................3-2
Control Modules parameter details....................5-21
Overview of the data I/O communication.............5-2
A
Control Modules (PLC → IV-H/IV-HG series).....5-16
Overview of the EtherNet/IP communications
Cyclic communication setting method..................3-3
functions in the IV-H/IV-HG series........................2-3
Overview of the PROFINET communication
D functions in the IV-H/IV-HG series........................4-4
Data allocation in the cyclic communication.......3-11
Data allocations P
in the data I/O communication............................5-16
Phoenix Contact PLC...........................................4-5
Data I/O communication setting method..............5-3
PLC settings................................................. 3-6, 5-7
PROFINET communication specifications
E and functions in the IV-H/IV-HG series.................4-3
Error code list........................................... 3-27, 5-35
Establishing the connection..................................3-6 R
Establishing the data I/O communication.............5-7
Reading out the overall status result/
EtherNet/IP communication specifications and
each tool’s status result
functions in the IV-H/IV-HG series........................2-3
(Handshake control [Disabled])................ 3-31, 5-39
EtherNet/IP communication specifications
Reading out the overall status result/
in the IV-H/IV-HG series.......................................2-3
each tool’s status result
(Handshake control [Enabled])................. 3-33, 5-41
I Reference program (EtherNet/IP)....................... A-2
Input Assembly (IV-H/IV-HG series → PLC).......3-11 Reference program (PROFINET)...................... A-10
Input Assembly parameter details......................3-13 Registering a master image externally..... 3-38, 5-46
IV-H/IV-HG Series................................................1-5 Rockwell Automation Control
IV-H/IV-HG series PROFINET communication Logix series settings.............................................3-9
specifications........................................................4-3 Rockwell Automation PLC....................................2-4

K
Keyence KV series settings..................................3-8
Keyence PLC.......................................................2-4

L
List of supported PLCs................................. 2-4, 4-5

A-14 - IV-H/IV-HG Series User’s Manual (Field Network) -


Index

S
Setting the device name.......................................5-6
Setting the IV-H/IV-HG series....................... 3-3, 5-3
Setting the Siemens SIMATIC Manager.............5-12
Setting the Siemens TIA Portal.............................5-8
Siemens PLC.......................................................4-5
Specifying the IP address
using the DCP protocol.........................................4-3
Status Modules (IV-H/IV-HG series → PLC)......5-17
Status Modules parameter details......................5-26
Switching the programs............................ 3-34, 5-42
System Configuration...........................................1-2
System configuration example.............................1-5

T A
Tool Result Modules
(IV-H/IV-HG series→ PLC).................................5-19
Tool Result Modules parameter details..............5-32

W
Warning code list...................................... 3-28, 5-36
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
When settings on the monitor
(IV-M30)................................................. 3-3, 5-3, 5-6

- IV-H/IV-HG Series User’s Manual (Field Network) - A-15


Index

MEMO

A-16 - IV-H/IV-HG Series User’s Manual (Field Network) -


Index

Copyright notice

/*
* 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 A
* 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.
*/

- IV-H/IV-HG Series User’s Manual (Field Network) - A-17


Revision history

Revision history Edition number Revision details

September, 2015 Official release

August, 2016 Revised 2nd edition

February, 2018 Revised 3rd edition

February, 2018 Revised 4th edition

May, 2018 Revised 5th edition


WARRANTIES AND DISCLAIMERS

(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.

BUYER’S TRANSFER OBLIGATIONS:


If the Products/Samples purchased by Buyer are to be resold or delivered to a third party, Buyer must
provide such third party with a copy of this document, all specifications, manuals, catalogs, leaflets
and written information provided to Buyer pertaining to the Products/Samples.

E 1101-3
Copyright (c) 2015 KEYENCE CORPORATION. All rights reserved. 244021E 1058-5 521GB Printed in Japan

You might also like