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
In Step7 or TIA you have to take care that the data have to be transferred to the periphery. With TIA, a „:P“ must be added after the actual address (e.g. „E700“). In Step7 this would be e.g. „PED700“.
The IP address of the gateway has nothing to do with the IP address of the ProfiNet side. A setting of the IP address on the ProfiNet side must be done via Step7 or TIA, an adjustment via the interface of the gateway is not possible.
If the network interface of the gateway and the network interface of the ProfiNet are located in the same network (e.g. on the same VLAN/switch), the IP addresses must be different, otherwise communication problems may occur.
If several ProfiNet gateways are in use in a network, it must also be ensured that the names of the devices must also be changed. It is not allowed to operate several devices with identical names in one network.
When changing the hardware configuration of the gateway, a reboot of the system is usually sufficient.
It may sometimes happen that no communication is established after a reboot, although both sides are configured identically. In this case, it is sufficient to switch the gateway off for a longer time (approx. 30 seconds). If this workaround does not work, please contact support.