EasyManuals Logo
Home>Omron>Industrial Equipment>SYSMAC FH Series

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 #407 background imageLoading...
Page #407 background image
WWW.NNC.IR
Macro Reference
405
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
AddGlobalData
Adds the global data.
Format
AddGlobalData <dataIdent>, <data>
Parameter
Return value
None.
Description
Adds the data of the identification name specified in the <dataIdent> parameter to the global data, and sets
the value specified in the <data> parameter in the added data.
If the global data of the specified identification name already exists, the process ends without taking any
action.
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a character string longer than 255 characters is specified in the <dataIdent> parameter, a "String too long"
error will occur.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• None.
Example
Adds the global data that has the identification name "ABC", and sets 1 as the value.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Parameter
name
Data type Description
<dataIdent>
Character
string type
Identification name of the global data to add
<data>
Integer type
Double
precision real
number data
type
Character
string type
Value added in the global data
Rem Add global data "ABC", and set 1 as the value
AddGlobalData "ABC", 1
Rem Get the value (integer value) set in the global data "ABC", and store in the variable DATA&.
GetGlobalData "ABC", DATA&

Table of Contents

Other manuals for Omron SYSMAC FH Series

Questions and Answers:

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
BrandOmron
ModelSYSMAC FH Series
CategoryIndustrial Equipment
LanguageEnglish

Related product manuals