Descargar Imprimir esta página

Read Input Status (Function Code 0X02) - Tripp-Lite S3M25-100kVA Manual Del Propietário

Protocolo modbus de ups trifásico

Publicidad

Idiomas disponibles

Idiomas disponibles

2. MODBUS Protocol Description

2.6.2 Read Input Status (Function Code 0x02)

Function Code
Starting Address
Quantity of Inputs
Function Code
Byte Count
Input Status
Function Code
Exception Code
Here is an example of a request to read discrete inputs 197–218:
Field
Function Code
Starting Address: High
Starting Address: Low
Quantity of Inputs: High
Quantity of Inputs: Low
Inputs Status 197–204
Hex
b0 b1 b2 b3 b4 b5 b6 b7 b0 b1 b2 b3 b4 b5 b6 b7 b0 b1 b2 b3 b4 b5 b6 b7
Binary
0
0
Inputs Status
197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 -
*N = quantity of inputs / 8, if the remainder is different than 0gN=N+1
Read Discrete Inputs
Request
(Hex)
02
00
C4
00
16
AC
1
1
0
1
0
1
Request
1 Byte
2 Bytes
2 Bytes
Response
1 Byte
1 Byte
N *Byte
Error
1 Byte
1 Byte
Field
Function Code
Byte Count
Inputs Status 197–204
Inputs Status 205–212
Inputs Status 213–218
Inputs Status 205–212
DB
1
1
0
1
1
0
9
0x02
0x0000~0xFFFF
1~2000 (0x7D0)
0x02
N *
0x82
01 or 02 or 03 or 04
Response
(Hex)
Inputs Status 213–218
35
1
1
1
0
1
0
02
03
AC
DB
35
1
1
0
0
-

Publicidad

loading