You can find more information on pointers in the online help. But please be careful! Writing on addresses you are not supposed to can really harm your application, the controller or the machine. Thus I can only recommend to use pointers in case you really know how to use them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi , i work with codesys and wago plc 750-841 ...... is possible indirect
addressing in codesys ?
thanks
(excused for my very bad English)
I am assuming that you are referring to the Allen Bradley term Indirect Addressing.
In CoDeSys this type of manipulaiton is not necessary as you can define arrays. It is actually much clearer to do this type of programming in CoDeSys.
Here is a sample array declaration. Look in the help for more information.
arr1 : ARRAY [1..5] OF INT;
So how can you create a DO loop that will increment the address in the array each time?
Hi,
There are several possibilities. The best is to use a FOR loop:
Alternatively you can use REPEAT ... UNTIL or the WHILE loops.
You will find examples to both in the online help of CoDeSys.
Yes, even if this is an extension to the IEC 61131-3 you can use indirect addressing.
Example:
You can find more information on pointers in the online help. But please be careful! Writing on addresses you are not supposed to can really harm your application, the controller or the machine. Thus I can only recommend to use pointers in case you really know how to use them.