String from WCCOA to PLC (S7 and S7+ drivers)

Find and share HowTos to various installations / configurations!
3 posts • Page 1 of 1
sblancha
Posts:64
Joined: Thu Feb 18, 2016 4:18 pm

String from WCCOA to PLC (S7 and S7+ drivers)

Post by sblancha »

Hi,
I need to send a string (24chars max) from wincc oa to a plc.
Currently I have defined 24 dpe type uchar each of dpe has config _address with S7 driver Datablock address type Word. It’s working but I wonder if there are other ways using directly 1 string dpe? The PLC is S7-1500, if I change to “optimized” and use S7+ may I can manage config address with a string?

Thanks

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

Re: String from WCCOA to PLC (S7 and S7+ drivers)

Post by gschijndel »

The S7+ driver should be able to read (W)Strings from the PLC using the string transformation.
The S7 driver is able to read strings (or arrays of bytes) using the string transformation. The config entry 'useStringLengthInfo' can be used to enable using the string length info of S7 strings.

sblancha
Posts:64
Joined: Thu Feb 18, 2016 4:18 pm

Re: String from WCCOA to PLC (S7 and S7+ drivers)

Post by sblancha »

Thanks for the info. Sorry for the late feedback, with the new Siemens interface I do not receive anymore notification when somebody answer my post.

3 posts • Page 1 of 1