Construct / Deconstruct of Pointer Format in S7

MOeZ

Lifetime Supporting Member
Join Date
Nov 2009
Location
singapore
Posts
101
Hello All,

i would like to know details information about construct & Deconstruct requirement
parameters of
Pointer format in S7. Basically, my application is i need to read 50 words
start IW 512 of data from profibus DP unit and save it in assign DB start
address DBW0. I have totally 5 DP units.

Now i have using AR1 (for reading) , AR2 (for save) increment by 2 using
LOOP METHOD and working fine. but not sure is it correct way of doing this?

So, I think, better way is construct pointer and then i will use "BLK_MOV"
in it for ease of use. Can anybody provide info of How to construct/Deconstruct
Pointer format?

As always, appreciate your help in advance. Thanks!:geek:
 
You can enter the any pointer directly at the call to SFC20

Many Thanks LD. At first, i thought my data type is WORD and i tried SFC20 p#IW 512 WORD 50 and given me error.

Can i see others by not using SFC 20 and by construct POINTER as i wanted to assign DB number via HMI.
 
Here's how you generate the any pointer at run time:

Appreciated and thanks again for your attach print screen!

I'd like to try post 6 method by Construct pointer to know more about S7 and practice . but where do i have pointer details info about loaded W#16#1004 is data type word to AR1 + p#0.0 and DB number to AR1 + p#4.0 , etc. ? f1 keys doesn't help me a lot in this case. :oops:
 
Hi
1) Open Simatic Manager
2) Select HELP--> Contents
3) Now type "ANY" in window which opens and press ENTER (Start praying)
4) Now another windows opens, blindly press enter gain
5) Now the page which opens up shall have your answer. (Beer time)
 

Similar Topics

Hi Crimson3.1 uses the GotoPage() to navigate to pages and the argument has to be a Display Page example: GotoPage(Page1); However since...
Replies
3
Views
895
I am looking for example code , c#, Java, VB , that demonstrates how to construct a complex item , for example of a Rockwell Logix User Defined...
Replies
0
Views
1,392
There is a data construct called a union in the 'c' programming language. This construct allows for several variables types to be overlaid at the...
Replies
23
Views
6,009
my task: to impliment PID in 2 different ladder to run a heating tank hardware: CJ1M plc 12, CJ1W-TC001, ultrasonic level sensor, sensor...
Replies
4
Views
7,611
Hi there, im reading some ladder diagrams and i know pretty well how they work, but sometimes i find it hard to construct one... im thinking maybe...
Replies
14
Views
6,965
Back
Top Bottom