
4
Using
Tool
224
Using Custom Command
FZ4 User's Manual
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
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.>
The file number (integer) of the file with the data to be read in.
<Variable>
The variable that will store the value that is read in (integer, double-precision, character string,
array).
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.
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: ......