Hi all,
I have several FB's which each perform different control functions for a drive unit. There is a large amount of drive data which is shared between the FB's, which is collected into a single UDT, and stored in a shared DB.
Each of the FB's receives this drive data as an IN/OUT parameter. I can then access the data inside the FB as below:
L #DriveData.Speed
T #Speed // a TEMP variable
My problem is:
The size of DriveData is very large. As I understand it, each time the drive data is passed to an FB, it is copied to the FB's instance DB. This creates load on the PLC.
Hence, instead of passing the drive data itself to my FB's, I would like to pass a pointer to it. Using symbolic referencing, how would I then access the values within DriveData (eg. Speed)?
Thanks in advance for any help!
GWB
I have several FB's which each perform different control functions for a drive unit. There is a large amount of drive data which is shared between the FB's, which is collected into a single UDT, and stored in a shared DB.
Each of the FB's receives this drive data as an IN/OUT parameter. I can then access the data inside the FB as below:
L #DriveData.Speed
T #Speed // a TEMP variable
My problem is:
The size of DriveData is very large. As I understand it, each time the drive data is passed to an FB, it is copied to the FB's instance DB. This creates load on the PLC.
Hence, instead of passing the drive data itself to my FB's, I would like to pass a pointer to it. Using symbolic referencing, how would I then access the values within DriveData (eg. Speed)?
Thanks in advance for any help!
GWB