10 - 12 10 - 12
MELSEC-Q
10 DEDICATED INSTRUCTIONS
Control data
Device Item
Set
Data
Setting
Range
Setting
Side
*2
(S1)+0 Execution
type
b15
b0
to
1)
0
to
b1
0
1) Close option (Bit 0)
Set whether a TCP connection will be closed or not after instruction
completion.
0: TCP connection is not closed after instruction completion.
1: TCP connection is closed after instruction completion.
0, 1
User
(S1)+1 Complete
condition
A condition when instruction is completed is stored.
0: Normal completion
Other than 0: Error completion (error code)
Refer to Section 11.3.3 for details of the error code.
System
(S1)+2
(Fixed
value)
0 User
(S1)+3
(S1)+4
Target IP address
Set the IP address of the target slave.
b0
b15
b7
b8
b0
b15
b7
b8
192. 1. 0. 2
IP address:
<(S1) + 4>
<(S1) + 3>
Refer to 1
User
(S1)+5 Module
ID
Set when a request message is sent to the slave without the MODBUS
R
/TCP
interface via the MODBUS
R
serial gateway, etc.
When the destination of the request message is the MODBUS
R
serial gateway,
the set values are as described below.
0: Broadcast
1 to 247: Station number of MODBUS
R
serial slave
: Set "255" when the destination of the request message is the slave having
the MODBUS
R
/TCP interface.
0 to 255
User
(S1)+6
Target slave port
No.
Specify the port No. of the target slave.
0: Sent to No. 502
1 to 65535: Sent to the set port No.
0
1 to 65535
(*3)
User
(S1)+7
Response
monitoring timer
value
Specify the time for monitoring a response from the target device (slave). (500ms
increments)
0: 60 (30s)
2 to 2400: Set value (Response monitoring timer value = Set value
500ms)
0
2 to 2400
User
*1: Set the value that satisfies the following conditions.
Condition 1: The IP address class is any of A, B and C.
Condition 2: The host address bits are not all "0" or all "1".
*2: The setting side is as described below.
User: Data are set by the user before dedicated instruction execution.
System: The programmable controller CPU stores the result of dedicated
instruction execution.
*3: When specifying a value of 32768 (8000
H
) or more in a sequence program, set
the value in hexadecimal.
POINT
When the close option setting of the execution type ((S1)+0) is "TCP connection is
closed after instruction completion", TCP connection is closed after the dedicated
instruction has been completed and the completion device (D2) has turned ON.
If the dedicated instruction is executed again for the same target device during this
TCP connection closing processing, it is completed with an error.
When the execution interval of the dedicated instruction for the same target device
is short, set the close option to "TCP connection is not closed after instruction
completion".