Chapter 6 Applied Instructions 
6-517 
API 
Instruction code  Operand  Function 
2204    MSEND  P 
S
1
, S
2
, S
3
, D 
Sending the email 
Device
X  Y  M  S  T  C  HC  D  L  SM  SR  E  PR  K  16#  “$”  DF 
16-bit instruction (9 steps) 
  AH500  AH500  - 
Symbol: 
S
1
: 
Remote email address  Word 
S
2
: 
Email subject  Word 
S
3
: 
Email body  Word 
D 
: 
Completion of the instruction  Bit 
Explanation: 
1.  Users can send an email by setting S
1
, S
2
, and S
3
. 
2.  Before using the instruction, users have to accomplish the following setting in ISPSoft. 
  PLC Parameter Setting→Ethernet-Basic→Setting the IP addres and the netmask 
address 
  PLC Parameter Setting→Ethernet-Advance→Email→Setting the SMTP server, the port, 
the local email address, and the SMTP subject 
  PLC Parameter Setting→Ethernet-Advance→Email and Trigger Configuration→Setting 
the email address 
  If the account identification is required,   
PLC Parameter Setting→Ethernet-Advance→Email→Setting the user name and the 
password 
3.  The email is set as follows. 
S
1
 
Remote email 
address 
1
 should be within the range between 1 and 
256. 
The values of bit0~bit7 set in ISPSoft indicate the remote 
email addresses. (Users can set eight email addresses in 
ISPSoft.) The remote email address is 1 if the value of bit0 is 
1, the remote email address is 2 if the value of bit1 is 1, and by 
analogy, the remote email address is 8 if the value of bit7 is 1. 
If users want to send an email, they have to set the values of 
bit0~bit7 in ISPSoft. 
2
The size of the email subject can be up to 16 words.   
The size of the email body can be up to 64 words. 
D 
Completion of 
the instruction 
After the execution of the instruction is complete, the bit is ON. 
If the execution of the instruction is abnormal, the next bit is 
4.  Generally, the pulse instruction MSENDP is used.