EasyManua.ls Logo

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #209 background imageLoading...
Page #209 background image
WWW.NNC.IR
Basic Knowledge For Macro Customize
Functions
207
5
Optimizing Scenes (Measurement Flows) (Macro Customize
Functions)
Vision System FH/FZ5 Series
User’s Manual (Z340)
Statement
The program processing text written on each line is called a statement. A statement is mainly composed of
expressions of minimum processing units. A statement can be up to 245 characters in length. If a statement
is longer than 245 characters, an error will occur and program execution will stop.
Three types of statements exist, as shown below.
Label
A name assigned to a line in the program to enable identification is called a label. Among the basic syntax
examples, the following is a label.
By specifying a label, the "Goto <label>" macro function can be used to jump to the specified label position.
Subroutine
A part of a program that is enclosed by <label> - Return is called a subroutine. Write the process that you
want to execute in the subroutine. Among the basic syntax examples, the following is a subroutine.
Subroutines can be executed by calling the "GoSub <label>" function. By writing each standalone process as
a subroutine, the visibility of the program is improved.
The processing component of a macro customize function consists of subroutines. By writing
"GoSub*(function name)", the processing component of the corresponding macro customize function can be
called and executed from another subroutine.
Some of the subroutines of macro customize functions are predefined in the system. The timing at which
system defined subroutines are called is fixed. Write the process in a subroutine appropriately for its purpose.
For details on calling these subroutines, refer to "Status Transitions and Execution Timing".
Reference: XState Transitions and Execution Timing (p.227)
Comment
Text that follows a Rem function or a single quotation is called a comment. You can insert any comment line
in a program. When a Rem function or single quotation (') is written in a program, the line is treated as a
comment.
Among the basic syntax examples, the following is a comment.
Statement type Description
Execution statement A statement that describes and executes processing of a macro function.
Non-execution statement A statement that indicates comments but does not execute processing.
Label A statement that defines a program branch destination.
*MEASUREDISPT
*MEASUREDISPT
Return
Rem Displays text in the text result field.
Do not mix a non-comment statement together with a comment on the same line. The comment may not be correctly
recognized and the program may not operate correctly.
IMPORTANT

Table of Contents

Other manuals for Omron SYSMAC FH Series

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
ManufacturerOmron
CategoryIndustrial Equipment
Power Supply24 VDC
Operating Temperature0 to 50 °C
Storage Temperature-20 to 60 °C
Protection RatingIP20
TypeVision System
SeriesFH Series
FunctionsImage processing, measurement, inspection
Communication InterfaceUSB

Summary

1. Before Operation

Checking the System Configuration

Describes how to check the system configuration and connections.

2. Setting Scenes (Measurement Flows)

Creating a Scene

Explains how to add processing units to a scene.

Editing Processing Units in Scenes

Describes how to arrange and delete processing units within a scene.

Editing Scenes

Describes procedures for copying, deleting, and renaming scenes.

3. Performing Test Measurement/Starting Operation

Executing Test Measurements

Explains how to test measurements and adjust settings.

4. Using Tools

5. Optimizing Scenes (Measurement Flows) (Macro Customize Functions)

7. Changing the System Environment

Setting the Camera Conditions

Covers checking camera connections and setting trigger delays.

Setting the Operation Mode

Describes setting operation modes like Single-line High-speed for optimal performance.

Related product manuals