S7 driver array to dyn_uint
Posted: Tue Oct 26, 2021 10:41 am
Hello,
With a WinCC OA S7 driver I am reading 10 uint variables from a DB of a S7-300:
E.g:
PLCTest.DB100.DBD0
PLCTest.DB100.DBD4
...
PLCTest.DB100.DBD36
I'd like to map them into a dyn_uint DPE. I tried to do "PLCTest.DB100.DBB0:40" but it doesn't accept the input as valid.
However, when reading a string is possible to read an array of bytes. E.g: PLCTest.DB100.DBB2:20.
¿Is it possible to map a S7 array directly to a dyn_uint WinCC OA variable?
Currently, I am reading each variable in a individual DPE and then with a dpQueryConnectSingle I set the dyn_uint each time one of the 10 uint variables change.
¿Is there a better way of doing it?
Thanks a lot.
Regards,
Pau
With a WinCC OA S7 driver I am reading 10 uint variables from a DB of a S7-300:
E.g:
PLCTest.DB100.DBD0
PLCTest.DB100.DBD4
...
PLCTest.DB100.DBD36
I'd like to map them into a dyn_uint DPE. I tried to do "PLCTest.DB100.DBB0:40" but it doesn't accept the input as valid.
However, when reading a string is possible to read an array of bytes. E.g: PLCTest.DB100.DBB2:20.
¿Is it possible to map a S7 array directly to a dyn_uint WinCC OA variable?
Currently, I am reading each variable in a individual DPE and then with a dpQueryConnectSingle I set the dyn_uint each time one of the 10 uint variables change.
¿Is there a better way of doing it?
Thanks a lot.
Regards,
Pau