2 - 28 2 - 28
MELSEC-Q
2 USING THE E-MAIL FUNCTION
2.8 Sending E-mail (Main Text) by the PLC CPU
This section explains how to send the main text of e-mail using the dedicated MSEND
instruction available for the Ethernet module.
2.8.1 When sending data as main text of e-mail
The following explains the MSEND instruction and program for sending e-mail.
The following illustration shows how the MSEND instruction is used to store data in the
main text of e-mail and send it to an external device.
(D)
QCPU
QJ71E71
I/O No.
E-mail address
(parameter setting)
S main text
2)
3)
4)
1)
(S2)
(S1)
"Un"
ZP.MSEND
Mail server
Desti-
nation
5) Main text of e-mail
1) I/O number of the Ethernet module
2) Control data (such as sending e-mail address)
This indicates the e-mail address of the transmission destination
device set on the Send E-mail Address Settings screen.
3) Sending e-mail (S main text)
The Subject consists of the transmission destination number and the
character data specified by a sequence program. (It is not converted to
ASCII format.)
Designate text data in ASCII characters in sequence programs.
4) Completion bit
5) Main text of e-mail
This indicates the character string designated by the MSEND
instruction.
It is not converted to ASCII format by the Ethernet module.
Designate the main text in ASCII characters in sequence
programs.
The following binary code data is processed as control codes:
0D0A
H
: Line feed code CR+LF
00
H
: End of main text
It is recommended to use 78 characters or less data when writing
each line of the main text (sending data). (Be sure to add a line
feed code CR+LF (0D0A
H
) at the end of the main text lines.)
6) Attached file
No attached file can be sent when sending data as the main text of e-
mail.