10 - 12 10 - 12
MELSEC-F
10 USING THE E-MAIL FUNCTION
10.7 Sending/Receiving E-mail (Attached Files) by the PLC
This section explains how to send and receive attached files by e-mail.
10.7.1 When sending data as an attached file
The following explains the buffer memory addresses and program for sending e-mail.
The following instruction shows how to store data in an attached file and send it to an
external device.
1) Check whether mail can be sent or not.
(BFM#10334…b15: OFF)
2) Designate the destination of the mail.
Turn the bit corresponding to the e-mail destination address to ON in BFM#10337.
To send to all of the mail addresses registered, write to “3FF
H
”.
3) Write the mail data to the following buffer memory addresses.
(Subject: BFM#10339 to 10402)
(Attached file format: BFM#10338)
(Word count of attached file: BFM#10403)
(Contents of main text or attached file: BFM#10404 to 12451)
4) Write “0001
H
” in BFM#10333 to send the mail.
5) Read BFM#10336 to check if mail was correctly sent.
The table below shows the buffer memory to be used for sending mail.
BFM number
Decimal
(Hexadecimal)
Items Contents
10333
(285DH)
Mail sending command
Start mail sending (0001H)
Ignore (0000H)
10334
(285EH)
Mail sending status
Initial status (0000H)
Mail sending normally completed (0001H)
Mail sending abnormally completed (0002H)
Mail being sent (8000H)
10336
(2860H)
Result of sending e-mail
Sending destination address 1 Success (b0: ON) / Failure (b0: OFF)
to
Sending destination address 10 Success (b9: ON) / Failure (b9: OFF)
10337
(2861H)
Designation Address
of e-mail
Turns the bit of the e-mail destination address to ON.
Sending destination address 1 Enable (b0: ON) / Disable (b0: OFF)
to
Sending destination address 10 Enable (b9: ON) / Disable (b9: OFF)
10338
(2862H)
Attached file format
Sends the attached file in binary format (0000H)
Sends the attached file in ASCII format (0001H)
Sends the attached file in CSV format (0002H)
Sends the attached file as a text mail (0004H)
10339 to 10402
(2863 to 28A2H)
Subject
Subject consists of the send destination number and the character data designated by
the sequence program.
(It is not converted to ASCII format.)
* The Subject should be designated in ASCII characters in the sequence program.
* When the subject consists of less than 128 characters, write "\0" at the end of the
subject
10403
(28A3H)
Word count of attached file Designates the number of words of main text/attached file (0 to 2048)
10404 to 12451
(28A4 to 30A3H)
Main text or attached file
Stores a main text or an attached file
Содержание FX3U-ENET
Страница 1: ...USER S MANUAL FX3U ENET ...
Страница 2: ......
Страница 159: ...8 6 8 6 MELSEC F 8 COMMUNICATION USING MC PROTOCOL MEMO ...
Страница 295: ...App 25 App 25 MELSEC F APPENDIX MEMO ...
Страница 297: ......