Sign in

AGV / agv_shanghaisanling · Files

Logo

GitLab

  • Back to group
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • agv_shanghaisanling
  • 上海三菱 9-1
  • User
  • libapp
  • modbus.h
  • --
    b9cef270
    杨德进 authored
    2023-09-04 10:28:56 +0800  
    Browse Code »
modbus.h 430 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef __MODBUS_H__
#define __MODBUS_H__

#include "mb.h"
#include "bsp_cpu_flash.h"

#define REG_INPUT_START 0                
#define REG_INPUT_NREGS 50  

#define REG_HOLDING_START 	0    
#define REG_HOLDING_NREGS 	4000



extern USHORT   Land_Mark;
//extern USHORT	Current_AD1;
//extern ModbusInfo ModbusInfo1;  

extern USHORT   usRegInputBuf[REG_INPUT_NREGS];   
extern USHORT usRegHoldingBuf[REG_HOLDING_NREGS]; 


#endif