Tech and application note for pointer in S7?

Yes, but it will take me some time to create a detailed reponse. You need to do some backgound reading concerning area pointers and what they contain. Various pictures of the bit pattern in an area pointer have been posted, I just can't find one at the moment. Have you run the posted code and looked at the registers when monitoring the block - this will also help.
 
Hi Berra,

What is it that you want to achive with the pointer? Is it just curiosity or some special application? Knowing this makes it easier to give you a more specifik answer.

/Wille
 
Please see below a small snippet of code which uses I1.0 directly addressed, and then the same access using a run time created indirect access to I1.0

I have deliberately loaded the pointer area into the accumulator first, and then transferred it to address register 1 (AR1) so you can see the values being loaded as hex codes (I would normally load the values directly into AR1). As you can see, once a valid area is loaded into AR1, the display conveniently shows you the area being used. I have also shown the area pointer (now you can see where the byte address is stored in the pointer, this explains why you need to shift a byte address left 3 bits to convert it to an area pointer)

view30.JPG


The area coding ZZZ, is as follows:
000=Peripheral(PIW/PQW)
001=Input(I)
010=Output(Q)
011=M
100=DBX (global DB)
101=DIB (instance DB)
110=L (temp local data)
111=V (temp local data of the preceding block)

Here is another snippet of code showing the loading of different areas first into the accumulator and then AR1

view31.JPG

Finally, here is FC277 shown with extra comments and the online view with the byte address set to 1 and the bit address set to 0, the block is thus accessing I1.0 using indirect addressing. (I have chosen to limit the max byte address to 255 for my 317 plc)

view32.JPG

Chew this over and come back with any questions.
 
Tanks L D[AR2,P#0.0] i will be trying to understand the codes under the weekend then i can get back to you with some question if it´s ok?
 

Similar Topics

hello, I have a Hitech HMI td220.I want to upload application from it to pc. Which software can i use for upload to pc?
Replies
2
Views
3,873
Hi... I want to using Unidrive SP2402 for cut to length machine with running speed at 30 meter/min. I use AC motor (c/w 1024 ppr encoder as speed...
Replies
0
Views
5,153
Good Morning , I installed an AC Tech ESV 1 HP Drive on a small bucket conveyor. Before it had a DC Motor on it . It now has a Baldor 1 HP...
Replies
1
Views
215
Hi, I have an older Kohler Generator/ATS controller that has a Schneider Electric (Modicon) Momentum PLC and has a Advantech HMI. I assume this...
Replies
3
Views
715
Hi all, I need some local help to upload the Crimson program from a G310 Red Lion HMI. It cannot be easier than that. The thing is (for reasons...
Replies
6
Views
1,065
Back
Top Bottom