?? uplc.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 + -