6 - 18 6 - 18
MELSEC-Q
6 DEDICATED INSTRUCTIONS
Control data
Device
Item
Set data
Setting range
Set by (
1
)
(S) + 0
Abnormal complete type
b15
b7
b0
to
to
0
0
1)
b6
0
0
to
b8
to
1) Abnormal complete type (bit 7)
Set whether or not the clock data setting is required at
abnormal completion.
0: Clock data setting is not required
.....Clock data is not stored in (S) + 11 to (S) + 17 when
errors occur.
1: Clock data setting is required
.....Clock data is stored in (S) + 11 to (S) + 17 when
errors occur.
0000
H
0080
H
User
(S) + 1
Completion status
Store the status at completion of an instruction.
0: Normal
Other than 0: Abnormal (error code) (
2
)
—
System
(S) + 2
Local station storage channel
Designate the channel to store the data to be read.
1 to 8 (Channel)
1 to 8
User
(S) + 3
Channel used by the
transmission station
Store the channel number used by the transmission station.
1 to 8 (Channel)
1 to 8
System
(S) + 4
Transmission station network
number
Store the network number of the transmission station.
1 to 239: Network No.
1 to 239
System
(S) + 5
Transmission station number
Stores the station number of the transmission station.
1 to 64: Station number (reception from the station with the
corresponding station number)
1 to 64
System
(S) + 6
(Not used)
—
—
—
(S) + 7
(Not used)
—
—
—
(S) + 8
Arrival monitoring time
Set the monitoring time until the instruction completion so that it
is greater than or equal to the TCP resend timer value.
When the instruction fails to complete within the monitoring time,
abnormal completion occurs.
0 to TCP resend timer value:
The monitoring time is reset to the TCP resend timer value.
(TCP resend timer value + 1) to 16383:
Monitoring time (unit: s)
1 to 16383
0 to TCP resend
timer value
User
(S) + 9
Reception data length
Stores the word count of the receive data stored in (D1) + 0 to
(D1) + n.
0: No receive data
1 to 480 : Word count of receive data
0 to 480
System
(S) + 10
(Not used)
—
—
—
(S) + 11
Clock set flag
Store the valid/invalid status of the data in ((S) + 12 to (S) + 17).
0: Invalid
1: Valid
—
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
errors occur)
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
(S) + 16
Abnormal detection network
number
Stores the network No. of the station that detected an abnormality.
(
3
)
1 to 239 (Network No.)
1 to 239
(S) + 17
Abnormal detection station
number
Stores the station number of the station that detected an
abnormality. (
3
)
1 to 64 (Station number)
1 to 64
System