Hi guys ,
I need some help on a project am doing. I have a lot of experience with s7-200 but is my first project with S7-300. I understand only LADDER. I want to use a shift right word instruction but it doesn't seem to work. I move W#16#1000 to MW100 . Then on the SWR block I connect I0.0 to EN input , MW100 to IN input, W#16#1 to N input.
I leave ENO unconnected and on OUT I have MW100 again.
By turning I0.0 once on, MW100 at IN input shows W#16#0008 the MW100 at the output shows W#16#0004 which shows that the instruction has been executed once but that's it. The value of MW100 at IN is not updated to the new value of (W#16#0004)and no matter how many times I turn I0.0 on nothing changes.
I need some help on a project am doing. I have a lot of experience with s7-200 but is my first project with S7-300. I understand only LADDER. I want to use a shift right word instruction but it doesn't seem to work. I move W#16#1000 to MW100 . Then on the SWR block I connect I0.0 to EN input , MW100 to IN input, W#16#1 to N input.
I leave ENO unconnected and on OUT I have MW100 again.
By turning I0.0 once on, MW100 at IN input shows W#16#0008 the MW100 at the output shows W#16#0004 which shows that the instruction has been executed once but that's it. The value of MW100 at IN is not updated to the new value of (W#16#0004)and no matter how many times I turn I0.0 on nothing changes.