![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222248.webp)
4
Using
Tool
246
Using Custom Command
FZ4 User's Manual
On UnitNum& Goto *UNIT1PROC,*UNIT2PROC,*UNIT3PROC
*UNIT1PROC
Print "I am Unit1"
Return
*UNIT2PROC
Print "I am Unit2"
Return
*UNIT3PROC
Print "I am Unit3"
Return
Opens a file.
Open <File Name> for Output | Input | Append as #<File No.>
Parameters
<File Name>
The file name of the file to be opened (character string).
<File No.>
The file number (integer) assigned to the file that is opened.
Return Value
None.
Description
Opens the <File No.> specified for the file in order to allow I/O processing of data in the file on the
Memory Card.
After the I/O processing of data has been completed, the Close command is used to close the file.
Specify the following values in I/O mode.
Input : When data is to be read in from the file.
Output: When data is to be written to the file.
Append: When data is to be added to the file.
Specify a positive integer from 0 to 15 in <File No.>. Note that multiple files cannot be simultaneously
opened using a single <File No.>.
The following I/O can be used in place of the <File Name> until the specified <File No.> is closed using
the Close command.
Sequential file I/O operations can be combined using the Input# statement for reading data and the
Print# statement for writing data, etc.
When the Open command is executed For Input for a file that does not exist, it becomes an "Illegal
function call".
Example
Read in data until the end of the file.
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: ......