发布网友 发布时间:2022-05-02 12:18
共1个回答
热心网友 时间:2022-06-20 01:11
macro_commandmain()unsignedshortpageunsignedshortnian,yue,ri,shi,fen,miaounsignedshortnianq,yueq,riq,shiq,fenq,miaoqGetData(nian,"LocalHMI",LW,9022,1)GetData(yue,"LocalHMI",LW,9021,1)GetData(ri,"LocalHMI",LW,9020,1)GetData(shi,"LocalHMI",LW,9019,1)GetData(fen,"LocalHMI",LW,9018,1)GetData(miao,"LocalHMI",LW,9017,1)GetData(nianq,"LocalHMI",RW,10,1)GetData(yueq,"LocalHMI",RW,11,1)GetData(riq,"LocalHMI",RW,12,1)GetData(shiq,"LocalHMI",RW,13,1)GetData(fenq,"LocalHMI",RW,14,1)GetData(miaoq,"LocalHMI",RW,15,1)ifnian>=nianqandyue>=yueqandri>=riqandshi>=shiqandfen>=fenqandmiao>=miaoqthenpage=22elsepage=0endifSetData(page,"LocalHMI",RW,50,1)endmacro_command重点看最后几条。需要在程序里面做一个PLC控制。用RW50这个地址来控制触摸屏切换画面。然后给RW50这个地址里面赋值就可以了。!不知道你明不明白!诺涵电气