Reading pointer format in S7

Plc_User

Member
Join Date
Dec 2005
Location
Belgium
Posts
317
I use a lot of data organised as a struct in a db. Now I read in this struct as an in-parameter in a function. The in-parameter is specified as 'pointer', so at the inside of the block I can determine the datablock, and the startadress.
However, if I don't want to use an in-parameter, is there a way to detect the pointerdata af the struct (datablock and startadress)?

IN : POS_OBJECT_X : pointer


L P##POS_OBJECT_X
LAR1
L W [AR1,P#0.0]
T #TempDBX
L D [AR1,P#2.0]
LAR1
OPN DB [#TempDBX]
 

Similar Topics

Hi all....... someone knows if is possible in S7, using the indirect adressing by means of a pointer L P## to read a data struct defined as...
Replies
5
Views
3,764
Hello, When I try to read from the PLC, the following error occurs: There is no project name. Failed to read the intelligent function module...
Replies
1
Views
78
Hello I have a s7-1200 and I would like to read the tags present in this controller with my controllogix controller. The two controllers don't use...
Replies
8
Views
348
Hi all, i have 8 CJ2m plc units that show different numbers on the plc display and i am stuck on reading the info. my unit has an ip address of...
Replies
3
Views
158
Hi Everyone, I am not proficient in RSLogix 500 so I have a question regarding the evaluation of N7:0 data as an input. So as I understand in...
Replies
1
Views
130
Back
Top Bottom