Page 1 of 1

S7 driver array to dyn_uint

Posted: Tue Oct 26, 2021 10:41 am
by pvillegasGTD
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

Re: S7 driver array to dyn_uint

Posted: Tue Nov 02, 2021 8:54 am
by leoknipp
According to the WinCC OA Documentation it looks like the S7 driver cannot write values to a dyn variable, except the usage of TSPP input data.
For details please have a look at the documentation:
https://www.winccoa.com/documentation/W ... dress.html

Best Regards
Leopold Knipp
Senior Support Specialist

Re: S7 driver array to dyn_uint

Posted: Wed Mar 08, 2023 10:21 pm
by Yogesh_Gaikwad
Do we have any improvements with WinCC-OA v3.18 P0015 with the above issues?

We have an application where we have to use a string of 10 elements of uint32 datatype and need to write some elements (first three ) from WinCC-OA and read some (remaining) elements at WinCC-OA.

At this moment we have segregated those elements by creating structure tags, in normal scenarios operations work fine
but sometimes the operation gets aborted. The reason is completely unknown hence
1. we are not sure whether the first three elements (which are part of one structure and have out directions) are written by WinCC-OA at the same time also
2. The reading elements are having 100ms polling common group, but not sure all the elements are read at the same time.

To get rid of this uncertainty we can use 10 elements structure and may be the issue can be resolved.
Please support.

Re: S7 driver array to dyn_uint

Posted: Mon Mar 13, 2023 10:31 am
by gschijndel
I do not see any reason why it should not work, but I would suggest to try this address reference for 10 uint32: 'PLCTest.DB100.DBD0:10'.

Did you already try this?