2 Modbus TCP protocol
20
© Copyright Reserved Autonics Co., Ltd.
2.1
Read Coil Status(Func01–01H)
Reads the output (OX reference, Coil) ON/OFF status in the Slave device.
(1)
Query(Master)
MBAP Header
Function
(Command)
Starting Address
No. of Points(Number of data)
High
Low
High
Low
7Byte
1Byte
1Byte
1Byte
1Byte
1Byte
(2)
Response(Slave)
MBAP Header
Function
(Command)
Byte Count
(Number of data
byte)
Data
Data
Data
7Byte
1Byte
1Byte
1Byte
1Byte
1Byte
The below example is to read the output status (ON: 1, OFF: 0) of 10EA within coil 000001(0000
H) to 000010(0009 H) on the Slave from Master.
Query(Master)
MBAP Header
Function
(Command)
Starting Address
No. of Points(Number of data)
High
Low
High
Low
00 0a 00 00 00 06 01H 01 H
00 H
00 H
00 H
0A H
The below example is when coil 000008(0007 H) to 000001(0000 H) value on the Slave is “ON-
ON-OFF-OFF-ON-ON-OFF-ON” and 000010(0009 H) to 000009(0008 H) value is “OFF-ON”.
Response(Slave)
MBAP Header
Function
(Command)
Byte Count
(Number of data byte)
Data
(000008 to 000001)
Data
(000010 to 000009)
00 0a 00 00 00 05 01H 01 H
02 H
CD H
01 H
Summary of Contents for krn100 series
Page 1: ...Preface Copyright Reserved Autonics Co Ltd i USER MANUAL For COMMUNICATION ...
Page 2: ...ii Copyright Reserved Autonics Co Ltd ...
Page 10: ...Table of Contents x Copyright Reserved Autonics Co Ltd ...
Page 18: ...1 Modbus RTU protocol 18 Copyright Reserved Autonics Co Ltd ...
Page 82: ......