EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-833
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
SD Memory Card Instructions
2
FilePuts
FilePuts
The FilePuts instruction writes a text string to the specified file in the SD Memory Card.
The FilePuts instruction writes a text string to the position of the file position indicator in the file speci-
fied by file ID FileID in the SD Memory Card. The file position indicator is set at the desired location in
advance with the FileSeek instruction. The contents of write text string In is written to the file.
The following figure shows a programming example. Here, the contents of array element def[0] is writ-
ten to the file.
Instruction Name FB/FUN Graphic expression ST expression
FilePuts Put Text String FB FilePuts_instance(Execute,
FileID, In, Done, Busy, Error,
ErrorID);
Variables
Name Meaning I/O Description Valid range Unit Default
FileID File ID
Input
ID of file to write
Depends on data type.
---
0
In Write text
string
Text string to write ''
Boolean
Bit strings Integers
Real
numbers
Times, durations,
dates, and text strings
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
FileID OK
In OK
Function
FilePuts
Execute Done
FileID Busy
In Error
ErrorID
FilePuts_instance
FilePuts_instance(A, abc, def[0], ghi, jkl, mno, pqr);
LD ST
abc
def[0]
A
FilePuts
Execute Done
FileID Busy
In Error
ErrorID
FilePuts_instance
jkl
mno
pqr
ghi

Table of Contents

Related product manuals