macro_command main()
int read_data_1,a
bool b,e,rr
GetData(a, "Local HMI", LW, 0, 1)
GetData(read_data_1, "Mitsubishi FX3U/FX3G", D, 128, 1)
if a==read_data_1 then
b=1
e=0
else if a==123456 then
b=1
e=0
else if a==56789 then
rr=1
else
rr=0
b=0
e=1
end if
SetData(b, "Local HMI", LB, 100, 1)
SetData(e, "Local HMI", LB, 101, 1)
SetData(rr, "Local HMI", LB, 30, 1)end macro_command
我想做一個(gè)需要密碼驗(yàn)證的宏指令,密碼驗(yàn)證a等于d128的值或者是123456,觸發(fā)宏指令關(guān)閉密碼驗(yàn)證窗口,進(jìn)入設(shè)置窗口,如果在密碼驗(yàn)證窗口輸入
a等于56789會(huì)彈出另外一個(gè)窗口(有別的用途),現(xiàn)在前面的沒(méi)問(wèn)題,a等于56789后不能直接彈出這個(gè)窗口,請(qǐng)高手指點(diǎn)一下