Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%Pulz function


Function
The function generates the impulse of optional length. The result is Boolean type.
Declaration


Blok kódu
languageesl
themeConfluence
BOOL %Pulz(
   BOOL in StartTrigger, 
   INT in Time, 
   UNIVAL in CalcTrigger
 )
Parameters


StartTriggerObject, a change of which
change
into the TRUE state
runs
triggers the impulse. Trigger changes are ignored during impulse duration. The function result is TRUE during impulse duration, otherwise it is FALSE.
TimeImpulse duration [s] - relative time.
CalcTriggerObject, which change causes recalculating the function. Its type is optional.
Note

If the expression is in an invalid state (e.g. communication failure), the function returns returns an invalid value. After recovering the expression from an invalid value:

a) StartTrigger is TRUE, the impulse is generated again.

b) StartTrigger is FALSE => returns FALSE.