Fc4 read input register, Fc6 write single register – VEGA VEGAPULS 63 (≥ 2.0.0 - ≥ 4.0.0) Modbus and Levelmaster protocol Manual del usuario

Página 71

Advertising
background image

71

12 Anexo

VEGAPULS 63 • Protocolo Modbus y Levelmaster

41364-ES-130411

Request:

Parameter

Length

Code/Data

Function Code

1 Byte

0x03

Start Address

2 Bytes

0x0000 to 0xFFFF

Number of Registers

2 Bytes

1 to 127 (0x7D)

Response:

Parámetro

Longitud

Code/Data

Function Code

1 Byte

0x03

Start Address

2 Bytes

2*N

Register Value

N*2 Bytes

Data

FC4 Read Input Register

Con esa instrucción se puede leer una cantidad arbitraria (1-127) en los registros de entrada. Se

transmiten el registro inicial, desde el que hay que leer y la cantidad de registros.
Request:

Parámetro

Length

Code/Data

Function Code

1 Byte

0x04

Start Address

2 Bytes

0x0000 to 0xFFFF

Number of Registers

N*2 Bytes

1 to 127 (0x7D)

Response:

Parámetro

Length

Code/Data

Function Code

1 Byte

0x04

Start Address

2 Bytes

2*N

Register Value

N*2 Bytes

Data

FC6 Write Single Register

Con ese código de función solamente se puede escribir un solo registro holding.
Request:

Parámetro

Length

Code/Data

Function Code

1 Byte

0x06

Start Address

2 Bytes

0x0000 to 0xFFFF

Number of Registers

2 Bytes

Data

Response:

Parámetro

Length

Code/Data

Function Code

1 Byte

0x04

Start Address

2 Bytes

2*N

Register Value

2 Bytes

Data

Advertising