• 1273392 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種監控方法’特別是指一種自動化 系統之監控方法。 【先前技術】 現7裂中小型工廠設備自動化,或一般家庭電器之 .監控設備是近年來自動化產業積極研發的技術,亦即藉由 • m家^部之線路監督或操控生產設備或家電設備。 ⑮目别之監控線路大多I以一主電腦透過一匯流排或 排如發生故障時,即輸出故障訊息以告知使用者進行維修 或重置且又備鮮髮日|彳亭止。此外亦有些技術是使 用雙匯流排或雙傳輸線監控設備,但其谓測匯流排故障之 設備亦太過昂貴及複雜。 【發明内容】• 1273392 IX. Description of the Invention: TECHNICAL FIELD OF THE INVENTION The present invention relates to a monitoring method, particularly to a monitoring method of an automated system. [Prior Art] 7-split small and medium-sized factory equipment automation, or general household electrical appliances. Surveillance equipment is a technology actively developed by the automation industry in recent years, that is, through the supervision and control of production equipment or household electrical appliances. . Most of the monitoring lines of the 15 heads are outputted by a main computer through a bus or row. If a fault occurs, the fault message is output to inform the user to perform maintenance or resetting and to prepare for a fresh day. In addition, some technologies use dual bus or dual transmission line monitoring equipment, but the equipment for measuring bus faults is too expensive and complicated. [Summary of the Invention]
因此,本發明之目的即在提供一種可以簡易備測匯流 排故p早以適時切換匯流排之監控方法。 於是,本發明自動化系統之監控方法,適用於以所述 自動化系統之一主電腦監控-主匯流排及-副匯流排之連 線狀態’藉以監控複數工作站,該自動化系統之監控方法 包含以下步驟: 1 / (A)該主電腦經由主匯流排以多卫的方式依序傳送詢 問訊號至該等工作站,並接收回傳訊號。 σ (Β)如其中—工作站於—㈣間内未回傳訊號至主電 5 1273392 腦,則主電腦再次傳送訊問訊號至該工作站,如依舊無回 傳訊號’則暫設定該工作站為離線。及 (c)檢視前一工作站是否為故障,如前_工作站被設 為故障,則判定主匯流排故障,並切換至副匯流排輪詢: 等工作站,如前一工作站正常,則設定該工作站故障。 【實施方式】 、 有關本發明之前述及其他技術内容、特點與功效,在 • 以下配合參相式之—難佳實施例的詳細說明中,將可 清楚的呈現。 參閱圖1與圖2,本發明自動化系統之監控方法的一較 佳實施例適用於以所述自動化系統2的一主電腦3監控一 主匯流排4及一副匯流排5之連線狀態,藉以監控複數工 作站6。該監控方法包含以下步驟: 、(A)執行步驟701、702,該主電腦3經由主匯流排4 以多工的方式依序傳送詢問訊號至該等工作站6,並接收回 鲁傳訊號。本實施例中是以M個工作站作說明。該主電腦3 於一般情況下依序(由㈣〜M)經由主匯流排4送出詢問 Λ #U輪洶(Polling)各工作站6,接收到輪詢之詢問訊號後 ' I作站6將本身[控之數據及狀態於-定時間内以回 • #訊號經主匯流排4傳送回主電腦3儲存及顯示。 其中’該主電腦3是以其RS_232序列輸出琿與主匯流 排4連接’如工作站6之距離較遠時,可改接rs_485加強 傳送訊號傳送,到達各工作站6時再改接回rs_232淳,而 各工作站6傳回之數據及狀態中包括本身運轉之狀態,監SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide a monitoring method which can easily prepare a current collecting and discharging circuit and switch the bus bar at an early time. Therefore, the monitoring method of the automation system of the present invention is applicable to monitoring the plurality of workstations by monitoring the main computer of the automation system - the connection state of the main bus and the secondary bus, and the monitoring method of the automation system comprises the following steps : 1 / (A) The main computer transmits the inquiry signal to the workstations in a multi-guard manner via the main bus and receives the return signals. σ (Β) If the workstation does not return the signal to the main power 5 1273392 brain, the host computer will send the interrogation signal to the workstation again. If there is still no return signal, the workstation is temporarily set offline. And (c) check whether the previous workstation is faulty. If the previous workstation is set to fault, it determines that the main busbar is faulty and switches to the secondary busbar polling: Wait for the workstation. If the previous workstation is normal, set the workstation. malfunction. [Embodiment] The foregoing and other technical contents, features, and effects of the present invention will be apparent from the following detailed description of the preferred embodiment. Referring to FIG. 1 and FIG. 2, a preferred embodiment of the monitoring method of the automation system of the present invention is applicable to monitoring the connection state of a main bus bar 4 and a bus bar 5 by a host computer 3 of the automation system 2. In order to monitor the plurality of workstations 6. The monitoring method comprises the following steps: (A) performing steps 701 and 702, the host computer 3 sequentially transmits the inquiry signal to the workstations 6 in a multiplex manner via the main bus bar 4, and receives the return signal. In this embodiment, M workstations are used for description. In the normal case, the host computer 3 sends the inquiry Λ #U 轮 (Polling) workstations 6 in the order of the general bus (by (4) to M), and after receiving the polling inquiry signal, the I station 6 will itself [The data and status of the control are returned within the specified time. • The signal is transmitted back to the main computer 3 via the main bus 4 for storage and display. Where 'the main computer 3 is connected with the main bus bar 4 with its RS_232 sequence output'. If the distance from the workstation 6 is far away, the rs_485 can be connected to enhance the transmission of the signal transmission, and when it reaches each workstation 6, it is switched back to rs_232淳. And the data and status returned by each workstation 6 include the state of its own operation,
Rs_』t R::度、電流、電•或轉速等。本實施例是以 以咖萬用序歹輸出入方式為例作說明,實施時亦可 述之方式為限。 他傳輪方式,貫施上不以上 (Β)執行步驟703,如被輪 内未回傳邙h 輪力之工作站6於一定時間 ^‘虎至主電腦3,則主電腦3執行步驟崩、7〇5 =送_訊號至該工作站6,並等待回傳訊息,如該 依售無送出回傳訊號至主電腦3,則暫設定該工作 為離線。由於輪詢兩次皆無回應,亦有可能是主匯流 輪上的故障,因此僅暫設為該工作站6離線。 ★ JO執行步驟706,檢視前一工作站6是否為故障, 咳一工作站6正常,則設定輪詢兩次皆無回應之該工作 為故卩早。亦即僅一工作站6輪詢兩次無回應,確定該 作站6故障,該主電腦3也顯示故障工作站6之位址或 名稱’通知報修。如前_卫作站6已被設為故障,則判定 主匯流排4故障,並切換至副匯流5排輪詢該等工作站6, 亦即連續二工作站6被設為離線及故障,則判定主匯流排4 故障,主電腦3立即顯示主匯流排4故障,並執行步驟7〇8 ’切換至副匯流排5輪詢該等工作站6,藉以維持整個自動 化系統2之運轉。 综上所述,本發明自動化系統之監控方法利用輪詢各 工作站6之過程中,各工作站6之回傳訊號的發送,以判 定主匯流排4之連線狀態,不僅可監控各工作站6,又可達 到以簡易之方式偵測主匯流排4故障,並適時切換至副匯 ;1273392 流排5以保持整體自動化系統 本發明之目的。 正吊運作,故確貫可達到 惟以上所述者,僅為本發明之較佳實施例而已, =以此限定本發明實施之範圍,即大凡依本發明中^ 範圍及發明說明内容所作之簡單 ^ 1 超丄 寺效婕化與修飾,皆仍 屬本發明專利涵蓋之範圍内。 【圖式簡單說明】 圖1是本發明自動化系統之監控方法的較佳實施例中 ,所述自動化系統的方塊示意圖;及 、 之方式監控匯 圖2是該較佳實施例以輪詢複數工作站 流排的流程圖。 ;1273392 、【主要元件符號說明】 2 自動化系統 5 3 主電腦 6 4 主匯流排 701〜708 副匯流排 工作站 執行步驟Rs_』t R:: degree, current, electricity, or speed. In this embodiment, the input and output mode is described as an example, and the manner in which it can be described in the implementation is limited. He passes the wheel mode, and does not perform the above steps (Β) to perform step 703. If the workstation 6 that has not been transmitted back in the wheel is in a certain time ^' tiger to the main computer 3, the main computer 3 performs the step collapse. 7〇5=Send _ signal to the workstation 6, and wait for the return message. If the return message is not sent to the host computer 3, the work is temporarily set to offline. Since there is no response due to polling twice, it may also be a fault on the main bus, so it is only temporarily set to the workstation 6 offline. ★ JO performs step 706 to check whether the previous workstation 6 is faulty, and if the workstation 6 is normal, then the setting of the polling twice does not respond to the work. That is, only one workstation 6 polls twice without a response, and it is determined that the station 6 is faulty, and the host computer 3 also displays the address or name of the faulty workstation 6 'notification for repair. If the former _ wei station 6 has been set to failure, it is determined that the main bus 4 is faulty, and the sub-port 5 is polled to poll the workstations 6, that is, the second workstation 6 is set to offline and fault, then it is determined If the main bus 4 fails, the host computer 3 immediately displays the main bus 4 failure, and performs step 7〇8' to switch to the secondary bus 5 to poll the workstations 6, thereby maintaining the operation of the entire automation system 2. In summary, the monitoring method of the automation system of the present invention utilizes the transmission of the backhaul signals of each workstation 6 in the process of polling each workstation 6, to determine the connection state of the main busbar 4, and not only the workstations 6 but also the workstations. It is also possible to detect the failure of the main bus 4 in a simple manner and switch to the secondary sink in time; the 1273392 flow row 5 maintains the purpose of the overall automation system of the present invention. The present invention is only exemplified by the above-described preferred embodiments of the present invention, and is intended to limit the scope of the present invention, that is, the scope of the invention and the description of the invention. Simple ^ 1 The effect and modification of Chaoshao Temple are still within the scope of the patent of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of the automation system in accordance with a preferred embodiment of the monitoring method of the automation system of the present invention; and the mode of monitoring 2 is the preferred embodiment for polling a plurality of workstations Flow chart of the flow. ;1273392, [Key component symbol description] 2 Automation system 5 3 Main computer 6 4 Main bus 701~708 Sub busbar Workstation Steps