HIEE400106R1输出卡件
HART第四变量代码CMD#50,字节3类型:Byte 85量程参数CMD#15的单位代码,字节2类型:BYTE86-88校准备用3 BYTE89-92工程单元CMD#15中模拟信号的低变送器量程,字节3-6类型:REAL 93-96工程单元CMD#15中的模拟信号的高变送器量程,字节7-10类型:REAL PACSystems*RX3i系统手册第12节GFK-2314T 2019年9月带HART通信的模拟模块547字节名称描述97插槽0单元代码CMD#33,字节1类型:REAL 98插槽1单元代码CMD#33,HART设备命令HART模块自动使用本章前面所述的几个HART直通命令。此外,应用程序可使用发送HART直通命令(COMMREQ 2)将HART直通命令发送至RX3i HART模块。HART模块将命令返回的数据存储在其板载存储器中。然后,该数据可以由CPU自动扫描或根据需要从应用程序读取。本节包含“传递”命令列表。然后,RX3i HART模块将命令传递给预期的HART输入或输出设备。在COMMREQ回复中,应用程序可使用HART直通命令的响应。发送HART直通命令COMMREQ自动填写起始字符、地址、字节计数、状态和校验和。RX3i HART模块等待直到HART设备的数据可用,然后才回复该命令,因此应用程序无需向模块查询响应。应用程序必须检查COMMREQ状态字,以确定应答数据何时可用。在750mS至8秒后返回回复。回复时间取决于启用的通道数、所选的直通率以及是否同时发生其他直通操作。每个通道一次只允许一个应用程序传递命令。如果在正在进行传递的信道上发出另一个请求,则模块返回COMMREQ状态字=0x0002(模块忙)。PACSystems*RX3i系统手册第12节GFK-2314T 2019年9月带HART通信的模拟模块548 11.6.5.1 HART传递命令块,COMMREQ 2字偏移值Dec(十六进制)定义字1 10+x 000A+x命令数据块长度,以字7字2 0 0000始终为0(无等待模式请求)字3 COMMREQ状态字的内存类型。它可以是:内存类型内存类型十进制代码%I离散输入表(位模式)70%Q离散输出表(位方式)72%I离散输入表状态字将被写入%R10。字5 0 0000保留字6 0 0000保留词7 2 0002待执行COMMREQ的命令代码。HART传递命令=2字8 1 0001随后的响应参考区域数量(不包括COMMREQ状态字)。回复数据始终为1字9内存类型。(第9-12字指定了回复的起始地址)。内存类型内存类型十进制代码%I离散输入表(字节模式)16%Q离散输出表(字节方式)18%W字内存196%R寄存器内存8%AI模拟输入表10%AQ模拟输出表12%T离散临时内存(字节)20%M离散内部内存(Byte)22字10 0 0000位偏移量(对于所有请求必须为0)字11基于0的偏移量(低位字)起始地址该响应将被写入。输入的值是从Word 9中指定的存储器类型的PLC存储器开始的从0开始的偏移量。此偏移量将以字节或字为单位,具体取决于指定的内存类型。值的有效范围取决于主机PLC的内存范围。示例:如果单词9和11分别包含值8和250,则响应将写入%R251。PACSystems*RX3i系统手册第12节GFK-2314T 2019年9月带HART通信的模拟模块549字偏移值Dec(十六进制)定义字12基于0的偏移(高位字)高位字偏移。对于大多数内存类型,值为0。只有当使用%W内存时,才会有一个非零值字13响应数据大小响应区域的最大大小。如果用于响应的离散内存类型,则以字节为单位。如果单词类型使用单词14频道号(1-16),则以单词为单位调整大小。通道编号1-16(有效范围取决于模块通道计数和单端与差分模式)字15 HART命令(0x0–0xff)HART直通命令类型。本节列出了可发送至RX3i HART模块的HART直通命令。字16命令数据字节计数
HART Fourth Variable Code CMD#50, Byte 3 Type: BYTE 85 Units code for range parameter CMD#15, Byte 2 Type: BYTE 86-88 Spare for alignment 3 BYTEs 89-92 Low transmitter range for analog signal in engineering units CMD#15, Bytes 3-6 Type: REAL 93-96 High transmitter range for analog signal in engineering units CMD#15, Bytes 7-10 Type: REAL PACSystems* RX3i System Manual Section 12 GFK-2314T Sept. 2019 Analog Modules with HART Communications 547 Byte Name Description 97 Slot 0 units code CMD#33, Byte 1 Type: REAL 98 Slot 1 units code CMD#33, Command to a HART Device The HART module automatically uses several HART Pass-Through commands as described earlier in this chapter. In addition, the application program can use the Send HART Pass-Through Command (COMMREQ 2) to send HART Pass-Through commands to an RX3i HART module. The HART module stores the data returned by the command in its on-board memory. This data can then be scanned automatically by the CPU or read as needed from the application program. A list of Pass-Through commands is included in this section. The RX3i HART module then passes the command to the intended HART input or output device. Responses to HART Pass-Through commands are available to the application program in the COMMREQ replies. The Send HART Pass-Through Command COMMREQ automatically fills in the Start Character, Address, Byte Count, Status, and the checksum. The RX3i HART module waits until the data from the HART device is available before it replies to this command, so the application program does not have to query the module for the response. The application program must check the COMMREQ Status word to determine when the reply data is available. The reply is returned between 750mS and 8 seconds later. The reply time depends on the number of channels enabled, the Pass-Through rate selected, and whether other Pass-Through operations are occurring at the same time. Only one application program Pass-Through command per channel is allowed at a time. If another request is made on a channel that has a Pass-Through in-progress, the module returns a COMMREQ Status Word = 0x0002 (module busy). PACSystems* RX3i System Manual Section 12 GFK-2314T Sept. 2019 Analog Modules with HART Communications 548 11.6.5.1 HART Pass-Through Command Block, COMMREQ 2 Word Offset Value Dec (Hex) Definition Word 1 10+x 000A + x Length of command Data Block in words beginning at Word 7 Word 2 0 0000 Always 0 (no-wait mode request) Word 3 Memory type of COMMREQ status word. It can be: Memory Type Memory Type Decimal code %I Discrete input table (Bit mode) 70 %Q Discrete output table (Bit mode) 72 %I Discrete input table (Byte mode) 16 %Q Discrete output table (Byte mode) 18 %R Register memory 8 %W Word memory 196 %AI Analog input table 10 %AQ Analog output table 12 Word 4 0-based offset COMMREQ status word address minus 1 Example: if Words 3 and 4 contain values of 8 and 9 respectively, the status word will be written to %R10. Word 5 0 0000 Reserved Word 6 0 0000 Reserved Word 7 2 0002 Command code for the COMMREQ to be executed. HART Pass-Through Command = 2 Word 8 1 0001 Number of Response Reference areas that follow (does not include COMMREQ status word). Always 1 Word 9 Memory type for the reply data. (Words 9—12 specify the starting address where the response will be written). Memory Type Memory Type Decimal code %I Discrete input table (Byte mode) 16 %Q Discrete output table (Byte mode) 18 %W Word memory 196 %R Register memory 8 %AI Analog input table 10 %AQ Analog output table 12 %T Discrete temporary memory (Byte) 20 %M Discrete internal memory (Byte) 22 Word 10 0 0000 Bit Offset (must be 0 for all requests) Word 11 0-based offset (low word) Starting address to which the response will be written. The value entered is the 0-based offset from the beginning of PLC memory for the memory type specified in Word 9. This offset will be in bytes or words depending on the memory type specified. Valid ranges of values depend on the memory ranges of the host PLC. Example: If Words 9 and 11 contain values of 8 and 250 respectively, the response will be written to %R251. PACSystems* RX3i System Manual Section 12 GFK-2314T Sept. 2019 Analog Modules with HART Communications 549 Word Offset Value Dec (Hex) Definition Word 12 0-based offset (high word) High word of offset. Value = 0 for most memory types. Would only have a non-zero value if %W memory is used Word 13 Response data size Maximum size of response area. Size in bytes if discrete memory type used for response. Size in words if word type used Word 14 Channel Number (1-16). Channel Number 1-16 (valid range depends on module channel count and single-ended versus differential mode) Word 15 HART command (0x0 – 0xff) HART Pass-Through Command type. HART Pass-Through Commands that can be sent to an RX3i HART module are listed in this section. Word 16 Command Data byte count Size (in bytes) of command data that