S7-300CPU死機故障
S7-300 CPU 314
經常死機,不運行任何程序,只能手動啟動。讀取CPU故障緩存區信息如下,請問高手如何處理:
Event 10 of 10: Event ID 16# 1381 Request for manual warm restart STOP due t STOP caused by stop switch being activated Startup information: - Startup without modified system configuration - No difference between setpoint and actual configuration - Time for time stamp at the last backed up power on - Single processor operation Current/last startup type: - Warm restart triggered by switch setting; last power on backed up Permissibility of certain startup types: - Manual warm restart permitted - Automatic warm restart permitted Last valid operation or setting of automatic startup type at power on: - Warm restart triggered by switch setting; last power on backed up OB number: 100 OB not found, or disabled, or cannot be started in the current operating mode Incoming event 02:08:36:885 pm 03/28/96
正如你所說,MW250的值指的是I/O錯誤。
根據你的具體情況,我個人認為問題出在程序中——因為如果是組態出現錯誤,運行一開始就會報錯。
這里介紹在線診斷的方法,找出問題程序:
1、當出現停機事件時,在STEP7中進入聯機方式,按“CTRL+D”,出現如下畫面:
2、切換到“Diagnostic Buffer”標簽頁
3、尋找出現你所描述故障的診斷項,點擊它,將指示出錯的程序塊
4、點擊“OPEN BLOCK”,編輯器將會打開故障塊,并以顏色指示故障代碼。以次方法,排除全部故障代碼。
預祝你成功!
==========
關于你帖出的代碼,我認為沒什么不妥。事實上,對于事件驅動的組織塊,觸發它運行的是事件(過程事件或中斷事件),至于其中的代碼,無關緊要,可以是針對事件的處理例程,甚至是一段毫無關系的程序。
文章版權歸西部工控xbgk所有,未經許可不得轉載。