BIS – Binary sequence generator

Block SymbolLicensing group: STANDARD
PIC

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 output value is inverted at time instants t1, t2, , t8 (off on, on off). The last switching of the output occurs at time ti, where ti+1 < ti and the output then holds its value. But for the RPT parameter set to on, instead of switching the output for the last time, the block returns to its initial state, the internal block timer is set to 0 and the binary sequence is generated repeatedly.

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 ( < TS2) 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.

Outputs

Y

Logical output of the block

bool

is

Index of the active time interval

long

Parameters

Y0

Initial output value

bool

off ..

Disabled/false

on ...

Enabled/true

t1

Switching time 1 [s]  1.0

double

t2

Switching time 2 [s]  2.0

double

t3

Switching time 3 [s]  3.0

double

t4

Switching time 4 [s]  4.0

double

t5

Switching time 5 [s]  5.0

double

t6

Switching time 6 [s]  6.0

double

t7

Switching time 7 [s]  7.0

double

t8

Switching time 8 [s]  8.0

double

RPT

Repeating sequence

bool

off ..

Disabled

on ...

Enabled