HESG447388R1工控自动化卡件
(以字节为单位)。交换数据长度不得超过1400字节或PLC中所选内存类型的可用内存量,以较小者为准。(Word 19)远程服务器–网络地址类型:Word 19指定远程PLC地址的格式。单词19必须包含值1。这表示使用每个十进制数字的单独寄存器表示的虚线十进制IP地址。(字20)远程服务器–网络地址长度:字20指定此COMMREQ命令块中远程PLC IP地址的字长度。单词20必须包含4。(字21-24)远程服务器IP地址:字21-24指定要访问的远程PLC的小数点IP地址的四个整数,每个字一个整数。PAC系统™ RX3i和RSTi EP TCP/IP以太网通信用户手册第6节GFK-2224Y 2019年8月编程EGD命令121 6.7.1.1字12远程签名(字12)远程EGD交换–交换签名:字12包含要在远程EGD设备上比较的16位交换签名值。对于远程PLC,如果未使用签名,则应将交换签名设置为零。但是,如果启用了签名,则可以将签名字段设置为非零值,以便只有签名匹配时才会执行命令。在这种情况下,不匹配的签名将导致命令返回失败状态。EGD签名的格式为maj.min,其中maj是主要值,min是次要值。该字的最低有效字节表示次要值,最高有效字节表示主要值。例如,0xAABB的值指的是0xAA.0xBB的maj.min值。EGD签名已启用(Y/N)所需的签名比较建议与EGD用户指定签名的RMS进行比较否否否0(默认-不检查)是否否否(默认-无检查)是是是当前EGD签名PACSystems™ RX3i和RSTi EP TCP/IP以太网通信用户手册第6节GFK-2224Y 2019年8月编程EGD命令122 6.8写入EGD交换(4003)写入EGD交换机命令可用于写入远程生产者节点中配置的以太网全局数据交换的部分。EGD协议禁止写入消耗的交换机。此命令使用配置的Producer ID和exchange ID标识要写入的交换机。然后,它可以将该数据的内容直接写入设备内存。该命令可发送至PACSystems PLC和其他EGD 2类设备。在PACSystems PLC中,写入EGD交换会修改配置为在交换中以指定偏移量传输的PLC参考存储器位置。因此,将更新当前流程数据,而不是上次在交换中传输的数据。6.8.1写入EGD交换命令块字偏移值描述字1命令数据块长度始终为19字2 0始终为0(无等待模式请求)字3(参见第112页的表格)COMMREQ状态字的存储器类型4基于COMMREQ的状态字字偏移0保留字6 0保留字7 4003(fa3H)写入EGD Exchange命令编号。Word 8重试时间,以毫秒为单位命令传输重试之间的时间。默认值为1000ms。字9本地写缓冲存储器类型本地PLC中数据的存储器类型。字10本地写缓冲区参考表起始地址(最低有效字)基于1的偏移字11本地写缓冲参考表起始位置(最高有效字)(续…)存储器位置1-11的进一步考虑(字7)EGD命令号:字7请求发生写EGD交换操作。如果命令处理成功,将导致指定EGD交换的数据从客户端写入服务器。
(in bytes) of the exchange data to be read from the remote EGD device. The exchange data length may not exceed 1400 bytes or the amount of memory available in the PLC for the selected memory type, whichever is less. (Word 19) Remote Server – Network Address Type: Word 19 specifies the format of the remote PLC address. Word 19 must contain the value 1. This indicates a dotted-decimal IP address expressed using a separate register for each decimal digit. (Word 20) Remote Server – Network Address Length: Word 20 specifies the length in words of the remote PLC IP address in this COMMREQ Command Block. Word 20 must contain 4. (Words 21 – 24) Remote Server – IP Address: Words 21–24 specify the four integers, one integer per word, of the dotted-decimal IP address of the remote PLC to be accessed. PACSystems™ RX3i and RSTi-EP TCP/IP Ethernet Communications User Manual Section 6 GFK-2224Y August 2019 Programming EGD Commands 121 6.7.1.1 Word 12 Remote Signatures (Word 12) Remote EGD exchange – Exchange Signature: Words 12 contains the 16-bit exchange signature value to be compared at the remote EGD device. For remote PLCs, the exchange signature should be set to zero if signatures are not being used. However, when signatures are enabled, the signature field can be set to a non-zero value so that commands will only be executed if signatures match. In this case, mismatched signatures will cause the command to return a failure status. An EGD signature has the format maj.min, where maj is the major value and min is the minor value. The least significant byte of this word indicates the minor value and the most significant byte indicates the major value. For example, a value of 0xAABB refers to a maj.min value of 0xAA.0xBB. EGD Signatures Enabled (Y/N) Signature Comparison Desired Recommended with RMS of EGD User Specified Signature No No No 0 (Default - no check) Yes No No 0 (Default - no check) Yes Yes Yes Current EGD signature PACSystems™ RX3i and RSTi-EP TCP/IP Ethernet Communications User Manual Section 6 GFK-2224Y August 2019 Programming EGD Commands 122 6.8 Write EGD Exchange (4003) The Write EGD Exchange command can be used to write portions of a configured Ethernet Global Data exchange in a remote producer node. EGD protocol prohibits writing to a consumed exchange. This command identifies the exchange to be written using its configured Producer ID and Exchange ID. It can then write the content of that data directly to the device memory. This command can be sent to PACSystems PLCs and to other EGD Class 2 devices. In a PACSystems PLC, writing an EGD exchange modifies the PLC reference memory locations configured for transfer at the specified offset in the exchange. Thus, current process data will be updated, not the data that was transferred last in the exchange. 6.8.1 Write EGD Exchange Command Block Word Offset Value Description Word 1 Length of command data block Always 19 Word 2 0 Always 0 (no-wait mode request) Word 3 (See table on page 112) Memory type of COMMREQ Status Word Word 4 0-based Offset of COMMREQ Status Word Word 5 0 Reserved Word 6 0 Reserved Word 7 4003 (fa3H) Write EGD Exchange command number. Word 8 Retry time, in milliseconds The time between retries of command transfers. Default is 1000ms. Word 9 Local write buffer memory type Memory type for the data, in the local PLC. Word 10 Local write buffer reference table starting address (least significant word) 1-based offset Word 11 Local write buffer reference table starting address (most significant word) (Continued …) Further Consideration of Memory Locations 1-11 (Word 7) EGD Command Number: Word 7 requests that a write EGD exchange operation occur. If the command is processed successfully, it will result in data for a specified EGD exchange being written from the client to the server.