10 - 16
MELSEC-F
USING THE E-MAIL FUNCTION10
10 - 16
10.7.2Contents of the attached files
The following explains the contents of the attached file data.
The data format of the attached file is ASCII code (ASCII format, CSV format) or
binary code (binary format).
The following example shows the transmission contents for each data format (binary/
ASCII/CSV) when the Ethernet module sends the data register value as an attached
file.
(1) When sending from the Ethernet module
(2) Data configuration in CSV format
Data in CSV format can be used as control data for the cell units in Excel, etc.
Data in CSV format handled by the Ethernet module is the data expressed as
follows.
1 word (16 bits) binary data is converted to four digit ASCII code when
expressed as a hexadecimal. (4 bytes of ASCII code)
When handling multiple word data, insert comma data between each word
(4 bytes of ASCII code).
Data is sent in the following arrangement.
Arrangement of data
1) In addition to the data conversion and insertion described above, CR
(code: 0DH) and LF (code: 0AH) are inserted for each 8 words of data.
2) The arrangement of data sent in CSV format is shown below.
"C" "B" "A" "9" "8" "7" "6" "5" "4" "3" "2" "1"
BFM#
10413
BFM#
10404
10405
10413
1234H
5678H
9ABCH
9AHBCH56H78H12H34H
"C" "B" "A" "9" "8" "7" "6" "5" "4" "3" "2" "1"
,,,
External device
In case of binary
In case of ASCII
In case of CSV
Ethernet module
BIN ASCII
conversion
BIN CSV
conversion
BFM#
10413
BFM#
10413
BFM#
10405
BFM#
10405
BFM#
10405
BFM#
10404
BFM#
10404
BFM#
10404
,
D8 ,D9 D10 D15
D16 ,D17 D18 D23
D24 ,D25 D26
8 device
(8-word unit)
D0 D1 D2 D7 [CR + LF]
[CR + LF]
,
,
,
,
,
,
,
[CR + LF]
[CR + LF]