Input

This chapter describes the Input interface. It provides an interface to connect a signal to an input. The following rules apply for connecting a signal to an input:

  • The input must be configurable. Inputs are configurable unless mentioned otherwise.

  • The signal must be in the set of allowed signals for the input. This is not restricted unless mentioned otherwise.

  • The Value signal of an input cannot be connected to that same input.

Routing

The common routing for an input is given in Input routing.

The routing of an input mechanism

Input routing

Additional or fewer features may be available for specific inputs. E.g. some inputs do not support connecting another signal, others do not support saturation.

Signals

Common signals that can be available for inputs are described in the following table:

Name

Data type

R/W

Description

Value

<input data type>

R

Value of the input.

DisconnectedValue

input data type

R(W)

Value of the input when it is not connected to a signal.

IsConnected

Bool

R

Indicates whether the input is connected to a signal.

LowerSaturation

input data type

R(W)

Lower saturation limit applied to the value of the input.

UpperSaturation

input data type

R(W)

Upper saturation limit applied to the value of the input.

Data conversion

When a signal has a different data type than the input, its value is converted to the data type of the input using standard type casting. The exact behavior is therefore platform and compiler specific.

See also

Input

XML configuration example of the input interface.