if Open_button5 and time_sum[0]>=time_sum[5] and count==4 then //第5期打開鎖機條件:1#開啟+系統時間>=設定時間+1期
SetData(ON, "Local HMI", RW_Bit, 14, 1) //鎖機畫面彈出
end if
if (count==4 and mk5==Input_password and Release_button)or(Dynamic_password[1]==Input_password and Release_button) then //第5期解鎖條件:5期+計算密碼=輸入密碼+解鎖按鈕按下(或者終極解碼+解除按鈕)
if Open_button1 and mk1 or Open_button2 and mk2 or Open_button3 and mk3 or Open_button4 and mk4 or Open_button5 and mk5 <>Input_password and Release_button==1 then//P判斷輸入密碼是否正確,顯示提示!