![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222235.webp)
4
Using
Tool
FZ4 User's Manual
Using Custom Command
233
Example
Gets the length of the character string, "OMRON".
CHRLEN&=Len("OMRON")
The results are as follows:
CHRLEN&=5
Reads data of one line from a file
Line Input# <File No.>,<Character Variable>
Parameters
<File No.>
The file number (integer) of the file with the data to be read in.
<Character Variable>
The variable that will store the value that is read in (character string)
Return Value
None.
Description
Reads data that exists within the line separated by the line feed code and assigns it to a character
Variable.
<Character Variable> is less than 255 characters, which includes strings such as space, comma(,),
double quotation marks("), and numbers.
When input carriage return (chr$(13)) in <Character Variable>, null string ("") is the return value.
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.
dim DATA$(256)
open "/c0/input.dat" for Input as #1
for I&=0 to 255
Line Input #1,TEMP$
DATA$(I&)=TEMP$
if eof(1)<>0 then exit for
next
close #1
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: ......