WWW.NNC.IR
Basic Knowledge For Macro Customize Functions
216
Vision System FH/FZ5 Series
User’s Manual (Z340)
Relational expression
An expression that joins two numerical expressions by a relational operator is referred to as a relational
expression.
(Example of a relational expression)
Logical Expression
An expression that joins multiple relational expressions by a logical operator is referred to as a logical
expression. This is used to execute bit operations and binary operations, and to evaluate complex conditions.
When the operation result of a logical expression is other than 0, the result is treated as true, and when 0, the
result is treated as false. Because a logical expression returns a numerical value, it can also be treated as a
numerical expression.
(Example of a logical expression)
Function
An expression that executes a predefined command or operation, or an expression that executes a
predefined operation on a specific specified value (argument) and returns the result of the operation, is
generally referred to as a function. In particular, the functions that can be used in the macro customize
functions are referred to as macro functions. Macro functions include functions that do not return a value, and
functions that return the numerical value or character string that is the result of the operation.
Macro functions that do not return a value are written with the macro function name and argument separated
by a space. Macro functions that return a value add an argument enclosed by parentheses ( ) to the end of
the macro function name.
(Example of a macro function that does not return a value)
(Example of a macro function that returns a value)
If A& < 10 Then
EndIf
A& = D& AND &b110000
ChangeScene 1
C# = Abs(-10)