Vous êtes sur la page 1sur 1

Simply Modbus - Function Code 04 - Read Input Registers

http://www.simplymodbus.ca/FC04.htm

Home
About
MODBUS
fc01
fc02
fc03
fc04
fc05
fc06
fc15
fc16
ASCII
TCP
exceptions

About
Enron
MODBUS

Read Input Registers (FC=04)


Request
This command is requesting the content of analog input register # 30009
from the slave device with address 17.
11 04 0008 0001 B298
11: The Slave Address (17 = 11 hex)
04: The Function Code (read Analog Input Registers)
0008: The Data Address of the first register requested. (30009-30001 = 8)
0001: The total number of registers requested. (read 1 register)
B298: The CRC (cyclic redundancy check) for error checking.
Response
11 04 02 000A F8F4

RTU Master
RTU Slave
TCP Client

11: The Slave Address (17 = 11 hex)


04: The Function Code (read Analog Input Registers)
02: The number of data bytes to follow (1 registers x 2 bytes each = 2 bytes)
000A: The contents of register 30009
F8F4: The CRC (cyclic redundancy check).

Download

Home FAQ Enron Download Purchase Contact

Purchase

Copyright 2013 Simply Modbus. All rights reserved

Contact

1 of 1

3/5/2015 8:55 PM

Vous aimerez peut-être aussi