Omron CJ1W-EIP21 - 10-2010 Operation Manual page 346

Ethernet/ip units
Table of Contents

Advertisement

Using File Memory
318
Example: Data format using words delimited by tabs and CRs after every
10 fields.
I/O memory
+0
+1
+2
+0
1234
5678
9ABC DEF0
+10
9ABC DEF0
1234
.TXT file contents
31 32 33 34 09 35 36 37 38 09 39 41 42 43 09
1
2
3
4 [HT] 5
35 36 37 38 0D 0A 39 41 42 43 09
5
6
7
8 [CR][LF] 9
.TXT file displayed as text
1234@5678@9ABC@DEF0@1234@5678@9ABC@DEF0@1234@5678
9ABC@DEF0@1234@5678@9ABC@DEF0@1234@5678@9ABC@DEF0
@...[HT]: Used to display tab space when displayed as text.
CSV Format
The CSV format is a data format (using comma delimiters) that is specified by
ladder instructions, READ DATA FILE (FREAD(700)) and WRITE DATA FILE
(FWRIT(701)), in the CPU Unit. The CSV format is configured according to
the specified FREAD(700) and FWRIT(701) parameters, as follows:
Data format
Words delimited by commas.
Double words delimited by com-
mas.
If word data from the I/O memory (1234 hexadecimal, 5678 hexadecimal, up
to DEF0 hexadecimal) is contained in an attached file in CSV format, the word
data will be converted into ASCII format in word or double-word units. The
words are delimited by inserting comma delimiters (',':2C), and CRs after
specified fields ([CR][LF]: 0D0A).
+3
+4
+5
+6
1234
5678
9ABC DEF0
5678 9ABC DEF0
1234
6
7
8 [HT] 9
A
B
C [HT]
A
B
C [HT]
Use of CRs and CR position
• No CRs
• CR after every 10 fields.
• CR after each field.
• CR after every 2 fields.
• CR after every 4 fields.
• CR after every 5 fields.
• CR after every 16 fields.
Section 11-7
+7
+8
+9
1234
5678
5678 9ABC
DEF0

Advertisement

Table of Contents
loading

Table of Contents