3. Modbus/TCP
3 - 7
(2) Usage example
The following shows a setting example of when the diagnosis function is used.
Query Message
Transaction
Identifier
Protocol
Identifier
Length Field
Unit
Identifier
Function
Sub Function
Data
H
L
H
L
16 bits
0000h
0006h
FFh
08h
00h
00h
12h
34h
Set the following values to each Query Message.
Message field
Description
Transaction Identifier
Set any value.
Protocol Identifier
Set "0000h".
Length Field
Set "0006h".
Unit Identifier
Set "FFh".
Function
Set "08h".
Sub Function
Set "0000h".
Data
When setting 1234h, set values as follows:
H: "12h"
L: "34h"
Response Message
Transaction
Identifier
Protocol
Identifier
Length Field
Unit
Identifier
Function
Sub Function
Data
H
L
H
L
16 bits
0000h
0006h
FFh
08h
00h
00h
12h
34h
The following shows the information in each Response Message.
Message field
Description
Transaction Identifier
Transaction Identifier received from the client (controller) is copied and returned.
Protocol Identifier
The value "0000h" is returned.
Length Field
The byte length from Unit Identifier to Data is returned.
Unit Identifier
Unit Identifier received from the client (controller) is copied and returned.
Function
When the message was received without errors, "08h" is returned.
Sub Function
The value "0000h" is returned.
Data
The value "1234h" set in the Query Message is returned.
H: "12h"
L: "34h"
Содержание MR-JE-C Series
Страница 9: ...A 8 MEMO ...
Страница 13: ...4 MEMO ...
Страница 33: ...2 CC Link IE Field Network Basic SLMP 2 16 MEMO ...
Страница 73: ...5 PARAMETERS 5 14 MEMO ...
Страница 79: ...6 MANUFACTURER FUNCTIONS 6 6 MEMO ...
Страница 143: ...MEMO ...