Mitsubishi Electric MELSEC-L Special Instructions Manual page 221

Melsec-q/l structured programming manual
Hide thumbs Also See for MELSEC-L:
Table of Contents

Advertisement

Setting data
Device
Item
(s)[0]
Execution/Error
completion type
(s)[1]
Completion status
(s)[2]
E-mail No. to be read
(s)[3]
System area
(s)[8]
(s)[9]
Receive
For
data length
instruction
execution
At
instruction
completion
(s)[10]
Header
For
length
instruction
execution
At
instruction
completion
(s)[11]
Clock set flag
(s)[12]
Clock data
(set only when errors
(s)[15]
occur)
(d1)+0
Receive data
(d1)+n
*1 The following table shows the processing that depends on the selection of the execution type after executing the MRECV instruction.
Setting option
Processing
No request
• Only e-mail read processing from the mail server is performed.
(not read)
• Inquiry (reading) for the information of received mails remaining in the mail server is
performed after the time set in the GX Works2 parameter has elapsed.
Setting data
...
b15
b9
b8
b7
(2)
0
0
(1)
(1) 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 (s)[11].
1: Clock data at the time of error completion is set in the area starting from (s)[11].
*1
(2) Execution type (bit 9)
Specify whether to inquire about existence of mails in the server after reading received
mails.
0: Not requested (not read)
1: Requested (read)
The instruction completion status is stored.
0: Normal completion
Other than 0: Error completion (error code)
Specify the number of a mail to be read when multiple mails are received.
0: First mail
1 or more: Specified mail
Specify the data length (header + attached file) of the mail that can be stored in (d1) to
(d1)+n. (Header: 1 to 373, attached file: 1 to 6144)
0: Adjust data length to that of the received mail.
1 to 6517: The number of data that can be stored in ((d1) to (d1)+n)
Data length (header + attached file) of the mail stored in (d1) to (d1)+n is stored.
1 to 6517: The number of receive data stored in ((d1) to (d1)+n)
Specify the header data length of the mail that can be stored in (d1) to (d1)+n.
0: Adjust header data length to that of the received mail.
1 to 373: The number of data that can be stored in ((d1) to (d1)+n)
Header data length of the mail stored in (d1) to (d1)+n is stored.
1 to 373: Number of receive data stored in ((d1) to (d1)+n)
Valid/invalid status of the data in the area starting from (s)[12] is stored.
0: Invalid
1: Valid
Clock data at the time of error completion are stored in BCD format.
b15
to
b8 b7
[12 ]
Month (01
to 12
)
s
H
H
[13 ]
Hour (00
to 23
)
s
H
H
[14 ]
Second (00
to 59
)
s
H
H
[15 ]
Year (00
to 99
) First two digits
s
H
H
Content (header + attached file) of the received mail are stored.
...
b0
0
to
b0
Year (00
to 99
) Last two digits
H
H
Day (01
to 31
)
H
H
Minute (00
to 59
)
H
H
Day of week (00
to 06
)
H
H
00
(Sun.) to 06
(Sat.)
H
H
Advantage
Unnecessary read
processing is not
performed when
the mail server has
no mail.
5 MODULE DEDICATED INSTRUCTION
5.4 Network Dedicated Instruction
Setting
Setting
range
side
0000H,
User
0080H,
0200H,
0280H
System
5
0 or more
User
0 to 6517
User
(word)
* Includes
the header
length
System
explained
below.
0 to 373
User
(word)
System
0, 1
System
System
System
Disadvantage
Even if mails remain in
the mail server, they
cannot be read
immediately.
Mails tend to be
accumulated in the mail
server.
219

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q

Table of Contents