syenidogan
Member level 1
- Joined
- Mar 6, 2014
- Messages
- 41
- Helped
- 2
- Reputation
- 4
- Reaction score
- 3
- Trophy points
- 8
- Activity points
- 297
Read Coil Status (FC=01)
0A 01 04A1 0001 AC63
0A: The Slave Address (10 = 0A hex)
01: The Function Code (read Coil Status)
04A1: The Data Address of the first coil to read. (Coil 1186 - 1 = 1185 = 04A1 hex)
0001: The total number of coils requested.
AC63: The CRC (cyclic redundancy check) for error checking.
Read Holding Registers (FC=03)
A0 03 006B 0003 7687
A0: The Slave Address (10= A0 hex)
03: The Function Code (read Analog Output Holding Registers)
006B: The Data Address of the first register requested. (40108-40001 = 107 = 6B hex)
0003: The total number of registers requested. (read 3 registers 40108 to 40110)
7687: The CRC (cyclic redundancy check) for error checking.
what is the difference between these two functions? i mean why they are named read coil status and read holding registers? why we just do not name them like function 1 , function 2?
read holding register and read coil status . they both doing the same thing. the same operations. why different names? or why not just call them read data?
0A 01 04A1 0001 AC63
0A: The Slave Address (10 = 0A hex)
01: The Function Code (read Coil Status)
04A1: The Data Address of the first coil to read. (Coil 1186 - 1 = 1185 = 04A1 hex)
0001: The total number of coils requested.
AC63: The CRC (cyclic redundancy check) for error checking.
Read Holding Registers (FC=03)
A0 03 006B 0003 7687
A0: The Slave Address (10= A0 hex)
03: The Function Code (read Analog Output Holding Registers)
006B: The Data Address of the first register requested. (40108-40001 = 107 = 6B hex)
0003: The total number of registers requested. (read 3 registers 40108 to 40110)
7687: The CRC (cyclic redundancy check) for error checking.
what is the difference between these two functions? i mean why they are named read coil status and read holding registers? why we just do not name them like function 1 , function 2?
read holding register and read coil status . they both doing the same thing. the same operations. why different names? or why not just call them read data?
Last edited: