HAKKO觸控屏實(shí)現(xiàn)倒計(jì)時(shí)進(jìn)入操作畫面(打開第0頁后,倒計(jì)時(shí)60秒進(jìn)入第1頁)
開式宏指令:
;倒計(jì)時(shí)60秒轉(zhuǎn)到操作畫面
$u00201 = 1 (W)
$u00202 = 100 (W)
SYS (STA_TIME) $u00200
$u00205 = 60 (W)
循環(huán)宏指令:
;倒計(jì)時(shí)60秒轉(zhuǎn)到操作畫面
SYS (CHK_TIME) $u00200
IF($u00200 != 0) LB 0 (W)
RET
LB 0:
$u00205 = $u00205 - 1 (W)
IF($u00205 == 0) LB 1 (W)
RET
LB 1:
$u00206 = 1 (W)
SYS (SET_SCRN) $u00206
在第0頁畫面放置數(shù)字顯示,內(nèi)存設(shè)置$u00205(倒計(jì)時(shí)顯示)