Shift register (0BA4 to 0BA6)

Short description

The shift register function reads an input value and shifts the bits. The output value corresponds with the configured shift register bit. The shift direction can be changed at a special input. For device series 0BA4 to 0BA6, you can use only one shift register in one circuit program.

Connection

Description

Input In

The function when started reads this input value.

Input Trg

The SFB is started with a positive edge (0 to 1 transition) at input Trg (Trigger). A 1 to 0 transition is irrelevant.

Input Dir

You define the shift direction of the shift register bits S1...S8 at the Dir input:

Dir = 0: shift up (S1 >> S8)
Dir = 1: shift down (S8 >> S1)

Parameter

Shift register bit that determines the value of output Q.
Possible settings: S1 to S8

Retentivity set (on) = the status is retentive in memory.

Output Q

The output value corresponds with the configured shift register bit.

Timing diagram

Description of the function

The function reads the value of input In with a positive edge (0 to 1 transition) at input Trg (Trigger).

This value is written to shift register bits S1 or S8, depending on the set shift direction:

Q outputs the value of the configured shift register bits.

If retentivity is not enabled, the shift function restarts at S1 or S8 after a power failure.

Overview