📄 fby_com.h
字号:
/*
'COPYRIGHT: Foshan Analytical Instrument Factory, All rights reserved.
'This document, which contains confidential material is private and is
'the 'property and copyright of Foshan Analytical Instrument Factory.
'It is not to 'be used other purposes, copied, distributed or transmitted
'in any form or by 'any means without the prior written consent of the company.
'Infringement of 'copyright is a serious civil and criminal offence which can
'result in heavy 'fines and payment of substantial damages.
'================================================================
'1.模块定义
' 模块名称:FBY_Com.h
' 模块ID:FBY_Com
' 文件名称:FBY_Com.h
' 程序员:李文杰
' 日期:2003/11/01
'2.注释
' 项目:FGA4100通讯控制系统
' 操作系统:Windows 98 or Windows 2000
' 软件环境:Vc++ 6.0
'3.修改履历:
*/
#define FBY_NOTFINISHED 0 //现在不能完成操作,请等待一段时间后再试
#define FBY_FAIL -1 //操作失败
#define ERR_CMD_TIMEOUT -2 //命令应答超时
#define ERR_ADDR_TIMEOUT -3 //地址应答超时
#define ERR_NOT_OPENED -4 //端口没有打开
#define ERR_ADDR_RESPONSION -5 //地址应答错误
#define ERR_CMD_RESPONSION -8 //命令应答错误
#define ERR_REF_ERR -10 //错误的参数
#define ERR_ADDUP -16 //累加和校验错误
#define ERR_CMD_ERR -20 //无效的命令
#define FBY_SUCCESS 1 //成功
#define ERR_NO_SPEEDUP_DATA -18 //没有加速值
#define ERR_PROCESS_OF_SPEEDUP -19 //正在加速
int _stdcall FBY_Open(int iComID/*端口号*/,int iBaud/*波特率*/,int iAddress/*仪器地址*/ );
int _stdcall FBY_GetStatus(unsigned char *Data_Array,int *ReturnDataNum);//取状态函数
int _stdcall FBY_SendCmd(int iCommand);//发送其他命令
int _stdcall FBY_GetTestResult(unsigned char *Data_Array,int *ReturnDataNum);
int _stdcall FBY_GetSafeResult(unsigned char *Data_Array,int *ReturnDataNum);//取稳态值
int _stdcall FBY_GetSpeedUpResult(unsigned char *Data_Array,int *ReturnDataNum); //16组数据按照时间由近至远顺序排列 //取加速值
int _stdcall FBY_GetLastMainSpeedUpResult(unsigned char *Data_Array,int *ReturnDataNum); //转速 //取最近一次加速主要数据
int _stdcall FBY_GetLastSpeedUpLineData(unsigned char *Data_Array,int *ReturnDataNum); //最后一次加速号码
void _stdcall FBY_Close();
int _stdcall FBY_SetCommMode( int singlemachine ); //设置单机多机模式
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -