Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
Tutorial 2: Modbus TCP/IP - Function 02(02hex) Read Discrete Inputs
3 Views • Nov 06, 2016
Description
Reads the ON/OFF status of discrete inputs in the slave.
Request
The request message specifies the starting input and quantity of inputs to be read.
Example of a request to read 10...22 (input 10011 to 10023) from slave device address 4:
Response
The input status response message is packed as one input per bit of the data field. Status is indicated as: 1 is the value ON, and 0 is the value OFF. The LSB of the first data byte contains the input addressed in the request. The other inputs follow toward the high-order end of this byte and from low order to high order in subsequent bytes. If the returned input quantity is not a multiple of eight, the remaining bits in the final data byte will be padded with zeroes (toward the high-order end of the byte). The byte count field specifies the quantity of complete bytes of data.
More from User
Tutorial 9: Modbus TCP/IP - Data Types In Modbus
Industrial Networks
Tutorial 10: Modbus TCP/IP - Exception In Modbus
Industrial Networks
Tutorial 8: Modbus TCP/IP - Function 16 (10hex) Write Multiple Registers
Industrial Networks
Tutorial 7: Modbus TCP/IP - Function 15 (0Fhex) Write Multiple Coils
Industrial Networks
Tutorial 11: Modbus RTU - Modbus Exception Code
Industrial Networks
Tutorial 10: Modbus RTU - Function 16 (10hex) Write Multiple Registers
Industrial Networks
Related Videos
How to Create Modbus TCP/IP Client using XIAO ESP32C3 to Read Input Coil Status of Modbus TCP/IP Device
Fusion Automate
How to Create Modbus TCP/IP Client using XIAO ESP32C3 to Read Input Register of Modbus TCP/IP Device
Fusion Automate
Tutorial 4: Modbus RTU - Function 02(02hex) Read Discrete Inputs
Industrial Networks
Tutorial 4: Modbus TCP/IP - Function 04 (04hex) Read Input Registers
Industrial Networks
How to Create Modbus TCP/IP Client using XIAO ESP32C3 to Read Coil Status of Modbus TCP/IP Device
Fusion Automate
How to Create Modbus TCP Client using XIAO ESP32C3 to Read Holding Register of Modbus TCP/IP Device
Fusion Automate