TK803V018電纜
從狀態(tài)更改LSAP COMREQ請求FIP消息
使用此COMREQ請求在狀態(tài)更改LSAP(鏈路)上接收的所有FIP消息服務(wù)接入點)。通過該LSAP接收的消息將包括SC、RC和PI消息類型。該LSAP的值由FIP總線控制器在9100h固定。
當(dāng)從網(wǎng)絡(luò)接收到消息時,它們將存儲在消息緩沖區(qū)中。
消息緩沖區(qū)的格式和使用說明如下。命令塊中請求狀態(tài)更改消息的示例此示例從狀態(tài)更改LSAP請求消息。它將%R1指定為COMREQ狀態(tài)字的位置和%R100作為PLC中的起始位置
消息緩沖區(qū)的內(nèi)存大小為2條消息。消息緩沖區(qū)
一旦成功執(zhí)行COMREQ,F(xiàn)IP總線控制器將輸入
將狀態(tài)更改或通用鏈路服務(wù)接入點消息發(fā)送到指定位置。PLC存儲器中消息數(shù)據(jù)的結(jié)構(gòu)如下所示。
不管實際消息長度如何,每個記錄占用132個寄存器。第二每個記錄的單詞表示消息內(nèi)容的長度。
以下示例顯示了一個包含2個字的消息緩沖區(qū)。消息長度
下一條消息中的字節(jié)數(shù)135–136
來源:LSAP下一條消息的源LSAP137–264
消息內(nèi)容下一條消息的內(nèi)容
當(dāng)mor使用此COMREQ請求在指定鏈路服務(wù)訪問上接收的FIP消息時點(LSAP)。PLC存儲器中該數(shù)據(jù)的格式如前頁所示。命令塊中請求通用消息的示例
此示例請求從通用鏈路服務(wù)接入點接收消息0x1005。它將%R1指定為COMREQ狀態(tài)字的位置,將%R100指定為PLC內(nèi)存中消息緩沖區(qū)的起始位置,大小為2條消息。報警觸點
可包含在90-70系列應(yīng)用程序中的邏輯觸點PLC。這些觸點可用于指示模擬值何時達到指定的報警限制。
COMV的應(yīng)用
應(yīng)用程序COMV是傳輸一個或多個更多應(yīng)用程序變量。除通用設(shè)備外,應(yīng)用程序COMV包括
在構(gòu)建網(wǎng)段時創(chuàng)建。應(yīng)用程序COMV由創(chuàng)建
將由所述一個設(shè)備產(chǎn)生的應(yīng)用變量分組在一起。COMV當(dāng)網(wǎng)段為正在建造。
對于通用設(shè)備,COMV標(biāo)識符及其大小由使用者傳輸?shù)臄?shù)據(jù)采用字節(jié)表的形式。
Request FIP Messages from the State Change LSAP COMREQ
Use this COMREQ to request all FIP messages received on the State Change LSAP (Link
Service Access Point). Messages received via this LSAP will include the SC, RC, and PI
message types. The value for this LSAP is fixed by the FIP Bus Controller at 9100h.
As messages are received from the network, they will be stored in the Message Buffer Area.
The format and use of the Message Buffer Area are explained below.
Example Request State Change Messages Command Block
This example requests messages from the State Change LSAP. It specifies %R1 as the
location of the COMREQ Status Word and %R100 as the starting location in PLC
memory for the message buffer with a size of 2 messages.Message Buffer Area
Once the COMREQ is successfully executed, the FIP Bus Controller places incoming
State Change or generic Link Service Access Point messages into PLC memory at the
specified location. The structure of the message data in PLC memory is shown below.
Each record occupies 132 registers, regardless of the actual message length. The second
word of each record indicates the length of the message’s content.
The following example shows a Message Buffer Area with 2 words.
Message Length
The number of bytes in the next message
135–136
Source LSAP
The source LSAP of the next message
137–264
Message Content
The content of the next message
When mor Use this COMREQ to request FIP messages received on the specified Link Service Access
Point (LSAP). The format of this data in PLC memory is shown on the previous page.
Example Request Generic Messages Command Block
This example requests to receive messages from the generic Link Service Access Point
0x1005. It specifies %R1 as the location of the COMREQ Status Word and %R100 as the
starting location in PLC memory for the Message Buffer Area of size of 2 messages.Alarm Contacts
Logical contacts that can be included in the application program of the Series 90-70
PLC. These contacts can be used to indicate when an analog value has reached an
assigned alarm limit.
Application COMV
An Application COMV is a Communication Variable (COMV) that transports one or
more application variables. Except for Generic Devices, application COMVs are
created when the network segment is built. Application COMVs are created by
grouping together the application variables produced by the one device. The COMV
identifier, its size and its composition are also defined when the network segment is
being built.
In the case of Generic Devices, the COMV identifier and its size are supplied by the
user. The transferred data take the form of a byte table.