Omron FZ4 Series User Manual page 226

Vision sensor
Table of Contents

Advertisement

Description
The maximum that can be specified as the No. of Characters is 255 characters.
Waits until the length of data specified in No. of Characters has been input.
If the File No. is omitted, data is read in from the macro console.
When the number of characters read into the macro console communications buffer exceeds the
specified No. of Characters, the excess is read in at the next Input$ function. This also applies to files.
When character strings are enclosed within double quotation marks (" "), the double quotation marks are
also recognized as characters.
Example
4
Read in 6 bytes of binary data from the file.
Open "C:\input.dat" FOR INPUT As #1
DATA$ = Input$(6,#1)
Close #1
The result is as follows:
DATA$="BINDATA" (The data input from the file)
Reads in data and assigns it to a variable.
Input# <File No.>,<Variable>[,<Variable>...]
Parameters
<File No.>
<Variable>
Return Value
None.
Description
Reads in the comma separated data that exists within the line separated by the line feed code and
assigns it to a variable.
The number of the blocks of data separated by commas and the number of Variables must be equal.
When they differ, it becomes an "Illegal function call".
Specify the file number of the file with the data to be read in in <File No.>.
When an integer or double-precision data type has been specified for the <Variable> data type and
non-numeric character data is input, "0" is input into the <Variable>. This does not generate an error.
When character strings are enclosed within double quotation marks (" "), the double quotation marks are
also recognized as characters.
Example
Read in data until the end of the file.
224
Using Custom Command
The file number (integer) of the file with the data to be read in.
The variable that will store the value that is read in (integer, double-precision, character string,
array).
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents