Vicks EDG-4508+ User Manual

Page of 112
EDG-4508+/4516+ User Manual
92
mbtcp.h
File name of mbtcp means Modbus TCP; we provide the easier definition 
of necessary parameter. For example, 
MODBUSTCPMAXMSGLENGTH 
MODBUS TCP Max Message Length
MODBUSTCPMSGHDRLENGTH
MODBUS TCP Message Header Length
*  The programming I/O sample programs are for programmer's reference 
to make the event I/O program for their own environment. Program-
mers can open the file as a template file to make a new project of event.  
#define MODBUSTCPMAXMSGLENGTH         288
#define MODBUSTCPMSGHDRLENGTH         6 
typedef struct __MODBUSTCPMSG {
unsigned short wTransactionId;
unsigned short wProtocolId;
unsigned char byteMsgLenHigh;
unsigned char byteMsgLenLow;
unsigned char Data[2];
} TMODBUSTCPMSG;