Omron FH/FZ5 Series Vision System Macro Customize Functions Owner's manual

Type
Owner's manual
Vision Sensor
FH/FZ5 Series
Vision System
Macro Customize Functions Programming Manual
Z367-E1-01
FH-1
FH-1-
FH-3
FH-3-
FH-L
FH-L-
FZ5-L35
FZ5-L35-
FZ5-6
FZ5-6-
FZ5-11
FZ5-11-
Introduction
Thank you for purchasing the FH/FZ5.
This manual provides information regarding functions, performance and operating methods that
are required for using the FH/FZ5.
When using the FH/FZ5, be sure to observe the following:
The FH/FZ5 must be operated by personnel knowledgeable in electrical engineering.
To ensure correct use, please read this manual thoroughly to deepen your understanding of the
product.
• Please keep this manual in a safe place so that it can be referred to whenever necessary.
NOTE
Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation
in Japan and other countries for OMRON factory automation products.
This software is based in part on the work of the Independent JPEG Group.
Microsoft, Windows, Windows Vista, Excel, and Visual Basic are either registered trade-
marks or trademarks of Microsoft Corporation in the United States and other countries.
Intel, Core and Pentium are trademarks of Intel Corporation in the U.S. and/or other
countries.
EtherCAT® is registered trademark and patented technology, licensed by Beckhoff
Automation GmbH, Germany.
ODVA, CIP, CompoNet, DeviceNet, and EtherNet/IP are trademarks of ODVA.
The SD and SDHC logos are trademarks of SD-3C, LLC.
QR Code is a registered trademark of DENSO WAVE INCORPORATED.
Microsoft product screen shots reprinted with permission from Microsoft Corporation.
Copyrights
All rights reserved. No part of this publication may be reproduced, stored in
a retrieval system, or transmitted, in any form, or by any means, mechanical,
electronic, photocopying, recording, or otherwise, without the prior written
permission of OMRON.
Trademarks
Other company names and product names in this document are the trademarks
or registered trademarks of their respective companies.
No patent liability is assumed with respect to the use of the information
contained herein. Moreover, because OMRON is constantly striving to improve
its high-quality products, the information contained in this manual is subject
to change without notice. Every precaution has been taken in the preparation of
this manual. Nevertheless, OMRON assumes no responsibility for errors or omis
sions. Neither is any liability assumed for damages resulting from the use of
the information contained in this publication.
MELSEC is a registered trademarks of Mitsubishi Electric Corporation.
1
Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Structure of FH/FZ5 Manuals
The following table gives the manual configuration of the FH/FZ5.
Name of Manual Cat. No. Model Proposes Contents
Vision System FH
Instruction Sheet 9607479-9
FH-1
FH-1-
FH-3
FH-3-
To confirm the safety and
usage precautions of the
Vision System FH series
Sensor Controller.
Describes the definitions of basic
terms, meaning of signal words,
and precautions for correct use of
FH series in the manual.
Vision System FH-L
Instruction Sheet 9606631-1 FH-L
FH-L-
To confirm the safety and
usage precautions of the
Vision System FH-Lite series
Sensor Controller.
Describes the definitions of basic
terms, meaning of signal words,
and precautions for correct use of
FH-L series in the manual.
Vision System FZ5
Instruction Sheet 9524422-4
FZ5-6
FZ5-6-
FZ5-11
FZ5-11-
To confirm the setup
procedures, safety and
usage precautions of the
Vision System FZ5 series
Sensor Controller, including
I/O setup and wiring
Describes the definitions of basic
terms, meaning of signal words,
and precautions for correct use of
FZ5 series in the manual.
Vision System FZ5-L
Instruction Sheet 9910002-2 FZ5-L35
FZ5-L35-
To confirm the setup
procedures, safety and
usage precautions of the
Vision System FZ5-L Series
Sensor Controller, including
I/O setup and wiring.
Describes the definitions of basic
terms, meaning of signal words,
and precautions for correct use of
FZ5-L series in the manual.
Vision System FH/FZ5
Series User’s Manual Z365
FH-1
FH-1-
FH-3
FH-3-
FH-L
FH-L-
FZ5-L35
FZ5-L35-
FZ5-6
FZ5-6-
FZ5-11
FZ5-11-
When User want to know how
to setup the Sensor Controller
of the Vision System FH/FZ5
series.
Describes the soft functions, setup,
and operations to use Sensor
Controller of the Vision System FH/
FZ5 series.
Vision System FH/FZ5
series Hardware Setup
Manual
Z366
When User want to know
about the Hard-ware
specifications or to setup the
Sensor Controller of the
Vision System FH/FZ5
series.
Describes FH/FZ5 series
specifications, dimensions, part
names, I/O information, installation
information, and wiring information.
Vision System FH/FZ5
series Macro Customize
Functions Programming
Manual
Z367
When User operate or
programming using Macro
Customize functions.
Describes the functions, settings,
and operations for using Macro
Customize function of the FH/FH5-
series.
Vision System FH/FZ5
series Processing Item
Function Reference
Manual
Z341
When User confirm the details
of each processing items at
the create the measurement
flow or operate it.
Describes the software functions,
settings, and operations for using
FH/FH5-series.
Vision System FH/FZ5
Series User’s Manual
for Communications
Settings
Z342
When User confirm the
setting of communication
functions.
Describes the functions, settings,
and communications methods for
communicating between FH/FH5
series.
The following communication
protocol are described.
Parallel, PLC Link, EtherNet/IP,
EtherCAT, and Non-procedure
Vision System FH
Series Operation
Manual for Sysmac
Studio
Z343
FH-1
FH-1-
FH-3
FH-3-
When User connect to NJ
series via EtherCAT
communication.
Describes the operating
procedures for setting up and
operating FH series Vision Sensors
from the Sysmac Studio FH Tools.
2Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Conventions Used in This Manual
Symbols
The symbols used in this manual have the following meanings.
Use of Quotation Marks and Brackets
In this manual, menus and other items are indicated as follows.
Definitions of Basic Terms
For details on Definitions of Basic Terms, refer to Definitions of Basic Terms in the Vision System FH/FZ5
Series User's Manual (Cat. No. Z365).
Indicates relevant operational precautions that must be followed.
Indicates operation-related suggestions from OMRON.
[ ] Menu Indicates the menu names or processing items shown in the menu bar.
Item name Indicates the item names displayed on the screen.
IMPORTANT
Note
3
Contents
Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Structure of FH/FZ5 Manuals ............................................................................................................... 1
Conventions Used in This Manual ........................................................................................................ 2
Definitions of Basic Terms .................................................................................................................... 2
Terms and Conditions Agreement ........................................................................................................ 5
Safety Precautions ................................................................................................................................ 7
Precautions for Safe Use ...................................................................................................................... 7
Precautions for Correct Use ................................................................................................................. 7
Regulations and Standards .................................................................................................................. 7
1. Overview of Macro Customize Functions ....................................................................................9
Macro Customize Functions .................................................................................................................... 10
List of Macro Customize Functions ..................................................................................................... 10
Structure of This Manual ..................................................................................................................... 12
2. Using Macro Customize Functions ............................................................................................13
Instructions on Using Macro Customize Functions .................................................................................. 14
Components of the Macro Customize Functions ................................................................................ 14
Procedures for Using the Macro Customize Functions ...................................................................... 15
3. Screen Component and Setting Configuration .........................................................................19
Components of the Screens and How to Configure Settings ................................................................... 20
Components of the Program Editing Screen ...................................................................................... 20
Description of the System Status Console Window ............................................................................ 24
Description of the Setting Screen for the "Unit Calculation Macro" Processing Item
and How to Configure Settings ........................................................................................................... 25
Description of the Setting Screen of the Scene Control Macro Tool
and How to Configure Settings ........................................................................................................... 29
Components of the Setting Screen of the Communication Command Macro Tool
and How to Configure Settings ........................................................................................................... 31
Description of the Setting Screen of the "Unit Macro" Processing Item
and How to Configure Settings ........................................................................................................... 38
Saving and Loading Programs ........................................................................................................... 42
4. Basics of Programming ...............................................................................................................45
Basic Idea of Programming ...................................................................................................................... 46
Basic Syntax ....................................................................................................................................... 46
Constant ............................................................................................................................................. 50
Variable ............................................................................................................................................... 51
Macro Variable Check Function .......................................................................................................... 55
Operator .............................................................................................................................................. 56
Expression .......................................................................................................................................... 58
5. Macro Programming ....................................................................................................................61
How to Write Macro Programs ................................................................................................................. 62
Data Types Related to Processing Units ............................................................................................ 62
Data Types Related to the System ..................................................................................................... 67
Scope of Data and Save Area ............................................................................................................ 70
State Transitions and Execution Timing ............................................................................................. 72
Exclusive Control in a Process ........................................................................................................... 79
4Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
6. Debug Function ............................................................................................................................81
How to Use the Debug Function .............................................................................................................. 82
Debug Preparations ............................................................................................................................ 82
Debug Procedure ................................................................................................................................ 85
Checking Why an Error Occurred ....................................................................................................... 86
Starting Debug .................................................................................................................................... 87
Identifying the Cause of an Error ........................................................................................................ 88
Removing the Error ............................................................................................................................. 91
Exiting Debug ..................................................................................................................................... 91
7. Troubleshooting ...........................................................................................................................93
Troubleshooting ....................................................................................................................................... 94
Troubleshooting for Programming ...................................................................................................... 94
Troubleshooting When Checking Operation ....................................................................................... 96
Troubleshooting during debugging ..................................................................................................... 99
Troubleshooting during regular operation ......................................................................................... 100
8. Macro Functions .......................................................................................................................103
Macro Function List ................................................................................................................................ 104
Alphabetical Order ............................................................................................................................ 104
Function-based Index ....................................................................................................................... 116
Macro Command Reference .................................................................................................................. 125
9. Macro Reference .......................................................................................................................549
Macro Reference List ............................................................................................................................. 550
Error List ........................................................................................................................................... 550
List of Reserved Words .................................................................................................................... 552
System Data List ............................................................................................................................... 557
List of I/O Modules ............................................................................................................................ 575
Figure Data List ................................................................................................................................ 607
List of Figure Numbers ..................................................................................................................... 609
Model Number List ............................................................................................................................ 612
Image Number List ........................................................................................................................... 614
List of Sub-Image Numbers .............................................................................................................. 616
Manual Revision History ........................................................................................................................ 621
5
Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Terms and Conditions Agreement
Read and understand this Manual
Please read and understand this catalog before purchasing the products. Please consult your OMRON
representative if you have any questions or comments.
Warranty, Limitations of Liability
z
Warranties
Exclusive Warranty
Omron’s exclusive warranty is that the Products will be free from defects in materials and workmanship for a
period of twelve months from the date of sale by Omron (or such other period expressed in writing by
Omron). Omron disclaims all other warranties, express or implied.
Limitations
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, ABOUT NON-
INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OF THE
PRODUCTS. BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT THE PRODUCTS
WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE.
Omron further disclaims all warranties and responsibility of any type for claims or expenses based on
infringement by the Products or otherwise of any intellectual property right.
Buyer Remedy
Omron’s sole obligation hereunder shall be, at Omron’s election, to (i) replace (in the form originally shipped
with Buyer responsible for labor charges for removal or replacement thereof) the non-complying Product, (ii)
repair the non-complying Product, or (iii) repay or credit Buyer an amount equal to the purchase price of the
non-complying Product; provided that in no event shall Omron be responsible for warranty, repair, indemnity
or any other claims or expenses regarding the Products unless Omron’s analysis confirms that the Products
were properly handled, stored, installed and maintained and not subject to contamination, abuse, misuse or
inappropriate modification. Return of any Products by Buyer must be approved in writing by Omron before
shipment. Omron Companies shall not be liable for the suitability or unsuitability or the results from the use of
Products in combination with any electrical or electronic components, circuits, system assemblies or any
other materials or substances or environments. Any advice, recommendations or information given orally or
in writing, are not to be construed as an amendment or addition to the above warranty.
See http://www.omron.com/global/ or contact your Omron representative for published information.
z
Limitation on Liability; Etc
OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL, INDIRECT, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS IN ANY
WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED IN CONTRACT,
WARRANTY, NEGLIGENCE OR STRICT LIABILITY.
Further, in no event shall liability of Omron Companies exceed the individual price of the Product on which
liability is asserted.
6Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Application Considerations
z
Suitability of Use
Omron Companies shall not be responsible for conformity with any standards, codes or regulations which
apply to the combination of the Product in the Buyer’s application or use of the Product. At Buyer’s request,
Omron will provide applicable third party certification documents identifying ratings and limitations of use
which apply to the Product. This information by itself is not sufficient for a complete determination of the
suitability of the Product in combination with the end product, machine, system, or other application or use.
Buyer shall be solely responsible for determining appropriateness of the particular Product with respect to
Buyer’s application, product or system. Buyer shall take application responsibility in all cases.
NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO
ADDRESS THE RISKS, AND THAT THE OMRON PRODUCT(S) IS PROPERLY RATED AND INSTALLED
FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
z
Programmable Products
Omron Companies shall not be responsible for the user’s programming of a programmable Product, or any
consequence thereof.
Disclaimers
z
Performance Data
Data presented in Omron Company websites, catalogs and other materials is provided as a guide for the user
in determining suitability and does not constitute a warranty. It may represent the result of Omron’s test
conditions, and the user must correlate it to actual application requirements. Actual performance is subject to
the Omron’s Warranty and Limitations of Liability.
z
Change in Specifications
Product specifications and accessories may be changed at any time based on improvements and other
reasons. It is our practice to change part numbers when published ratings or features are changed, or when
significant construction changes are made. However, some specifications of the Product may be changed
without any notice. When in doubt, special part numbers may be assigned to fix or establish key
specifications for your application. Please consult with your Omron’s representative at any time to confirm
actual specifications of purchased Product.
z
Errors and Omissions
Information presented by Omron Companies has been checked and is believed to be accurate; however, no
responsibility is assumed for clerical, typographical or proofreading errors or omissions.
7
Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Safety Precautions
For details on Safety Precautions, refer to Safety Precautions in the Vision System FH/FZ5 Series User's
Manual (Cat. No. Z365).
Precautions for Safe Use
For details on Precautions for Safe Use, refer to Precautions for Safe Use in the Vision System FH/FZ5
Series User's Manual (Cat. No. Z365).
Precautions for Correct Use
For details on Precautions for Correct Use, refer to Precautions for Correct Use in the Vision System FH/FZ5
Series User's Manual (Cat. No. Z365).
Regulations and Standards
For details on Regulations and Standards, refer to Regulations and Standards in the Vision System FH/FZ5
Series User's Manual (Cat. No. Z365).
8Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
MEMO
1
Overview of Macro Customize Functions
Overview of Macro Customize Functions
Macro Customize Functions............................................. 10
List of Macro Customize Functions............................ 10
Structure of This Manual ............................................. 12
Macro Customize Functions
10 Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Macro Customize Functions
In the FH/FZ5 series, the macro customize functions can be used to realize finely adjusted and expandable
image processing.
The macro customize functions enable you to perform various types of calculations that are more advanced than
normal "Calculation" processing items, as well as functions such as measurement flow/scene control, creation of
communication commands, various types of display control, and result output control.
On the FH/FZ5 series, the following types of macro functions can be used.
The four types below can be used.
"Unit Calculation Macro" processing item
"Scene Control Macro" tool
"Communication Command Macro" tool
"Unit Macro" processing item
List of Macro Customize Functions
A table of the macro customize functions and their approximate level of difficulty is shown below.
The level of difficulty varies by function. Check the approximate level of difficulty in the table when considering
the expansion you want to create.
*1: Result display (graphic display, detailed text display, etc.), result output, and creation of initial processing
Approxi
mate
level of
difficulty
Function Description
Target function
Measurement
processing
Communication
command
s
Scene
control
Calculation Other than
calculation
(*1)
(1) "Unit Macro"
processing item
Use this function to supplement and expand
measurement processing performed by
processing units. In addition to measurement
processing, you can create your own custom
processing such as result display processes and
measurement initialization processes for scene
control.
 --- ---
(2) "Communication
Command
Macro" tool
Use this function to supplement and expand
communication commands. You can create
custom communication commands that
implement functions that do not exist in the
standard communication commands, and
combine multiple communication commands
into a signal command.
--- --- ---
(3) "Scene Control
Macro" tool
Use this function to supplement and expand
measurement flow and Scene Control.
For example, you can add and set processing
units to the measurement flow.
--- --- ---
(4) "Unit
Calculation
Macro"
processing item
Use this function to supplement and expand
calculation processes during measurement. A
"Calculation" processing item allows you to
implement complex operations with difficult
settings, and calculations that include a logical
expression or repeated process.
--- --- ---
High
Low
Macro Customize Functions 11
1
Overview of Macro Customize Functions
Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
In the following cases, a macro customize function is used.
In this case Macro customize
function that is used
Calculation
Use to perform a calculation process that is difficult or cannot be expressed
using a "Calculation" processing item, such as those below.
• Use to execute a calculation process that extends over multiple lines or
contains a logical expression, conditional branch, loop process, or data
setting process
• Use to execute a customized judgement process for calculation results
"Unit Calculation Macro"
processing item
Calculation,
Display result,
Output result
Use to customize or include the following processes that that are difficult or
cannot be expressed with a "Calculation" processing item or a "Unit Calculation
Macro" processing item.
• Display result (graphic display, detailed text display, etc.)
• Output result
• Measurement initialization processing (scene switching, etc.)
"Unit Macro" processing
item
Scene Control
Use to control the Scene such as the followings.
• Changing the settings of multiple processing units at once
• Managing the common data of multiple processing units
• Adding/deleting a processing unit
"Scene Control Macro"
tool
Communication
commands
Use to create expansions that are difficult or cannot be expressed with the
standard communication commands, such as those below.
• Not to exist in the standard communication commands.
• To combine multiple communication command functions into a single
communication command
"Communication
Command Macro" tool
Scene
control macro
Scene
control macro
FH/FZ5
Measurement Flows
Camera
Scene
control macro
Image input
Defect
Search
Output Unit
Unit Macro
Unit Calculation
Macro
Scene
Scene
Scene
Communication
command
macro
PLC or other
external device
Macro Customize Functions
12 Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Structure of This Manual
The relation between the contents of this manual and the macro customize functions is shown below. Refer to
function items that you need to use.
Item name
Macro customize function
Unit
Calculation
Macro
Scene Control
Macro
Communication
Command
Macro
Unit Macro
What are the Macro Customize Functions?
Reference: XBasics of Programming (p.45) Required Required Required Required
How to use Macro Customize Functions
Reference: XUsing Macro Customize Functions (p.13) Required Required Required Required
Basic Method for Writing Programs
Reference: XBasics of Programming (p.45) Required Required Required Required
How to Write Advanced Programs --- --- --- ---
Data Types Related to Processing Units
Reference: XData Types Related to Processing Units
(p.62)
As needed As needed As needed As needed
Data Types Related to the System
Reference: XData Types Related to the System (p.67) As needed As needed As needed As needed
Scope of Data and Save Area
Reference: XScope of Data and Save Area (p.70) As needed As needed As needed As needed
Status Transitions and Execution Timing
Reference: XState Transitions and Execution Timing (p.72) Not required As needed Not required As needed
Exclusive Control in a Process
Reference: XExclusive Control in a Process (p.79) As needed As needed As needed As needed
Preparations for use of macro customize functions --- --- --- ---
Preparations for use of the "Unit Calculation Macro"
processing item
Reference: XProcedure for Using the unit calculation macro
processing item (p.16)
Required Not required Not required Not required
Preparations for use of the scene control macro
Reference: XProcedure for Using the Scene Control Macro
Tool (p.17)
Not required Required Not required Not required
Preparations for use of the communication command macro
tool
Reference: XProcedure for Using the Communication
Command Macro Tool (p.17)
Not required Not required Required Not required
Preparations for use of the "Unit Macro" processing item
Reference: XProcedure for Using the unit macro
processing item (p.18)
Not required Not required Not required Required
How to Use the Debug Function
Reference: XHow to Use the Debug Function (p.82) Required Required Required Required
Troubleshooting
Reference: XTroubleshooting (p.93) As needed As needed As needed As needed
2
Using Macro Customize Functions
Using Macro Customize Functions
Instructions on Using Macro Customize Functions....... 14
Components of the Macro Customize Functions...... 14
Procedures for Using the Macro
Customize Functions................................................... 15
Instructions on Using Macro Customize Functions
14 Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Instructions on Using Macro Customize Functions
You can use the macro customize functions to program processes that you want to add or expand. On a sensor
controller, you can execute the macro customize functions and debug the programs of the macro customize
functions.
Components of the Macro Customize Functions
The macro customize functions consist of program editing screens that enable the creation and editing of
programs in the processing items, tool setting screens, and setting screens of each function, and a system
status console window that allow errors to be checked when a program operates abnormally.
Necessity of referring
to this manual
Unit Macro Communication
Command Macro
Scene Control
Macro
Unit Calculation
Macro
Required
Scene
control macro
Scene
control macro
FH/FZ5
Measurement Flows
Camera
Scene
control macro
Image input
Defect
Search
Output Unit
Unit Macro
Unit Calculation
Macro
Scene
Scene
Scene
PLC or other
external device
System status console window
Program editing screen
When creating a program
Screen for program creation and debug editing
Communication command macro
When debugging
Instructions on Using Macro Customize Functions 15
2
Using Macro Customize Functions
Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Procedures for Using the Macro Customize Functions
The procedures for using macro customize functions are two types, one is a common procedure used for all
functions and second is the specific procedures for each function.
The flow of the common procedure for using the macro customize functions is shown below.
Function Description
Program editing screen
Setting screen of each function in the macro customize functions. The
contents of the program editing screen vary by function.
Use the program editing screen to create programs. You can create and edit
programs, and use input auxiliary functions.
Reference: XComponents of the Program Editing Screen (p.20)
System status console window
Console window that shows the system status as text.
When a program created with a macro customize function operates
abnormally, a description of the error appears in text in the system status
console window.
Use this to debug the program.
Reference: XUse the system status console window to debug macro
customize programs and check error descriptions. (p.24)
The setting screens of the macro customize functions cannot be displayed by remote operation. To change settings, directly
open the setting screen of the function on the sensor controller.
IMPORTANT
Open the setting
screen
Register a function
Configure settings
Export
Check
the operation
Check why an error
occurred
Remove the cause
of an error
Identify the cause
of an error
Configure initial
settings
Complete the
settings
Basic Method for Writing Programs
How to Write Advanced Programs
Decide where to
write programs
Program
Check the content
of programs
Preparations for use of macro customize functions
Debug
the programs
Instructions on Using Macro Customize Functions
16 Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Procedure for Using the unit calculation macro processing item
The usage flow for the unit calculation macro processing item and the basic usage procedures are described
below.
Item name Step Description
Function registration
and preparation
Register a function and display the
setting screen
Register processing items that enable use of macro customize
functions in the measurement flow, and open tool screens.
The specific procedure depends on the each functions.
--- ---
Function settings
Default function settings Prepare initial settings and variables.
The specific procedure depends on the each functions.
---
Creation of processing content Write the program.
---
Program debug
Check operation Check if your settings operate as expected.
---
Debug
Debug the program.
Debug helps you identify the cause of the unexpected operation
and correct the program to run as expected.
--- ---
Save Save settings Save your changes.
Item name Step Description
--- Registration of a unit calculation
macro processing unit
Add a macro calculation processing unit to the measurement
flow.
--- ---
Settings of the unit
calculation macro
processing unit
(Reference:
XDescription of the
Setting Screen for the
"Unit Calculation
Macro" Processing
Item and How to
Configure Settings
(p.25))
Selection of operators Select the checkboxes of operators to be used in the unit
calculation macro.
---
Reference Variable Settings
Set reference values if reference values will be used.
Set reference values in order to use data other than that of
the macro calculation processing unit, such as external
reference data of other processing units and system data.
---
Program input Write the program.
---
Setting of judgement conditions Set the conditions used to judge calculation results.
---
Program debug
(Reference: XHow to
Use the Debug
Function (p.82))
Check operation Check if your settings operate as expected.
---
Debug
Debug the program.
Debug helps you identify the cause of the unexpected
operation and correct the program to make the unit
calculation macro processing unit operate as expected.
--- ---
--- Saving settings Save your changes.
Instructions on Using Macro Customize Functions 17
2
Using Macro Customize Functions
Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Procedure for Using the Scene Control Macro Tool
The usage flow for the scene control macro tool and the basic usage procedures are described below.
Procedure for Using the Communication Command Macro Tool
The usage flow for the communication command macro tool and the basic usage procedure are described below.
Item name Step Description
--- Starting the Scene Control Macro
Tool Start the scene control macro tool from the external tools.
--- ---
Scene control macro
tool settings
(Reference:
XDescription of the
Setting Screen of the
Scene Control Macro
Tool and How to
Configure Settings
(p.29))
Reference Variable Settings
Set reference values if reference values will be used.
Set reference variables in order to use data such as external
reference data of processing units and system data.
---
Unit label settings
Set unit labels if unit labels will be used.
Make preparations to use unit labels, rather than processing
unit numbers, to reference processing units in the
measurement flow.
---
Program input Write in the program.
---
Program debug
(Reference: XHow to
Use the Debug
Function (p.82))
Check operation Check if your settings operate as expected.
---
Debug
Debug the program.
Debug helps you identify the cause of the unexpected
operation and correct the program to make the scene control
macro operate correctly.
--- ---
--- Saving settings Save your changes.
Item name Step Description
--- Starting the communication
command macro tool
Start the communication command macro tool from the
external tools.
--- ---
Communication
command macro
settings
(Reference:
XComponents of the
Setting Screen of the
Communication
Command Macro Tool
and How to Configure
Settings (p.31))
Selection of the communication
command macro to be used
Select the checkbox of the communication command macro
to be used.
---
Communication command macro
name setting Assign a name to the communication command macro.
---
Flow signal output setting
Select whether flow signals such as the BUSY signal are
turned ON or left OFF during processing. To turn on, select
the checkbox.
---
Program input Write the program.
---
Instructions on Using Macro Customize Functions
18 Vision System FH/FZ5 Series
Macro Customize Functions Programming Manual (Z367)
Procedure for Using the unit macro processing item
The usage flow for the unit macro processing item and the basic usage procedure are described below.
Program debug
(Reference: XHow to
Use the Debug
Function (p.82))
Check operation Check if your settings operate as expected.
---
Debug
Debug the program.
Debug helps you identify the cause of the unexpected
operation and correct the program to make the
communication command macro operate as expected.
--- ---
--- Save settings Save your changes.
Item name Step Description
--- Registration of unit macro
processing unit Add a unit macro processing unit to the measurement flow.
--- ---
Settings of unit macro
processing unit
(Reference:
XDescription of the
Setting Screen of the
"Unit Macro"
Processing Item and
How to Configure
Settings (p.38))
Reference Variable Settings
Set reference values if reference values will be used.
Set reference values to use data other than that of the unit
macro processing unit, such as external reference data of
other processing units and system data.
---
Program input Write the program.
---
Program debug
(Reference: XHow to
Use the Debug
Function (p.82))
Check operation Check if your settings operate as expected.
---
Debug
Debug the program.
Debug helps you identify the cause of the unexpected
operation and correct the program to make the unit macro
processing unit operate as expected.
--- ---
--- Save settings Save your changes.
Item name Step Description
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424
  • Page 425 425
  • Page 426 426
  • Page 427 427
  • Page 428 428
  • Page 429 429
  • Page 430 430
  • Page 431 431
  • Page 432 432
  • Page 433 433
  • Page 434 434
  • Page 435 435
  • Page 436 436
  • Page 437 437
  • Page 438 438
  • Page 439 439
  • Page 440 440
  • Page 441 441
  • Page 442 442
  • Page 443 443
  • Page 444 444
  • Page 445 445
  • Page 446 446
  • Page 447 447
  • Page 448 448
  • Page 449 449
  • Page 450 450
  • Page 451 451
  • Page 452 452
  • Page 453 453
  • Page 454 454
  • Page 455 455
  • Page 456 456
  • Page 457 457
  • Page 458 458
  • Page 459 459
  • Page 460 460
  • Page 461 461
  • Page 462 462
  • Page 463 463
  • Page 464 464
  • Page 465 465
  • Page 466 466
  • Page 467 467
  • Page 468 468
  • Page 469 469
  • Page 470 470
  • Page 471 471
  • Page 472 472
  • Page 473 473
  • Page 474 474
  • Page 475 475
  • Page 476 476
  • Page 477 477
  • Page 478 478
  • Page 479 479
  • Page 480 480
  • Page 481 481
  • Page 482 482
  • Page 483 483
  • Page 484 484
  • Page 485 485
  • Page 486 486
  • Page 487 487
  • Page 488 488
  • Page 489 489
  • Page 490 490
  • Page 491 491
  • Page 492 492
  • Page 493 493
  • Page 494 494
  • Page 495 495
  • Page 496 496
  • Page 497 497
  • Page 498 498
  • Page 499 499
  • Page 500 500
  • Page 501 501
  • Page 502 502
  • Page 503 503
  • Page 504 504
  • Page 505 505
  • Page 506 506
  • Page 507 507
  • Page 508 508
  • Page 509 509
  • Page 510 510
  • Page 511 511
  • Page 512 512
  • Page 513 513
  • Page 514 514
  • Page 515 515
  • Page 516 516
  • Page 517 517
  • Page 518 518
  • Page 519 519
  • Page 520 520
  • Page 521 521
  • Page 522 522
  • Page 523 523
  • Page 524 524
  • Page 525 525
  • Page 526 526
  • Page 527 527
  • Page 528 528
  • Page 529 529
  • Page 530 530
  • Page 531 531
  • Page 532 532
  • Page 533 533
  • Page 534 534
  • Page 535 535
  • Page 536 536
  • Page 537 537
  • Page 538 538
  • Page 539 539
  • Page 540 540
  • Page 541 541
  • Page 542 542
  • Page 543 543
  • Page 544 544
  • Page 545 545
  • Page 546 546
  • Page 547 547
  • Page 548 548
  • Page 549 549
  • Page 550 550
  • Page 551 551
  • Page 552 552
  • Page 553 553
  • Page 554 554
  • Page 555 555
  • Page 556 556
  • Page 557 557
  • Page 558 558
  • Page 559 559
  • Page 560 560
  • Page 561 561
  • Page 562 562
  • Page 563 563
  • Page 564 564
  • Page 565 565
  • Page 566 566
  • Page 567 567
  • Page 568 568
  • Page 569 569
  • Page 570 570
  • Page 571 571
  • Page 572 572
  • Page 573 573
  • Page 574 574
  • Page 575 575
  • Page 576 576
  • Page 577 577
  • Page 578 578
  • Page 579 579
  • Page 580 580
  • Page 581 581
  • Page 582 582
  • Page 583 583
  • Page 584 584
  • Page 585 585
  • Page 586 586
  • Page 587 587
  • Page 588 588
  • Page 589 589
  • Page 590 590
  • Page 591 591
  • Page 592 592
  • Page 593 593
  • Page 594 594
  • Page 595 595
  • Page 596 596
  • Page 597 597
  • Page 598 598
  • Page 599 599
  • Page 600 600
  • Page 601 601
  • Page 602 602
  • Page 603 603
  • Page 604 604
  • Page 605 605
  • Page 606 606
  • Page 607 607
  • Page 608 608
  • Page 609 609
  • Page 610 610
  • Page 611 611
  • Page 612 612
  • Page 613 613
  • Page 614 614
  • Page 615 615
  • Page 616 616
  • Page 617 617
  • Page 618 618
  • Page 619 619
  • Page 620 620
  • Page 621 621
  • Page 622 622
  • Page 623 623
  • Page 624 624
  • Page 625 625
  • Page 626 626

Omron FH/FZ5 Series Vision System Macro Customize Functions Owner's manual

Type
Owner's manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI