ABB控制系統(tǒng)用于PFSK115 YM322001-EX卡件
創(chuàng)建事件處理器模塊和某些類型的I/O模塊都能夠創(chuàng)建事件。在以下各節(jié)中,這些I/O模塊稱為SOE模塊。在處理器模塊上創(chuàng)建事件處理器模塊使用全局變量創(chuàng)建事件并將其存儲(chǔ)在緩沖器中,參見第3.4.7章。事件是在用戶程序周期中創(chuàng)建的。在SOE模塊上創(chuàng)建事件SOE模塊可以使用輸入狀態(tài)創(chuàng)建事件。事件是在SOE模塊周期中創(chuàng)建的。SOE模塊將事件存儲(chǔ)在處理器模塊用來讀取事件的中間緩沖區(qū)中。中間緩沖區(qū)是易失性存儲(chǔ)器的一部分,因此,如果電源關(guān)閉,事件就會(huì)丟失。已讀取的每個(gè)事件都可以被新事件覆蓋。系統(tǒng)事件除了記錄全局變量或輸入信號(hào)變化的事件外,處理器和SOE模塊還創(chuàng)建以下類型的系統(tǒng)事件:溢出:由于緩沖區(qū)溢出,某些事件未存儲(chǔ)。溢出事件的時(shí)間戳與導(dǎo)致溢出的事件的時(shí)間戳記相對(duì)應(yīng)。初始化:事件緩沖區(qū)已初始化。操作模式停止:SOE模塊將其操作模式更改為停止。操作模式“運(yùn)行”:SOE模塊將其操作模式更改為“運(yùn)行”。建立通信:處理器模塊和SOE模塊之間的通信已開始。失去通信:處理器模塊和SOE模塊之間的通信被終止。系統(tǒng)事件包含導(dǎo)致事件的模塊的SRS標(biāo)識(shí)符。
狀態(tài)變量
狀態(tài)變量為用戶程序提供標(biāo)量事件的狀態(tài)。以下每個(gè)狀態(tài)都連接到一個(gè)狀態(tài)變量,可以分配一個(gè)BOOL類型的全局變量:超出下限。超出最低限制。超出上限。超出最高限制。當(dāng)達(dá)到相應(yīng)狀態(tài)時(shí),指定的狀態(tài)變量變?yōu)門RUE。3.4.7記錄事件處理器模塊收集事件:由處理器模塊自身創(chuàng)建的I/O模塊創(chuàng)建。處理器模塊將所有事件存儲(chǔ)在其緩沖區(qū)中。緩沖區(qū)是非易失性存儲(chǔ)器的一部分。具有5000個(gè)活動(dòng)的容量。處理器模塊按不同來源的事件到達(dá)的時(shí)間對(duì)其進(jìn)行排列,而不按時(shí)間戳對(duì)其進(jìn)行排序。如果事件緩沖區(qū)已滿,則只要不讀取其他事件并因此標(biāo)記為被覆蓋,就不能存儲(chǔ)任何新事件。OPC服務(wù)器可以讀取事件,并將其提供給外部系統(tǒng)進(jìn)行評(píng)估和存儲(chǔ)。3.4.8協(xié)議和接口通過以太網(wǎng)接口與外部系統(tǒng)通信。這些接口是10/100/1000 BaseT交換機(jī)的一部分。四個(gè)RJ-45連接器位于連接器板上。模塊前板上的LED指示連接狀態(tài)。有關(guān)更多信息,請(qǐng)參閱第3.4.11章。在這些接口上,模塊可以處理以下協(xié)議:安全相關(guān)協(xié)議safeethernet連接到PADT
Creating Events
Both the processor module and certain types of I/O modules are able to create events. In the following sections, these I/O modules are referred to as SOE modules. Creating Events on the Processor Module The processor module uses global variables to create the events and stores them in the buffer, see Chapter 3.4.7. The events are created in the user program cycle. Creating Events on SOE Modules SOE modules can create events using the input states. The events are created in the SOE module cycle. The SOE module stores the events in the intermediate buffer that the processor modules use to read them. The intermediate buffer is part of the volatile memory so that the events are lost if the power is switched off. Every event that has be read can be overwritten by a new event. System Events In addition to events, which records changes of global variables or input signals, processor and SOE modules creates the following types of system events: ? Overflow: Some events were not stored due to buffer overflow. The timestamp of the overflow event corresponds to that of the event causing the overflow. ? Init: The event buffer was initialized. ? Operating mode Stop: A SOE module changed its operating mode to STOP. ? Operating mode 'Run': A SOE module changed its operating mode to Run. ? Establishing communication: Communication between processor module and SOE module has started. ? Losing communication: Communication between processor module and SOE module was terminated. System events contain the SRS identifier of the module causing the events.
Status Variables
Status variables provide the user program with the state of scalar events. Each of the following states is connected to a status variable and can be assigned a global variable of type BOOL:? Lower limit exceeded. ? Lowest limit exceeded. ? High limit exceeded. ? Highest limit exceeded. The assigned status variable becomes TRUE when the corresponding state is achieved. 3.4.7 Recording Events The processor module collects the events: ? created by I/O modules ? created by the processor module itself The processor module stores all the events in its buffer. The buffer is part of the nonvolatile memory.and has a capacity of 5 000 events. The processor module arranges the events from different sources by the time of their arrival and does not sort them by their timestamp. If the event buffer is full, no new events can be stored as long as no further events are read and thus marked as to be overwritten. The OPC server can read the events and make them available to external systems for evaluation and storing. 3.4.8 Protocols and Interfaces Communication with external systems occurs via the Ethernet interfaces. The interfaces are part of a 10/100/1000 BaseT switch. The four RJ-45 connectors are located on the connector board. The LEDs on the front plate of the module indicate the connections statuses. For more information, see Chapter 3.4.11. On these interfaces, the module can process the following protocols: ? The safety-related protocol safeethernet ? Connection to the PADT