Omron FZ4 Series User Manual page 164

Vision sensor
Table of Contents

Advertisement

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.
4
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.
162
Using Custom Command
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents