mitchell2k
Member
Hi people. I am having some trouble with siemens Step7, i'm not expert on it by any stretch. I'm more of a Bradley person with some TIA portal experience.
I am trying to use a variable pointer for an array but cannot seem to get it working for the life of me. I have tried making the pointer to types INT, DINT, ANY and WORD but non of them seem to work. I have tried examples in STL where i use the OPN command to open the DB then load an integer into my pointer etc but this doesn't seem to work either.
I have attached a picture of the code below to show what I am trying to achieve, Network 8 is accepted using a direct number for the array but Network 9 is where i try to use a variable and it wont accept it. :angr:
Any help would be greatly appreciated, thanks in advance.
I am trying to use a variable pointer for an array but cannot seem to get it working for the life of me. I have tried making the pointer to types INT, DINT, ANY and WORD but non of them seem to work. I have tried examples in STL where i use the OPN command to open the DB then load an integer into my pointer etc but this doesn't seem to work either.
I have attached a picture of the code below to show what I am trying to achieve, Network 8 is accepted using a direct number for the array but Network 9 is where i try to use a variable and it wont accept it. :angr:
Any help would be greatly appreciated, thanks in advance.
Last edited: