⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 uplc.h

📁 以atmel AT89C51为核心的超小型PLC源代码
💻 H
字号:
/*
*********************************************************************************************************
*                                     uPLC

*				   Using the Keil uVision2 compiler
*
* File : uPLC.h
*********************************************************************************************************
*/
#ifndef		_uPLC_H_
#define		_uPLC_H_

#define uPLC_IR_SIZE	          	10    /* Size of inter relays */
#define uPLC_HR_SIZE				5    /* Size of Hoding relays   */
#define uPLC_SR_SIZE				10    /* Size of Special relays   */
#define uPLC_DM_SIZE				10    /* Size of memory   */
#define uPLC_TIM_SIZE				10	//maxinum number of Timer 
#define uPLC_CNT_SIZE	 			5	//Maxinum number of counter
///////////////////////////////////////////////////////////////////////////

/*********************************************************************************************************
*                                          uPLC ERROR CODES
*********************************************************************************************************/

#define InsSize						35
#define uPLC_ERR_NO                 0
#define uPLC_ERR_TIMEOUT            10
#define uPLC_ERR_COMM	            11   //Communication ERR
/////////////////////////////////////////////////////////////////////////
/*********************************************************************************************************
*                                       uPLC FUNCTION PROTOTYPES
*********************************************************************************************************/
void 		ExecuteLadder(char *p);
void		ReflashTIM(void);
void		uPLCInit(void);
int	*		GetIR(void);
int	*		GetSR(void);
int	*		GetHR(void);
int	*		GetDM(void);

void		CheckLadder(char *p);

#endif	//_uPLC_H_

⌨️ 快捷键说明

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