http://forum.arduino.cc/index.php?topic=327333.0
this is the reference.
Wincc is SCADA Siemens.
The encoder code is working good and the communication between Arduino and Wincc is detected via TCPIP.
I think the problem is in mapping of the registers between arduino and wincc