Pb with setData for HWObject (TCP driver)

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
3 posts • Page 1 of 1
eMichx
Posts:64
Joined: Thu Apr 24, 2014 11:24 am

Pb with setData for HWObject (TCP driver)

Post by eMichx »

Hello,

I'm trying to use TcpDrv available in the 3.11 WinCC OA version.

All seems to be configured as defined in the help pages,
and WCCOATcpDrv.exe is correctly compiled.
When I send a string through TCP, the TCP driver received the
message, but data is not set (TcpMapObj pObj).

The method TcpSrvHdl::readFromClient (tcpSrvHdl.cxx) is
called with correct parameters, but when the command
pObj.setData(pBuf) is executed,
pObj.HWObject.DataPtr remains to 0x0.
DataLen is correct, pBuf contains the expected string.

There are rules on the layout of the data?

regards
Emmanuel

Gertjan van Schijndel
Posts:634
Joined: Mon Aug 02, 2010 10:37 am

Re: Pb with setData for HWObject (TCP driver)

Post by Gertjan van Schijndel »

There are no rules for the layout of the data. The data is later transformed (by the 'TcpTrans*' classes) to a WinCC OA variable.

eMichx
Posts:64
Joined: Thu Apr 24, 2014 11:24 am

Re: Pb with setData for HWObject (TCP driver)

Post by eMichx »

Thanks,

The classes TcpTrans(visible I suppose because of string type used by Dp attached to the HW address), is called
with the method toDp?
With the executable TcpDrv that I have generated, the online_value of DP doesn't change, despite of the setData is done.
I have added also the line "pObj.setOrgTime(TimeVar());" before the setdata call, and I observe no change of time
attached with the online_value


regadrs
Emmanuel

3 posts • Page 1 of 1