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,725
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
4
Views
56
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
88
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
81
Trying to setup a message read via Ethernet. I have the path setup as 1, 1, 2, 192.168.66.10 I get an error code 1, ext err 315. I am beating...
Replies
9
Views
231
Back
Top Bottom