modbusconsts.hpp

来自「Modbus 协议是应用于电子控制器上的一种通用语言。通过此协议」· HPP 代码 · 共 45 行

HPP
45
字号
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'ModbusConsts.pas' rev: 6.00

#ifndef ModbusConstsHPP
#define ModbusConstsHPP

#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <SysInit.hpp>	// Pascal unit
#include <System.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Modbusconsts
{
//-- type declarations -------------------------------------------------------
//-- var, const, procedure ---------------------------------------------------
static const Shortint mbfInvalidRegister = 0xfffffffe;
static const Shortint mbfUndefined = 0xffffffff;
static const Shortint mbfReadCoils = 0x1;
static const Shortint mbfReadInputBits = 0x2;
static const Shortint mbfReadRegs = 0x3;
static const Shortint mbfReadInputRegs = 0x4;
static const Shortint mbfWriteOneCoil = 0x5;
static const Shortint mbfWriteOneReg = 0x6;
static const Shortint mbfWriteCoils = 0xf;
static const Shortint mbfWriteRegs = 0x10;
static const Shortint MaxBlockLength = 0x7d;
static const int MaxRange = 0x1869f;
#define DMB_VERSION "0.3.0"
static const Word MB_PORT = 0x1f6;

}	/* namespace Modbusconsts */
using namespace Modbusconsts;
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// ModbusConsts

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?