Siemens S7 pointer +stl question

DeHulk

Member
Join Date
Mar 2003
Posts
74
program :
L #measurement
+ -1
SLD 4
LAR1
AUF "DB72"
L DBW [ar1,P#4.0]

question1 :
measurment =5
5-1=4
0000 0000 0000 1000
SLD 4 gives
0000 0000 1000 0000

no if it was [ar1,P#0.0] i figured out before that it was
0000 0000 1000 0|000 so i had to look at DBW8 but now it says P#4 ?
I just have to add 8 and 4 and look at DBW 12 ?

question 2 :
on another place they use L DBD [...]
where does DBD stand for ?
 
p#x.y - love 'em

question 1.
4 is ...00100 not ...01000

SLD 4 is strange. SLD 3 removes the 'bit' part of the pointer.

Anyway SLD 4 gives ...001000000 (pointing at address 8 - ignore bits 0,1 and 2)

The P#4.0 offsets this by 4 pointing to address 12.

question 2.
DBD is Data Block Double word.

Hope this helps
 
p#x.y - love 'em

question 1.
4 is ...00100 not ...01000

SLD 4 is strange. SLD 3 removes the 'bit' part of the pointer.

Anyway SLD 4 gives ...001000000 (pointing at address 8 - ignore bits 0,1 and 2)

The P#4.0 offsets this by 4 pointing to address 12.

question 2.
DBD is Data Block Double word.

Hope this helps
 
ok problem solved :)
thanx ! DBD data double word : strang i couldn't find this in te help files
 

Similar Topics

I have a word in some DB which I want to load to AR1 and use as a pointer. In order to do this I need to write L DBxy.DBW xy SLD 3 LAR1 I...
Replies
3
Views
526
Hi people. I am having some trouble with siemens Step7, i'm not expert on it by any stretch. I'm more of a Bradley person with some TIA portal...
Replies
31
Views
11,025
Is it possible to make I/O filed on HMI of POINTER data type? Pointer data type can be either temp, IN or IN_OUT variable inside FB. it would be...
Replies
1
Views
1,763
Hi All, I have a system where there are parameters loaded into a DB from a DCS system. When I check the address's I find no locations in...
Replies
4
Views
2,886
Hy Experts, I have some problem with this intsructions: - CREA_DBL - READ_DBL - WRIT_DBL I want to create a recipie management in 314 CPU via...
Replies
3
Views
3,554
Back
Top Bottom