Siemens S7 PLC shift register instructions (SHRB) PLC Ladder Logic

(1) Shift Register instruction SHRB the DATA value into the shift register. Ladder, EN enable input is connected to the shift pulse signal, each effective when enabled, moving an entire shift register.DATA data input connected binary value shifted into the shift register, the instruction is executed when bit value into register.S_BIT specify the minimum bit shift register. N specifies the length and shift direction of the shift register, the maximum length of the shift register is 64, N is a positive value indicates a left shift, the input data (DATA) into the shift register, the least significant bit (S_BIT), and out of the shift the highest bit register.Out of the data is placed in the overflow memory bit (SM1.1) in.N is a negative value indicates a right shift, the input data is shifted into the most significant bit of the shift register, and shifted the least significant bit (S_BIT). Out of the data is placed in the overflow memory bit (SM1.1) in.

 (2) operand DATA and S-BIT was I, Q, M, SM, T, C, V, S, L. Data type: BOOL variables.Operand N is VB, IB, QB, MB, SB, SMB, LB, AC, constant. Data type: Byte.
 (3) Error conditions that set ENO = 0: The 0006 (indirect address), 0091 (operand out of range), 0092 (error in count field).

 (4) the impact of special internal shift instruction flag: SM1.1 (a bit of value out of the overflow bit is set).

One thought on “Siemens S7 PLC shift register instructions (SHRB) PLC Ladder Logic

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.