AN-374 TCP/UDP Data stream handling

AN-374 TCP/UDP Data stream handling

This document describes a simple method of how to handle a stream of bytes received via Ethernet in the controller allowing the user to read and interpret them when needed.
    • Related Articles

    • FIFO buffer in RAM on the Motion Coordinator

      When transferring files from the PC using either the TextfileLoader App or the texfileloader method in the TrioPC Motion ActiveX, the FIFO is capped at 1024 bytes max size. This is usually enough to buffer data transfers from the PC so that a program ...
    • AN-326 Connecting to TCP/UDP client

      It is possible to open one or more communication channels with remote devices using the TCP and UDP protocols via the controller’s main Ethernet port. This document explain and provide example of doing this
    • AN-312 Ethernet UDP connection

      UDP is a connectionless transport protocol designed to operate over IP. Typical applications in Industrial Control includes fast data transfer from cameras and cyclic “Process Data” from PLCs. UDP does not guarantee the delivery of packets but ...
    • Reading blocks of data from TrioPC Motion ActiveX or DLL

      The ActiveX and DLL have a way to read blocks of data. The method is called PRMBLK. If you look at he help, it shows you the list. You need to define the type of block you want to read, for example DefineSystem would be used to read system values ...
    • CHANNEL_WRITE

      How do I write axis variables or VR integer values into the channel? Like this? CHANNEL_WRITE(tcpserver_channel, " " + TIME$ + " " + CHR(VR(0)) + " " + CHR(VR(1)) ) Answer: No, the CHANNEL_WRITE needs to have a string as the data to write. ...