L-VIS User Manual
183
LOYTEC
Version 6.2
LOYTEC electronics GmbH
Binary/Multi-state to Analog
: The Boolean or state value is directly converted
to an analog value (e.g. state ID ‘4’ is written as ‘4.0’) as a default. The user
should specify an adapter to map the Boolean or state value to designated analog
values.
Analog to Binary/Multi-state
: As a default the analog value is converted to the
next Boolean or state value (e.g. ‘1.2’ is written as state ID ‘2’). The user should
specify an adapter with its own translation of value ranges to state values.
Multi-state to Multi-state
: Multi-state data points that have different state maps
lead to a conversion of their state values. The state maps of inputs and outputs are
ordered by state ID in ascending order. The state value of the input is then ranked
as the n-th state and propagated over the connection. For example, the input state
ID ‘1’ is the 2nd state and the output’s 2nd state has the state ID ‘0’. If the output
data point has fewer states than the input, the output state is limited to its highest
state ID. The user should specify an adapter that defines which input state maps
to which output state.
Binary to Binary
: Binary data points can be connected without conversion.
String to String
: String data points can only be connected to string data points.
User to User
: User data points can only be connected to user data points. If the
length is different, only valid bytes are written or excess bytes are truncated,
respectively.
SNVT_switch to Analog/Binary/Multi
-
state
: The user data point of a
SNVT_switch can be connected to analog, binary, and multi-state data points.
Analog/Binary/multi
-
state to SNVT_switch
: Analog, binary, and multi-state
data points can be directly connected to a SNVT_switch user data point.
10.2.2 Multi-Slot Connections
Connections between structured data points often need to connect each structure member
separately. To increase the overview in the project on the involved, single connections, a
multi-slot connection
can be created for local connections. This is a connection with several
slots for transporting separated values over the connection. Each slot has a number and a
name and can connect two or more data points. Data points added to other slots do not
share their values across slots. One can think of such a connection as a cable with many
wires. An example is shown in Figure 5 (a). The data point ‘IN A’ sends its value to ‘OUT
X’ but not ‘OUT Y’.
IN A
OUT X
IN B
Slot 1
connection
(a)
(b)
OUT Y
Slot 2
IN B
OUT X
IN C
OUT Y
IN A
In 1
In 2
In 3
Out 1
Out 2
connection
Figure 5: Multi-slot connection (a) and multi-slot with math block adapter (b).
Some applications also require a functional mapping between different data point structures
in one connection. A multi-slot connection can be used with a math block adapter to
accomplish this task. A math block has
n
inputs and
m
outputs. The multi-slot connection