The PROFINET IO device driver allows to provide datapoint/bytes as PROFINET IO device. 340 bytes can be transferred in each direction.
Please find the required GSD-file here: GSDML-V2.31-MBS-MICRO3004-20150206.xml.
The name of the PROFINET IO device drivers is: pnetd
The routing address of the PROFINET IO device driver is: 1190
The data point file for the first PROFINET driver is: pnetd1.txt
The configuration file for global settings of the PROFINET driver is: pnetd1.cfg
The PROFINET IO-device driver as well as all other gateway drivers following data point definitions are valid:
|M||Integer value (binary data points, counters) which can/shall only be read by the gateway|
|S||Integer value which can be either read or written by the gateway. (to M-BUS writing is not possible)|
|X||Floating point value (with decimal place) which can/shall only be read by the gateway|
|Y||Floating point value (with decimal place) which can be either read or written by the gateway. (to M-BUS writing is not possible)|
|A||String, is used e.g. with BACnet Trends and ESPA4.4.4 data points|
Addresses are defined like this:
Depending whether values or single bits must be transferred the following definition is used:
|Range of value||Description|
|byte value that can be read from the controller
single bit that can be read from the controller
byte value that can be written from the controller
single bit that can be written from the controller
|byte||0 - 339||x byte in in- resp. output register|
|bit||0 - 7||single bit within the x byte|
The address of the first byte that can be transferred to the controller is definied in the file pnetd1.txt like this:
[Y inbyte 0]
To tell the driver how to interpret the values found at the named address a format must be defined for each data point:
format = <format> [F:<fact>]
<format> can have following options:
|FLOAT32||32bit floating point (IEEE)|
|FLOAT64||64bit floating point (IEEE)|
formats exceeding 8 bits require more than one byte. successive bytes are used. Those bytes cannot be used for other data points anymore.erwendbar!
For the interpretation of data points some devices require inverted byte order. This can be defined in the file pnet1.cfg as parameter.
The parameter „F:“ allows for each data point to define a certain factor. The value received will be diverted by the given factor.
In case integer values shall be converted to floating point value the data point on the sending side is multiplied by 10 and divided by 10 on receiver's side. A temperature value of 20.5°C ist shifted to „205“ and transmitted as integer value. Factor can be any floating point value. If no factor is set the default is 1.
typical data point definitions can be:
[S inbit 1.0] name = digital mode query = pe format = BIT writecache = yes
[M outbit 1.0] name = digital given value query = pe format = BIT
[S inbyte 15] name = multistate value e.g. 0, 1, 2 for Off, On, Auto query = pe format = UINT8 writecache = yes
[M outbyte 16] name = multistate given value z.B. level switch 0, 1, 2 for Off, On, Auto
query = pe format = UINT8
[Y inbyte 17] name = Temperature value (Byte 17+18+19+20) query = pe format = FLOAT32 writecache = yes
[X outbyte 17] name = Temperature given value, one decimal point (Byte 17+18) query = pe format = SINT16 F:10