2. Special operations.
Signal generation
Flash This operation generates a pulsing signal as long as the Channel is true (non-zero).
When the Channel value is false (zero), the operation returns the value 0.
When a high state appears (a non-zero value) in the Channel, the Flash operation
begins to cyclically switch between the value 1 (Time on) and the value 0 (Time off).
When the Channel value is false (zero), the operation will immediately return 0, thus
stopping the cycle.
Pulse This operation generates N impulses following the appearance of a trigger edge.
After a selected edge appears (Rising or Falling) in the Channel, pulse generation
begins. The number of pulses is determined by the Count parameter. Each pulse has
an active phase (when the operation returns 1) and a non-active phase (the operation
returns 0).
The Retrigger parameter defines whether the appearance of a trigger edge during
pulse generation will cause the process to restart or if it will be ignored.
State storing operations
Toggle Changes the state between 0 and 1 each time a selected edge appears in the
Channel (Rising or Falling)
The initial value of this operation at device startup may be defined by means of the
Default State.
Set-Reset Latch This operation sets a new value or returns a previous value according to the settings
of two input channels: Set Channel and Reset Channel:
Set channel value: Reset channel value: Operation value:
true (non-zero) false (0) 1
false (0) true (non-zero) 0
true (non-zero) true (non-zero) 0
false (0) false (0) Previous value
This function mimics an SR latch, an electronic device.
https://en.wikipedia.org/wiki/Flip-flop_(electronics)
The initial value of this operation at device startup may be defined with the Default
State parameter.
Change detection
Changed When the value of a Channel changes by a predefined Threshold, the operation will
initiate an active state (it will return the value 1) for the next “Time on” seconds. If
during this time the channel value changes again by a predefined threshold, the active
state will be extended for another “Time on” seconds. Following the end of the active
state, the operation will again return a value 0.
Hysteresis
Page 110/137