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