/*----------------------------------------------------
说明 :此例程为W5500 创建ModBUS_TCP服务器
IP:192.168.0.101
PORT:6000
------------------------------------------------------*/
#include "main.h"
uint8 mac[6]={0x00,0x08,0xdc,0x11,0x11,0x11};/*定义Mac变量*/
uint8 lip[4]={192,168,5,101};/*定义lp变量*/
uint16 MYPORT=6000;
uint8 sub[4]={255,255,255,0};/*定义subnet变量*/
uint8 gw[4]={192,168,5,1};/*定义gateway变量*/
uint8 ip[4];
uint8 buffer[2048];/*定义一个2KB的缓存*/
uint8 modbus_send[2048];/*定义一个2KB的缓存*/
|