WWW.NNC.IR
Basic Knowledge For Macro Customize Functions
224
Vision System FH/FZ5 Series
User’s Manual (Z340)
System data
System data is data that can be set or acquired from a different scene using a macro function. Use system
data to set or acquire numerical values or character strings that you want to be retained even if a power
interruption occurs or restart is performed. (Reference: XScope of Data and Save Area (p.225))
Use global data when there is no need to save data that you want to set or acquire from a different scene.
When you only want to set or acquire numerical values, use user data.
Reference: XUser Data (p.223)
Reference: XGlobal Data (p.222)
To use new system data, first specify a data identification name and register the system data that you want to
use. Data identification names for system data are Data ID Name 0 and Data ID Name 1. The data
identification names that correspond to ID Information 0 and ID Information 1 must be specified as arguments
of the macro function.
For details on identification information and data identification names, refer to the system data list.
Reference: XMacro Reference (p.320)
Reference: XSystem Data List (p.327)
• Acquisition of Data
System data is acquired by the method below.
Example:Acquiring the value of "Initial Scene No." in the system data
• Data Settings
The system data setting method is as follows.
Example:Setting the values of Data ID Name 0 "PanDA" and Data ID Name 1 "SData"
Rem Acquire the system data whose Data ID Name 0 is "Configuration" and whose Data ID Name 1 is
"initialSceneNo"
GetSystemData "Configuration", "initialSceneNo", SDATA&
Rem Register 0 as the default value of the system data whose Data ID Name 0 is "PanDA" and whose
Data ID Name 1 is "SData"
AddSystemData "PanDA", "SData", 0
Rem Set 5 in the system data whose Data ID Name 0 is "PanDA" and whose Data ID Name 1 is "SData"
SetSystemData "PanDA", "SData", 5
When adding new data to the system data, specify "PanDA" in Data ID Name 0.