Detect Event Supports Multiple Overloads

  • Two additional arguments “BeginDelay” and “EndDelay” were added to DetectEvent. With these arguments DetectEvent delays state changes by the given amount of time.
  • The two arguments are optional and don’t change the signature of the “old” DetectEvent:

DetectEvent(Inactive|Rising|Active|Falling; <BeginCondition>; <BeginDuration>; <BeginDelay>; <EndCondition>; <EndDuration>; <EndDelay>)

  • The kind of the arguments are controlled by the given number of arguments. Hereby the first keyword argument (Inactive/Rising|Active|Falling) is always optional and is NOT counted as an argument!

DetectEvent with 6 Arguments

DetectEvent(

Inactive|Rising|Active|Falling;

<BeginCondition>; <BeginDuration>; <BeginDelay>;

<EndCondition>; <EndDuration>; <EndDelay>

)

DetectEvent with 5 Arguments

DetectEvent(

Inactive|Rising|Active|Falling;

<BeginCondition>; <BeginDuration>; <BeginDelay>;

; <EndDuration>; <EndDelay>

)

DetectEvent with 4 Arguments

DetectEvent(

Inactive|Rising|Active|Falling;

<BeginCondition>; <BeginDuration>; ;

<EndCondition>; <EndDuration>;

)

DetectEvent with 3 Arguments

DetectEvent(

Inactive|Rising|Active|Falling;

<BeginCondition>; <BeginDuration>; ;

; <EndDuration>;

)

DetectEvent with 2 Arguments

DetectEvent(

Inactive|Rising|Active|Falling;

<BeginCondition>; <BeginDuration>;

)

DetectEvent with 1 Arguments

DetectEvent(

Inactive|Rising|Active|Falling;

<BeginCondition>;

)