![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222162.webp)
4
Using
Tool
160
Using Custom Command
FZ4 User's Manual
Relational calculation is used in comparing between two values. If result is true, returns -1, otherwise
returns 0.
Logic calculation can be used to check more than one condition or operate with bit to designated value.
Following is all kinds of logic calculation.
Logic Calculation
Content
Example
Not
Non
not A
And
Logic And
A and B
Or
Logic Or
A or B
Xor
Xor
A xor B
Logic calculation can be used to check more than one condition or operate with bit to designated value.
We can use "or" calculation to make special bit 1. We also can use "and" calculation to make special bit
0.
The priority of calculation is as follows.
1
Parenthesis()
2
Function
3
Exponent arithmetic(^)
4
Minus(-)
5
Multiplication or Division(*,/)
6
Mod Calculation(Mod)
7
Addition or Subtr,-)
8
Relative Calculation(<,>,=and so on)
9
Not
10
And
11
Or
12
Xor
Character
Only when English lowercase letter of character constant and character variable is enclosed by two
quotation marks, it is case sensitive.We also can use following special notation.
Colon(:)
Separate more than two sentences in a line.
Comma(,)
Separate parameter.
Semicolon(;)
Separate output parameter.
Apostrophe(')
Same as Rem, it is used to annotate sentence.
Asterisk(*)
Prefix of label name.
Space( )
It must be separated by space between command parameter and succeed parameter. It
is possible to put it between other command, the variable identifier, and the numerical
value if necessary.
Double Quotation
Marks(")
Substitute string variable with string.
Ampersand(&)
Use it in integer variable or array.
Pound Sign(#)
Use it in double variable or array.
Dollar Mark($)
Use it in string variable or array.
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: ......