Omron CS1W-EIP21 Network Card User Manual


 
318
Using File Memory Section 11-7
Example: Data format using words delimited by tabs and CRs after every
10 fields.
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:
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).
+0 +1 +2 +3 +4 +5 +6 +7 +8 +9
+0 1234 5678 9ABC DEF0 1234 5678 9ABC DEF0 1234 5678
+10 9ABC DEF0 1234 5678 9ABC DEF0 1234 5678 9ABC DEF0
31 32 33 34 09 35 36 37 38 09 39 41 42 43 09
I/O memory
.TXT file contents
1234[HT] 5 6 7 8 [HT] 9 A B C [HT]
35 36 37 38 0D 0A 39 41 42 43 09
5678[CR][LF] 9 A B C [HT]
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.
.TXT file displayed as text
Data format Use of CRs and CR position
Words delimited by commas.
Double words delimited by com-
mas.
• 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.