EasyManua.ls Logo

W&T Com-Server++ - The Control Structure

W&T Com-Server++
228 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
193
W&T Expanded services of the Com-Server
Subject to error and alteration
If no system password is configured, you can begin with ex-
change of the info structures immediately after the TCP con-
nection is opened, as described in the following.
25�1�1 The control structure
For the purpose of exchanging information and commands,
data records having a defined length and structure are ex-
changed through this connection.
To request an info structure (completely filled data record
from the Com-Server port), you only need to send any desired
character to the control port. To despatch a command, the
Com-Server expects the complete structure (30 bytes) in a
TCP packet. If no allocatable data (e.g. just half of a structure)
pass through the contro port, the reply is still an info struc-
ture. The declaration of the structures is made in C language.
Note for all structures:
A word correspons to a 16-bit-Integer
A char corresponds to a byte (8bit)
Hex convention: 0x preceding the value
The info structure has a fixed length of 30 bytes and is com-
prised of the following individual structures:
#pragma pack(1) //Structure components have 1-byt bounderies
typedef struct _rem_box_cntrl
{ char zero_1;
COM_ERROR _ce;
COM_STAT _cs;
BOX_CNTRL _bc;
char zero_2;
} REM_BOX_CNTRL;
#pragma pack()
zero_1/zero_2
The two characters zero_1 and zero_2 are the start and end
characters of the structure and must always be zero.

Table of Contents

Related product manuals