Each logic scheme represents a sheet containing block units. In the sheet it is possible to add several kinds of nodes, each one of them corresponding to a specific function in the server. The interaction of the node is defined by its connectors which are inputs and outputs of the node. Several nodes can be linked together by creating connections among the nodes. A connection is a link that starts from an output connector in a node and ends in an input connector.
The logic scheme can be managed with the following buttons in the toolbar:
The simulation feature allows to predict and debug what will happen when the block diagram will be executed inside the Thinknx server. Inside Thinknx Logic Module there are two kinds of simulation: Offline Simulation and Online Simulation.
Offline simulation simulates the behavior of the server by executing the block diagram inside Configurator and showing in realtime the values passing by all inputs and outputs of the nodes. In this way the user keeps trace of the values due some input values.
Online simulation connects to Thinknx server and provides feedback regarding the execution of the block diagram directly inside the server.
Online simulation only works if the Configurator is in the same local network of the server. The IP needed for the connection corresponds to Local IP address specified in the System object.
The feedback provided while the simulation is running can be managed with some parameters by clicking the Sim. Settings button in the toolbar:
To create a node, open the “Node Types Library” and drag the desired node into the sheet. For each node it is possible to edit its properties by clicking on it.
By selecting the node, the property grid gets populated with its properties, by editing them the behavior of the node will change.
Every connector in the node has its own properties to describe its behavior. To edit them, click on the connector and the properties will be displayed in the property grid.
It is possible to select multiple nodes by pressing the Shift key.
To delete a node, select it and press Del key, or click on the little X icon which appears by moving the mouse over the node. After the node has been deleted, all the connection associated to the node will be removed.
To build the block diagram, it is necessary to link the nodes among each other. To create a connection click and hold one connector in the node and drag the mouse until the connector of the destination node. Before releasing the mouse, if the connection respects the standard rules among nodes, a green check will appear near the destination connector.
Connections can be established ONLY between an output connector and an input connector belonging to different nodes.
One output connector can link to several input connectors but one input connector can link to just one output connector!
There are no limitation in the creation of a new connection due to data compatibility, the incoming values will be automatically converted to the expected input type following these rules:
Except for input and output nodes, all the nodes can be enabled and disabled with the Gate connector. To show the Gate connector on the node, the Gate property on the node must be enabled.
When a node is disabled, the computation is not performed and no values are sent to the output connectors even if an input connector receives a new value.
By selecting the Gate connector it is possible to edit its properties which determine the behavior of the node:
When the Gate property is enabled, if the Gate connector is not connected to any other node, the node is disabled by default. Otherwise, if the Gate connector is connected to a node but it is not receiving any value from the source of the connection, the node is still disabled.
The picture below describes the behaviour of the Gate in the node:
The scheme should be able to read values coming from the plant as the the inputs of the block diagram or just provide some constants in the logic.
There are several kinds of Input nodes that can be used for this purpose:
All the input nodes have only one output connector and the input value of these nodes will pass through it. In this connector it is possible to define the policy that will be used to forward the value to the connected nodes through the property:
During Offline Simulation it is possible to simulate the value updates by manually typing them in the toolbar panel.
The scheme generates one or more output values to send on the KNX bus, commands to perform, etc. The output nodes represent the kind of action to perform with these values.
There are several kinds of Output nodes that can be used for this purpose:
All the input connectors of output nodes have the following properties:
The Analog nodes represent a collection of node which perform analog operations.
The Counter nodes, given an input (number or bit), perform a counting operation on the input and send it to the output.
There are several kinds of Counter nodes that can be used for this purpose:
All the output connectors of the counter nodes have particular properties to manage the policies to send the values: