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) |
|
Parameter |
Shift register bit that determines the value of output Q. 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:
Shift up: S1 accepts the value of input In; the previous value of S1 is shifted to S2, S2 is shifted to S3, etc.
Shift down: S8 accepts the value of input In; the previous value of S8 is shifted to S7, S7 is shifted to S6, etc.
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.