![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222211.webp)
4
Using
Tool
FZ4 User's Manual
Using Custom Command
209
Description
Truncates everything after the radix point for the specified value and return the value of the integer part.
For example, Fix(-1.5) would return -1.Fix(1.5) returns 1.
When an argument has been given a negative value, the int function returns an integer that does not
exceed the maximum negative of the argument and in relation to this, Fix returns the minimum negative
integer exceeding the argument.For example, if -7.2 is specified as the argument, the int function returns
-8 and the Fix function returns -7.
Example
Truncate the measurement results after the radix point and output them.
NUMBER1&=Fix(9.7)
NUMBER2&=Fix(-9.7)
NUMBER3&=Fix(-9.2)
The results are as follows:
NUMBER1&=9
NUMBER2&=-9
NUMBER3&=-9
Repeats and executes the statements between the For statement and the Next statement.
For <Variable Name>=<Initial Value> To <Ending Value>[ Step <Increment>]
-
Next [<Variable Name>]
Parameters
<Variable Name>
Loop control counter variable name (integer).
<Variable Name>
The initial value of the loop control counter variable (integer).
<Ending Value>
The ending value of the loop control counter variable (integer).
<Increment>
The increment of the loop control counter variable (integer).
Return Value
None.
Acesst 1.0 6251194
Содержание FZ4 Series
Страница 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Страница 12: ...1 Before Operation 10 Operation Flow FZ4 User s Manual Operation Flow Here describes the operation flow...
Страница 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Страница 112: ...3 Performing Test Measurement Starting Operation 110 Useful Functions for Operation FZ4 User s Manual...
Страница 326: ...4 Using Tool 324 Remotely Operating the Controller Remote Operation FZ4 User s Manual Enter the IP address...
Страница 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Страница 351: ...6 Changing the System Environment FZ4 User s Manual Setting the System Operation Environment 349 Communication...
Страница 566: ......
Страница 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Страница 654: ...652 FZ4 User s Manual...
Страница 655: ......