Filter

 

<< Click to Display Table of Contents >>

Navigation:  Components > Communication > Multi-IO-IP >

Filter

 

Data filter Editor

 

The data filter editor is used to extract values from the received raw data from the network and send them to an ice bear network via the corresponding dynamic data point. After the data has been received and a data filter for an entry has been selected in the input list, this data is processed by one of the selected filters.

 

Name

Name of the filter, which is displayed in the entry bar in the column Data Filter for selection.

 

Filtertyp

oXML

oSEARCH_PATTERN

 

Filter expression

The filter expression is defined here, depending on the filter type selected. When UDP is received, a search_pattern filter must be created.

 

Data type

The value of the Data Type field is a list of data types (see Supported Data Types) that are applied to conversion to an extracted value if no condition is specified (see Conditions). If the conversion was successful, the value is passed to the output for which this filter rule was selected in the input dialog. If the value can not be converted (for example, the attempt to convert an ASCII text to a numeric DataPointValue), an error text is output at the error output of the component.

 

Note: This mechanism is only used if no condition is entered in the Condition field (see Condition).

 

Conditions

It is possible to compare a value extracted by a filter with a condition, only when the condition is true, the value entered in the "Text replacement" field is transferred via the bidirectional input as a "string" to the corresponding ice- Network. The value extracted by the filter is thus replaced.

 

The decisive factor is that the values ​​to be compared have to be numerical values. It is therefore important to ensure that the value extracted by the filter is actually an integer (integer) or a floating-point number (double). If this is not the case, the condition can not be applied and the received value is rejected. The following conditions can be used:

 

Operators: <=,> =,! =, ==, <,>,

Interval: a: b (range of values)

 

Syntax Operator:

<EXTRACTED VALUE> <OPERATOR> <COMPARE VALUE>

 

Syntax interval:

<LEFT_INTERVAL_LIMIT>: <VALUE>: <RIGHT_INTERVAL_LIMIT>

 

Integers are written as normal integers; for a double value, a point separates the forward of the fractional part.

 

Example 1:

The text is only to be sent to the EisBaer network in the text replacement field if the received double value is less than or equal to 4.52.

 

Condition: <= 4.52

 

Thus all the operators mentioned above can be used instead of the <= character.

If condition is true, TEXT1 is sent to the EisBaer network.

 

Example 2:

It is only then that the text in the field text replacement is to be sent to the EisBaer network, if the received integer value is greater than 1000.

 

Condition:> 1000

If condition is true, TEXT2 is sent to the IceBar network.

 

Example 3 (range of values):

It is only then that the text in the field text replacement is to be sent to the EisBaer network if the received double value is in the range of 4.1 and 4.9.

 

Condition: 4.1: 4.9

For example, if the value 4.34 is received, TEXT3 will be sent to the EisBaer network.

 

Text replacement

The "text replacement" field contains the "string" that is sent when a condition is met. (See "Conditions")