BIS – Binary sequence generator
Block SymbolLicensing group: STANDARD
Function Description
The BIS block generates a binary sequence at the Y output. The sequence is given by the block
parameters.
- The initial value of the output is given by the Y0 parameter.
- The internal timer of the block is set to 0 when the block initializes.
- The internal timer of the block is immediately started when the block initializes.
- The output value is inverted at time instants t1, t2, , t8 (offon, onoff).
- For , the last switching of the output occurs at time , where and the output then holds its value indefinitely.
- For , instead of switching the output for the last time, the block returns to its initial state, the Y output is set to Y0, the internal block timer is set to 0 and started. As a result, the binary sequence is generated repeatedly.
All the parameters t1…t8 can be changed in runtime and all changes are immediately accepted.
The switching times are internally rounded to the nearest integer multiple of the execution period, which may result in e.g. disappearing of very thin pulses () or melting successive thin pulses into one thick pulse. Therefore it is strongly recommended to use integer multiples of the execution period as the switching times.
See also the BINS block, which allows for triggering the sequence by external signal.
This block does not propagate the signal quality. More information can be found in the 1.4 section.
Parameter
Y0 | Initial output value | Bool |
|
|
|
t1..t8 | Switching time [s] 0.0 1.0 | Double (F64) |
RPT | Repeating sequence | Bool |
|
|
|
Output
Y | Logical output of the block | Bool |
is | Index of the active time interval | Long (I32) |
[Previous] [Back to top] [Up] [Next]
2024 © REX Controls s.r.o., www.rexygen.com