Call:      Activate(String Tag)

Input:    Tagname

Output: Boolean


As an action in a state, this function can be used to request the activation of an output pin. The pin is not actual set by this function, but a request is made. At the end of the main loop, all requests for activating an output pin are processed and the pin is set. Important: Digital output pins without a request for activation are reset[1]. The function is called with the name of the tag as set in the declaration. When the Tagname is not found in the set of OutputPins, the function returns false, otherwise true. Applies also for markers.

 

Example:

Result = Activate("LED");

 

[1] Not Activated in state? Not set! This design philosophy, makes reading of the code easier and simple. Also prevented is the mistakenly forgotten reset of a digital output pin.