2
Concepts
, functions and gateway design
UGW X-series
Concepts, functions and gateway design
12 of 66
Example configuration file MODBUS Slave modslave1.cfg
[MODBUS-SLAVE]
Baudrate = 19200
Databits = 8
Parity = even
Stopbits = 1
Bustype = RS485
Protocol = RTU
Timer = 100
BitCount = 255
WordCount = 16
RelaxedErrors = 1
ResponseTimeout = 4
SlaveTimeout = 300
FrameTimeout = 200
2.5.4
Mapping file dispatch.txt
In this file, the allocations (mappings) between the data points are defined. With the keyword
value
,
a value can be specified which is to be transmitted to the target data point instead of the source
data point value. The keyword
threshold
has two different meanings, depending on the data point
type of the source data point.
•
If the source data point is an analogue value (data point type X or Y), the specified value has
the effect of a threshold. This means that only value changes where the change is greater
than the specified threshold can be transferred.
•
If the source data point is an integer value (M or S), the target data point is changed only
when the value of the source data point is equal to the specified value.
2.5.5
Typical data point schemata
The following examples show schematically how typical data point mappings are constructed.
Pseudo-addresses are used here.
Example of actual analogue value
Entry in file protA.txt
[X address1]
name = outside temperature from
protocol A
query = pe
Entry in file protB.txt
[Y parameter 16]
name = outside temperature to
protocol B
query = pe
Entry in file dispatch.txt
# Mapping the outside
temperature
[110 protA address1]
target = 140 protB parameter 16
Example of actual binary value
Entry in file protA.txt
[M address7]
name = pump failure from protocol
A
query = pe
Entry in file protB.txt
[S parameter 23]
name = pump failure to protocol B
query = pe
Entry in file dispatch.txt
# Mapping the pump failure
[110 protA address7]
target = 140 protB parameter 23
Example of multi-level set value without feedback
Entry in file protA.txt
[M address8]
name = operating status from
protocol A
query = pe
Entry in file protB.txt
[S parameter 29]
name = operating status to
protocol B
query = pe
Entry in file dispatch.txt
# Mapping the pump failure
[110 protA address8]
target = 140 protB parameter 29
Example of multi-level set value with feedback
Entry in file protA.txt
[S address8]
name = operating status from
protocol A
query = pe
Entry in file protB.txt
[S parameter 29]
name = operating status to
protocol B
query = pe
Entry in file dispatch.txt
# Mapping of the operating status
[110 protA address8]
target = 140 protB parameter 29