圖片:
//順序啟動(dòng) 每按1次I0.0啟動(dòng)1臺(tái)電機(jī),直到3臺(tái)全部啟動(dòng)
//按下I0.1全部停止
//用最簡(jiǎn)單的指令實(shí)現(xiàn) 青春終敗紅塵
"M0.0" := "I0.0" AND NOT "M0.1";
"Q0.2" := ("M0.0" OR "Q0.2") AND ("Q0.1" AND NOT "I0.1");
"Q0.1" := ("M0.0" OR "Q0.1") AND ("Q0.0" AND NOT "I0.1");
"Q0.0" := ("M0.0" OR "Q0.0") AND NOT "I0.1";
"M0.1" := "I0.0";