Modbus Function Codes - Siemens RUGGEDCOM ROS User Manual

Hide thumbs Also See for RUGGEDCOM ROS:
Table of Contents

Advertisement

RUGGEDCOM ROS
User Guide
Function Code
CONTENTS
Section 1.7.1, "ModBus Function Codes"
Section 1.7.2, "ModBus Memory Map"
Section 1.7.3, "ModBus Memory Formats"
Section 1.7.1

ModBus Function Codes

RUGGEDCOM devices support the following ModBus function codes for device management through ModBus:
NOTE
While RUGGEDCOM devices have a variable number of ports, not all registers and bits apply to all
products.
Registers that are not applicable to a particular device return a zero (0) value. For example, registers
referring to serial ports are not applicable to RUGGEDCOM switch devices.
Read Input Registers or Read Holding Registers — 0x04 or 0x03
Example PDU Request
Function Code
Starting Address
Number of Input Registers
Example PDU Response
Function Code
Byte Count
Number of Input Registers
a
The number of input registers
Write Multiple Registers — 0x10
Example PDU Request
Function Code
Starting Address
Number of Input Registers
Byte Count
Registers Value
b
The number of input registers
ModBus Function Codes
Data
1 Byte
2 Bytes
2 Bytes
1 Byte
1 Byte
a
N
x 2 Bytes
1 Byte
2 Bytes
2 Bytes
1 Byte
b
N
x 2 Bytes
0x04(0x03)
0x0000 to 0xFFFF (Hexadecimal)
128 to 65535 (Decimal)
Bytes 0x0001 to 0x007D
0x04(0x03)
a
2 x N
0x10
0x0000 to 0xFFFF
Bytes 0x0001 to 0x0079
b
2 x N
Value of the register
Chapter 1
Introduction
15

Advertisement

Table of Contents
loading

Table of Contents