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