![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222228.webp)
4
Using
Tool
226
Using Custom Command
FZ4 User's Manual
Description
Discards everything after the radix point for the specified value and returns the integer that does not
exceed the maximum of the specified numeric value.For example, Int(-1.23) would become -2 after
execution and Int(1.23) would become 1 after execution.
Specify either an integer type or double-precision type real number in the <Expression>
When an argument has been given a negative value, Fix returns the minimum negative integer
exceeding the argument as opposed to the Int argument, which returns an integer that does not exceed
the maximum negative of 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&=Int(9.7)
NUMBER2&=Int(-9.7)
NUMBER3&=Int(-9.2)
The results are as follows:
NUMBER1&=9
NUMBER2&=-10
NUMBER3&=-10
Checks for the existence of a file and its attributes.
Isfile(<File Path Name>)
Parameters
<File Path Name>
The file path to be checked (character string type).
Return Value
Returns the value of the integer.
The content of the value is as listed below.
0: The file does not exist.
1: It is a file.
2: It is a directory.
Description
<File Path Name>: Always specify an absolute path with the drive name included.
Returns 0 when the Memory Card has not been attached.(This is the same as when no file exists)
When a file specified by open, etc. does not exist, it becomes an error so the presence of a file should be
checked first by using isfile.
Example
Confirm the presence or absence of [/c0/input.dat] and read in data.
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: ......