LGF_CountBooleanEdges (FB / V1.0.0)

Overview

Author: Siemens Simatic Systems Support

Short description

This function evaluates a input signal for different states in a certain amount of time.

The states are:

The Output signal is present for at least on cycle after the monitoring time has expired, or as long as the input trigger remains TRUE.

Block Interface

LGF_CountBooleanEdges (FB)
Bool  trigger single  Bool
    
Time  monitorTime double  Bool
    
   long  Bool
    
   severalEdges  Bool
    
   noOfEdges  USInt
    
   

Input parameter

IdentifierData type Default value Description
triggerBool FALSE Trigger to evaluate signal signal (rising edges)
monitorTimeTime T#1s Time to monitor fand count edges on `trigger` input

Output parameter

IdentifierData type Description
singleBool Single edge until monitoring time expires
doubleBool Two edges in between the monitoring time
longBool Just a single edge in the monitoring time, the `trigger` input stays TRUE after the edge appears
severalEdgesBool Numeros Edges occure within the monitoring time, see `noOfEdges` to get the number of edges
noOfEdgesUSInt Number of edges in between the monitoring time frame

Change log

Version & DateChange description
01.00.00Simatic Systems Support
19.01.2021First released version