![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686214.webp)
WWW.NNC.IR
Basic Knowledge For Macro Customize Functions
212
Vision System FH/FZ5 Series
User’s Manual (Z340)
• Reference variables
Reference variables are defined by the user and can be used to reference processing unit data, global
data, and system data.
(Note: When using the macro customize functions, a macro function can be used to set and acquire data
such as processing unit data and system data. Reference variables allow you to handle processing unit
data and system data without using the macro function.)
Reference variables must be set in advance in the program editing screen of the "Unit Macro" processing
item, "Unit Calculation Macro" processing item, or the scene control macro tool. For the setting method,
refer to the setting screen of each processing item.
Type identifiers that can be used with reference variables are shown below.
Reference variable data type
Type identifier
Example
Integer
@
A@ = 1
Double precision real number
@
A@ = 12.34
Character string
@
AA@ = ”OMRON”
• The data type (integer, real number, etc.) can be identified from the type identifier of a regular variable, however,
identification of the data type from the type identifier is not possible with a reference variable. When using a
reference variable, check the data type of the allocated data before using the variable.
• A reference variable setting is saved in scene data, however, the value itself that the reference variable
references is not saved. If you want to save the value, use user data.
• If you set the name of a reference variable in the properties screen the type identifier of the reference variable is
automatically added to the reference variable name.
• There is no limit on the number of reference variable settings that can be added. However, there is a limit on the
total number of variable name characters per processing unit of the unit macro and unit calculation macro, and
the number of variable name characters per scene of the scene control macro. When the reference variable
name is 32 characters, about 1000 reference variable settings can be added.
IMPORTANT
Note
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...