Hi guys,
I am just starting to write some STL and thanks to this forum I got the solution to what i was trying to achieve. The question i have is that in my code i needed to use SLD 4 instead of SLD 3 for my pointer to operate correctly. Can someone please explain why this is so. I understand that SLD 3 shifts the pointer to the byte level. Source code attached.
Just to explain what this is doing,
DB2 stores the on and off times for heating, Sun to Sat entered from HMI
DB4 is the current working on and off times for the current day.
If day is Sunday move DB2.DBW0-DBW 18 into DB4.DBW0-DBW18
If day is Tuesday move DB2.DBW40-DBW58 into DB4.DBW0-DBW18
Thanks,
Barry.
I am just starting to write some STL and thanks to this forum I got the solution to what i was trying to achieve. The question i have is that in my code i needed to use SLD 4 instead of SLD 3 for my pointer to operate correctly. Can someone please explain why this is so. I understand that SLD 3 shifts the pointer to the byte level. Source code attached.
Just to explain what this is doing,
DB2 stores the on and off times for heating, Sun to Sat entered from HMI
DB4 is the current working on and off times for the current day.
If day is Sunday move DB2.DBW0-DBW 18 into DB4.DBW0-DBW18
If day is Tuesday move DB2.DBW40-DBW58 into DB4.DBW0-DBW18
Thanks,
Barry.
Last edited: