UDP Functions for PxMM & Simulator

UDP (User Datagram Protocol) is a communications protocol which allows computers to exchange messages across an IP network. The UDP functions listed below provide a KAS controller to communicate with a remote PC or another KAS controller over an EthernetClosed Ethernet is a large, diverse family of frame-based computer networking technologies that operate at many speeds for local area networks (LANs) network.

When a UDP packet is sent to a broadcast address such as '255.255.255.255', the AKD PDMM or PCMM automatically converts the given broadcast address to the broadcast address of its Ethernet interface. For example if the controller's IP address is 192.168.1.10 and the subnet mask is 255.255.255.0, then the controller's Ethernet interface broadcast address is 192.168.1.255.

Function Description
udpAddrMake Build an address buffer for UDP functions
udpClose Close a socket
udpCreate Create a UDP socket
udpIsValid Test if a socket is valid
udpRcvFrom Receive a telegram
udpRcvFromArray Receive a byte array through UDP
udpRcvFromVar Receives the contents of a variable through UDP
udpSendTo Send a telegram
udpSendToArray Send a byte array through UDP
udpSendToVar Sends the contents of a local variable through UDP