Mitsubishi Electronics MELSEC-F Universal Remote User Manual


 
10 - 21
MELSEC-F
USING THE E-MAIL FUNCTION10
10 - 21
(2) Execution timing of the instruction
1) Check whether the initial processing has been completed normally or not.
2) Read the value in BFM#22640 to see whether there is incoming mail in the
mail server.
3) Write "0001
H" in BFM#14500 to read e-mail from the server.
*E-mail read from the server do not remain on the server.
4) The received mail data is written in the buffer memory address.
Mail receiving status (BFM#14501) becomes "8000
H" (mail receiving).
5) The received mail is deleted from the server and the number of receivable
mail is stored in BFM#22640 again.
6) When there is receivable mail on the server, read them by writing "0001
H" in
BFM#14500.
POINT
(1) Reading receive mails to the Ethernet module
The Ethernet module automatically checks the mail server to see whether
there is incoming mail at the inquiry interval set with Mail parameter
(BFM#9904).
If there is incoming mail, the reception information is stored in BFM#22640;
Execute mail receiving processing based on this information, and read the
incoming mail.
(2) When there are two or more received mail on the mail server
After reading a mail, the received mail information on the mail server is read
again and stored in BFM#22640.
Execute mail receiving processing continuously based on this information,
and read the second incoming mail.
In addition, note that the second mail overwrites the first mail.
0000H
0000H 0001H
8000H
K0 K0 K1 K0 K0 K0 K0 K0
0000
H
1)
2)
3)
4)
5)
Initial
processing
Received
mail count
check
Received
mail count
check
Mail
receiving
start
Mail
receiving
completed
Received
mail count
check
Received
mail count
check
Received
mail count
check
Received
mail count
check
Initial processing
normally completed
Mail send/reception status
BFM#14501
Number of mails remaining
on the POP3 server
BFM#22640
Receiving processing
for received mail
BFM#14500 (TO instruction)
Communication
with the POP3
server
(Normal completion)
(Abnormal completion)