代码搜索结果
找到约 1,839 项符合
Modbus 的代码
modbus_server.h
#if !defined(MSERVERH)
#define MSERVERH
#ifdef __cplusplus
extern "C"
{
#endif
/*1.对单个PLC操作*/
/*读一个或多个模拟量 参数:站号,开始地址, 读的数量, 返回数据变量指针 返回:-1表示CRC校验失败,-2表示无应答, 大于零表示接收数据成功*/
char MODBU
modbus_share.cpp
#include "stdafx.h"
#include "MODBUS_SHARE.h"
const unsigned char m_auchCRCHi[]=
{
0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,0x01,0xC0,
0x80,0x41,0x00,0xC1,0x81,0x40,0x01,0xC0,0x80,0x41,
modbus_share.h
#if !defined(MSHAREH)
#define MSHAREH
#ifdef __cplusplus
extern "C"
{
#endif
unsigned short CalcCrcFast(unsigned char*puchMsg,unsigned short usDataLen);
#ifdef __cplu
modbus_client.c
/*******************************************************************************
Written by: Haemish Kyd
It is hereby certified that the author of this code specified above
has mad
modbus_server.c
/*******************************************************************************
Written by: Haemish Kyd
It is hereby certified that the author of this code specified above
has mad
modbus_opt.bak
### uVision2 Project, (C) Keil Software
### Do not modify !
cExt (*.c)
aExt (*.s*; *.src; *.a*)
oExt (*.obj)
lExt (*.lib)
tExt (*.txt; *.h; *.inc)
pExt (*.plm)
CppX (*.cpp)
DaveTm {
modbus.uv2
### uVision2 Project, (C) Keil Software
### Do not modify !
Target (Target 1), 0x0000 // Tools: 'MCS-51'
Group (Source Group 1)
File 1,2, 0x0
File 1,1,
modbus.m51
BL51 BANKED LINKER/LOCATER V5.12 11/17/2007 15:16:58 PAGE 1
BL51 BANKED LINKER/LOCATER V5.12, INVOKED BY:
E:\KEIL\C51\BIN\BL51.EXE STARTU