有幾臺(tái)設(shè)備,PLC都要記錄它們的運(yùn)行累計(jì)時(shí)間.當(dāng)啟動(dòng)條件滿足時(shí),即啟動(dòng)運(yùn)行累計(jì)時(shí)間最少那一臺(tái)設(shè)備,然而,當(dāng)仍然有其它啟動(dòng)條件滿足時(shí),則啟動(dòng)運(yùn)行累計(jì)時(shí)間最少那兩臺(tái),照此類推.例如,有5臺(tái)空壓機(jī),他們的運(yùn)行累計(jì)時(shí)間是:1#=100H,2#=110H,3#=95H,4#=98H,5#=101H,那么當(dāng)氣壓不足時(shí),優(yōu)先運(yùn)行3#空壓機(jī),運(yùn)行3#后,氣壓依然不足時(shí),那么再優(yōu)先運(yùn)行4#,......,再5#,1#,2#,按照此規(guī)律,程序該如何寫(xiě)?拜托!謝謝!