SHIFTOCT – Data shift register

Block SymbolLicensing group: STANDARD
PIC

Function Description

The SHIFTOCT block works as a shift register with eight outputs of arbitrary data type.

If the RUN input is active, the following assignment is performed with each algorithm tick:

yi = yi1,i = 1..7 y0 = u

Thus the value on each output y0 to y6 is shifted to the following output and the value on input u is assigned to output y0.

The block works with any data type of signal connected to the input u. Data type has to be specified by the vtype parameter. Outputs y0 to y8 then have the same data type.

If you need a triggered shift register, place the EDGE_ block in front of the RUN input.

Inputs

u

Data input of the register

Unknown

RUN

Enables outputs shift

Bool

Outputs

y0

First output of the block

Unknown

y1

Second output of the block

Unknown

y2

Third output of the block

Unknown

y3

Fourth output of the block

Unknown

y4

Fifth output of the block

Unknown

y5

Sixth output of the block

Unknown

y6

Seventh output of the block

Unknown

y7

Eighth output of the block

Unknown

Parameters

vtype

Output data type  8

Long (I32)

1 ....

Bool

2 ....

Byte (U8)

3 ....

Short (I16)

4 ....

Long (I32)

5 ....

Word (U16)

6 ....

DWord (U32)

7 ....

Float (F32)

8 ....

Double (F64)

–- ...

10 ...

Large (I64)

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