S7 driver array to dyn_uint

Find and share HowTos to various installations / configurations!
Search

Post Reply
4 posts • Page 1 of 1
pvillegasGTD
Posts: 6
Joined: Tue Jan 28, 2020 1:01 pm

S7 driver array to dyn_uint

Post 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

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: S7 driver array to dyn_uint

Post 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

Yogesh_Gaikwad
Posts: 7
Joined: Mon Oct 26, 2020 11:44 pm

Re: S7 driver array to dyn_uint

Post 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.

gschijndel
Posts: 373
Joined: Tue Jan 15, 2019 3:12 pm

Re: S7 driver array to dyn_uint

Post 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?

Post Reply
4 posts • Page 1 of 1