I want to use a shift register in S7
similiar to the Allen-Bradley BSL/BSR
shift instructions. I found the FC92
bit shift register under standard library
in the TI-S7 converting blocks. Then
I set up a small test program on a
S7-315 PLC however it does not work as
the help file explains it. When I set (1)
a bit using the "DATA" input and enable
the block it sets all the bits indicated
by "N".For example if the "S_BIT" is DB1.DBX0.0 , "DATA"=1 and N=7 it should set bit DB1.DBX0 to one when the "EN" input is set. But the result is DB1.DBX0.0 thru DB1.DBX0.6 are set. I just want to set one bit and shift it with following zeros. I called the Siemens hotline and it seemed they were not too familiar with this instruction and really could not help me very much. Maybe I am just doing something wrong. I would appreciate any help.
similiar to the Allen-Bradley BSL/BSR
shift instructions. I found the FC92
bit shift register under standard library
in the TI-S7 converting blocks. Then
I set up a small test program on a
S7-315 PLC however it does not work as
the help file explains it. When I set (1)
a bit using the "DATA" input and enable
the block it sets all the bits indicated
by "N".For example if the "S_BIT" is DB1.DBX0.0 , "DATA"=1 and N=7 it should set bit DB1.DBX0 to one when the "EN" input is set. But the result is DB1.DBX0.0 thru DB1.DBX0.6 are set. I just want to set one bit and shift it with following zeros. I called the Siemens hotline and it seemed they were not too familiar with this instruction and really could not help me very much. Maybe I am just doing something wrong. I would appreciate any help.