31005
1004
TSX5
| POWER [kW] – VALUE LO: CD
UINT32 : CD AB
R
16-bit register
U32LO
DW=1
31006
1005
TSX5
| POWER [kW] – VALUE HI: AB
UINT32 : CD AB
R
16-bit register
U32HI
DW=1
8.2.2. CONVERTER MODBUS REGISTERS TABLE IN - READOUT BY FUNCTION 03 (4X –
REFERENCES) HOLDING REGISTERS
Address
3X
Registers
Address
Registers
description
Attribute
Value
DW
41001
1000
TSX5 – sentence for TSX-5 device of SeaTechniK Ltd company
TSX5
| ROTATION SPEED [rev/min] – VALUE LO: CD
UINT32 : CD
R
16-bit register
U32LO
DW=10
41002
1001
TSX5
| ROTATION SPEED [rev/min] – VALUE HI: AB
UINT32 : AB
R
16-bit register
U32HI
DW=10
41003
1002
TSX5
| TORQUE [kNm] – VALUE: AB
UINT16 : AB
R
16-bit register
U16
DW=1
41004
1003
TSX5
| THRUST [kNm] – VALUE: AB
UINT16 : AB
R
16-bit register
U16
DW=1
41005
1004
TSX5
| POWER [kW] – VALUE LO: CD
UINT32 : CD AB
R
16-bit register
U32LO
DW=1
41006
1005
TSX5
| POWER [kW] – VALUE HI: AB
UINT32 : CD AB
R
16-bit register
U32HI
DW=1
8.3. FRAME STRUCTURE OF MODBUS-RTU PROTOCOL
Device address (1-byte) Function (1-byte) Dane (n-bytes) CRC-16Lo (1-byte) CRC-16Hi (1-byte)
8.4. USED FUNCTIONS OF MODBUS-RTU PROTOCOL
Function code
Description
03 (0x03)
Values readout from MODBUS-RTU registers
04 (0x04)
Values readout from MODBUS-RTU registers
8.4.1. FUNCTION 0x03 / 0x04 – READOUT MODBUS REGISTERS VALUE FROM CONVERTER
8.4.1.1. READOUT OF CURRENT MEASURED VALUE STORED IN 16-BIT REGISTER [4X / 3X-
REFERENCES]
Function 0x03 / 0x04 are used for readout of status and parameter values from the converter.
Parameter values readout form MODBUS-RTU register is presented by a 16-bit register.
The registers have parameter values in format:
- integer: signed 16-bit -
I16
(in C/C++ type short int),
- integer: 16-bit without sign -
U16
(in C/C++ type short unsigned int),
- integer: signed 32-bit -
I32
(in C/C++ type int),
- integer: unsigned 32-bit -
U32
(in C/C++ type unsigned int),
- signed array –
CH[ ]
(in C/C++ type char[ ]);
The actual measurement value is obtained from the read register using the following algorithms, using the appropriate factor value
DW
(see table below), if it has been specified.
Algorithm 1.
Readout register is saved to regular type variable (float) and then divide it by the factor
DW
.
// The fragment of code in C language (VS6.0) presenting above algorithm
short int siMeasurementReg;
float fMeasurmentValue
......
fMeasurmentValue = (float)siMeasurementRegister;
fMeasurmentValue = fMeasurmentValue / DW;
18
ADA-4040PC6
Summary of Contents for ADA-4040PC6
Page 23: ...23 ADA 4040PC6...