PROGRAM xianshi
%COMMENT = '示教器操作显示F1-F5 按下按键后继续执行'
%ALPHABETIZE
%INCLUDE KLEVKEYS
%INCLUDE KLEVKMSK
%INCLUDE KLEVCCDF
%INCLUDE KLIOUOP
%INCLUDE KLIOTYPS
----------------------------------------------------
-- BEGIN dianwei
----------------------------------------------------
BEGIN
FORCE_SPMENU(TP_PANEL, SPI_TPUSER, 1)
WRITE (CHR(127),CHR (128),CR)
DOUT[2]=FALSE
WRITE TPPROMPT ('Press Key "SHIFT+NEXT" when ready...') --屏幕显示内容
WRITE TPFUNC (' TRAY POS DONE PRESS NEXT',CR) --屏幕显示内容 F1 - F5
Wait for TPIN[142]+ --等到 SHIFT + NEXT 键被按下
DOUT[2]=TRUE -- 输出 信号
DELAY 10000
END xianshi
所有知识点 :