BINS – Controlled binary sequence generator

Block SymbolLicensing group: STANDARD

Function Description
The BINS block generates a binary sequence at the Y output, similarly to the BIS block. The binary sequence is given by the block parameters.

• The initial value of the output is given by the Y0 parameter.
• Whenever a rising edge (off$\to$on) occurs at the START input (even when a binary sequence is being generated), the internal timer of the block is set to 0 and started.
• Whenever a rising edge occurs at the START input, the output Y is set to Y0.
• The output value is inverted at time instants t1, t2, $\dots$, t8 (off$\to$on, on$\to$off).
• For $\mathtt{\text{RPT}}=\mathtt{\text{off}}$, the last switching of the output occurs at time ${t}_{i}$, where ${t}_{i+1}=0$ and the output then holds its value until another rising edge (off$\to$on) occurs at the START input.
• For $\mathtt{\text{RPT}}=\mathtt{\text{on}}$, 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.

On the contrary to the BIS block the changes in parameters t1t8 are accepted only when a rising edge occurs at the START input.

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 ($<{T}_{S}∕2$) 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.

Input

 START Starting signal (rising edge) Bool

Outputs

 Y Logical output of the block Bool is Index of the active time interval Long (I32)

Parameters

 Y0 Initial output value Bool off .. Disabled/false on ... Enabled/true t1 Switching time 1 [s]  $↓$0.0 $\odot$1.0 Double (F64) t2 Switching time 2 [s]  $↓$0.0 $\odot$2.0 Double (F64) t3 Switching time 3 [s]  $↓$0.0 $\odot$3.0 Double (F64) t4 Switching time 4 [s]  $↓$0.0 $\odot$4.0 Double (F64) t5 Switching time 5 [s]  $↓$0.0 $\odot$5.0 Double (F64) t6 Switching time 6 [s]  $↓$0.0 $\odot$6.0 Double (F64) t7 Switching time 7 [s]  $↓$0.0 $\odot$7.0 Double (F64) t8 Switching time 8 [s]  $↓$0.0 $\odot$8.0 Double (F64) RPT Repeating sequence Bool off .. Disabled on ... Enabled

2022 © REX Controls s.r.o., www.rexygen.com