I have been building ANY pointers in the TEMP area by declaring a TEMP variable as type ANY and then MOVing the required data into the L stack directly.
L 1002
T LW0
etc etc. and that works fine.
I also moved the input ANY in a FB using
L DIW0
T LW0
etc etc
also works fine.
I even moved the ANY pointer from the input to the L stack using SFC20
P#DIX0.0 BYTE 10
BLKMOV
LW 0 BYTE 10
Also moved several ANY pointers using the same idea by changing BYTE 10 to BYTE 20 or 30 or 40 to move 2, 3 or 4 ANY pointers at once. Could be handy maybe.
So this leads me to my next idea. Wouldn't it be nice to have the ANY pointer in a STRUCT in the TEMP area? Some blocks might have issues caused by editing the TEMP area etc.
My current blocks are small specific blocks that I use just for moving the ANY pointer around inside other blocks, like a FC that does a BLKMOV from INTeger parameters. This small FC never gets edited and never does anything more.
But what if I could use a STRUCT in a TEMP instead?
I am have searched but did not find this specific sub topic anywhere.
I have not found it in Berger, yet. Still looking.
My first attempts are MOVING the data into the STRUCT words the same way I did with the TEMP variable ANY.
The STRUCT is 10 bytes long and has 3 words and a double word. Everything goes in , I can look at each MOV and see that everything is written into the correct location, but when I use the STRUCT as an input to the SFC20, it doesn't work.
L 1002
T LW0
etc etc. and that works fine.
I also moved the input ANY in a FB using
L DIW0
T LW0
etc etc
also works fine.
I even moved the ANY pointer from the input to the L stack using SFC20
P#DIX0.0 BYTE 10
BLKMOV
LW 0 BYTE 10
Also moved several ANY pointers using the same idea by changing BYTE 10 to BYTE 20 or 30 or 40 to move 2, 3 or 4 ANY pointers at once. Could be handy maybe.
So this leads me to my next idea. Wouldn't it be nice to have the ANY pointer in a STRUCT in the TEMP area? Some blocks might have issues caused by editing the TEMP area etc.
My current blocks are small specific blocks that I use just for moving the ANY pointer around inside other blocks, like a FC that does a BLKMOV from INTeger parameters. This small FC never gets edited and never does anything more.
But what if I could use a STRUCT in a TEMP instead?
I am have searched but did not find this specific sub topic anywhere.
I have not found it in Berger, yet. Still looking.
My first attempts are MOVING the data into the STRUCT words the same way I did with the TEMP variable ANY.
The STRUCT is 10 bytes long and has 3 words and a double word. Everything goes in , I can look at each MOV and see that everything is written into the correct location, but when I use the STRUCT as an input to the SFC20, it doesn't work.