📄 mb_dkxx.h
字号:
/******************************************************************************
*
* (c) 2004 by BECK IPC GmbH
*
*******************************************************************************
*
* Module: mb_dkxx.h
* Function: Constants and prototypes for modbus server at DK40/DK50
Contains function prototypes for all user implemented specific
Modbus device functions of device DK40/DK50
********************************************************************************
* Disclaimer: This program is an example and should be used as such.
* If you wish to use this program or parts of it in your application,
* you must validate the code yourself. BECK IPC GmbH can not be held
* responsible for the correct functioning or coding of this example.
*******************************************************************************
*
* $Header: mb_dkxx.h, 2, 05.09.2005 10:24:55, Andre Pribil$
*
******************************************************************************/
#ifndef _MB_DKXX_H__
#define _MB_DKXX_H__
//******************************************************************************
int mb_dkxx_init(void);
//******************************************************************************
int mb_dkxx_deinit(void);
//******************************************************************************
//DK40/DK50 specific input functions
int mb_dkxx_read_discr_inp_00(unsigned char * value);
int mb_dkxx_read_discr_inp_01(unsigned char * value);
int mb_dkxx_read_discr_inp_02(unsigned char * value);
int mb_dkxx_read_discr_inp_03(unsigned char * value);
int mb_dkxx_read_discr_inp_04(unsigned char * value);
int mb_dkxx_read_discr_inp_05(unsigned char * value);
int mb_dkxx_read_discr_inp_06(unsigned char * value);
////DK40/DK50 specific read coils functions
int mb_dkxx_read_coil_00(unsigned char * value);
int mb_dkxx_read_coil_01(unsigned char * value);
int mb_dkxx_read_coil_02(unsigned char * value);
int mb_dkxx_read_coil_03(unsigned char * value);
int mb_dkxx_read_coil_04(unsigned char * value);
int mb_dkxx_read_coil_05(unsigned char * value);
int mb_dkxx_read_coil_06(unsigned char * value);
int mb_dkxx_read_coil_07(unsigned char * value);
int mb_dkxx_read_coil_08(unsigned char * value);
int mb_dkxx_read_coil_09(unsigned char * value);
int mb_dkxx_read_coil_10(unsigned char * value);
int mb_dkxx_read_coil_11(unsigned char * value);
int mb_dkxx_read_coil_12(unsigned char * value);
int mb_dkxx_read_coil_13(unsigned char * value);
int mb_dkxx_read_coil_14(unsigned char * value);
////DK40/DK50 specific write coils functions
int mb_dkxx_write_coil_00(unsigned char value);
int mb_dkxx_write_coil_01(unsigned char value);
int mb_dkxx_write_coil_02(unsigned char value);
int mb_dkxx_write_coil_03(unsigned char value);
int mb_dkxx_write_coil_04(unsigned char value);
int mb_dkxx_write_coil_05(unsigned char value);
int mb_dkxx_write_coil_06(unsigned char value);
int mb_dkxx_write_coil_07(unsigned char value);
int mb_dkxx_write_coil_08(unsigned char value);
int mb_dkxx_write_coil_09(unsigned char value);
int mb_dkxx_write_coil_10(unsigned char value);
int mb_dkxx_write_coil_11(unsigned char value);
int mb_dkxx_write_coil_12(unsigned char value);
int mb_dkxx_write_coil_13(unsigned char value);
int mb_dkxx_write_coil_14(unsigned char value);
//DK40/DK50 specific read holding register functions
int mb_dkxx_read_register_00(unsigned int * value);
int mb_dkxx_read_register_01(unsigned int * value);
int mb_dkxx_read_register_02(unsigned int * value);
int mb_dkxx_read_register_03(unsigned int * value);
//DK40/DK50 specific write holding register functions
int mb_dkxx_write_register_00(unsigned int value);
int mb_dkxx_write_register_01(unsigned int value);
int mb_dkxx_write_register_02(unsigned int value);
int mb_dkxx_write_register_03(unsigned int value);
//DK40/DK50 specific read input register functions
int mb_dkxx_read_inp_register_00(unsigned int * value);
int mb_dkxx_read_inp_register_01(unsigned int * value);
int mb_dkxx_read_inp_register_02(unsigned int * value);
//-----------------------------------------------------------------------------
#endif /* _MB_DKXX_H__*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -