wilkerson29847
Member
Hello all. I am a newbie when it comes to Siemens and I have looked in the STL programming help but there are some things that isn't explained very well if at all. I will copy and paste a chunk of code and I hope someone can explain what this means.
#IN0 is DB100, I know that, but it says to open DB100 and then transfer AR1 to DB100.DBD0. What is AR1? and what does the following two statements mean? L PID [AR1, P#8.0] T PQD [ AR1 , P#12.0 ].
SET
SAVE
OPN #IN0
TAR1 %DBD0
L %DBD8
LAR1
L PID [ AR1 , P#8.0 ]
T %DBD38
A %DBX41.6
AN %DBX41.5
= %DBX26.6
JCN M000
L DW#16#40000000
T PQD [ AR1 , P#12.0 ]
L B#16#0
T %DBB4
JU M001
#IN0 is DB100, I know that, but it says to open DB100 and then transfer AR1 to DB100.DBD0. What is AR1? and what does the following two statements mean? L PID [AR1, P#8.0] T PQD [ AR1 , P#12.0 ].
SET
SAVE
OPN #IN0
TAR1 %DBD0
L %DBD8
LAR1
L PID [ AR1 , P#8.0 ]
T %DBD38
A %DBX41.6
AN %DBX41.5
= %DBX26.6
JCN M000
L DW#16#40000000
T PQD [ AR1 , P#12.0 ]
L B#16#0
T %DBB4
JU M001