EasyManuals Logo

Omron NJ501-1500 User Manual

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
Page #883 background imageLoading...
Page #883 background image
2-835
2 Instruction Descriptions
NJ-series Instructions Reference Manual (W502)
SD Memory Card Instructions
2
FilePuts
Here, 100 lines of the contents of INT array variable Dat[0..9,0..99] are stored in a file named 'ABC.csv'
in CSV file format. Each line contains ten text strings of numbers. Commas are inserted between them.
A CR+LF code is added to the end of the line. The procedure is as follows:
1
One element of Dat[] is converted to one text string and stored in the STRING variable Tem p.
2
Except at the end of a line, a comma is added to the end of Tem p. At the end of the line, a
CR+LF code is added to the end of Tem p. These are joined in the STRING variable StrDat.
3
When the end of the line is reached, StrDat is written to the file.
4
Steps 1 to 3 are repeated for 100 lines.
Sample Programming
.
.
.
.
.
.
.
The line is written to the file when
the end of the line is reached.
Commas are added between text
strings, a CR code is added to the end,
and the results are joined.
Dat[0,0] Dat[1,0] Dat[9,0]
Dat[0,1] Dat[1,1] Dat[9,1]
Dat[0,99]
16#1234
Dat[1,99] Dat[9,99]
100 lines
Converted to STRING data one at a time.
INT array
STRING variable
STRING variable
16#8487
1234,08B4,. . . . . 3966 CR
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
. . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
StrDat
‘ABC.csv’ file
16#F596
16#08B4
16#9256
16#A511
16#3966
16#1211
16#22AB
Temp
9256
8487,9256

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron NJ501-1500 and is the answer not in the manual?

Omron NJ501-1500 Specifications

General IconGeneral
BrandOmron
ModelNJ501-1500
CategoryController
LanguageEnglish

Related product manuals