IS220PDIAH1A燃機卡件
解釋COMREQ狀態字在解釋COMREQ的內容時,需要記住以下幾點:
狀態字:1.以十六進制形式顯示狀態字,以便更容易區分高和低字節。這樣做的一個好方法是使用“移動單詞”功能塊來顯示梯形圖程序中的十六進制值。
2.FIP總線控制器永遠不會向PLC CPU。在發出
COMREQ函數,然后檢查非零值,表明FIP總線控制器正在響應COMREQ。這樣做的一個好方法是使用移動字功能塊將COMREQ狀態字歸零。
3.低字節中的狀態碼1和高字節中的0表示請求是成功的。所有其他非零值表示錯誤。有關主要和次要錯誤代碼的完整列表,請參閱附錄B中的表格。開發控制COMREQ執行的邏輯時必須小心
作用每個梯形圖計劃,無論是在開發階段還是在運行階段
階段,應在啟動COMREQ功能之前執行以下操作。在下面例如,昵稱用于使程序更易于遵循。
示例邏輯說明了這些要點:
1.使用單觸發過渡線圈或觸點啟動COMREQ功能。這防止多次發送相同的COMREQ命令塊。
2.在總線控制器狀態字中至少包括總線控制器OK位作為COMREQ功能的聯鎖觸點。您可以添加更多的聯鎖。
3.將COMREQ狀態(CRS)字以及OK和FT的字位置歸零啟動COMREQ之前COMREQ功能塊的輸出。
4.將COMREQ的命令代碼和參數移動到存儲器中COMREQ功能塊輸入中指定的位置,在COMREQ之前
啟動功能。在示例邏輯中:第1級:輸入FIPIFOK(FIP總線控制器狀態位的第16位)監控FIP
總線控制器。如果可以發送COMREQ,則健康線圈打開。健康用作梯級3-6的聯鎖裝置。
橫檔#2:輸入BEGREAD觸發READREQ,從而執行移動以及COMREQ功能。READREQ是一個單觸發線圈,在BEGREAD時激活一次從關閉轉換為打開。
Interpreting the COMREQ Status Word
There are several points to remember when interpreting the contents of the COMREQ
Status word:
1. Display the Status Words in hexadecimal form to more easily differentiate the high and
low bytes. A good way to do this is to use a MOVE WORD function block to display
the hexadecimal value within the ladder program.
2. The FIP Bus Controller will never send a zero for the COMREQ Status Word to the
PLC CPU. The program should zero the COMREQ Status word before issuing the
COMREQ function and then check for a non-zero value indicating that the FIP Bus
Controller is responding to the COMREQ. A good way to do this is to use a MOVE
WORD function block to zero the COMREQ Status Word.
3. A status code of 1 in the low byte and 0 in the high byte indicates that the request
was successful. All other non-zero values indicate errors. Refer to the tables in Appendix B for a complete listing of major and minor error codes.Care must be taken in developing the logic that controls the execution of the COMREQ
function. Every ladder program, whether in the developmental phase or the operational
phase, should do the following before initiating a COMREQ function. In the following
example, Nicknames are used to make the program easier to follow.The example logic illustrates these important points:
1. Initiate the COMREQ function with a one-shot transitional coil or contact. This
prevents sending the same COMREQ Command Block more than once.
2. Include at least the Bus Controller OK bit in the Bus Controller Status Word as an
interlock contact for the COMREQ function. You may add more interlocks.
3. Zero the word location for the COMREQ Status (CRS) word, and OK and FT
Outputs of the COMREQ Function Block before initiating the COMREQ.
4. Move the command code and parameters for the COMREQ into the memory
location specified in IN input of the COMREQ Function Block before the COMREQ
function is initiated.
In the example logic:
Rung # 1: Input FIPIFOK (bit 16 of the FIP Bus Controller Status bits) monitors the FIP
Bus Controller. If it is OK to send a COMREQ, the HEALTHY coil is ON. HEALTHY is
used as an interlock for Rungs 3-6.
Rung # 2: Input BEGREAD triggers READREQ, which enables execution of the MOVE
and COMREQ functions. READREQ is a one-shot coil, activating once when BEGREAD
transitions from OFF to ON.