0% found this document useful (0 votes)
0 views

Modbus Function Code 01 _ Read Coil Status _ Simply Modbus Software

The document explains Modbus Function Code 01, which is used to read the ON/OFF status of discrete coils from a slave device. It provides a detailed breakdown of the request and response format, including the slave address, function code, data address, and CRC for error checking. The example illustrates how to interpret the response data to determine the status of specific coils.

Uploaded by

이진우
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Modbus Function Code 01 _ Read Coil Status _ Simply Modbus Software

The document explains Modbus Function Code 01, which is used to read the ON/OFF status of discrete coils from a slave device. It provides a detailed breakdown of the request and response format, including the slave address, function code, data address, and CRC for error checking. The example illustrates how to interpret the response data to determine the status of specific coils.

Uploaded by

이진우
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

25. 1. 8.

오후 3:06 Modbus Function Code 01 | Read Coil Status | Simply Modbus Software

Home
Read Coil Status (Function Code=01)
About
MODBUS Request
fc01
This command is requesting the ON/OFF status of discrete coils # 20 to
fc02
56
fc03
from the slave device with address 17.
fc04
fc05 11 01 0013 0025 0E84
fc06
fc15 11: The Slave Address (11 hex = address17 )
fc16
01: The Function Code 1 (read Coil Status)
ASCII 0013: The Data Address of the first coil to read.
TCP
( 0013 hex = 19 , + 1 offset = coil #20 )
exceptions
0025: The total number of coils requested. (25 hex = 37, inputs 20 to 56
)
About 0E84: The CRC (cyclic redundancy check) for error checking.
Enron
Response
MODBUS
11 01 05 CD6BB20E1B 45E6
RTU Master
11: The Slave Address (11 hex = address17 )
RTU Slave 01: The Function Code 1 (read Coil Status)

https://www.simplymodbus.ca/FC01.htm 1/2

25. 1. 8. 오후 3:06 Modbus Function Code 01 | Read Coil Status | Simply Modbus Software

05: The number of data bytes to follow (37 Coils / 8 bits per byte = 5
TCP Client bytes)
CD: Coils 27 - 20 (1100 1101)
Download 6B: Coils 35 - 28 (0110 1011)
B2: Coils 43 - 36 (1011 0010)
Purchase 0E: Coils 51 - 44 (0000 1110)
1B: 3 space holders & Coils 56 - 52 (0001 1011)
Contact 45E6: The CRC (cyclic redundancy check).

The more significant bits contain the higher coil variables. This shows that
coil 36 is off (0) and 43 is on (1). Due to the number of coils requested,
the last data field1B contains the status of only 5 coils. The three most
significant bits in this data field are filled in with zeroes.

Home • FAQ • Enron • Download • Purchase • Contact

Copyright © 2024 Simply Modbus. All rights reserved

https://www.simplymodbus.ca/FC01.htm 2/2

You might also like