6 - 3 6 - 3
MELSEC-Q
6 DEDICATED INSTRUCTIONS
Control data
Device
Item
Set data
Setting range
Set by (
1
)
(S) + 0
Execution type/complete type
b15
b7
b0
to
to
0
0
1)
2)
b10 b9
b8
0
1) Complete type (bit 7)
Designate whether or not the setting of the clock data is
required at abnormal completion.
0: Clock data setting is not required.
The clock data at error occurrence is not set in (S) + 11
to (S) + 15.
1: Clock data setting required.
The clock data at error occurrence is set in (S) + 11 to
(S) + 15.
2) Execution type (bit 9) (
2
)
Designate whether or not to inquire if there are more mails on
the server after reading receive mails.
0: Do not inquire. (Do not read the receive mail information.)
1: Inquire (Read the receive mail information)
0000
H
0080
H
0200
H
0280
H
User
(S) + 1
Completion status
Store the status at completion of the instruction.
0: Normal
Other than 0: Abnormal (error code) (
3
)
—
System
(S) + 2
Mail number to be read
Designate the mail number to be read when multiple mails are
received.
0: Head mail
1 or higher: Designated mail
0 or higher
User
(S) + 3
to
(S) + 8
System area
—
—
At instruction
execution
Designate the data length ( attached file) of the e-mail
that can be stored in (D1) + 0 to (D1) + n (header: 1 to 373,
attached file: 1 to 6144).
0: Adjust to the data length of the received e-mail.
1 to 6517: The number of data that can be stored in (D1 to
D1 + n)
0 to 6517
(Words)
User
(S) + 9
Receive
data length
At instruction
completion
This stores the data length ( attached file) of the e-mail
stored in (D1) + 0 to (D1) + n.
1 to 6517: The number of received data stored in (D1) + 0 to
(D1) + n
Including the
header length
described below
System
At instruction
execution
Designate the data length of the mail's header that can be stored
in (D1) + 0 to (D1) + n.
0: Adjust to the header data length of the received mail.
1 to 373: The number of data that will be stored in
(D1 to D1 + n).
User
(S) + 10
Header
length
At instruction
completion
Store the data length of the mail's header that was stored in (D1)
+ 0 to (D1) + n.
1 to 373: The number of receive data that was stored in (D1 to
D1 + n).
0 to 373
(Words)
System
(S) + 11
Clock set flag
Store the valid/invalid status of the clock data in ((S) + 12 to (S) +
15).
0: Invalid
1: Valid
0, 1
System
(S) + 12
Higher 8 bits: month (01
H
to 12
H
),
lower 8 bits: last 2 digits of year (00
H
to 99
H
)
(S) + 13
Higher 8 bits: hour (00
H
to 23
H
),
lower 8 bits: date (01
H
to 31
H
)
(S) + 14
Higher 8 bits: second (00
H
to 59
H
),
lower 8 bits: minute (00
H
to 59
H
)
(S) + 15
Clock data
(set only when abnormal)
Higher 8 bits: first 2 digits of year (00
H
to 99
H
),
lower 8 bits: day of the week (00
H
(Sunday) to 06
H
(Saturday))
—
System