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
Pb with setData for HWObject (TCP driver)
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Pb with setData for HWObject (TCP driver)
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)
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
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