TW201703467A - Slave apparatus, and communication method and communication program - Google Patents

Slave apparatus, and communication method and communication program Download PDF

Info

Publication number
TW201703467A
TW201703467A TW104125747A TW104125747A TW201703467A TW 201703467 A TW201703467 A TW 201703467A TW 104125747 A TW104125747 A TW 104125747A TW 104125747 A TW104125747 A TW 104125747A TW 201703467 A TW201703467 A TW 201703467A
Authority
TW
Taiwan
Prior art keywords
frame
transmission
low priority
communication
communication port
Prior art date
Application number
TW104125747A
Other languages
Chinese (zh)
Inventor
Taichi Sakaue
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of TW201703467A publication Critical patent/TW201703467A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks

Abstract

A slave apparatus (100) determines, in the case where transmission of a high priority frame to a master apparatus (10) conflicts with transmission of a low priority frame to the master apparatus (10), to transmit the high priority frame in a forward direction. In addition, the slave apparatus (100) determines whether to transmit the low priority frame in the forward direction after completion of the forward-direction transmission of the high priority frame, or in a backward direction opposite to the forward direction before completion of the transmission of the high priority frame, and transmits the low priority frame in the determined direction.

Description

從設備與通訊方法以及通訊程式產品 Slave device and communication method and communication program product

本發明係關於一種環狀網路(ring network)中之通訊訊框的傳送控制。 The present invention relates to the transmission control of a communication frame in a ring network.

在FA(Factory Automation,工廠自動化)系統中,有許多是以1個主(master)設備與複數個從(slave)設備來構成控制系統的事例。 In the FA (Factory Automation) system, there are many examples in which a master device and a plurality of slave devices constitute a control system.

在此種控制系統中,一般而言,主設備係依每一從設備,傳送包含給從設備之指令的通訊訊框,而各從設備則是將包含對於指令之回應的通訊訊框傳送至主設備。 In such a control system, in general, the master device transmits a communication frame containing instructions to the slave device according to each slave device, and each slave device transmits a communication frame containing a response to the command to the slave device. Master device.

如此,茲將在主設備及從設備之間傳送接收包1指令的通訊訊框及包含回應的通訊訊框稱為控制通訊。 In this way, the communication frame for transmitting the packet 1 command and the communication frame containing the response between the master device and the slave device are referred to as control communication.

此外,茲將控制通訊繞行一次從設備之間為止的時間稱為通訊週期。 In addition, the time that the control communication bypasses the device from the device is called the communication cycle.

在控制系統中,必須預先設定通訊週期,且在此通訊週期內完成所有從設備的控制通訊。 In the control system, the communication cycle must be set in advance, and the control communication of all slave devices is completed within this communication cycle.

此外,作為設於FA系統的網路,已有一種I/O(Input/Output,輸入/輸出)控制用之場(field)通訊導向的場網路(field network)、及需要更細部之控制的動態(motion)控制用的動態網路(motion network)。 In addition, as a network installed in the FA system, there is a field network for I/O (Input/Output) control field control, and more detailed control is required. Dynamic network for motion control.

在動態網路中,大多係設定較場網路更短的通訊週期。 In dynamic networks, most of them set a shorter communication period than the field network.

場網路與動態網路實際上雖亦有以其他的線路來構成之情形,但也有以節省配線為目的而在相同線路上構成場網路與動態網路的情形。 Although the field network and the dynamic network actually have other lines, the situation is that the field network and the dynamic network are formed on the same line for the purpose of saving wiring.

茲將在場網路所進行的通訊稱為場通訊。 The communication carried out on the field network is called field communication.

此外,將在動態網路所進行的通訊稱為動態通訊。 In addition, the communication that takes place on a dynamic network is called dynamic communication.

在相同線路上構成場網路與動態網路時,大多情形是主設備與複數個從設備以線(line)型網路或環(ring)型網路來連接。 When the field network and the dynamic network are formed on the same line, in most cases, the master device and the plurality of slave devices are connected by a line type network or a ring type network.

因此,會有通訊訊框在從設備的通訊端口(port)競合的情形。 Therefore, there will be situations where the communication frame is cooperating from the communication port of the device.

當動態通訊的通訊訊框(以下稱動態通訊訊框)與場網路的通訊訊框(以下稱場通訊訊框)競合時,會有設定更短之通訊週期的動態通訊延遲的情形。 When the communication frame of the dynamic communication (hereinafter referred to as the dynamic communication frame) competes with the communication frame of the field network (hereinafter referred to as the field communication frame), there is a situation in which a dynamic communication delay of a shorter communication cycle is set.

在動態通訊延遲時,無法滿足動態通訊的通訊週期。 In the case of dynamic communication delay, the communication cycle of dynamic communication cannot be satisfied.

作為解決此種因為通訊訊框之競合所導致之動態通訊之延遲的方法,可考慮先在通訊訊框設定優先順位,而將設定了高優先順位的高優先順位訊框予以優先地進行傳送。 As a method for solving the delay of dynamic communication caused by the competition of the communication frame, it is conceivable to set the priority order in the communication frame first, and to preferentially transmit the high priority sequence frame in which the high priority order is set.

換言之,藉由將動態通訊訊框分類為高優先順位訊框,且將場通訊訊框分類為低優先順位訊框,即可將動態通訊訊框優先地進行傳送。 In other words, the dynamic communication frame can be preferentially transmitted by classifying the dynamic communication frame into a high priority sequence frame and classifying the field communication frame into a low priority frame.

藉此,即使是較短通訊週期的動態通訊,也可在通訊週期內完成動態通訊。 Thereby, even for dynamic communication with a short communication cycle, dynamic communication can be completed in the communication cycle.

在專利文獻1中,已揭示一種在動態通訊訊框與 場通訊訊框競合時,將場通訊訊框的傳送中斷,且在動態通訊訊框的傳送完成之後,再度傳送場通訊訊框的方式。 In Patent Document 1, a dynamic communication frame has been disclosed When the field communication frame is engaged, the transmission of the field communication frame is interrupted, and after the transmission of the dynamic communication frame is completed, the manner of transmitting the field communication frame is repeated.

此外,在專利文獻2中,係揭示一種比較需要進行實時(realtim)處理之匯流排主控器(bus master)之可待機時間與該匯流排主控器以外之匯流排主控器佔據共用匯流排的預定時間,而優先地將共用匯流排的使用權分配給需要進行實時處理之匯流排主控器的方式。 Further, in Patent Document 2, it is disclosed that a standby time of a bus master which is required to perform realtim processing is shared with a bus master other than the bus master. The predetermined time of the row, and preferentially assigning the usage rights of the shared bus to the bus master that needs to be processed in real time.

[先前技術文獻] [Previous Technical Literature] [專利文獻] [Patent Literature]

專利文獻1:國際公開WO2013/111285號 Patent Document 1: International Publication WO2013/111285

專利文獻2:日本特開2005-309649號公報 Patent Document 2: Japanese Laid-Open Patent Publication No. 2005-309649

如前所述,在專利文獻1的方式中,係在動態通訊訊框與場通訊訊框競合時,中斷場通訊訊框的傳送,且在動態通訊訊框的傳送完成之後,再度傳送場通訊訊框。 As described above, in the method of Patent Document 1, when the dynamic communication frame and the field communication frame collaborate, the transmission of the field communication frame is interrupted, and after the transmission of the dynamic communication frame is completed, the field communication is transmitted again. Frame.

因此,專利文獻1的方式,係以場通訊訊框的通訊效率較差。 Therefore, the method of Patent Document 1 is inferior in communication efficiency of the field communication frame.

此外,將專利文獻2之方式應用於動態通訊與場通訊混合存在的網路時,推測進行以下的控制。 Further, when the method of Patent Document 2 is applied to a network in which dynamic communication and field communication are mixed, it is presumed that the following control is performed.

從設備係從動態通訊的通訊週期,設定可使動態通訊延遲的時間(延遲容許時間)。 From the communication cycle of the device from the dynamic communication, set the time (delay allowable time) that can delay the dynamic communication.

場通訊訊框與動態通訊訊框競合時,從設備係判定場通訊訊框的傳送是否在延遲容許時間內完成。 When the field communication frame competes with the dynamic communication frame, the device determines whether the transmission of the field communication frame is completed within the delay allowed time.

場通訊訊框的傳送在延遲容許時間內完成時,從設備係先完成場通訊訊框的傳送,而動態通訊訊框的傳送,則在場通訊訊框的傳送完成之後進行。 When the transmission of the field communication frame is completed within the delay allowable time, the slave device first completes the transmission of the field communication frame, and the transmission of the dynamic communication frame is performed after the transmission of the field communication frame is completed.

然而,在動態通訊訊框被高頻率地傳送的環境中,即使藉由應用了專利文獻2之方式的上述控制,也會被動態通訊訊框佔據通訊頻帶,因此無法在延遲容許時間內完成場通訊訊框的傳送。 However, in the environment in which the dynamic communication frame is transmitted at a high frequency, even if the above control by the method of Patent Document 2 is applied, the dynamic communication frame occupies the communication band, and thus the field cannot be completed within the delay allowable time. The transmission of the communication frame.

因此,場通訊訊框之傳送的中斷及動態通訊訊框傳送後之場通訊訊框的再度傳送會頻繁產生,而使場通訊訊框無法效率良好地進行傳送。 Therefore, the interruption of the transmission of the field communication frame and the retransmission of the field communication frame after the transmission of the dynamic communication frame occur frequently, and the field communication frame cannot be transmitted efficiently.

如此,在專利文獻1的方式及專利文獻2的方式中,會有無法有效率地傳送屬於低優先順位訊框之場通訊訊框的問題。 As described above, in the methods of Patent Document 1 and Patent Document 2, there is a problem that the field communication frame belonging to the low priority frame cannot be efficiently transmitted.

本發明係以解決此種問題為主要目的,且以一面優先進行高優先順位訊框的傳送,亦一面有效率地進行低優先順位訊框的傳送為主要目的。 The present invention has the main object of solving such a problem, and the priority is to preferentially perform high-priority frame transmission, and to efficiently transmit low-priority frame.

本發明之從設備係包含在包括主設備與複數個從設備,且設定有順向與反向作為從前述複數個從設備傳送通訊訊框至前述主設備的方向的環狀網路中,該從設備係具有:第1通訊端口,其係將通訊訊框朝前述順向傳送;第2通訊端口,其係將通訊訊框朝前述反向傳送;及傳送調解部,在對於前述主設備進行屬於高優先順位之通訊訊框之高優先順位訊框的傳送與對於前述主設備進行屬於 低優先順位之通訊訊框之低優先順位訊框的傳送競合時,決定從前述第1通訊端口傳送前述高優先順位訊框,且決定要藉由在前述高優先順位訊框自前述第1通訊端口的傳送完成之後,從前述第1通訊端口傳送前述低優先順位訊框的順向傳送、及前述高優先順位訊框自前述第1通訊端口的傳送完成之前從前述第2通訊端口傳送前述低優先順位訊框的反向傳送的哪一者來傳送前述低優先順位訊框。 The slave device of the present invention is included in a ring network including a master device and a plurality of slave devices, and configured with forward and reverse directions as a direction for transmitting a communication frame from the plurality of slave devices to the master device, The slave device has: a first communication port that transmits the communication frame toward the forward direction; a second communication port that transmits the communication frame in the reverse direction; and a transmission mediation unit that performs the foregoing master device The transmission of the high priority sequence frame of the high priority order communication frame belongs to the foregoing master device When the low-priority frame of the low-priority frame is transmitted, the high-priority sequence frame is transmitted from the first communication port, and the first communication is determined by the first priority in the high-priority frame. After the transmission of the port is completed, the forward transmission of the low priority frame is transmitted from the first communication port, and the low transmission is performed from the second communication port before the transmission of the high priority frame from the first communication port is completed. Which of the reverse transmissions of the priority frame is transmitted to transmit the aforementioned low priority frame.

在本發明中,係可在高優先順位訊框的傳送與低優先順位訊框的傳送競合時,藉由反向傳送方式傳送低優先順位訊框。 In the present invention, the low priority sequence frame can be transmitted by reverse transmission when the transmission of the high priority frame and the transmission of the low priority frame are coincident.

因此,依據本發明,可依據高優先順位訊框的傳送狀況,彈性地選擇低優先順位訊框的傳送路徑,而可一面優先進行高優先順位訊框的傳送,亦一面有效率地進行低優先順位訊框的傳送。 Therefore, according to the present invention, the transmission path of the low priority frame can be flexibly selected according to the transmission status of the high priority frame, and the high priority frame can be preferentially transmitted while the low priority is efficiently performed. The transmission of the frame.

10‧‧‧主設備 10‧‧‧Master equipment

100‧‧‧從設備 100‧‧‧ slave equipment

101‧‧‧網路介面 101‧‧‧Internet interface

102‧‧‧網路端口 102‧‧‧Network port

103‧‧‧網路端口 103‧‧‧Network port

104‧‧‧網路介面 104‧‧‧Network interface

105‧‧‧緩衝器 105‧‧‧buffer

106‧‧‧傳送調解部 106‧‧‧Transportation Department

107‧‧‧計時器部 107‧‧‧Timekeeping Department

108‧‧‧網路構成資訊管理部 108‧‧‧Network constitutes the Information Management Department

109‧‧‧通訊訊框產生部 109‧‧‧Communication Frame Generation Department

901‧‧‧處理器 901‧‧‧ processor

902‧‧‧輔助記憶裝置 902‧‧‧Auxiliary memory device

903‧‧‧記憶體 903‧‧‧ memory

904‧‧‧網路介面 904‧‧‧Internet interface

905‧‧‧輸入介面 905‧‧‧Input interface

906‧‧‧顯示器介面 906‧‧‧Display interface

907‧‧‧輸入裝置 907‧‧‧ Input device

908‧‧‧顯示器 908‧‧‧ display

910‧‧‧訊號線 910‧‧‧ signal line

911、912‧‧‧纜線 911, 912‧‧‧ cable

9041‧‧‧接收器 9041‧‧‧ Receiver

9042‧‧‧傳送器 9042‧‧‧transmitter

1000‧‧‧環狀網路 1000‧‧‧ ring network

t_c、t_d、t_s‧‧‧時間 T_c, t_d, t_s‧‧‧ time

T_H、T_L‧‧‧週期 T_H, T_L‧‧ cycle

t_r‧‧‧剩餘時間 T_r‧‧‧ remaining time

第1圖係顯示實施形態1之網路構成例及順向的圖。 Fig. 1 is a view showing a network configuration example and a forward direction of the first embodiment.

第2圖係顯示實施形態1之網路構成例及反向的圖。 Fig. 2 is a view showing a network configuration example and a reverse diagram of the first embodiment.

第3圖係顯示實施形態1之從設備之動作概要的圖。 Fig. 3 is a view showing an outline of the operation of the slave device of the first embodiment.

第4圖係顯示實施形態1之從設備之功能構成例的圖。 Fig. 4 is a view showing an example of the functional configuration of the slave device of the first embodiment.

第5圖係顯示實施形態1之傳送調解部之動作例的流程圖。 Fig. 5 is a flow chart showing an example of the operation of the transfer mediation unit of the first embodiment.

第6圖係顯示實施形態1之傳送調解部之動作例的流程 圖。 Fig. 6 is a flow chart showing an example of the operation of the transfer mediation unit of the first embodiment. Figure.

第7圖係顯示實施形態1之傳送調解部之動作例的流程圖。 Fig. 7 is a flow chart showing an operation example of the transfer mediation unit of the first embodiment.

第8圖係顯示實施形態1之網路構成例及順向的圖。 Fig. 8 is a view showing a network configuration example and a forward direction of the first embodiment.

第9圖係顯示實施形態1之從設備之硬體構成例的圖。 Fig. 9 is a view showing an example of the hardware configuration of the slave device of the first embodiment.

實施形態1 Embodiment 1

***構成的說明*** ***Composed description***

第1圖係顯示本實施形態的網路構成例。 Fig. 1 is a diagram showing an example of a network configuration of this embodiment.

在本實施形態中,係說明包含1個主設備10及複數個從設備100的環狀網路1000。 In the present embodiment, a ring network 1000 including one master device 10 and a plurality of slave devices 100 will be described.

主設備10與各從設備100係具有2個通訊端口。 The master device 10 and each slave device 100 have two communication ports.

在第1圖中,雖省略了從設備(S_H_1)100與從設備(S_H_n)100之間之從設備100的圖示,但在從設備(S_H_1)100與從設備(S_H_n)100之間,係存在從設備(S_H_2)100至從設備(S_H_n-1)100。 In FIG. 1, although the illustration of the slave device 100 between the slave device (S_H_1) 100 and the slave device (S_H_n) 100 is omitted, between the slave device (S_H_1) 100 and the slave device (S_H_n) 100, There are slave devices (S_H_2) 100 to slave devices (S_H_n-1) 100.

此外,雖亦省略了從設備(S_L_1)100與從設備(S_L_m)100之間之從設備100的圖示,但在從設備(S_L_1)100與從設備(S_L_m)100之間,係存在從設備(S_L_2)100至從設備(S_L_m-1)100。 Further, although the illustration of the slave device 100 between the slave device (S_L_1) 100 and the slave device (S_L_m) 100 is omitted, there is a slave device between the slave device (S_L_1) 100 and the slave device (S_L_m) 100. Device (S_L_2) 100 to slave device (S_L_m-1) 100.

在本實施形態中,亦為主設備10將包含指令的通訊訊框傳送至複數個從設備100。 In the present embodiment, the main device 10 also transmits a communication frame including the command to the plurality of slave devices 100.

來自主設備10的通訊訊框,係以主設備10、從設備(S_H_1)100˙˙˙從設備(S_H_n)100、從設備(S_L_1) 100˙˙˙從設備(S_L_m)100的順序轉送。 The communication frame from the master device 10 is the master device 10, the slave device (S_H_1) 100 ̇ ̇ ̇ the slave device (S_H_n) 100, and the slave device (S_L_1) 100 ̇ ̇ 转 Transfer from the order of the device (S_L_m) 100.

各從設備100係傳送包含對於來自主設備10之指令之回應的通訊訊框。 Each slave device 100 transmits a communication frame containing a response to an instruction from the master device 10.

在本實施形態之環狀網路1000中,係設定有順向與反向,以作為將通訊訊框從從設備100傳送至主設備10的方向。 In the ring network 1000 of the present embodiment, forward and reverse directions are set as directions for transmitting the communication frame from the slave device 100 to the master device 10.

所謂順向,如第1圖的箭頭符號所示,係從設備(S_L_m)100˙˙˙從設備(S_L_1)100、從設備(S_H_n)100、˙˙˙從設備(S_H_1)100、主設備之順序的轉送方向。 The so-called forward direction, as indicated by the arrow symbol in Fig. 1, is a slave device (S_L_m) 100 ̇ ̇ ̇ slave device (S_L_1) 100, slave device (S_H_n) 100, ̇ ̇ ̇ slave device (S_H_1) 100, master device The order of the transfer direction.

換言之,順向係與來自主設備10之通訊訊框之轉送方向相反的方向。 In other words, the forward direction is opposite to the direction in which the communication frame from the host device 10 is forwarded.

另一方面,所謂反向,如第2圖之箭頭符號所示,係從設備(S_H_1)100˙˙˙從設備(S_H_n)100、從設備(S_L_1)100˙˙˙從設備(S_L_m)100、主設備10之順序的轉送方向。 On the other hand, the reverse direction, as indicated by the arrow symbol in Fig. 2, is a slave device (S_H_1) 100 ̇ ̇ ̇ slave device (S_H_n) 100, slave device (S_L_1) 100 ̇ ̇ ̇ slave device (S_L_m) 100 The forwarding direction of the main device 10 in the order.

在本實施形態中,各從設備100原則上係以順向傳送通訊訊框至主設備10。 In the present embodiment, each slave device 100 transmits the communication frame to the master device 10 in the forward direction.

此外,在本實施形態之環狀網路1000中,係混合存在有動態網路與場網路。 Further, in the ring network 1000 of the present embodiment, a dynamic network and a field network are mixed.

在本實施形態中,亦將動態通訊用的通訊訊框稱為動態通訊訊框,及將場通訊用的通訊訊框稱為場通訊訊框。 In this embodiment, the communication frame for dynamic communication is also referred to as a dynamic communication frame, and the communication frame for field communication is also referred to as a field communication frame.

此外,在本實施形態中,動態通訊訊框亦作為高優先順位訊框處理,而場通訊訊框則作為低優先順位訊框處理。 In addition, in this embodiment, the dynamic communication frame is also processed as a high priority sequence frame, and the field communication frame is treated as a low priority frame.

在第1圖中,從設備(S_H_1)100˙˙˙從設備(S_H_n)100係屬於動態網路。 In Fig. 1, the slave device (S_H_1) 100 ̇ ̇ ̇ slave device (S_H_n) 100 belongs to the dynamic network.

此外,從設備(S_L_1)100˙˙˙從設備(S_L_m)100係屬於場網路。 In addition, the slave device (S_L_1) 100 ̇ ̇ ̇ slave device (S_L_m) 100 belongs to the field network.

從設備(S_H_1)100˙˙˙從設備(S_H_n)100係傳送動態通訊訊框至主設備10。 The slave device (S_H_1) 100 ̇ ̇ ̇ slave device (S_H_n) 100 transmits the dynamic communication frame to the master device 10.

從設備(S_L_1)100˙˙˙從設備(S_L_m)100係傳送場通訊訊框至主設備10。 The slave device (S_L_1) 100 ̇ ̇ ̇ slave device (S_L_m) 100 transmits the field communication frame to the master device 10.

從設備(S_L_1)100˙˙˙自從設備(S_L_m)100所傳送的場通訊訊框係以從設備(S_H_1)100˙˙˙從設備(S_H_n)100轉送而到達主設備10。 The slave device (S_L_1) 100 ̇ ̇ 场 The field frame transmitted from the slave device (S_L_m) 100 is transferred from the slave device (S_H_1) 100 ̇ ̇ ̇ slave device (S_H_n) 100 to the master device 10.

因此,在從設備(S_H_1)100˙˙˙從設備(S_H_n)100中,˙˙˙產生動態通訊訊框之傳送與場通訊訊框之傳送的競合。 Therefore, in the slave device (S_H_1) 100 ̇ ̇ ̇ slave device (S_H_n) 100, ̇ ̇ ̇ generates a match between the transmission of the dynamic communication frame and the transmission of the field communication frame.

所謂競合,係指動態通訊訊框的傳送要求與場通訊訊框的傳送要求重複產生。 The so-called co-opetition means that the transmission requirements of the dynamic communication frame and the transmission requirements of the field communication frame are repeatedly generated.

第3圖係顯示動態通訊訊框的傳送與場通訊訊框的傳送競合時之從設備100之動作的概要。 Fig. 3 is a view showing an outline of the operation of the slave device 100 when the transmission of the dynamic communication frame and the transmission of the field communication frame are coincident.

另外,在第3圖中,係將動態通訊訊框表示為高優先順位訊框,且將場通訊訊框表示為低優先順位訊框。 In addition, in FIG. 3, the dynamic communication frame is represented as a high priority sequence frame, and the field communication frame is represented as a low priority sequence frame.

假設在從設備(S_H_1)100中繼發給主設備10之低優先順位訊框1期間,需要傳送發給主設備10之高優先順位訊框1的情形。 It is assumed that during the low priority priority frame 1 transmitted from the device (S_H_1) 100 to the master device 10, the situation of the high priority sequence frame 1 sent to the master device 10 needs to be transmitted.

從設備(S_H_1)100係判定低優先順位訊框1的傳送是否在高優先順位訊框1的延遲容許時間內完成。 The slave device (S_H_1) 100 determines whether the transmission of the low priority sequence frame 1 is completed within the delay allowable time of the high priority sequence frame 1.

延遲容許時間係為可使高優先順位訊框1之傳送延遲的上 限時間。 The delay allowable time is to delay the transmission of the high priority sequence 1 Limited time.

在低優先順位訊框1的傳送於延遲容許時間內完成時,從設備(S_H_1)100係持續低優先順位訊框1的傳送,且於低優先順位訊框1的傳送完成之後傳送高優先順位訊框1。 When the transmission of the low priority sequence frame 1 is completed within the delay allowable time, the slave device (S_H_1) 100 continues the transmission of the low priority sequence frame 1 and transmits the high priority order after the transmission of the low priority sequence frame 1 is completed. Frame 1.

另一方面,在低優先順位訊框1於延遲容許時間內未完成時,從設備(S_H_1)100係中止低優先順位訊框1的傳送(第3圖之(a)),且開始高優先順位訊框1的傳送。 On the other hand, when the low priority frame 1 is not completed within the delay allowable time, the slave device (S_H_1) 100 suspends the transmission of the low priority frame 1 (Fig. 3(a)), and starts the high priority. The transmission of the frame 1 is followed.

另外,在第3圖之(a)中,係顯示在低優先順位訊框1之一半被傳送的階段,中止了低優先順位訊框1的傳送。 In addition, in (a) of FIG. 3, it is shown that the transmission of the low priority sequence frame 1 is suspended in the stage in which one of the low priority order frames 1 is transmitted.

茲將至傳送中止為止所傳送之低優先順位訊框1的一半表示為低優先順位訊框1(1/2)。 Half of the low priority order frame 1 transmitted until the transmission is suspended is indicated as the low priority order frame 1 (1/2).

在主設備10中,未廢棄從從設備(S_H_1)100所接收的低優先順位訊框1(1/2)而予以保持。 In the master device 10, the low priority frame 1 (1/2) received from the slave device (S_H_1) 100 is not discarded and held.

接著,從設備(S_H_1)100係決定要藉由順向傳送及反向傳送的哪一者來傳送低優先順位訊框1之剩餘的一半。 Next, the slave device (S_H_1) 100 determines which of the forward transmission and the reverse transmission is to transmit the remaining half of the low priority sequence frame 1.

茲將低優先順位訊框1之剩餘的一半表示為低優先順位訊框1(2/2)。 The remaining half of the low priority frame 1 is indicated as the low priority frame 1 (2/2).

順向傳送係為在來自順向之通訊端口之高優先順位訊框1的傳送完成之後將低優先順位訊框1(2/2)從順向的通訊端口傳送的傳送形態。 The forward transmission is a transmission mode in which the low priority sequence 1 (2/2) is transmitted from the forward communication port after the transmission from the high priority priority frame 1 of the forward communication port is completed.

反向傳送係為在來自順向之通訊端口之高優先順位訊框的傳送完成之前將低優先順位訊框1(2/2)從反向的通訊端口傳送的傳送形態。 The reverse transmission is a transmission mode in which the low priority sequence 1 (2/2) is transmitted from the reverse communication port before the transmission of the high priority frame from the forward communication port is completed.

從設備(S_H_1)100係以下列順序來決定要以順向傳送及反向傳送的哪一者來傳送低優先順位訊框1(2/2)。 The slave device (S_H_1) 100 determines which one of the forward transmission and the reverse transmission is to transmit the low priority sequence frame 1 (2/2) in the following order.

從設備(S_H_1)100係判定是藉由順向傳送方式傳送低優先順位訊框1(2/2)時之低優先順位訊框1(2/2)、與藉由反向傳送方式傳送低優先順位訊框1(2/2)時之低優先順位訊框1(2/2)的哪一者較快到達主設備10。 The slave device (S_H_1) 100 determines that the low priority sequence frame 1 (2/2) when the low priority frame 1 (2/2) is transmitted by the forward transmission mode and the low transmission mode by the reverse transmission mode Which of the low priority sequence frames 1 (2/2) of the priority frame 1 (2/2) arrives at the master device 10 faster.

再者,藉由反向傳送方式傳送低優先順位訊框1(2/2)時低優先順位訊框1(2/2)較快到達主設備10之情形下,從設備(S_H_1)100係藉由反向傳送方式傳送低優先順位訊框1(2/2)。 Furthermore, when the low priority order frame 1 (2/2) is transmitted by the reverse transmission mode, the low priority order frame 1 (2/2) arrives at the master device 10 relatively quickly, and the slave device (S_H_1) 100 is connected. The low priority sequence frame 1 (2/2) is transmitted by reverse transmission.

另一方面,藉由反向傳送方式傳送低優先順位訊框1(2/2)時低優先順位訊框1(2/2)較快到達主設備10之情形下,或者,無論是順向傳送還是反向傳送,低優先順位訊框1(2/2)到達主設備10都相同之情形下,從設備(S_H_1)100係藉由順向傳送方式傳送低優先順位訊框1(2/2)。 On the other hand, when the low priority order frame 1 (2/2) is transmitted by the reverse transmission mode, the low priority order frame 1 (2/2) arrives at the master device 10 faster, or whether it is the forward direction. Transmission or reverse transmission, when the low priority order frame 1 (2/2) arrives at the same time as the master device 10, the slave device (S_H_1) 100 transmits the low priority sequence frame 1 by forward transmission mode (2/). 2).

在第3圖中,從設備(S_H_1)100係藉由反向傳送方式傳送低優先順位訊框1(2/2)(第3圖之(b))。 In Fig. 3, the slave device (S_H_1) 100 transmits the low priority sequence frame 1 (2/2) by reverse transmission (Fig. 3(b)).

在反向傳送中,低優先順位訊框1(2/2)係以從設備(S_H_2)100˙˙˙從設備(S_H_n)100、從設備(S_L_1)100˙˙˙從設備(S_L_m)100轉送而到達主設備10。 In the reverse transmission, the low priority frame 1 (2/2) is the slave device (S_H_2) 100 ̇ ̇ ̇ slave device (S_H_n) 100, slave device (S_L_1) 100 ̇ ̇ ̇ slave device (S_L_m) 100 Transfer to the master device 10.

在主設備10中,係組合所保持的低優先順位訊框1(1/2)、與自從設備(S_L_m)100所接收的低優先順位訊框1(2/2),而恢復原先的低優先順位訊框1。 In the master device 10, the low priority priority frame 1 (1/2) held and the low priority sequence frame 1 (2/2) received from the slave device (S_L_m) 100 are restored to restore the original low. Priority order frame 1.

此外,假設在從設備(S_H_1)100傳送高優先順 位訊框1期間,接收發給主設備10之低優先順位訊框2的情形。 In addition, it is assumed that a high priority is transmitted on the slave device (S_H_1) 100. During the bit frame 1, the situation of the low priority frame 2 sent to the master device 10 is received.

此時,從設備(S_H_1)100係持續高優先順位訊框1從順向的通訊端口進行傳送。 At this time, the slave device (S_H_1) 100 continues the high priority sequence frame 1 to transmit from the forward communication port.

此外,從設備(S_H_1)100係決定要藉由順向傳送與反向傳送的哪一者來傳送低優先順位訊框2。 Further, the slave device (S_H_1) 100 determines which one of the forward transmission and the reverse transmission is to transmit the low priority sequence frame 2.

此時,亦為從設備(S_H_1)100判定是藉由順向傳送方式傳送低優先順位訊框2時之低優先順位訊框2、與藉由反向傳送方式傳送低優先順位訊框2時之低優先順位訊框2的哪一者較快到達主設備10。 At this time, the slave device (S_H_1) 100 also determines that the low priority frame 2 when the low priority frame 2 is transmitted by the forward transmission mode and the low priority frame 2 when the low priority frame 2 is transmitted by the reverse transmission mode Which of the lower priority order frames 2 arrives at the master device 10 faster.

再者,藉由反向傳送方式傳送低優先順位訊框2時低優先順位訊框2較快到達主設備10時,從設備(S_H_1)100係藉由反向傳送方式傳送低優先順位訊框2。 Furthermore, when the low priority frame 2 is transmitted to the master device 10 by the reverse transmission mode, the slave device (S_H_1) 100 transmits the low priority frame by the reverse transmission mode. 2.

另一方面,藉由反向傳送方式傳送低優先順位訊框2時低優先順位訊框2較快到達主設備10之情形下,或者,無論是順向傳送還是反向傳送,低優先順位訊框2到達主設備10都相同之情形下,從設備(S_H_1)100係藉由順向傳送方式傳送低優先順位訊框2。 On the other hand, when the low priority sequence frame 2 is transmitted by the reverse transmission mode, the low priority sequence frame 2 arrives at the master device 10 faster, or whether it is forward transmission or reverse transmission, low priority order message In the case where the block 2 arrives at the same master device 10, the slave device (S_H_1) 100 transmits the low priority frame 2 by the forward transfer mode.

在第3圖中,從設備(S_H_1)100係藉由反向傳送方式傳送低優先順位訊框2(第3圖之(c))。 In Fig. 3, the slave device (S_H_1) 100 transmits the low priority sequence frame 2 by reverse transmission (Fig. 3(c)).

低優先順位訊框2係以從設備(S_H_2)100˙˙˙從設備(S_H_n)100、從設備(S_L_1)100˙˙˙從設備(S_L_m)100轉送而到達主設備10。 The low priority frame 2 is transferred to the master device 10 by the slave device (S_H_2) 100 ̇ ̇ slave device (S_H_n) 100 and the slave device (S_L_1) 100 ̇ ̇ slave device (S_L_m) 100.

在從設備(S_H_n)100,亦進行相同的動作(第 3圖之(d)、(e))。 In the slave device (S_H_n) 100, the same action is also performed (the 3 (d), (e)).

藉由以上方式,可使高優先順位訊框在高優先順位通訊的週期T_H(動態通訊的通訊週期)的完成前到達主設備10(第3圖之(f))。 By the above means, the high priority sequence frame can be reached to the master device 10 before the completion of the period T_H (dynamic communication communication period) of the high priority order communication (Fig. 3(f)).

再者,可使低優先順位訊框在低優先順位通訊的週期T_L(場通訊的通訊週期)的完成前到達主設備10(第3圖之(g))。 Furthermore, the low priority sequence frame can be reached to the master device 10 (Fig. 3(g)) before the completion of the period T_L of the low priority order communication (the communication period of the field communication).

接著參照第4圖來說明從設備100的功能構成例。 Next, an example of the functional configuration of the slave device 100 will be described with reference to FIG.

在第4圖中,網路介面(network interface)101係透過網路端口102而與主設備10側的線路(順向的線路)進行通訊訊框的傳送接收。 In Fig. 4, the network interface 101 transmits and receives communication frames to and from the line on the main device 10 side (the forward line) through the network port 102.

同樣地,網路介面104係透過網路端口103而與主設備10相反側的線路(反向的線路)進行通訊訊框的傳送接收。 Similarly, the network interface 104 transmits and receives the communication frame through the network port 103 to the line (reverse line) on the opposite side of the host device 10.

網路介面101係將在網路端口103所接收的通訊訊框,從網路端口102傳送至順向的線路。 The network interface 101 transmits the communication frame received at the network port 103 from the network port 102 to the forward line.

此外,網路介面101係將在後述之通訊訊框產生部109所產生的通訊訊框,從網路端口102傳送至順向的線路。 Further, the network interface 101 transmits a communication frame generated by the communication frame generating unit 109, which will be described later, from the network port 102 to the forward line.

此外,網路介面104係在進行反向傳送時,將在網路端口102所接收的通訊訊框從網路端口103傳送至反向的線路。 In addition, the network interface 104 transmits the communication frame received at the network port 102 from the network port 103 to the reverse line when performing reverse transmission.

此外,網路介面104係在進行反向傳送時,將在通訊訊框產生部109所產生的通訊訊框從網路端口103傳送至反向的線路。 In addition, the network interface 104 transmits the communication frame generated by the communication frame generating unit 109 from the network port 103 to the reverse line when performing reverse transmission.

網路端口102係與順向的線路連接,用以將通訊訊框朝順向傳送。 The network port 102 is connected to the forward line for transmitting the communication frame in the forward direction.

網路端口102係相當於第1通訊端口之例。 The network port 102 is equivalent to the first communication port.

網路端口103係與反向的線路連接,用以將通訊訊框朝反向傳送。 The network port 103 is connected to the reverse line for transmitting the communication frame in the reverse direction.

網路端口103係相當於第2通訊端口之例。 The network port 103 is equivalent to the second communication port.

通訊訊框產生部109係產生發給主設備10的通訊訊框。 The communication frame generating unit 109 generates a communication frame to be transmitted to the host device 10.

只要從設備100為用以進行動態通訊的從設備,則通訊訊框產生部109即用以產生動態通訊訊框。 The communication frame generating unit 109 is configured to generate a dynamic communication frame as long as the slave device 100 is a slave device for performing dynamic communication.

只要從設備100為用以進行場通訊的從設備,則通訊訊框產生部109即用以產生場通訊訊框。 The communication frame generating unit 109 is configured to generate a field communication frame as long as the slave device 100 is a slave device for performing field communication.

網路構成資訊管理部108係管理屬於關於環狀網路之網路構成之資訊的網路構成資訊。 The network configuration information management unit 108 manages network composition information pertaining to information on the network configuration of the ring network.

在網路構成資訊中,例如,係包含在順向介設於從設備100與主設備10之間之節點(node)數、及在反向介設於從設備100與主設備10之間之節點數的資訊。 In the network configuration information, for example, it is included in the number of nodes that are disposed between the slave device 100 and the master device 10 in the forward direction, and is interposed between the slave device 100 and the master device 10 in the reverse direction. Information on the number of nodes.

計時器部(timer)107係供給計時器資訊至傳送調解部106。計時器資訊的詳細內容將於後陳述。 The timer unit 107 supplies timer information to the transfer mediation unit 106. The details of the timer information will be stated later.

傳送調解部106係進行在通訊訊框產生部109所產生之發給主設備10的通訊訊框、與自網路端口103所接收之發給主設備10的通訊訊框之間的調解。 The transfer mediation unit 106 performs mediation between the communication frame sent to the host device 10 generated by the communication frame generating unit 109 and the communication frame transmitted from the network port 103 to the host device 10.

換言之,傳送調解部106係在高優先順位訊框的傳送與低優先順位訊框的傳送競合時,進行高優先順位訊框與低優先順位訊框之間的調解。 In other words, the delivery mediation unit 106 performs mediation between the high priority sequence frame and the low priority sequence frame when the transmission of the high priority frame and the transmission of the low priority frame are coordinated.

在第1圖及第2圖的網路構成中,係在進行動態通訊的從 設備100(從設備(S_H_1)100˙˙˙從設備(S_H_n)100,高優先順位訊框的傳送與低優先順位訊框的傳送進行競合。 In the network configuration of Fig. 1 and Fig. 2, it is the slave that performs dynamic communication. The device 100 (slave device (S_H_1) 100 ̇ ̇ ̇ slave device (S_H_n) 100, the transmission of the high priority sequence frame and the transmission of the low priority sequence frame.

換言之,進行動態通訊之從設備100的傳送調解部106,係進行在通訊訊框產生部109所產生之高優先順位訊框與自網路端口103所接收之低優先順位訊框之間的調解。 In other words, the transmission mediation unit 106 of the slave device 100 that performs dynamic communication performs mediation between the high priority sequence frame generated by the frame generation unit 109 and the low priority frame received from the network port 103. .

此外,在第8圖所示的網路構成中,係在進行場通訊的從設備100(從設備(S_L_1)100˙˙˙從設備(S_L_m)100,高優先順位訊框的傳送與低優先順位訊框的傳送進行競合。 In addition, in the network configuration shown in FIG. 8, the slave device 100 (slave device (S_L_1) 100 ̇ ̇ ̇ slave device (S_L_m) 100, which performs field communication, transmits and low priority to the high priority frame. The transmission of the frame is used for competition.

換言之,進行場通訊之從設備100的傳送調解部106,係進行在通訊訊框產生部109所產生之低優先順位訊框與自網路端口103所接收之高優先順位訊框之間的調解。 In other words, the transmission mediation unit 106 of the slave device 100 for performing field communication performs mediation between the low priority frame generated by the frame generation unit 109 and the high priority frame received from the network port 103. .

另外,無論是第1圖及第2圖之網路構成、還是第8圖的網路構成,任何一者在網路的性質上,都不會產生高優先順位訊框彼此的競合、低優先順位訊框彼此的競合。 In addition, whether it is the network composition of Figure 1 and Figure 2 or the network composition of Figure 8, no one will have a high-priority frame with each other in the nature of the network. Match the frames to each other.

緩衝器(buffer)105係為用以將傳送調解部106保留傳送的通訊訊框予以暫時儲存的記憶區域。 The buffer 105 is a memory area for temporarily storing the communication frame reserved by the transmission mediation unit 106.

***動作的說明*** *** Description of action***

接著使用第5圖、第6圖及第7圖來說明傳送調解部106之動作的詳細內容。 Next, the details of the operation of the transfer mediation unit 106 will be described using FIG. 5, FIG. 6, and FIG.

在第5圖中,首先,傳送調解部106係確認是否有通訊訊框的傳送要求(S201)。 In Fig. 5, first, the transfer mediation unit 106 confirms whether or not there is a transmission request of the communication frame (S201).

換言之,傳送調解部106係確認是否已藉由通訊訊框產生部109產生了通訊訊框、是否已在網路介面104接收了通訊訊框。 In other words, the transmission mediation unit 106 confirms whether the communication frame has been generated by the communication frame generating unit 109, and whether the communication frame has been received on the network interface 104.

在S201中有傳送要求時(在S201為YES(是)),傳送調解部106係確認網路介面101是否正在從網路端口102傳送通訊訊框(S202)。 When there is a transmission request in S201 (YES in S201), the transmission mediation unit 106 confirms whether or not the network interface 101 is transmitting a communication frame from the network port 102 (S202).

另一方面,在S201中沒有傳送要求時(在S201為NO(否)),傳送調解部106係重複S201的判定。 On the other hand, when there is no transmission request in S201 (NO in S201), the transmission mediation unit 106 repeats the determination of S201.

在S202中非為傳送通訊訊框期間時(在S202為NO),傳送調解部106係執行有傳送要求之通訊訊框的傳送(S204)。 When the communication frame period is not transmitted in S202 (NO in S202), the transmission mediation unit 106 executes the transmission of the communication frame having the transmission request (S204).

換言之,傳送調解部106係將在通訊訊框產生部109所產生的通訊訊框或在網路介面104所接收的通訊訊框轉送至網路介面101。 In other words, the transmission mediation unit 106 forwards the communication frame generated by the communication frame generating unit 109 or the communication frame received by the network interface 104 to the network interface 101.

再者,傳送調解部106係令網路介面101從網路端口102傳送通訊訊框。 Furthermore, the transport mediation unit 106 causes the network interface 101 to transmit a communication frame from the network port 102.

在S202中網路介面101從網路端口102傳送通訊訊框期間時(在S202為YES),傳送調解部106係確認在低優先順位訊框的傳送期間是否產生了高優先順位訊框的傳送要求(S203)。 When the network interface 101 transmits the communication frame period from the network port 102 in S202 (YES in S202), the transmission mediation unit 106 confirms whether the transmission of the high priority sequence frame is generated during the transmission of the low priority sequence frame. Request (S203).

在S203為Yes時,亦即在低優先順位訊框傳送期間產生了高優先順位訊框的傳送要求時,傳送調解部106係判定在高優先順位訊框的延遲容許時間內,目前傳送中之低優先順位訊框自網路端口102的傳送是否完成(S206)。 When S203 is Yes, that is, when a high priority sequence frame transmission request is generated during the low priority frame transmission, the transmission mediation unit 106 determines that the current priority is within the delay time of the high priority frame. Whether the transmission of the low priority sequence frame from the network port 102 is completed (S206).

關於S206之判定的詳細內容係於後陳述。 The details of the determination of S206 are set forth in the following.

另一方面,在S203為No時,亦即在高優先順位訊框傳送期間產生了低優先順位訊框的傳送要求時,傳送調解 部106係執行S205的處理。 On the other hand, when S203 is No, that is, when a low priority priority frame transmission request is generated during high priority sequence frame transmission, the transmission mediation is performed. The unit 106 performs the processing of S205.

關於S205的處理係於後陳述。 The processing regarding S205 is stated later.

在S206為Yes時,亦即在延遲容許時間內低優先順位訊框自網路端口102的傳送完成時,傳送調解部106係決定持續低優先順位訊框的傳送,且在低優先順位訊框的傳送完成之後將高優先順位訊框從網路端口102進行傳送(S209)。 When Yes in S206, that is, when the transmission of the low priority frame from the network port 102 is completed within the delay allowable time, the transmission mediation unit 106 determines to continue the transmission of the low priority frame, and in the low priority frame. After the transfer is completed, the high priority sequence frame is transmitted from the network port 102 (S209).

之後,傳送調解部106將處理返回S201。 Thereafter, the transfer mediation unit 106 returns the process to S201.

另外,被保留傳送的高優先順位訊框,係儲存於緩衝器105直到低優先順位訊框的傳送完成。 In addition, the high priority sequence frame that is reserved for transmission is stored in the buffer 105 until the transmission of the low priority frame is completed.

此外,傳送調解部106係低優先順位訊框的傳送一完成,就將緩衝器105內之高優先順位訊框轉送至網路介面101。 In addition, the transmission mediation unit 106 forwards the high priority sequence frame in the buffer 105 to the network interface 101 as soon as the transmission of the low priority frame is completed.

再者,傳送調解部106係令網路介面101從網路端口102傳送高優先順位訊框。 Furthermore, the transport mediation unit 106 causes the network interface 101 to transmit a high priority sequence frame from the network port 102.

S206為No時,亦即延遲容許時間內低優先順位訊框自網路端口102的傳送未完成時,傳送調解部106係決定中止低優先順位訊框的傳送,且開始高優先順位訊框自網路端口102的傳送(S207)。 When S206 is No, that is, when the transmission of the low priority frame from the network port 102 is not completed within the delay allowable time, the transmission mediation unit 106 determines to suspend the transmission of the low priority frame and starts the high priority frame. Transmission of the network port 102 (S207).

換言之,傳送調解部106係指示網路介面101中止低優先順位訊框的傳送,且將高優先順位訊框轉送至網路介面101。 In other words, the transmission mediation unit 106 instructs the network interface 101 to suspend the transmission of the low priority sequence frame and forward the high priority sequence frame to the network interface 101.

再者,傳送調解部106係令網路介面101從網路端口102傳送高優先順位訊框。 Furthermore, the transport mediation unit 106 causes the network interface 101 to transmit a high priority sequence frame from the network port 102.

低優先順位訊框的未傳送部分,係儲存於緩衝器105。 The untransmitted portion of the low priority frame is stored in the buffer 105.

之後,傳送調解部106係進行S208的處理,惟S208的詳細內容將於後陳述。 Thereafter, the transfer mediation unit 106 performs the processing of S208, but the details of S208 will be described later.

接著使用第6圖來說明在S205進行的處理。 Next, the processing performed at S205 will be described using FIG.

S205係在高優先順位訊框的傳送期間產生了低優先順位訊框的傳送要求時進行。 S205 is performed when a low priority frame transmission request is generated during the transmission of the high priority frame.

在S2051中,傳送調解部106係判定是否可使低優先順位訊框藉由反向傳送方式傳送低優先順位訊框比起藉由順向傳送方式傳送時更快地使低優先順位訊框到達主設備10。 In S2051, the transmission mediation unit 106 determines whether the low priority sequence frame can be transmitted by the reverse transmission mode to transmit the low priority sequence frame faster than when the low priority priority frame is transmitted by the forward transmission mode. Master device 10.

關於S2051的詳細內容係於後陳述。 The details of S2051 are set forth in the following.

S2051的詳細內容為YES時,亦即可使低優先順位訊框以反向傳送比起順向傳送更快地到達主設備10時,傳送調解部106係決定從屬於反向之通訊端口的網路端口103傳送低優先順位訊框(S2053)。 When the details of S2051 are YES, the low priority priority frame can be forwarded to the master device 10 more quickly than the forward transmission. The transmission mediation unit 106 determines the network that belongs to the reverse communication port. The way port 103 transmits a low priority sequence frame (S2053).

換言之,傳送調解部106係將低優先順位訊框傳送至網路介面104。 In other words, the delivery mediation unit 106 transmits the low priority sequence frame to the network interface 104.

再者,傳送調解部106係令網路介面104從網路端口103傳送低優先順位訊框。 Furthermore, the delivery mediation unit 106 causes the network interface 104 to transmit a low priority sequence frame from the network port 103.

另一方面,S2051為NO時,亦即在可使低優先順位訊框以順向傳送比起反向傳送更快地到達主設備10時,或者,在無論順向傳送或是反向傳送,低優先順位訊框到達主設備10均相同時,傳送調解部106係決定在高優先順位訊框的傳送完成後從網路端口102傳送低優先順位訊框(S2052)。 On the other hand, when S2051 is NO, that is, when the low priority sequence frame can be transmitted in the forward direction to reach the master device 10 faster than the reverse transmission, or in the forward transmission or the reverse transmission, When the low priority frame arrives at the same master device 10, the transmission mediation unit 106 determines to transmit the low priority frame from the network port 102 after the transmission of the high priority frame is completed (S2052).

被保留傳送的低優先順位訊框,係儲存於緩衝器105直到高優先順位訊框的傳送完成。 The low priority sequence frame that is reserved for transmission is stored in the buffer 105 until the transmission of the high priority sequence frame is completed.

此外,傳送調解部106係高優先順位訊框的傳送一完成, 就將緩衝器105內之低優先順位訊框轉送至網路介面101。 In addition, the transmission mediation unit 106 performs the transmission of the high priority sequence frame. The low priority frame within the buffer 105 is forwarded to the network interface 101.

再者,傳送調解部106係令網路介面101從網路端口102傳送低優先順位訊框。 Furthermore, the delivery mediation unit 106 causes the network interface 101 to transmit a low priority sequence frame from the network port 102.

接著,關於S2051的詳細內容係於後陳述。 Next, the details of S2051 are set forth in the following.

傳送調解部106係以網路構成資訊為依據,計算自從設備100開始低優先順位訊框的傳送起,直到低優先順位訊框的前頭1位元(bit)送達主設備10為止之所需時間,亦即網路中繼時間。 The transmission mediation unit 106 calculates the time required from the transmission of the low priority frame from the device 100 until the first bit of the low priority frame is delivered to the master device 10 based on the network composition information. , that is, network relay time.

在此,將從設備100從網路端口102傳送低優先順位訊框起直到低優先順位訊框到達主設備10為止的所需時間設為tp_n。 Here, the time required for the slave device 100 to transmit the low priority frame from the network port 102 until the low priority frame reaches the master device 10 is set to tp_n.

此外,將從設備100從網路端口103傳送低優先順位訊框起直到低優先順位訊框到達主設備10為止的所需時間設為tp_f。 In addition, the time required for the slave device 100 to transmit the low priority frame from the network port 103 until the low priority frame reaches the master device 10 is set to tp_f.

傳送調解部106係可從網路構成資訊,得知在順向介設於從設備100與主設備10之間之從設備的個數、在反向介設於從設備100與主設備10之間之從設備的個數。 The transmission mediation unit 106 can form information from the network, and knows the number of slave devices that are interposed between the slave device 100 and the master device 10 in the forward direction, and is disposed in the reverse direction between the slave device 100 and the master device 10. The number of slave devices.

此外,傳送調解部106係可從網路構成資訊得知是否介設有網路開關(network switch)。 In addition, the transmission mediation unit 106 can learn from the network configuration information whether or not a network switch is provided.

此外,傳送調解部106係可從網路構成資訊得知在與主設備10之間介設之其他從設備100的中繼處理所需的時間、在網路開關之中繼處理所需的時間。 In addition, the transmission mediation unit 106 can know the time required for the relay processing of the other slave devices 100 interposed between the master device 10 and the time required for the relay processing of the network switch from the network configuration information. .

此外,傳送調解部106係可從網路構成資訊得知從設備間之網路纜線(cable)長度及網路開關間之網路纜線長度。 In addition, the transmission mediation unit 106 can know the length of the network cable between the devices and the network cable length between the network switches from the network configuration information.

此外,在計時器資訊中,係顯示有自低優先順位訊框的傳送要求產生起直到目前傳送中之高優先順位訊框的傳送完成為止的時間t_c。 Further, in the timer information, the time t_c from the transmission request of the low priority frame until the transmission of the high priority frame in the current transmission is completed is displayed.

傳送調解部106係於tp_f<tp_n+t_c時,在S2051判定為YES。 When the transfer mediation unit 106 is tp_f<tp_n+t_c, it is determined as YES in S2051.

此外,傳送調解部106係於tp_f>tp_n+t_c時,在S2051判定為NO。 Further, when the transfer mediation unit 106 is tp_f>tp_n+t_c, it is determined to be NO in S2051.

另外,傳送調解部106亦可藉由下述的方法來算出網路中繼時間,以取代利用網路構成資訊來算出網路中繼時間。 Further, the transmission mediation unit 106 can calculate the network relay time by the following method, instead of calculating the network relay time by using the network configuration information.

例如,在初期化的階段中,主設備10測量直到各從設備100為止的網路中繼時間,且從主設備10,將主設備10與各從設備100之間的網路中繼時間通知所有的從設備100。 For example, in the initial stage, the master device 10 measures the network relay time up to each slave device 100, and from the master device 10, notifies the network relay time between the master device 10 and each slave device 100. All slave devices 100.

再者,傳送調解部106係使用從主設備10所通知的主設備10與從設備100之間的網路中繼時間,在S2051中算出網路中繼時間。 Furthermore, the transmission mediation unit 106 uses the network relay time between the master device 10 and the slave device 100 notified from the master device 10, and calculates the network relay time in S2051.

接下來敘述S206的判定。 Next, the determination of S206 will be described.

傳送調解部106係進行從網路構成資訊管理部108所輸入之網路構成資訊、與從計時器部107所輸入之計時器資訊來進行S206的判定。 The transfer mediation unit 106 performs network configuration information input from the network configuration information management unit 108 and timer information input from the timer unit 107 to determine S206.

網路構成資訊係與上述相同。 The network composition information is the same as above.

在計時器資訊中,係顯示動態通訊之通訊週期的剩餘時間t_r。 In the timer information, the remaining time t_r of the communication cycle of the dynamic communication is displayed.

此外,在S206的判定中,傳送調解部106係算出直到目 前傳送中之低優先順位訊框之傳送完成為止的時間t_s。 Further, in the determination of S206, the transfer mediation unit 106 calculates the result until the mesh The time t_s until the transmission of the low priority frame in the previous transmission is completed.

傳送調解部106係可將低優先順位訊框內之未傳送資料的資料量除以通訊速度而獲得時間t_s。 The transmission mediation unit 106 can obtain the time t_s by dividing the data amount of the untransmitted data in the low priority frame by the communication speed.

再者,t_r≧tp_n+t_s時,即使保留高優先順位訊框的傳送,亦可在動態通訊的通訊周期的完成前將高優先順位訊框送達主設備10,因此傳送調解部106係在S206判定為YES。 Furthermore, when t_r≧tp_n+t_s, even if the transmission of the high priority sequence frame is retained, the high priority sequence frame can be sent to the master device 10 before the completion of the communication cycle of the dynamic communication, so the transmission mediation unit 106 is in S206. The judgment is YES.

另一方面,t_r<tp_n+t_s時,當保留高優先順位訊框的傳送時,由於無法在動態通訊之通訊週期的完成前將高優先順位訊框送達主設備10,因此傳送調解部106係在S206判定為NO。 On the other hand, when t_r<tp_n+t_s, when the transmission of the high priority sequence frame is reserved, since the high priority sequence frame cannot be sent to the master device 10 before the completion of the communication cycle of the dynamic communication, the transmission mediation unit 106 It is judged as NO at S206.

接著參照第7圖來說明S208的處理。 Next, the processing of S208 will be described with reference to Fig. 7.

S208係在為了傳送高優先順位訊框而中斷低優先順位訊框的傳送時進行。 S208 is performed when the transmission of the low priority frame is interrupted in order to transmit the high priority frame.

在S2081中,傳送調解部106係判定是否可使低優先順位訊框在以反向傳送方式傳送低優先順位訊框比起以順向傳送方式傳送時更快地到達主設備10。 In S2081, the transmission mediation unit 106 determines whether the low priority sequence frame can be transmitted to the master device 10 faster than when the low priority frame is transmitted in the reverse transmission mode as compared to the forward transmission mode.

關於S2081的詳細內容係於後陳述。 The details of S2081 are set forth in the following.

S2081為YES時,亦即,在可使剩餘的低優先順位訊框在反向傳送比起順向傳送更快地到達主設備10時,傳送調解部106係決定將剩餘的低優先順位訊框從屬於反向的通訊端口之網路端口103進行傳送(S2083)。 When S2081 is YES, that is, when the remaining low priority frame is transmitted to the host device 10 faster than the forward transmission, the transmission mediation unit 106 determines to set the remaining low priority frame. The network port 103 belonging to the reverse communication port transmits (S2083).

換言之,傳送調解部106係將剩餘的低優先順位訊框轉送至網路介面104。 In other words, the delivery mediation unit 106 forwards the remaining low priority frame to the network interface 104.

再者,傳送調解部106係令網路介面104從網路端口103傳送剩餘的低優先順位訊框。 Furthermore, the transport mediation unit 106 causes the network interface 104 to transmit the remaining low priority sequence frames from the network port 103.

另一方面,S2081為NO時,亦即,在可使剩餘的低優先順位訊框在順向傳送比起反向傳送更快地到達主設備10時,或者,無論是順向傳送或反向傳送,剩餘的低優先順位訊框同到達主設備10均相同時,傳送調解部106係決定在高優先順位訊框的傳送完成後將剩餘的低優先順位訊框從網路端口102進行傳送(S2082)。 On the other hand, when S2081 is NO, that is, when the remaining low priority frame can be transmitted to the host device 10 in the forward direction faster than the reverse transmission, or whether it is forward transmission or reverse When the remaining low priority frame is the same as the arrival of the master device 10, the transmission mediation unit 106 determines to transfer the remaining low priority frame from the network port 102 after the transmission of the high priority frame is completed ( S2082).

被保留傳送之剩餘的低優先順位訊框係儲存於緩衝器105直到高優先順位訊框的傳送完成。 The remaining low priority sequence frames that are reserved for transmission are stored in buffer 105 until the transmission of the high priority sequence frame is completed.

此外,傳送調解部106係高優先順位訊框的傳送一完成,就將緩衝器105內之剩餘的低優先順位訊框轉送至網路介面101。 In addition, the transfer mediation unit 106 forwards the remaining low priority sequence frames in the buffer 105 to the network interface 101 as soon as the transmission of the high priority sequence frame is completed.

再者,傳送調解部106係令網路介面101從網路端口102傳送剩餘的低優先順位訊框。 Furthermore, the transport mediation unit 106 causes the network interface 101 to transmit the remaining low priority sequence frames from the network port 102.

接著說明S2081的詳細內容。 Next, the details of S2081 will be described.

網路構成資訊係與在S2051所說明者相同。 The network composition information is the same as that described in S2051.

計時器資訊係顯示有自中斷低優先順位訊框的傳送起至目前傳送中之高優先順位訊框傳送完成為止的時間t_d。 The timer information indicates the time t_d from the transmission of the interrupted low priority frame to the completion of the high priority frame transmission in the current transmission.

tp_f<tp_n+t_d時,由於係以從網路端口103傳送低優先順位訊框,更可使低優先順位訊框更快地到達主設備10,因此S2081的判定成為YES。 When tp_f<tp_n+t_d, since the low priority frame is transmitted from the network port 103, the low priority frame can be made to reach the master device 10 more quickly, so the determination of S2081 becomes YES.

另一方面,tp_f>tp_n+t_d時,由於係以在高優先順位訊框的傳送完成之後從網路端口102傳送低優先順位訊框,更可使低優先順位訊框更快地到達主設備10,因此S2081的判定成為NO。 On the other hand, when tp_f>tp_n+t_d, the lower priority frame is transmitted to the master device faster because the low priority frame is transmitted from the network port 102 after the transmission of the high priority frame is completed. 10, so the determination of S2081 becomes NO.

另外,在S2081中,亦為傳送調解部106藉由下述的方法來算出網路中繼時間,以取代利用網路構成資訊來算出網路中繼時間。 Further, in S2081, the transmission mediation unit 106 calculates the network relay time by the following method, instead of calculating the network relay time by using the network configuration information.

例如,在初期化的階段中,主設備10測量直到各從設備100為止的網路中繼時間,且從主設備10,將主設備10與各從設備100之間的網路中繼時間通知所有的從設備100。 For example, in the initial stage, the master device 10 measures the network relay time up to each slave device 100, and from the master device 10, notifies the network relay time between the master device 10 and each slave device 100. All slave devices 100.

再者,傳送調解部106係使用從主設備10所通知的主設備10與從設備100之間的網路中繼時間,在S2081中算出網路中繼時間。 Furthermore, the transfer mediation unit 106 uses the network relay time between the master device 10 and the slave device 100 notified from the master device 10, and calculates the network relay time in S2081.

***實施形態之效果的說明*** *** Description of the effect of the implementation form***

綜上所述,依據本實施形態,在高優先順位訊框的傳送與低優先順位訊框的傳送競合時,可藉由反向傳送方式傳送低優先順位訊框。 In summary, according to the embodiment, when the transmission of the high priority frame and the transmission of the low priority frame are cooperating, the low priority frame can be transmitted by the reverse transmission mode.

因此,依據本實施形態,可依據高優先順位訊框的傳送狀況,彈性地選擇低優先順位訊框的傳送路徑,且可一面優先進行高優先順位訊框的傳送,亦一面有效率地進行低優先順位訊框的傳送。 Therefore, according to the embodiment, the transmission path of the low priority frame can be flexibly selected according to the transmission status of the high priority frame, and the high priority frame can be preferentially transmitted while being efficiently performed. Priority transmission of the frame.

因此,既可維持動態通訊的實時性,又可抑制場通訊之完成時間的延遲。 Therefore, the real-time performance of the dynamic communication can be maintained, and the delay of the completion time of the field communication can be suppressed.

***硬體構成例的說明*** *** Description of the hardware configuration example***

最後,參照第9圖來說明從設備100的硬體構成例。 Finally, an example of the hardware configuration of the slave device 100 will be described with reference to FIG.

從設備100係電腦。 The slave device 100 is a computer.

從設備100係具備處理器(processor)901、輔助記憶裝置902、記憶體(memory)903、網路介面904、輸入介面905、 顯示器(display)介面906的硬體。 The slave device 100 includes a processor 901, a secondary storage device 902, a memory 903, a network interface 904, an input interface 905, and The hardware of the display interface 906.

處理器901係透過訊號線910而與其他硬體連接,用以控制該等其他硬體。 The processor 901 is connected to other hardware through the signal line 910 for controlling the other hardware.

輸入介面905係連接於輸入裝置907。 The input interface 905 is connected to the input device 907.

顯示器介面906係連接於顯示器908。 Display interface 906 is coupled to display 908.

處理器901係進行處理(processing)的IC(Integrated Circuit,積體電路)。 The processor 901 is an IC (Integrated Circuit) that performs processing.

處理器901係例如為CPU(Central Processing Unit,中央處理單元)、DSP(Digital Signal Processor,數位訊號處理器)、GPU(Graphics Processing Unit,圖形處理單元)。 The processor 901 is, for example, a CPU (Central Processing Unit), a DSP (Digital Signal Processor), and a GPU (Graphics Processing Unit).

輔助記憶裝置902係例如為ROM(Read Only Memory,唯讀記憶體)、快閃記憶體(Flash Memory)、HDD(Hard Disk Drive,硬碟驅動器)。 The auxiliary memory device 902 is, for example, a ROM (Read Only Memory), a flash memory (Flash Memory), or an HDD (Hard Disk Drive).

記憶體903係例如為RAM(Random Access Memory,隨機存取記憶體)。 The memory 903 is, for example, a RAM (Random Access Memory).

第4圖之緩衝器105及網路構成資訊管理部108係例如以輔助記憶裝置902來實現。 The buffer 105 and the network configuration information management unit 108 of Fig. 4 are realized by, for example, the auxiliary storage device 902.

網路介面904係包含接收資料的接收器(receiver)9041及傳送資料的傳送器(transmitter)9042。 The network interface 904 includes a receiver 9041 that receives data and a transmitter 9042 that transmits data.

網路介面904係相當於第4圖之網路介面101及網路介面104。 The network interface 904 is equivalent to the network interface 101 and the network interface 104 of FIG.

網路介面904係例如為通訊晶片(chip)或NIC(Network Interface Card,網路介面卡)。 The network interface 904 is, for example, a communication chip or a NIC (Network Interface Card).

輸入介面905係為供輸入裝置907之纜線(cable)911連 接的端口(port)。 The input interface 905 is a cable 911 connection for the input device 907. Connected port.

輸入介面905係例如為USB(Universal Serial Bus,通用序列匯流排)端子。 The input interface 905 is, for example, a USB (Universal Serial Bus) terminal.

顯示器介面906係為供顯示器908之纜線912連接的端口。 Display interface 906 is a port for cable 912 of display 908.

顯示器介面906係例如為USB端子或HDMI(註冊商標)(High Definition Multimedia Interface,高解析度多媒體介面)端子。 The display interface 906 is, for example, a USB terminal or an HDMI (registered trademark) (High Definition Multimedia Interface) terminal.

輸入裝置907係例如為滑鼠(mouse)、鍵盤(keyboard)或觸控面板(touch panel)。 The input device 907 is, for example, a mouse, a keyboard, or a touch panel.

顯示器908係例如為LCD(Liquid Crystal Display,液晶顯示器)。 The display 908 is, for example, an LCD (Liquid Crystal Display).

在輔助記憶裝置902中,係記憶有用以實現第4圖所示之傳送調解部106、計時器部107、通訊訊框產生部109(將此等統稱為「部」)之功能的程式。 In the auxiliary memory device 902, a program for realizing the functions of the transfer mediation unit 106, the timer unit 107, and the communication frame generating unit 109 (referred to collectively as "parts") shown in Fig. 4 is stored.

此程式係載入於記憶體903,且被讀入於處理器901,而藉由處理器901來執行。 This program is loaded into the memory 903 and is read into the processor 901 and executed by the processor 901.

再者,在輔助記憶裝置902中,亦記憶有OS(Operating System,操作系統)。 Further, in the auxiliary storage device 902, an OS (Operating System) is also stored.

再者,OS的至少一部份被載入於記憶體903,處理器901係一面執行OS,一面執行用以實現「部」之功能的程式。 Further, at least a part of the OS is loaded in the memory 903, and the processor 901 executes a program for realizing the function of the "part" while executing the OS.

在第9圖中,雖圖示有一個處理器901,但從設備100亦可具備複數個處理器901。 In the ninth figure, although one processor 901 is illustrated, the slave device 100 may be provided with a plurality of processors 901.

再者,亦可協同作業執行複數個處理器901實現「部」之功能的程式。 Furthermore, a program in which a plurality of processors 901 implement the function of "part" can be executed in cooperation.

此外,顯示「部」之處理之結果的資訊或資料或訊號值或變數值,係記憶於記憶體903、輔助記憶裝置902、或處理器901內的記錄器(registor)或快取記憶體(cashe memory)。 In addition, the information or data or signal value or variable value indicating the result of the processing of the "part" is stored in the memory 903, the auxiliary memory device 902, or the recorder or the cache memory in the processor 901 ( Cashe memory).

此外,用以實現「部」之功能的程式,係被記憶於磁碟、軟碟(flexible disk)、光磁碟、CD(compact disk,光碟)、藍光(blue-ray)(註冊商標)磁碟、DVD(Digital Versatile Disc,數位化多功能光碟)等的記憶媒體。 In addition, the program for realizing the functions of the "part" is stored on a magnetic disk, a flexible disk, a magneto-optical disk, a CD (compact disk), and a blue-ray (registered trademark) magnet. Memory media such as discs and DVDs (Digital Versatile Disc).

「部」亦可以「電路圖(circuitry)」來提供。 "Min" can also be provided by "circuitry".

此外,「部」亦可改稱為「電路」或「步驟」或「順序」或「處理」。 In addition, "Min" may also be referred to as "circuit" or "step" or "sequence" or "processing".

「電路」及「電路圖」係為不僅包含有處理器901,亦且包含有邏輯(logic)IC或GA(Gate Array,閘陣列)或ASIC(Application Specific Integrated Circuits,特殊應用積體電路)或FPGA(Field-Programmable Gate Array,現場可程式閘陣列)之類之其他種類的處理電路的概念。 The "circuit" and "circuit diagram" include not only the processor 901 but also a logic IC or a GA (Gate Array) or an ASIC (Application Specific Integrated Circuits) or an FPGA. (Other types of processing circuits such as Field-Programmable Gate Array).

10‧‧‧主設備 10‧‧‧Master equipment

100‧‧‧從設備 100‧‧‧ slave equipment

1000‧‧‧環狀網路 1000‧‧‧ ring network

Claims (7)

一種從設備,包含在包括有主設備與複數個從設備,且設定有順向與反向作為從前述複數個從設備傳送通訊訊框至前述主設備的方向的環狀網路中,該從設備係具有:第1通訊端口,其係將通訊訊框朝前述順向傳送;第2通訊端口,其係將通訊訊框朝前述反向傳送;及傳送調解部,在對於前述主設備進行屬於高優先順位之通訊訊框之高優先順位訊框的傳送與對於前述主設備進行屬於低優先順位之通訊訊框之低優先順位訊框的傳送競合時,決定從前述第1通訊端口傳送前述高優先順位訊框,且決定要藉由在前述高優先順位訊框自前述第1通訊端口的傳送完成之後,從前述第1通訊端口傳送前述低優先順位訊框的順向傳送、及前述高優先順位訊框自前述第1通訊端口的傳送完成之前從前述第2通訊端口傳送前述低優先順位訊框的反向傳送的哪一者來傳送前述低優先順位訊框。 A slave device is included in a ring network including a master device and a plurality of slave devices, and configured with forward and reverse directions as a direction for transmitting a communication frame from the plurality of slave devices to the master device, the slave The device has: a first communication port, which transmits the communication frame in the forward direction; a second communication port, which transmits the communication frame in the reverse direction; and a transmission mediation unit that belongs to the foregoing main device When the high-priority sequence frame of the high-priority message frame is transmitted and the low-priority frame of the low-priority frame is transmitted to the master device, the transmission is determined to be transmitted from the first communication port. Priority ordering, and determining to transmit the forward transmission of the low priority frame from the first communication port and the high priority by transmitting the high priority message frame from the first communication port Which of the reverse transmissions of the low priority sequence frame is transmitted from the second communication port before the transmission of the first communication port is completed to transmit the low priority First, the message frame. 根據申請專利範圍第1項之從設備,其中前述傳送調解部係在藉由前述反向傳送方式傳送前述低優先順位訊框時之前述低優先順位訊框到達前述主設備,比藉由前述順向傳送方式傳送前述低優先順位訊框時之前述低優先順位訊框到達前述主設備更快時,決定藉由前述反向傳送方式傳送前述低優先順位訊框;且在藉由前述反向傳送方式傳送前述低優先順位訊框時之前述低優先順位訊框到達前述主設備,未比藉由前述順向 傳送方式傳送前述低優先順位訊框時之前述低優先順位訊框到達前述主設備更快時,決定藉由前述順向傳送方式傳送前述低優先順位訊框。 According to the slave device of claim 1, wherein the foregoing transmission mediation unit reaches the foregoing primary device when the low priority sequence frame is transmitted by the reverse transmission mode, and the foregoing When the low priority sequence frame when transmitting the low priority sequence frame to the transmission mode arrives at the master device faster, it is determined that the low priority sequence frame is transmitted by using the reverse transmission mode; and the reverse transmission is performed by the foregoing reverse transmission. The manner in which the low priority order frame of the low priority order frame is transmitted to the foregoing main device is not higher than the foregoing forward direction When the low priority priority frame of the low priority priority frame is transmitted to the master device, the low priority priority frame is transmitted by the forward transmission mode. 根據申請專利範圍第1項之從設備,其中前述傳送調解部係在前述高優先順位訊框自前述第1通訊端口傳送期間需要傳送前述低優先順位訊框時,決定繼續從前述第1通訊端口傳送前述高優先順位訊框,且決定要藉由前述順向傳送與前述反向傳送的哪一者來傳送前述低優先順位訊框。 The slave device of claim 1, wherein the transfer mediation unit determines to continue from the first communication port when the low priority frame needs to be transmitted during the transmission of the high priority sequence frame from the first communication port. Transmitting the high priority sequence frame and determining which one of the foregoing reverse transmissions is to be transmitted by the forward transmission and the low priority order frame. 根據申請專利範圍第1項之從設備,其中前述傳送調解部係在前述低優先順位訊框自前述第1通訊端口傳送期間需要傳送前述高優先順位訊框時,決定中止從前述第1通訊端口傳送前述低優先順位訊框,且開始從前述第1通訊端口傳送前述高優先順位訊框,且決定要藉由前述順向傳送與前述反向傳送的哪一者來傳送前述低優先順位訊框。 The slave device of claim 1, wherein the transfer mediation unit determines to suspend the first communication port when the high priority sequence frame needs to be transmitted during the transfer of the low priority frame from the first communication port. Transmitting the low priority sequence frame, and starting to transmit the high priority sequence frame from the first communication port, and determining which one of the forward transmission is to transmit the low priority frame by the forward transmission and the forward transmission . 根據申請專利範圍第4項之從設備,其中前述傳送調解部係在前述低優先順位訊框自前述第1通訊端口傳送期間需要傳送前述高優先順位訊框時,判定前述低優先順位訊框自前述第1通訊端口的傳送是否在前述高優先順位訊框的延遲容許時間內完成;前述低優先順位訊框自前述第1通訊端口的傳送在前述延遲容許時間內完成時,係決定繼續前述低優先順位訊框自前述第1通訊端口的傳送,且在前述低優先順位訊框自前述第1通訊端口的傳送完成之後,決定從前述第1通訊端口傳送前述高優先順位訊框; 前述低優先順位訊框自前述第1通訊端口的傳送未在前述延遲容許時間內完成時,決定中止前述低優先順位訊框自前述第1通訊端口的傳送,且開始前述高優先順位訊框自前述第1通訊端口的傳送。 The slave device of claim 4, wherein the transport mediation unit determines that the low priority frame is self-transmitting when the low priority frame needs to transmit the high priority frame during transmission from the first communication port Whether the transmission of the first communication port is completed within the delay allowable time of the high priority sequence frame; and when the transmission of the low priority sequence frame from the first communication port is completed within the delay allowable time, the system determines to continue the low Transferring the priority information frame from the first communication port, and after transmitting the low priority information frame from the first communication port, determining to transmit the high priority sequence frame from the first communication port; When the transmission of the low priority frame from the first communication port is not completed within the delay allowable time, determining to suspend transmission of the low priority frame from the first communication port, and starting the high priority frame from The transmission of the aforementioned first communication port. 一種通訊方法,由包含在包括有主設備與複數個從設備,且設定有順向與反向作為從前述複數個從設備傳送通訊訊框至前述主設備的方向的環狀網路中,且具有將通訊訊框朝前述順向傳送之第1通訊端口、及將通訊訊框朝前述反向傳送之第2通訊端口的從設備係進行下列步驟:在對於前述主設備進行屬於高優先順位之通訊訊框之高優先順位訊框的傳送與對於前述主設備進行屬於低優先順位之通訊訊框之低優先順位訊框的傳送競合時;決定從前述第1通訊端口傳送前述高優先順位訊框;及決定要藉由在前述高優先順位訊框自前述第1通訊端口的傳送完成之後從前述第1通訊端口傳送前述低優先順位訊框的順向傳送、及前述高優先順位訊框自前述第1通訊端口的傳送完成之前從前述第2通訊端口傳送前述低優先順位訊框的反向傳送的哪一者來傳送前述低優先順位訊框。 A communication method is included in a ring network including a master device and a plurality of slave devices, and configured with forward and reverse directions as directions for transmitting a communication frame from the plurality of slave devices to the master device, and The slave device having the first communication port for transmitting the communication frame in the forward direction and the second communication port for transmitting the communication frame to the reverse direction performs the following steps: performing a high priority order on the master device When the transmission of the high priority sequence frame of the communication frame coincides with the transmission of the low priority priority frame of the communication frame belonging to the low priority order for the foregoing master device, determining to transmit the high priority sequence frame from the first communication port And determining to transmit the forward transmission of the low priority frame from the first communication port after the completion of the transmission of the high priority frame from the first communication port, and the high priority sequence frame from the foregoing Which of the reverse transmissions of the low priority sequence frame is transmitted from the second communication port before the completion of the transmission of the first communication port to transmit the low priority order Frame. 一種通訊程式產品,令包含在包括有主設備與複數個從設備,且設定有順向與反向作為從前述複數個從設備傳送通訊訊框至前述主設備的方向的環狀網路中,且具有將通訊訊框朝前述順向傳送之第1通訊端口、及將通訊訊框朝前述反向傳送之第2通訊端口之屬於電腦的從 設備執行下列的處理:在對於前述主設備進行屬於高優先順位之通訊訊框之高優先順位訊框的傳送與對於前述主設備進行屬於低優先順位之通訊訊框之低優先順位訊框的傳送競合時,決定從前述第1通訊端口傳送前述高優先順位訊框的處理;且決定要藉由在前述高優先順位訊框自前述第1通訊端口的傳送完成之後從前述第1通訊端口傳送前述低優先順位訊框的順向傳送、及前述高優先順位訊框自前述第1通訊端口的傳送完成之前從前述第2通訊端口傳送前述低優先順位訊框的反向傳送的哪一者來傳送前述低優先順位訊框。 A communication program product for inclusion in a ring network including a master device and a plurality of slave devices, and having forward and reverse directions as directions for transmitting a communication frame from the plurality of slave devices to the master device, And having a first communication port for transmitting the communication frame in the forward direction and a second communication port for transmitting the communication frame to the reverse direction, belonging to the computer The device performs the following processing: transmitting the high priority sequence frame of the communication frame belonging to the high priority order to the foregoing master device and transmitting the low priority priority frame of the communication frame belonging to the low priority order to the foregoing master device When competing, determining to transmit the high priority sequence frame from the first communication port; and determining to transmit the foregoing from the first communication port after completion of the transmission of the high priority sequence frame from the first communication port The forward transmission of the low priority frame and the transmission of the reverse transmission of the low priority frame from the second communication port before the transmission of the high priority frame from the first communication port is completed The aforementioned low priority order frame.
TW104125747A 2015-07-01 2015-08-07 Slave apparatus, and communication method and communication program TW201703467A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2015/069049 WO2017002244A1 (en) 2015-07-01 2015-07-01 Slave apparatus, and communication method and communication program

Publications (1)

Publication Number Publication Date
TW201703467A true TW201703467A (en) 2017-01-16

Family

ID=57609523

Family Applications (1)

Application Number Title Priority Date Filing Date
TW104125747A TW201703467A (en) 2015-07-01 2015-08-07 Slave apparatus, and communication method and communication program

Country Status (2)

Country Link
TW (1) TW201703467A (en)
WO (1) WO2017002244A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06232886A (en) * 1993-02-08 1994-08-19 Nippon Telegr & Teleph Corp <Ntt> Buffer inserting ring network access controller
JPH08191328A (en) * 1995-01-09 1996-07-23 Oki Electric Ind Co Ltd Automatic route selection device
JP4562443B2 (en) * 2004-07-15 2010-10-13 富士通株式会社 Optical transmission system and optical transmission method
JP5320512B2 (en) * 2011-03-28 2013-10-23 パナソニック株式会社 Repeater, repeater control method, and program
JPWO2013129526A1 (en) * 2012-02-29 2015-07-30 日本電気株式会社 Node, ring network, packet transfer method and program

Also Published As

Publication number Publication date
WO2017002244A1 (en) 2017-01-05

Similar Documents

Publication Publication Date Title
US9253287B2 (en) Speculation based approach for reliable message communications
TWI569612B (en) Signaling for transitions between modes of data transmission
JP6275320B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
US10554581B2 (en) Network on chip, communication control method, and controller
JP2011160422A (en) Message passing framework for audio/video streaming in topology of devices
JP2017068345A (en) Bus system
US20230396825A1 (en) Methods and systems for management of a processing offloader
KR20200009830A (en) System including a plurality of display apparatus and control method thereof
JP2017182296A (en) Terminal device control method, terminal device, and program
US20140059250A1 (en) Network system
US10505704B1 (en) Data uploading to asynchronous circuitry using circular buffer control
TW201703467A (en) Slave apparatus, and communication method and communication program
JP2013143653A (en) Information processing apparatus and information processing method
CN106933646B (en) Method and device for creating virtual machine
JP2016045510A (en) Information processing system, information processing apparatus, method of controlling information processing system, and program for controlling information processing apparatus
JP6402576B2 (en) COMMUNICATION DEVICE, INFORMATION PROCESSING DEVICE, INFORMATION PROCESSING SYSTEM, AND COMMUNICATION DEVICE CONTROL METHOD
US20150109913A1 (en) Packet processing apparatus, packet processing method, and non-transitory computer-readable storage medium
Swain et al. Network on chip for consumer electronics devices: An architectural and performance exploration of synchronous and asynchronous network-on-chip-based systems
JP2017204848A (en) Method for controlling slave device
CN105389127A (en) Method and apparatus for transmitting message in storage system, storage system and controller
US9405719B2 (en) Circuitry to generate and/or use at least one transmission time in at least one descriptor
TWI589134B (en) Method, system and computer program product for terminating relay operations in a distributedswitch with cascaded configuration
US11290516B1 (en) Prioritized MSRP transmissions to reduce traffic interruptions
TW201906371A (en) Management device, communication system, management method, and management program product
JP5935599B2 (en) Control device, transmission device, and control method