Hi,
I'm trying get to grips with a FB in which an Array of 25 DINT's are passed into an IN variable assigned with the Data type "Pointer"
The start address and length with is passed in is P#db30.dbx0.0 and here's the code from the calling block:
I couldnt find any useful Info in the S7 help file and the Berger stl book leaves me with more questions than answers!
Would i be correct in respect that the data queried is in "Any" format and stored in a 80 Bit format?
If so there are 3 different ANY pointers ~ Blocks,Timer/counter and Data types! i'm assuming its the Block type.
Looking at the values produced in the Accumulator against a 32 bit address register is also confusing!
1000_0100_0000_0000_0000_0000_0000_0000 Bin
84000000 Hex
-2080374784 Dec
0000_0000_0001_1110 Bin
1E Hex
30 Dec
Is there a shift within the Address register using P# offset to access all 80 bits? or have i got it totally wrong!!!
Thanks in advance for any enlightenment you could provide
STL
I'm trying get to grips with a FB in which an Array of 25 DINT's are passed into an IN variable assigned with the Data type "Pointer"
The start address and length with is passed in is P#db30.dbx0.0 and here's the code from the calling block:
LAR1 P##DATA //(IN)DATA TYPE - POINTER
L D[AR1,P2.0]
T #AREA_POINTER //STAT DINT
L W[AR1,P0.0]
T #DB_NUMBER //STAT INT
I couldnt find any useful Info in the S7 help file and the Berger stl book leaves me with more questions than answers!
Would i be correct in respect that the data queried is in "Any" format and stored in a 80 Bit format?
If so there are 3 different ANY pointers ~ Blocks,Timer/counter and Data types! i'm assuming its the Block type.
Looking at the values produced in the Accumulator against a 32 bit address register is also confusing!
1000_0100_0000_0000_0000_0000_0000_0000 Bin
84000000 Hex
-2080374784 Dec
0000_0000_0001_1110 Bin
1E Hex
30 Dec
Is there a shift within the Address register using P# offset to access all 80 bits? or have i got it totally wrong!!!
Thanks in advance for any enlightenment you could provide
STL