Hi All,
I am trying to access an indexed UDT from an array of UDTs within a shared DB. I have seen an example of this done in SCL. The method used an IN_OUT UDT of a FB and it didn't have any data
assocciated to in at the call of the FB.
When I attempt to implement this in STL and load an element of the blank IN_OUT UDT I get an "Area Error when Reading". Is there an option to turn off this checking?
For background this is the code I am using within the FB to reference the indexed UDT.
Also I don't want to implement the BLKMOV method.
Any suggestions would be appreciated.
Cheers
JD
I am trying to access an indexed UDT from an array of UDTs within a shared DB. I have seen an example of this done in SCL. The method used an IN_OUT UDT of a FB and it didn't have any data
assocciated to in at the call of the FB.
When I attempt to implement this in STL and load an element of the blank IN_OUT UDT I get an "Area Error when Reading". Is there an option to turn off this checking?
For background this is the code I am using within the FB to reference the indexed UDT.
Code:
L P##IN_OUT_UDT
LAR1
L DB_Num //Int of shared DB
T W [AR1, P#0.0] //UDT DB Number
L Index //Index of UDT
+ -1
L UDT_Length //Length in bytes of UDT
*I
SLD3
L P#DBX0.0
+D
T D [AR1, P#2.0] //UDT Area Ptr
Also I don't want to implement the BLKMOV method.
Any suggestions would be appreciated.
Cheers
JD