Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

This example shows the how to write or read to any XCON(TCP/UDP) connection. The connection can be handled with LUA function. The write value can be written from any selected item, and the read value also be written to an output item.
The Read function should handle the incoming values and convert them to their HEX values. 
This tutorial has two functions: 

...

Info
titleNote:

MyTCP_OnReceiveEvent function is invoked when an XCON connection has been established, connection will be established in  Send_TcpHexwhen the serve starts in OnStartEvent() function. This means to receive first you will need to send any init value.