mbtcp.h

File name of mbtcp means Modbus TCP; we provide the easier definition of necessary parameter. For example,

#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;

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.

EDG-4508+/4516+ User Manual

92

Page 104
Image 104
Vicks EDG-4508+, EDG-4516+ user manual Mbtcp.h, Modbustcpmsghdrlength