Omron CS CJ1W-ETN21 Operation Manual page 85

Sysmac cs and cj series ethernet units construction of applications
Hide thumbs Also See for CS CJ1W-ETN21:
Table of Contents

Advertisement

I/O Memory Data Formats
TXT Format
Note
CSV Format
Note
When hexadecimal I/O memory data (1234, 5678, 9ABC, etc.) is being copied
to an attached file in TXT format, the data is converted to ASCII in one-word
fields or two-word fields. The fields (one-word or two-word) are delimited by
tabs ([HT]: 09) and a return and line feed ([CR][LF]: 0D0A) are inserted after
the specified number of fields.
Example: Tab-delimited words with a return every 10 fields
I/O memory contents
+0
+1
+2
+3
+0
1234
5678
9ABC DEF0
+10
9ABC DEF0
1234
5678
TXT file contents
31
32
33
34
09
35
36
1
2
3
4
[HT]
5
6
35
36
37
38
0D
0A
5
6
7
8 [CR] [LF]
Contents of TXT file when displayed
1234@5678@9ABC@DEF0@1234@5678@9ABC@DEF0@1234@5678@
9ABC@DEF0@1234@5678@9ABC@DEF0@1234@5678@9ABC@DEF0
The @ character represents a hard tab and is displayed as a tab in text displays.
The TXT file format is compatible with the CPU Unit's READ DATA FILE and
WRITE DATA FILE instructions (FREAD and FWRIT) set to tab-delimited
data.
When hexadecimal I/O memory data (1234, 5678, 9ABC, etc.) is being copied
to an attached file in CSV format, the data is converted to ASCII in one-word
fields or two-word fields. The fields (one-word or two-word) are delimited by
commas (",": 2C) and a return and line feed ([CR][LF]: 0D0A) are inserted
after the specified number of fields.
Example: Comma-delimited words with a return every 10 fields
I/O memory contents
+0
+1
+2
+3
+0
1234
5678
9ABC DEF0
+10
9ABC DEF0
1234
5678
CSV file contents
31
32
33
34
2C
35
36
1
2
3
4
,
5
6
35
36
37
38
0D
0A
5
6
7
8 [CR] [LF]
Contents of CSV file when displayed
1234,5678,9ABC,DEF0,1234,5678,9ABC,DEF0,1234,5678,
9ABC,DEF0,1234,5678,9ABC,DEF0,1234,5678,9ABC,DEF0
The CSV file format is compatible with the CPU Unit's READ DATA FILE and
WRITE DATA FILE instructions (FREAD and FWRIT) set to comma-delimited
data.
+4
+5
+6
+7
+8
1234
5678
9ABC DEF0
1234
9ABC DEF0
1234
5678
9ABC DEF0
37
38
09
39
41
42
43
09
7
8
[HT]
9
A
B
C [HT]
39
41
42
43
09
9
A
B
C [HT]
+4
+5
+6
+7
+8
1234
5678
9ABC DEF0
1234
9ABC DEF0
1234
5678
9ABC DEF0
37
38
2C
39
41
42
43
7
8
,
9
A
B
C
39
41
42
43
2C
9
A
B
C
,
Section 3-6
+9
5678
+9
5678
2C
,
61

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cs cs1w-etn21Sysmac cs1w-etn21Sysmac cj1w-etn21

Table of Contents