Tcp & Udp Control Port (# 8010) - FiveCo FMod-IPAXESCTRL User Manual

3 axes ethernet control board
Hide thumbs Also See for FMod-IPAXESCTRL:
Table of Contents

Advertisement

Control port (TCP # 8010 or UDP # 7010)
This port is used to access the registers described in the chapter "Registers
management" of this manual.
Note: If you plan to configure all registers only from the onboard Webpage, you
can skip this section and go to the Java-Applet section. (The Java-Applet also
uses this port to read and write the different settings!)
TCP/IP works in big endian: most significant byte first, followed by least
significant byte(s). The access is done by sending a packet that follows a
simple (6 byte header) protocol.
Structure of each packet:
1) Function ID (2 bytes)
2) Transaction ID (2 bytes)
3) Length of the parameters (2 bytes)
4) Parameters (X Byte)
5) Checksum (2 bytes)
Function ID
The specific code for each function can be found on the next page of this
manual.
Transaction ID
The user defines himself the values of the Transaction ID. Normally, each
packet/transaction (communication request) should have a different ID (even
though this is not mandatory). When the FMod-IPAXESCTRL receives a
command/packet, it sends back an answer (at each request). This answer
contains the same Transaction ID than the corresponding command
previously sent. In that way, the user is able to check the execution of each
command.
Length of the parameters
This 2byte value corresponds to the length (in bytes) of the next section of
the packet (parameters only).
Parameters
This part of the packet contains all the parameters (mainly the data that are
sent).
Checksum
This 2 bytes value is the Check Sum of all the bytes of the packet (more
information on next pages).
Code of the function that has to be executed.
Number that defines this packet
Number of the parameters + data bytes
Parameters + Data
Control Sum of packet's bytes
FMod-IPAXESCTRL User Manual v.1.5
18 / 70

Advertisement

Table of Contents
loading

Table of Contents