BISR – Binary sequence generator with reset

Block SymbolLicensing group: STANDARD
PIC

Function Description
The BISR block generates a binary sequence at the Y output. The RUN input must be set to on for the whole duration of the sequence. When RUN is off, the sequence is paused and so is the internal timer.

The binary sequence is given by the block parameters. The initial value of the output is given by the Y0 parameter. The output value Y is inverted (off on, on off) at time instants t1, t2, , t8. The ADDT parameter defines whether the ti instants are relative to the first rising edge at the RUN input or relative to the last switching of the Y output.

If there is less than 8 edges in the desired binary sequence, set any of the ti parameters to zero and the remaining ones will be ignored.

Whenever a rising edge occurs at the R1 input, the output Y is set to Y0 and the internal timer is reset. The R1 input overpowers the RUN input.

For RPT = off, the last switching of the output occurs at time ti, where ti+1 = 0 and the output then holds its value until another rising edge (off on) occurs at the START input. For RPT = 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.

The BISR block is an extended version of the BINS block.

Input

RUN

Enable execution

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

ADDT

Additive timing

Bool

off ..

Absolute timing (sequence as a whole)

on ...

Additive timing (segment by segment)

RPT

Repeating sequence

Bool

off ..

Disabled

on ...

Enabled

t1

Switching time 1 [s]   0.0 1.0

Double (F64)

t2

Switching time 2 [s]   0.0 2.0

Double (F64)

t3

Switching time 3 [s]   0.0 3.0

Double (F64)

t4

Switching time 4 [s]   0.0 4.0

Double (F64)

t5

Switching time 5 [s]   0.0 5.0

Double (F64)

t6

Switching time 6 [s]   0.0 6.0

Double (F64)

t7

Switching time 7 [s]   0.0 7.0

Double (F64)

t8

Switching time 8 [s]   0.0 8.0

Double (F64)

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