3BSE019297R1數(shù)字量通信框架
每次掃描時,F(xiàn)IP總線控制器自動向PLC提供80位狀態(tài)數(shù)據(jù)CPU??偩€控制器狀態(tài)位的起始位置是“狀態(tài)地址”在總線控制器的硬件配置期間選擇。第17–80位包含有關(guān)通信信道的狀態(tài)信息,這些信道可能:
使用建立讀/寫通道命令建立。存在一個錯誤位,并且可建立的32個信道中的每個信道的數(shù)據(jù)傳輸位。nel 1
79數(shù)據(jù)傳輸-通道32
80信道錯誤-信道32
(狀態(tài)位17、19、21…79)數(shù)據(jù)傳輸位:該位通常設(shè)置為0。為脈沖每次傳輸成功完成時,在連續(xù)的PLC掃描中設(shè)置為1并返回0。
不要假設(shè)當(dāng)數(shù)據(jù)傳輸位變?yōu)?時,傳輸剛剛完成最后一次掃描。數(shù)據(jù)傳輸位在時間上與傳輸不緊密同步。
該位僅表示在前一次讀(或?qū)懀┢陂g發(fā)生了傳輸時期數(shù)據(jù)傳輸位的上升沿,表示傳輸已完成
成功并不保證下一次傳輸尚未開始或完成。在里面在建立信道命令的情況下,COMREQ狀態(tài)字始終為上日期在數(shù)據(jù)傳輸位被設(shè)置為1之前。
(狀態(tài)位18、20、22…80)信道錯誤位:當(dāng)錯誤消除時,該位設(shè)置為1
在這個頻道上檢測到
當(dāng)信道初始建立時,如果在瞬態(tài)錯誤條件消失后,信道恢復(fù)正常運行。禪宗
當(dāng)通道被中止通道命令中止時,nel錯誤位也設(shè)置為0或者當(dāng)PLC CPU從運行轉(zhuǎn)換到停止時。如果是建立Chan
nel命令,COMREQ狀態(tài)字始終在信道錯誤位之前更新設(shè)置為1。
如果出現(xiàn)以下情況,程序可以監(jiān)控該位并重新啟動讀或?qū)懲ǖ烂睿?br/>
該位指示錯誤。或者程序可以執(zhí)行檢索詳細頻道
狀態(tài):本章描述如何將通信請求(COMREQ)編程到FIP總線控制器。
COMREQ是90-70系列PLC的程序功能,可用于發(fā)送:從CPU到智能模塊(如FIP總線控制器)的指令。
FIP總線控制器的COMREQ包括:用于斷開活動TCP/IP通信信道。
Each scan, the FIP Bus Controller automatically provides 80 bits of status data to the PLC
CPU. The starting location of the Bus Controller Status bits is the “Status Address”
selected during hardware configuration of the Bus Controller.Bits 17–80 contain status information about communications channels that may be
established using the Establish Read/Write Channel Commands. There is an error bit and
a data transfer bit for each of the 32 channels that can be established.nel 1
...
... 79 Data Transfer - Channel 32
80 Channel Error - Channel 32
(Status Bits 17, 19, 21 ... 79) Data Transfer Bit: This bit is normally set to 0. It is pulsed
to 1 and back to 0 on successive PLC scans each time a transfer completes successfully.
Do not assume that when the Data Transfer bit goes to 1 that a transfer has just completed during
the last scan. The Data Transfer bit is not closely synchronized in time with the transfer.
The bit only indicates that a transfer has occurred during the preceding read (or write)
period. A rising edge on the Data Transfer bit indicating that a transfer has completed
successfully does not guarantee that the next transfer has not begun or completed. In
the case of an Establish Channel command, the COMREQ Status Word is always up
dated before the Data Transfer bit is set to 1.
(Status Bits 18, 20, 22 ... 80) Channel Error Bit: This bit is set to 1 when an error is de
tected on this channel. It is set to 0 when the channel is initially established and if the
channel resumes normal operation after a transient error condition subsides. The Chan
nel Error bit is also set to 0 when the channel is aborted by an Abort Channel command
or when the PLC CPU transitions from RUN to STOP. In the case of an Establish Chan
nel command, the COMREQ Status Word is always updated before the Channel Error bit
is set to 1.
The program can monitor this bit and reinitiate the Read or Write Channel command if
the bit indicates an error. Or the program may execute the Retrieve Detailed Channel
Status This chapter describes how to program communications requests (COMREQs) to a FIP
Bus Controller.
COMREQs are program functions of the Series 90-70 PLC that can be used to send
instructions from the CPU to an intelligent module such as the FIP Bus Controller.
COMREQs for the FIP Bus Controller include:Used to disconnect an active TCP/IP communications channel.