EasyManua.ls Logo

Siemens SITRANS F Modbus RTU RS 485 - Data Type Mapping

Siemens SITRANS F Modbus RTU RS 485
76 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
B.7 Data type mapping
Some standard datatypes are de󹪝ned in the SITRANS F protocol. Most of these datatypes are not
present in the MODBUS® RTU protocol as it de󹪝nes ‘Registers’ and ‘Coils’ for all variables. A
register in this context is always 16 bit long. This will prove restrictive for the parameters found
in Siemens Flow products and therefore a number of approaches have been adopted to
overcome this restriction.
Table B-11 Data type mapping
Datatype Modbus RTU implementation
Byte Data organized as 8-bit unsigned integers. The parameters are read using function code
03hex ‘Read multiple registers’. Parameters are written using function code 10hex ‘Write
multiple registers’. ‘uint8’ type of data is accessed through a single register, where the data is
found in the lower byte of the register. Datavalue can be 0 – 255 with no sign bit.
Word Data organized as 16-bit unsigned integers. The parameters are read using function code 03
hex ‘Read multiple registers’. Parameters are written using function code 10 hex ‘Write mul‐
tiple registers’. ‘uint16’ type of data is accessed through a single register. Datavalue can be 0
– 65536 with no sign bit.
󹪞oat32 Data organized as 32-bit signed 󹪞oats (IEEE format). The parameters are read using function
code 03 hex ‘Read multiple registers’. Parameters are written using function code 10 hex
Write multiple registers’. ‘󹪞oat32’ type of data is accessed through two registers. Datavalues
are coded in IEEE 󹪞oating point format.
󹪞oat64 Data organized as 64-bit signed 󹪞oats (IEEE format). The parameters are read using function
code 03 hex ‘Read multiple registers’. Parameters are written using function code 10 hex
Write multiple registers’. ‘󹪞oat64’ type of data is accessed through four registers. Datavalues
are coded in IEEE 󹪞oating point format.
String Consecutive pairs of 8-bit ASCII characters stored one pair per 16-bit register. Strings are read
using function code 03 hex "Read multiple registers’. Strings are written using function code
10 hex Write multiple registers’. ‘string’ type of data must be read or written as a series of 1
to 25 consecutive registers, depending on the number of characters speci󹪝ed for the string.
The max. string length is therefore 50 chars (incl. delimiter).
Strings are terminated by a zero-delimiter.
B.8 Float de󹪝nition
Stu󹪟ng of multi-byte numbers into multiple MODBUS RTU registers di󹪜ers among MODBUS
devises.
"Big Endian" and "Little Endian" describe the order or sequence in which multi-byte data is stored
in memory. This device uses a ‘Big-Endian’ representation for addresses and data items. This
Appendix
B.8 Float de󹪝nition
Modbus RTU RS 485
Operating Instructions, 03/2021, A5E00753974-AB 71

Related product manuals