圖片:
圖片:
圖片:
圖片:
為什么程序登錄掃描編譯出現(xiàn)錯(cuò)誤,請(qǐng)大神么指點(diǎn),謝謝!
(*氣缸傳感器全亮延時(shí)=氣缸原點(diǎn)傳感器亮+氣缸終點(diǎn)傳感器亮*)OUT_T(StartPosition AND EndPosition,AllOnTime,30);(*氣缸傳感器全亮警報(bào)輸出*)AllOnAlarm:=StartPosition AND EndPosition AND AllOnTime;(*氣缸傳感器全滅延時(shí)=氣缸原點(diǎn)傳感器滅+氣缸終點(diǎn)傳感器滅*)OUT_T(NOT StartPosition AND NOT EndPosition,AllOffTime,30);(*氣缸傳感器全滅警報(bào)輸出*)AllOffAlarm:=NOT StartPosition AND NOT EndPosition AND AllOffTime;(*輸出電磁閥線圈通電延時(shí)=氣缸原點(diǎn)傳感器亮+電池閥線圈通電*)OUT_T(StartPosition AND OutPutValve,ValveOnTime,30);(*電磁閥線圈通電異常或原點(diǎn)異常警報(bào)輸出*)ValveOnAlarm:=StartPosition AND OutPutValve AND ValveOnTime;(*輸出電磁閥線圈斷電延時(shí)=氣缸終點(diǎn)傳感器亮+電池閥線圈斷電*)OUT_T(EndPosition AND NOT OutPutValve,ValveOffTime,30);(*電磁閥線圈斷電異;蚪K點(diǎn)異常警報(bào)輸出*)ValveOffAlarm:=EndPosition AND NOT OutPutValve AND ValveOffTime;(*氣缸異常警報(bào)輸出*)CylinderAlarm:=AllOnAlarm OR AllOffAlarm OR ValveOnAlarm OR ValveOffAlarm;(*手動(dòng)狀態(tài)*) (*自動(dòng)狀態(tài)*)ManualState:=Manual AND NOT Automatic;AutomaticState:=Automatic AND NOT Manual;