Skip to main content
Skip table of contents

Threshold Value

The logic element provides you the option to implement actions in the case of the exceeding or the falling short of certain threshold values.

Contents


Inputs and outputs

Inputs

  • GATE (see Logic Elements | Datapoint-Gate)

  • IN
    The value to be monitored

  • OS (upper threshold)
    Specification of the upper threshold value (is only taken into account with a new value input on IN). A manual specification of threshold values can take place in the parameters.

  • US (lower threshold)
    Specification of the lower threshold value (is only taken into account with a new value input on IN). A manual specification of threshold values can take place in the parameters.

Outputs

  • OUT
    Sends a defined value in the case of the exceeding or falling short of the defined threshold values.


Configuration

Output values

Please set the values which are to be sent in the case of the exceeding or falling short of the defined threshold values.

Threshold values

Manual specification of threshold values. These threshold values are applied as long as no value has yet been input on the OS and US input. The threshold values are set as floating point numbers. The lower threshold must never be greater than the upper threshold. In this case, the logic element would not work and the entire logic group would be deactivated.

Delays

There are two possible ways of delaying the sending:

Following a signal input which exceeds the threshold value, the Pre switch delay waits for whether the input value remains in the area exceeding threshold in the specified time before then sending the corresponding output value.

The Post switch delay is a block, which following the sending of a value, prevents a renewed trigger, irrespective of how the input value changes in the specific period of time.

The greater delay is always used with the value input.

Example: 
The lighting is to be activated if the brightness falls below a certain value for more than five minutes. Following their activation, the lights should remain on for at least one hour in order to prevent damage to the lighting due to overly frequent switching on or off. If the brightness exceeds the threshold again one minute before the end of the hour, the light will only be switched off after five minutes, and not immediately after the elapsed minute of the post switch delay.

The greatest calculated delay is always applied.

CODE
// vsv = Pre switch delay
// nsv = Post switch delay (as point in time)  
IF (now() + vsv) > nsv THEN (now() + vsv) ELSE nsv  

Cyclic value sender

If desired, the cyclic repeating of an output value is possible. The repeated sending is cancelled as soon as the input value exceeds the opposite threshold.

///

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.