Shift Register Bit Instruction - Siemens SIMATIC S7-200 System Manual

Programmable controller
Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

Shift Register Bit Instruction

The Shift Register Bit instruction shifts a value into the Shift
Register. This instruction provides an easy method for
sequencing and controlling product flow or data. Use this
instruction to shift the entire register one bit, once per scan.
The Shift Register Bit instruction shifts the value of DATA
into the Shift Register. S_BIT specifies the least significant
bit of the Shift Register. N specifies the length of the Shift
Register and the direction of the shift (Shift Plus = N, Shift
Minus = --N).
Each bit shifted out by the SHRB instruction is placed in the
overflow memory bit (SM1.1).
This instruction is defined by both the least significant bit
(S_BIT) and the number of bits specified by the length (N).
Error conditions that set ENO = 0
H 0006 (indirect address)
H 0091 (operand out of range)
H 0092 (error in count field)
SM bits affected:
H SM1.1 (overflow)
Table 6-62
Valid Operands for the Shift Register Bit Instruction
Inputs/Outputs
Data Types
DATA, S_Bit
BOOL
N
BYTE
Operands
I, Q, V, M, SM, S, T, C, L
IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC, Constant
S7-200 Instruction Set
Chapter 6
181

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents