336A4940CSP11汽輪機(jī)模塊
COMREQ命令塊包含有關(guān)要使用的特定命令的信息執(zhí)行。當(dāng)COMREQ功能啟動時,命令塊從PLC CPU連接到FIP總線控制器。使用適當(dāng)?shù)木幊讨噶钤O(shè)置命令塊(建議使用塊移動功能塊)。命令塊具有以下結(jié)構(gòu):s字指針偏移量字5保留
字6保留
字7至128(十進(jìn)制)數(shù)據(jù)塊(FIP命令詳細(xì)信息)
(字1)數(shù)據(jù)塊長度:這是命令塊(最多122個十進(jìn)制字)。數(shù)據(jù)塊部分從字7開始
命令塊。長度從數(shù)據(jù)塊的開始處開始測量字7,而不是從命令塊的開始。
(字2)WAIT/NOWAIT標(biāo)志:對于所有FIP通信,該標(biāo)志必須設(shè)置為零。
(字3)COMREQ狀態(tài)字指針內(nèi)存類型:該字指定內(nèi)存
t可監(jiān)控COMREQ狀態(tài)字,以確定故障原因
COMREQ功能啟動后出現(xiàn)通信錯誤。的位置
COMREQ狀態(tài)字在COMREQ功能的命令塊中定義。
執(zhí)行COMREQ后,如果COMREQ狀態(tài)字不是一(1),則表明:成功意味著:命令塊中的錯誤,或對于建立讀或?qū)慒IP命令,命令參數(shù)有效
但在建立信道時出現(xiàn)了錯誤
如果COMREQ狀態(tài)字不包含表示成功的1,則它包含0或代碼(見下文)指示發(fā)生了什么錯誤。每次掃描時,CPU中不更新COMREQ狀態(tài)字。總線控制器
如果命令阻塞,立即向CPU返回COMREQ狀態(tài)字
包含語法錯誤,或者如果命令是本地的(例如,中止通道和檢索詳細(xì)的信道狀態(tài)命令)。PLC之間發(fā)生通信
CPU和FIP總線控制器。對于這些命令,COMREQ狀態(tài)字
立即發(fā)送到CPU。對于沒有語法錯誤的遠(yuǎn)程命令,它是在通道成功建立且第一次傳輸完成后返回已完成,或者在建立信道時出現(xiàn)錯誤。
The COMREQ Command Block contains information about the specific command to be
executed. When the COMREQ function is initiated, the Command Block is sent from
the PLC CPU to the FIP Bus Controller. The Command Block is set up using an appropriate programming instruction (the BLOCK MOVE Function Block is recommended). The Command Block has the following structure:s Word Pointer Offset
Word 5 Reserved
Word 6 Reserved
Words 7 up to 128 (decimal) Data Block (FIP command details)
(Word 1) Data Block Length: This is the length in words of the Data Block portion of the
Command Block (up to 122 words-decimal). The Data Block portion starts at Word 7 of
the Command Block. The length is measured from the beginning of the Data Block at
Word 7, not from the beginning of the Command Block.
(Word 2) WAIT/NOWAIT Flag: This flag must be set to zero for all FIP communications.
(Word 3) COMREQ Status Word Pointer Memory Type: This word specifies the memory
tThe COMREQ Status word can be monitored to determine the cause of a
communications error after the COMREQ function is initiated. The location of the
COMREQ status word is defined in the Command Block for the COMREQ function.
After executing a COMREQ if the COMREQ Status Word is not one (1) indicating
success, it means that there were:
Errors in the Command Block or
For an Establish Read or Write FIP command, the command parameters were valid
but there was an error in establishing a channel.
If the COMREQ Status Word does not contain a 1 indicating success, then it contains
either a 0 or a code (see below) indicating what error occurred.The COMREQ Status word is not updated in the CPU each scan. The Bus Controller
returns the COMREQ Status word to the CPU immediately if the Command Block
contains a syntax error or if the command is local (for example, the Abort Channel and
Retrieve Detailed Channel Status commands). Communication occurs between the PLC
CPU and the FIP Bus Controller only. For these commands, the COMREQ Status word
is sent immediately to the CPU. For remote commands with no syntax error, it is
returned either after the channel is established successfully and the first transfer has
completed or if there is an error establishing the channel.