HIEE400103R1 CSA463AE控制卡件,自动化卡件
遵循…………字16+x…HART命令数据。请求数据必须是字节压缩的,并且是大端格式,PLC CPU格式是小端格式,因此某些命令可能需要将字段从小端格式转换为大端格式(如本章所述)。这通常是浮点数据所需要的。11.6.5.2 HART直通应答数据格式RX3i HART模块将以下应答数据返回到COMMREQ的9-12字指定的CPU存储器位置。从回复的第7个字开始的数据是字节压缩的,采用大端格式。PLC CPU格式是小端序,因此某些命令可能需要将字段从大端序转换为小端序格式,如本章所述。这通常是浮点数据所需要的。单词名称描述1命令代码回显命令代码(0x0002)2信道号回显信道号(与请求相同)3 HART命令回显HART直通命令类型。请参阅本节中的表格。4 HART状态低字节为HART通信状态,高字节为HART设备响应的HART开发状态。5备用备件,以备将来使用。用户逻辑不应检查此值,因为将来的模块修订可能会使此值为非零。6响应字节计数(x)后续响应数据的字节大小。PACSystems*RX3i系统手册第12节GFK-2314T 2019年9月带HART通信的模拟模块550 7L数据低设备的第一个响应数据字节。来自设备的7H数据高秒响应数据字节…7+(x-1)/2 L数据低…。7+(x-1)/2 6写入轮询地址0轮询地址与命令11相同读取与标记0-5相关的唯一标识符标记ASCII 0-11与命令#0相同,请参阅上述12读取消息无0-23消息(32个字符)ASCII 13读取标记、描述符、,日期无0-5标记(8个字符)ASCII 6-17描述符(16个字符)ASCII18-20日期14读取主要变量传感器信息无0-2传感器序列号3传感器限值和最小量程的单位代码4-7传感器上限浮动点8-11传感器下限浮动点12-15最小量程浮动点15读取输出信息无0报警选择代码1传输功能代码2PV/量程单位代码PACSystems*RX3i系统手册第12节GFK-2314T 2019年9月带有HART通信的模拟模块553命令数据中的通用命令数据回复#功能字节数据类型字节数据类型3-6量程上限值浮动点7-10量程下限值浮动点11-14阻尼值(秒)浮动点15写入保护代码16专用标签分配器代码16读取最终汇编编号无0-2最终汇编编号17写入消息0-23消息(32个字符)ASCII与命令18相同写入标记、描述符、日期0-5标记(8个字符)ASCII与命令6-17描述符(16个字符)ASCII 18-20日期19写入最终汇编编号0-2最终汇编号与命令相同在下面列出的常见实践命令中,命令#60和#62至#70用于配置和控制插槽2 PACSystems*RX3i系统手册第12节GFK-2314T 2019年9月HART通信模拟模块554通用实践命令数据中的命令数据回复#功能字节数据类型字节数据类型14-17插槽2的变量浮点18发送的变量代码插槽3 19插槽3的单位代码20-23插槽3的变量在最后一次请求变量后截断浮点34写入阻尼值0-3阻尼值(秒)浮点与命令35写入范围值0范围单位代码与命令1-4上限值浮点5-8下限值浮点36设置上限值(=按下SPAN按钮)无无37设置下限范围值(=按下ZERO按钮)无无38重置配置更改标志无无39 EEPROM控制0 EEPROM控制代码:(0=写入EEPROM 1=读取EEPROM到RAM)与命令40相同进入/退出固定电流模式0-3电流(mA)(0=固定电流模式)GFK-2314T 2019年9月带HART通信的模拟模块556常规命令命令数据中的命令数据在回复#功能字节数据类型字节数据类型51读取
follows … … … Word 16+x … HART Command Data. Request data must be byte-packed and in big-endian format, PLC CPU format is little-endian, so some commands may require swapping of fields from little-endian to big-endian format as described in this chapter. This is usually needed for floating-point data. 11.6.5.2 HART Pass-Through Reply Data Format The RX3i HART module returns the response data below to the CPU memory location specified by words 9- 12 of the COMMREQ. Data beginning at Word 7 of the reply is byte-packed and in big-endian format. PLC CPU format is little-endian, so some commands may require swapping of fields from big-endian to littleendian format as described in this chapter. This is usually needed for floating-point data. Word Name Description 1 Command Code Echo of Command code (0x0002) 2 Channel Number Echo of Channel Number (same as request) 3 HART command Echo of HART Pass-Through Command type. Refer to the tables in this section. 4 HART Status Low byte is HART Comm Status and high byte is HART Dev Status from HART device response. 5 Spare Spare for future use. User logic should not check this value because future module revisions may make this non-zero. 6 Response Byte Count (x) Size in bytes of the response data that follows. PACSystems* RX3i System Manual Section 12 GFK-2314T Sept. 2019 Analog Modules with HART Communications 550 7L Data Low First response data byte from device. 7H Data High Second response data byte from device. … … … 7+(x-1)/2 L Data Low …. 7+(x-1)/2 6 Write polling address 0 Polling address same as command 11 Read unique identifier associated with tag 0-5 Tag ASCII 0-11 Same as command #0, refer to above 12 Read message None 0-23 Message (32 characters) ASCII 13 Read tag, descriptor, date None 0-5 Tag (8 characters) ASCII 6-17 Descriptor (16 characters) ASCII 18-20 Date Date 14 Read Primary Variable sensor information None 0-2 Sensor serial number 3 Units code for sensor limits and min. span 4-7 Upper sensor limit Floating pt 8-11 Lower sensor limit Floating pt 12-15 Minimum span Floating pt 15 Read output information None 0 Alarm select code 1 Transfer function code 2 PV/range units code PACSystems* RX3i System Manual Section 12 GFK-2314T Sept. 2019 Analog Modules with HART Communications 553 Universal Commands Data in Command Data in Reply # Function Byte Data Type Byte Data Type 3-6 Upper range value Floating pt 7-10 Lower range value Floating pt 11-14 Damping value (seconds) Floating pt 15 Write-protect code 16 Private-label distributor code 16 Read final assembly number None 0-2 Final assembly number 17 Write message 0-23 Message (32 characters) ASCII Same as command 18 Write tag, descriptor, date 0-5 Tag (8 characters) ASCII Same as command 6-17 Descriptor (16 characters) ASCII 18-20 Date Date 19 Write final assembly number 0-2 Final assembly number Same as command Among the common-practice commands listed below, commands #60 and #62 through #70 are used to configure and control the multiple outputs generated by some code for slot 2 PACSystems* RX3i System Manual Section 12 GFK-2314T Sept. 2019 Analog Modules with HART Communications 554 Common-Practice Commands Data in Command Data in Reply # Function Byte Data Type Byte Data Type 14-17 Variable for slot 2 Floating point 18 Transmitted variable code for slot 3 19 Units code for slot 3 20-23 Variable for slot 3 Floating point Truncated after last requested variable 34 Write damping value 0-3 Damping value (seconds) Floating point Same as command 35 Write range values 0 Range units code Same as command 1-4 Upper range value Floating point 5-8 Lower range value Floating point 36 Set upper range value (= push SPAN button) None none 37 Set lower range value (= push ZERO button) None none 38 Reset Configuration Changed flag None none 39 EEPROM control 0 EEPROM control code: (0 = write to EEPROM 1 = read EEPROM to RAM) Same as command 40 Enter/exit fixed current mode 0-3 Current (mA) (0 = fixed current mode) GFK-2314T Sept. 2019 Analog Modules with HART Communications 556 Common-Practice Commands Data in Command Data in Reply # Function Byte Data Type Byte Data Type 51 Read