Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
5.4 Network Dedicated Instruction
5.4.34 MSEND instruction
5-253
ZP_MSEND
5
MODULE DEDICATED
INSTRUCTION
ZP_MSEND
Control Data
Device Item Setting data Setting range Setting side
[0]
Execution/Error completion
type
Send data format
Error completion type (bit 7)
Specify the clock data setup status at the time of error completion.
0: Clock data at the time of error completion is not set in the area
starting from [11].
1: Clock data at the time of error completion is set in the area starting
from [11].
Send data format (bit 12 to bit 8)
Specify the data format of the send data.
(Sending the data as an attached file)
(Sending the data as a text)
[Precautions for specifying a text]
• When a text is specified, setting at bit 11 to bit 8 is invalid.
• Specify the text in ASCII characters in a sequence program.
(Ethernet module does not convert text into ASCII characters.)
• The following binary code data are treated as control codes.
0D0A
H : Line feed code, CR+LF
00
H : End of the text
• The number of characters per line in a text to 78 characters or
less
(Enter the line feed code, CR+LF (0D0A
H), at the last line of a
text.)
(See the left
column.)
User
[1]
Completion status
The instruction completion status is stored.
0 : Normal completion
Other than 0 : Error completion (error code)
System
[2]
Transmission destination
No.
Specify the external device to which e-mails are to be sent by the
setting number on [Send mail address setting] of GX Works2.
1 to 16: Setting number of the external device
1 to 16 User
[3]
to
[8]
System area
––
[9]
Send data length
Specify the data length ((subject + attached file) or (subject + text)) of
the mail stored in to + n.
Sending the data as an attached file (subject: 0 to 373, attached
file: 1 to 6144)
1 to 6517: Data length (word) of a mail
Sending the data as a text (subject: 0 to 373, text: 1 to 960)
1 to 1333: Data length (word) of a mail
1 to 6517,
1 to 1333
User
[10]
Subject length
Specify the subject data length of the mail stored in to + n.
0 to 373: Data length (word) of subject
0 to 373 User
s1
b15 b7 b0to
0210
toto
b8b12
s1
s1
b12 b11 b10 b9 b8 Data format
00000 Binary data
01000
ASCII data (converted from
binary into ASCII)
01001
CSV data (converted from
binary into CSV)
b12 b11 b10 b9 b8 Data format
10000 Binary data
s1
s1
s1
s1
s1
s2
s2
s1
s2
s2