WWW.NNC.IR
Basic Knowledge For Macro Customize
Functions
221
5
Optimizing Scenes (Measurement Flows) (Macro Customize
Functions)
Vision System FH/FZ5 Series
User’s Manual (Z340)
• Data Settings
The data setting method is as follows.
Example:Re-registering the model of the Unit No. 1 Search processing unit (model figure: rectangle) in
the current measurement image, and changing the reference position (0, 0) and detection point
coordinates (320, 240).
Image data
Image data is data that is held by the processing unit itself.
When there are multiple image data items in the processing item, a unique number is assigned to each image
data item. This makes it possible to set image data by specifying the processing unit number and image
number.
Image data can be set from a macro customize program.
An image data setting macro function is used to set image data from a macro customize program.
Reference: XImage Number List (p.371)
• Image Data Types
There are two types of image data.
• Acquisition of Data
Execution of only image data acquisition is not possible.
Dim FIGURE&(5)
GetUnitFigure 1, 0, FIGURE&()
Rem Re-register the model by setting the model figure
SetUnitFigure 1, 0, FIGURE&()
Rem Update reference coordinates XY
SetUnitData 1, 129, 0
SetUnitData 1, 130, 0
Rem Update detection point coordinates XY
SetUnitData 1, 132, 320
SetUnitData 1, 133, 240
Type
Image
number
Description
Measurement
image data
0 to 3
Image data that the processing unit registered in the measurement flow processes at
the time of measurement. Normally the image is set in measurement image 0 at the time
of measurement for "image input related" processing items and "image conversion
related" processing items such as camera image input and filtering, and image
processing is performed using images set in other processing items.
Normally 0 should be used.
Processing unit
image data
0 to
max. 31
Image data that is held by each processing item separately from the measurement
image data. The number of processing unit image data items and content varies by
processing item.
Use when you want to retain image processing results such as binarized images and
filtered images.