Relatively speaking, the S7-300/400 shift instruction has no S7-200 function, and its features are as follows: Our company specializes in the production and sales of all kinds of terminals, copper terminals, nose wire ears, cold pressed terminals, copper joints, but also according to customer requirements for customization and production, our raw materials are produced and sold by ourselves, we have their own raw materials processing plant, high purity T2 copper, quality and quantity, come to me to order it! LYF Copper Lube Terminals,Ring insulated terminals Taixing Longyi Terminals Co.,Ltd. , https://www.longyiterminals.com
1S7-300/400 can only perform the right shift of the integer I, the double-word long integer DI, the left and right movement of the word or double word, and the cyclic shift of the double word for a total of 8 kinds of shift operations.
The shift of the 2S7-300/400 can only be performed by the accumulator 1. When the memory needs to be shifted, the contents of the memory should first be moved to the accumulator 1.
The shift operation of the 3S7-300/400 can only be performed on data of word and double word length, and cannot be used for bytes.
4 For the integer I and double-word long integer DI, only the right shift operation can be performed, and the “vacancy†after the data is shifted out is automatically added to the state of the sign bit (positive number is “Oâ€, negative number is “1â€).
The last bit state that was shifted out is stored in the CC1 bit of the status word.
6 shift digits N can be specified in the following two ways:
- specify the number of digits directly in the instruction;
- If no digits are specified in the instruction, the low byte stored value of accumulator 2 is used as the number of shift bits.
The ladder programming format of the S7-300/400 shift instruction is shown in Figure 10-5.4.