I am very new to PLC programming. Can anyone help with explaining how I can perform a SHR/SHL operation on an array of INT of lets say 10 elements using TwinCAT3. They way I thought I would do this is by moving the shift register one place so that Element 0 becomes Element 1, Element 1 becomes Element 2 ..etc. and the last Element is lost.
Thank you in advance for your help.
Lets say you are working with:
To move each value one index forward (0 -> 1, 1 -> 2, etc.) you can do the following:
To move each value one index backward (1 -> 0, 2 -> 1, etc.):