mhopley
Member
I'm sorry is this is a FAQ but most indirect addressing samples I have found deal with bytes & words.
I have come from an SLC500 background and most of my S7 programming has been in ladder but I understand that Indirect addressing is only available in STL or SCL.
I have an array Result[1..40] of type Bool and I want to look up Result[MW2] where MW2 is my pointer and return a 0 or 1
I have worked out that i need a pointer and if I load a value and SLD 3 it puts in the correct pointer format but this is pointing at byte and not bits?
Any pointers [pun ] would be greatly appreciated.
Thanks,
Mark
I have come from an SLC500 background and most of my S7 programming has been in ladder but I understand that Indirect addressing is only available in STL or SCL.
I have an array Result[1..40] of type Bool and I want to look up Result[MW2] where MW2 is my pointer and return a 0 or 1
I have worked out that i need a pointer and if I load a value and SLD 3 it puts in the correct pointer format but this is pointing at byte and not bits?
Any pointers [pun ] would be greatly appreciated.
Thanks,
Mark