Siemens S7 - Help me understand how this works.

Rob...

Lifetime Supporting Member
Join Date
Jul 2016
Location
Manchester
Posts
483
LAR1 P##Receive

L B#16#10 // Loading syntax ID
T LB [AR1,P#0.0] // Transfer to Any Pointer
L B#16#2 // Load data type byte
T LB [AR1,P#1.0] // Transfer to Any Pointer
L 32
T LW [AR1,P#2.0] //Load 32 bytes


L #db_nr //Source is the DB Nr 104
T LW [AR1,P#4.0]
L P#DBX 48.0
T LD [AR1,P#6.0] // Start Adress

I know what it is doing, it is creating P#DB104.DBX48.0 Byte 32. This is later used in an SFC14 block further on.

I just can't wrap my head around how it compiles the information together.

Never have used area pointers in this manner before.
 
Last edited:
FYI, where you specify a hard coded any pointer in a call (e.g. to sfc14), the actual code executed is the same as your original post, the editor simply shows you a sanitised block call.

any1.jpg
 

Similar Topics

Hi all, i am the new controls guy at the plant and i have inherited a pc from the previous controls guy with Siemens tia portal version 16 and 17...
Replies
20
Views
903
Hi, I have a customer with a S7300 from around 2013 which they link to approx 25 inverters, 3 DP to DP converters and 5 IM153 remote I/O units...
Replies
8
Views
325
Hi all, First, thank you for reading the thread. So I had a task as the following: An up-counter must be programmed as part of a batch-counting...
Replies
7
Views
296
Hi I’m after some help , I have a plc program with a baumer verisens vision camera attached I have got the signals working ect but I have an...
Replies
9
Views
963
Good, Code Totalizer: IF ( Hour = 23) and ( Minute = 59) and ( Second = 59) THEN totalizerDay_previous : = totalizerDay; totalizerDay= 0; End_IF...
Replies
8
Views
1,570
Back
Top Bottom