Asycube - Asyril SA
Programming Guide
32/83
5. TCIP/IP Communication
This chapter presents how to communicate with the Asycube to use the text commands over
TCP/IP. The commands are presented in Section 5.4.
The other way to communicate with the Asycube is by using Modbus TCP (Chapter 6).
5.1. Configuration
The host computer communicates with the Asycube using protocol Ethernet TCP/IP. The
Asycube is the TCP/IP server and the host computer is the TCP/IP client. The server (the
Asycube) sends packets only in response to a client request.
Default TCP/IP parameters are:
These parameters can be changed in configuration page of the Asyril HMI. If parameters are
unknown (connection cannot be established), use the “Recover IP address using default IP
address” procedure described in Operating Manual. Using this procedure enables the
connection to the Asycube with the default parameters and modification of the lost
parameters.
5.2. Asycube communication protocol
The host controller communication protocol uses only ASCII characters and is designed for
communication networks. The host computer is always the client. Servers transmit only after
receiving a message from the client.
Command /
Response Format
Command: Begin, Command, End, CRLF
Response: Begin, Response, End, CRLF
The ASCII char “{" must be the first character of the packet, which allows
detection of a new packet.
This field will contain ASCII letter characters followed by the parameter number.
These letters specify the purpose of the message packed (for instance Read or
Write Parameter). The available commands are listed in Section 5.4. The
Command can contain extra data that will be interpreted in various ways and
special delimiter characters.
This field contains a fixed format that specifies the validation of the instruction.
The Asycube gives a response message for each corresponding instruction.
The ASCII char “}” must be placed just after the Command or Response.
The ASCII chars “carriage return 0x0D” (also known as “\r”) and “line feed
0x0A” (also known as “\n”) are the last two bytes of the packet, for both sending
and receiving.