![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222164.webp)
4
Using
Tool
162
Using Custom Command
FZ4 User's Manual
by arithmetic calculation and logic calculation.
Composition of mathematic expressions is contained by brackets. Two mathematic expressions
combine a relative expression by relative calculation sign.
Character constant, character variable and function of return string compose the mathematic expression
by plus sign.
It can be the composition of many mathematic expression by brackets. Numerical constant, numerical
variable and function of return value compose the mathematic expression by arithmetic calculation and
logic calculation.
Character constant, character variable and function of return string compose the mathematic expression
by relative calculation. Logic expression that is composed with logic calculation sign by a few relative
expression.
Using logic calculation to compose a few relative expressions. It can be used to operate bit, calculate
binary and determine compound condition.
Logic expression can be applicable to any place because its result is mathematic expression of
numerical.
If logic expression is false, return 0, otherwise return -1.
Logic expression use "not" calculation, logic "or", logic "and" and "xor" calculation to calculate logically.
To designated value(parameter), repeat to define calculation, let the result to return, this kind of code is
called as function.
Function is used as the style of expression. It is different with calculation's mathematic expression,
character expression, relative expression and logic expression. Function can save result itself.
Label
Label name need make a descriptive record of following format.
●
It must begin with asterisk(*).
●
The second character must be English letter.
●
The third character and next is letter, numerical and period(.).
Label name must begin with asterisk(*). It is a string that its length less than 25 characters.
Using goto <label>command and gosub <label>command to go to the position of label.
Line Number
Line number is added automatically when control device load Macro program.
Not make a descriptive record of line number as Macro program.
Line
It is composed by line number and written language.
Macro program may only be composed by empty line and annotation.
A line can make a descriptive record of a few sentences. We can use colon to separate sentences.
Reserved Word
Reserved word is a kind of string that be defined in the systems of command, function and calculation.
User can not use this strings to be variable name.
Acesst 1.0 6251194
Summary of Contents for FZ4 Series
Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Page 566: ......
Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Page 654: ...652 FZ4 User s Manual...
Page 655: ......