Industry Online Support
Technical Forum
3/19/2013 8:06 PM | |
Joined: 9/27/2006 Last visit: 7/14/2024 Posts: 12268 Rating: (2675)
|
Hello Autogen; AR1 means "address register 1" and it is used or various kinds of indirect addressing in STL programs. You first load a base address value in AR1, then you play with offsets from that base address to locate the registers you want to read or write in your program. You will find a very basic (but instructive)example in the attached screencapture, taken from the following manual: SIMATIC Programming with STEP 7 V5.5 You will be shown more complex use of AR1 and pointers in the following FAQs: How do you parameterize blocks, which have "ANY"-type or "Pointer" type parameters? How can you calculate an offset for an ANY pointer or change the pointer? Note that there is also a AR2 address register, it is only used with FBs. Once you handle AR1 with more ease, you can search the site or examples of AR2. Hope this helps, Daniel Chartier |
Last edited by: dchartier at: 3/19/2013 8:07 PMLast edited by: dchartier at: 3/19/2013 8:06 PM |
|
This contribution was helpful to2 thankful Users |
Follow us on