📄 _edit.h
字号:
/* this is the _edit.h module, all the edit function is define here. */
/* specification */
/* this program define the following prefix as a rule */
/* p - pointer variable
g - global variable
d - local variable
c - counter
b - bit
lc - local counter
gc - global counter
uchar - unsigned char
uint - unsigned int
ulong - unsigned long
f - function
CN - constant data
AD - constant address */
/* define the float number scope */
#define CN_FLOATLIM 55000 /* the float number scope */
#define CN_MAXWIREL 10000 /* the maxium wire length. */
#define CN_MAXTOTAL 10000 /* the maxium product total. */
#define CN_MAXFLOAT 999 /* the maxium float number. */
#define CN_MAXRADIUS 75 /* the maxium wire radius. */
#define CN_MINRADIUS 0 /* the minium wire radius. */
#define CN_MAXCUTBK 25 /* the maxium cutter back value. */
#define CN_MINCUTBK 0 /* the minium cutter back value. */
#define CN_BUSYFLASH 1200 /* the busy flash constant. */
#define CN_WDGLIMIT 750 /* refresh the watchdog limit. */
#define CN_MAXMACHNO 32 /* the maxium machine No. */
#define CN_SHORTLIM 50 /* the short wire limit,50mm. */
#define CN_H_RLIM 65 /* the wire head&rail length limit. */
#define CN_STRIPLIM 70 /* the strip open length limit. */
#define CN_PROGTOTAL 419 /* the total number of the program. */
#define CN_COMPROG 400 /* the common program number. */
#define CN_MIDPROG 20 /* the middle strip program number. */
#define CN_COMBYTE 18 /* the common program byte number. */
#define CN_MIDBYTE 28 /* the mid strip program byte numb. */
#define CN_MAXSPEED 9 /* the maxium process speed. */
#define CN_MINSPEED 0 /* the minium process speed. */
#define CN_STARTSHOW 0 /* show the start value. */
#define CN_DOTSHOW 1 /* show the dot signal. */
#define CN_LASTSHOW 2 /* show the last value. */
#define CN_ALLSET 0x55
#define CN_SEGSET 0xAA
#define CN_DOTSTA0 0 /* XXX */
#define CN_DOTSTA1 1 /* XXX. */
#define CN_DOTSTA2 2 /* XXX.0 */
#define CN_DOTSTA3 3 /* XXX.2, the true float number. */
#define CN_TREDIT 0 /* transfer edit status. */
#define CN_TRINFO 1 /* transfer information. */
#define CN_DELEDIT 0 /* del edit status. */
#define CN_DELENSURE 1 /* del ensure status. */
/* respond to HZINFORM[18], ADHZINFO_X[9], ADHZINFO_Y[9] */
#define CN_ALLTR 0
#define CN_READY 1
#define CN_DISAB 2
#define CN_ALLDEL 3
#define CN_TROK 4
#define CN_TRERR 5
#define CN_TRCLR 6
#define CN_MACHCLR 7
#define CN_DELCLR 8
/* respond to ADNUC[17] */
#define CN_POINT 10 /* the point */
#define CN_EDITF 11 /* the edit flag */
#define CN_SHORT 12 /* the short wire rod identify flag */
#define CN_NBLACK 13 /* the number black code */
#define CN_NWHITE 14 /* the number white code */
#define CN_BUSYF 15 /* the operation busy flag */
#define CN_QUERY 16 /* the query code */
/**************************************************************************
Edit by:
FRANK 20030910 ShenZhen
**************************************************************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -