Omron SYSMAC FH Series User Manual page 220

Vision sensor vision system
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

• Acquisition of Data
External reference data is acquired by the methods below.
Example:Acquiring External Reference Data No. 5 (correlation value) of the Unit No. 1 Search processing
unit.
Rem The correlation value is a real number, and thus the variable type identifier is #
GetUnitData 1, 5, DATA#
Example:Acquiring External Reference Data No. 7 (decode character string) of the Unit No. 2D code code
processing unit.
Rem The decode character string is a character string, and thus the variable type identifier is $
GetUnitData 2, 7, DATA$
• Data Settings
The method of setting external reference data is as follows.
Example:Setting 1 in External Reference Data No. 147 (search number) of the Unit No. 1 search
processing unit
SetUnitData 1, 147, 1
Example:Setting "comparison" in External Reference Data No. 300 (index 0 comparison character string)
of the Unit No. 2 two-dimensional code processing unit.
SetUnitData 2, 300, "comparison"
In addition to the external reference data number, external reference data can also be set and acquired
using the external reference data identification name.
Example: Setting "1" in the external reference data ID name "searchNo" (search number) of the Unit No. 1
search processing unit.
The result is the same as when "1" is set in External Reference Data No. 147.
SetUnitData, "searchNo", 1
Figure data
Figure data is used to set and acquire region figures and model figures of a processing unit. When there are
multiple figure data items in the processing item, a unique number is assigned to each figure data item. This
makes it possible to set and acquire figure data by specifying the processing unit number and figure number.
In addition to a macro customize program, figure data can be set and acquired from a processing unit figure
setting item and a processing unit figure acquisition item.
A processing unit figure setting macro function or processing unit figure acquisition macro function is used to
set or acquire figure data from a macro customize program.
Reference:
List of Figure Numbers (p.366)
218
Basic Knowledge For Macro Customize Functions
WWW.NNC.IR
Vision System FH/FZ5 Series
User's Manual (Z340)

Advertisement

Table of Contents
loading

Table of Contents