Programmable Controllers

Programmable Logic Controllers

Pico Controllers

Shift Register for Pico GFX

Shift Register for Pico GFX
Symbol in the function
block diagram

The devices from the above mentioned version number provide 32 shift register function blocks SR01...SR32.

The shift register function block allows you to shift bits or marker double words one position up or down with every clock pulse applied.

The shift register has a linear design. If, for example, in a bit operation a bit is inserted at the end of the register with a clock pulse, a bit is moved out at the other end.

Shifting bits forward

Shifting bits forward

Content of the shift register before and after the Shift bit forward operation.

EN = Enable coil, activates the function block on 1
BD = Bit data input, for shift register backward
FD = Bit data input, for shift register forward
BP = Clock input, shift register backward
FP = Clock input, shift register forward
RE = Trigger coil, clears the content of the function block on 1

Shifting bit backward operation

A rising edge at the BP (BackwardPulse) operand transfers the value of the BD (BackwardData) operand to the last register field Q8. The original contents of the register fields are then moved by one field in the direction of the next lower field number.

Shifting bit backward operation

Content of the shift register before and after the Shift bit backward operation

Shifting marker double word forward

A rising edge at the FP (ForwardPulse) operand transfers the value of the I1 operand to the first register field D1. The original contents of the register fields are then moved by one field in the direction of the next highest field number.

Content of the shift register before and after the Shift marker double word forward operation.

Shift marker double word backward

A rising edge at the BP (BackwardPulse) operand transfers the value of the I2 operand to the last register field D8. The original contents of the register fields are then moved by one field in the direction of the next lower field number.

Content of the shift register before and after the Shift marker double word backward operation.

Linking and Parameter Assignment of a Shift Register Function Block

Requirement:

Parameter definition for the Shift marker double word forward or backward operation

Whether you position the function relay first of all in a coil field or contact field or whether you make the entries in the Parameters tab of a coil or a contact is not important. It is only important that you have selected the same function block number if you also want to configure the same function block.

Circuit diagram elements and parameters

  Description Note
Function block inputs (DWord)    
I1 Marker double word data input,
Shift direction forward,
Value range: -2 147 483 648...+2 147 483 647
 
I2 Marker double word data input,
Shift direction backward,
Value range: -2 147 483 648...+2 147 483 647
 
Function block outputs (DWord)    
D1 Marker double word (MD) output 1
Value range: -2 147 483 648...+2 147 483 647
 
D2 MD output 2  
D3 MD output 3  
D4 MD output 4  
D5 MD output 5  
D6 MD output 6  
D7 MD output 7  
D8 MD output 8  
Coil function (bit input)    
EN Enable coil. Activates the function block on EN = 1.  
FP Trigger coil
Clock input, shift register forward.
 
BP Trigger coil
Clock input, shift register backward.
 
RE Trigger coil
Reset.
Reset deletes the entire output register Q1...Q8 and D1...D8.
FD Bit data input, shift register forward  
BD Bit data input, shift register backward  
Contact (bit output)    
Q1 Bit output 1  
Q2 Bit output 2  
Q3 Bit output 3  
Q4 Bit output 4  
Q5 Bit output 5  
Q6 Bit output 6  
Q7 Bit output 7  
Q8 Bit output 8  
Operating mode    
BIT Marker bit shift operationg  
DW Marker double word shift operation  
Parameter set    
Call enabled Function block parameters can be viewed on the device.  
Simulation    
Possible    

Memory Requirement

The function block requires 96 bytes of memory plus 4 bytes per constant used at the function block inputs.

Retention

The function block does not recognize retentive data.