HDS04.2-W200N-HS12-01机械设备卡件
中止空闲信道也不是错误。PAC系统™ RX3i和RSTi EP TCP/IP以太网通信用户手册第8节GFK-2224Y 2019年8月编程SRTP信道命令161 8.3.6检索详细信道状态(2002)检索详细信道状况命令请求为信道返回当前详细信道状况字。详细信道状态字包含一个活动/非活动信道指示符和最后看到的信道错误代码。这两个详细状态字补充了COMMREQ状态字和信道状态位中可用的信息。该命令对通道状态位的值没有影响。每次频道状态更改时,都会更新详细频道状态字。如果信道以快速重复周期运行,状态字的变化速度可能快于梯形图执行COMMREQ以检索它们。如果发生这种情况,应用程序可能会错过一些状态值。PAC系统™ RX3i和RSTi EP TCP/IP以太网通信用户手册第8节GFK-2224Y 2019年8月编程SRTP信道命令162 8.3.6.1示例命令块检索信道5的详细信道状态。将详细通道状态字存储到CPU。内存位置1-8(字7)通道命令号的进一步考虑:请求返回详细的通道状态字。详细信道状态字被写入字9和10中指定的位置。COMMREQ状态字表示命令成功完成。如果指定的通道当前未使用,则返回最新状态。(字8)通道编号:指定要读取其状态的通道(1–32)。(字9)本地PLC-内存类型:字9和10指定客户端CPU内存中要写入详细通道状态字的起始点。传输长度始终为2个字。(字10)本地PLC-存储器起始地址:确定存储详细信道状态数据的起始地址。输入的值是从Word 9中指定的存储器类型和模式的PLC存储器开始的偏移量(从1开始)。此偏移量以位、字节或字为单位,具体取决于指定的模式(例如,如果字9=16,字10=2,则起始地址将为%I9)。值的有效范围取决于PLC的内存范围。确保此区域可以包含2个字的数据,而不会覆盖其他应用程序数据。PAC系统™ RX3i和RSTi EP TCP/IP以太网通信用户手册第8节GFK-2224Y 2019年8月编程SRTP信道命令163 8.3.6.2监控详细信道状态字响应应用程序的检索详细信道状态命令,详细信道状态(DCS字)从以太网接口返回CPU。前两个详细通道状态字节以与COMMREQ状态字相同的格式报告状态和错误。请参阅第12节中的错误代码列表:。DCS字的第二个字指示信道何时激活。如果信道建立后(通过信道错误位)指示信道错误,则DCS字的第一个字包含指示错误原因的错误代码。DCS字的第二个字指示信道是激活还是空闲。每当信道状态更改时,以太网接口中的详细信道状态字都会更新。如果信道以快速重复周期运行,状态字可能会改变显示DCS
Neither is it an error to abort an idle channel. PACSystems™ RX3i and RSTi-EP TCP/IP Ethernet Communications User Manual Section 8 GFK-2224Y August 2019 Programming SRTP Channel Commands 161 8.3.6 Retrieve Detailed Channel Status (2002) The Retrieve Detailed Channel Status command requests that the current Detailed Channel Status words are returned for a channel. The Detailed Channel Status words contain an active/inactive channel indicator and the last channel error codes seen. These two words of detailed status supplement the information available in the COMMREQ Status word and the Channel Status bits. The command has no effect on the value of the Channel Status bits. The Detailed Channel Status words are updated every time the status of the channel changes. If the channel is operating with a fast repetition period, the status words may change faster than the ladder executes the COMMREQ to retrieve them. If that happens, some status values could be missed by the application program. PACSystems™ RX3i and RSTi-EP TCP/IP Ethernet Communications User Manual Section 8 GFK-2224Y August 2019 Programming SRTP Channel Commands 162 8.3.6.1 Example Command Block Retrieve detailed channel status for Channel 5. Store the Detailed Channel Status words to to the CPU. Further Considerations for Memory Locations 1-8 (Word 7) Channel Command Number: Requests that Detailed Channel Status words be returned. The Detailed Channel Status words are written to the location specified in Words 9 and 10. The COMMREQ status word indicates successful completion of the command. If the specified channel is not currently in use, the latest status is returned. (Word 8) Channel Number: Specifies the channel (1 – 32) whose status is to be read. (Word 9) Local PLC - Memory Type: Words 9 and 10 specify the starting point in the client CPU memory where the Detailed Channel Status words are to be written. The length of the transfer is always 2 words. (Word 10) Local PLC - Memory Starting Address: Determines the starting address to store the Detailed Channel Status data. The value entered is the offset (1-based) from the beginning of PLC memory for the memory type and mode specified in Word 9. This offset is in bits, bytes, or words depending on the mode specified (for example, if Word 9=16 and Word 10=2, then the starting address will be %I9). Valid ranges of values depend on the PLC’s memory ranges. Make sure this area can contain the 2 words of data without overwriting other application data. PACSystems™ RX3i and RSTi-EP TCP/IP Ethernet Communications User Manual Section 8 GFK-2224Y August 2019 Programming SRTP Channel Commands 163 8.3.6.2 Monitoring the Detailed Channel Status Words The Detailed Channel Status words (DCS words) are returned from the Ethernet interface to the CPU in response to a Retrieve Detailed Channel Status command from the application program. The first two Detailed Channel Status bytes report status and errors in the same format as the COMMREQ Status word. See the list of error codes in Section 12:. The second word of the DCS words indicates when the channel is active. If a channel error is indicated (by the Channel Error bit) after the channel is established, the first word of the DCS words contains an error code indicating the cause of the error. The second word of the DCS words indicates whether the channel is active or idle. The Detailed Channel Status words are updated in the Ethernet interface every time the status of the channel changes. If the channel is operating with a fast repetition period, the status words may change Display the DCS