触摸屏,我要宏指令做三个和万年历的定时器,设置了个按钮,启动三个定时器同时工作,结果是一个,用模拟的可以用,第二第三个定时器不知道怎么连接上,那位大师帮我修改一下
$100 = GETSYSTEMTIME
IF $1000.0 == ON THEN GOTO LABEL 1
END
LABEL 1
if $200 == $104 THEN GOTO LABEL 2
END
LABEL 2
IF $201 == $105 THEN GOTO LABEL 3
END
LABEL 3
({Link1}1@D200) = $210
LABEL 4
if $202 == $104 THEN GOTO LABEL 5
END
LABEL 5
IF $203 == $105 THEN GOTO LABEL 6
END
LABEL 6
({Link1}1@D200) = $106
LABEL 7
if $204 == $104 THEN GOTO LABEL 8
END
LABEL 8
IF $205 == $105 THEN GOTO LABEL 9
END
LABEL 9
({Link1}1@D200) = $106
楼主最近还看过
万年历定时器已经做好了,虽然很菜,但是我还是把结果分享,在这里还要感谢苏州安禾达电子科技有限公司的唐友为经理的帮助,运行起来,暂时没有问题,刚刚做好半个小时,触摸屏还是上面的那个,传送地址改了一下
LABEL 12
$100 = GETSYSTEMTIME
IFB $1000.0 == ON THEN GOTO LABEL 1
END
LABEL 1
if $200 == $104 THEN GOTO LABEL 2
GOTO LABEL 5
END
LABEL 2
IF $201 == $105 THEN GOTO LABEL 3
GOTO LABEL 5
END
LABEL 3
({Link1}1@W44098) = $210
end
LABEL 5
if $202 == $104 THEN GOTO LABEL 6
GOTO LABEL 9
END
LABEL 6
IF $203 == $105 THEN GOTO LABEL 7
GOTO LABEL 9
END
LABEL 7
({Link1}1@W44098) = $211
end
LABEL 9
if $204 == $104 THEN GOTO LABEL 10
GOTO LABEL 12
END
LABEL 10
IF $205 == $105 THEN GOTO LABEL 11
GOTO LABEL 12
END
LABEL 11
({Link1}1@W44098) = $212
END
这样试试呢
$100 = GETSYSTEMTIME
IF $1000.0 == ON THEN GOTO LABEL 1
GOTO LABEL 2
LABEL 1
IF $200 == $104
IF $201 == $105
{Link2}1@D200 = $210
ELSE
ENDIF
ENDIF
IF $202 == $104
IF $203 == $105
{Link2}1@D200 = $211
ELSE
ENDIF
ENDIF
IF $204 == $104
IF $205 == $105
{Link2}1@D200 = $212
ELSE
ENDIF
ENDIF
LABEL 2