(4) Error
Each of the following events results in an operation error, and the error flag (SM0) turns on and an error code is
stored in SD0.
• An instruction is used in a CPU module with a serial number (first five digits) of "16111" or earlier.
• The Subject length specified in
• The send data length, message body, or Subject length specified in
range.
• The device specified by
• The SP.MLSEND instruction is executed with "e-mail function" not set in the open method of the PC
parameter.
(5) Precautions
• If an instruction is executed while another e-mail send/receive instruction is already being executed or while
SM1659 (MC protocol command being processed flag) is on, the instruction executed later performs no
processing.
• Set SD1660 (e-mail language information) before instruction execution.
• When executing the SP.MLSEND instruction, check in advance the destination e-mail address. If the
external device cannot be found due to an incorrect e-mail address, the SP.MLRECV instruction is executed
for the destination mail server to cause an error and confirm the error event.
(6) Program example
The sample program sends the e-mail (Subject + message body) stored in D200 and later, based on the control
data stored in D20 to D35.
+10 exceeds the send data length specified in
S1
or
exceeds the range of the number of device points.
S1
D
CHAPTER 15 E-MAIL SEND/RECEIVE FUNCTION
(Error code: 4002)
+9.
S1
(Error code: 4100)
+9 or
+10 is out of the specified
S1
S1
(Error code: 4100)
(Error code: 4101)
(Error code: 4160)
Specifying send data format
as message body
Specifying destination No.
Specifying send data length
Specifying subject length
Specifying subject
Specifying message body
Sending e-mail
Normal completion
Error completion
15
207