Honeywell PKS系统与第三方设备通讯的设置侯军生说明:本文主要讲解Honeywell PKS系统与第三方设备通讯的软件组态设置。
硬件:终端服务器(MOXA),协议:Modbus RTU。
一、 MOXA终端服务器的设置1、打开MOXA组态软件2、搜索在线MOXA设备3、选择要组态的设备4、设备的基本设置注:只有选中Modify才可以进行修改设置。
Server Name:设备名称;Time Zone:时区设置;Local Date:日期设置;Local Time:时间设置;Time Server:时钟同步的时间源的地址设定; 其它设置保持默认。
5、设备地址等相关参数设置IP Address:本设备的网络地址;Netmask:子网掩码;Gateway:默认网关;IP Configuration:IP 配置,必须为Static;其它设置保持默认。
6、端口参数的设置Port Alias:端口别名; Baud Rate:波特率设置; Parity:奇偶校验设置; Data Bits:数据位设置; Stop Bits:停止位设置; Interface:端口类型设置;其它设置保持默认。
7、通讯模式的设置Operating Mode:工作状态设置,必须为TCP server Mode; 其它设置保持默认。
二、 Honeywell PKS的设置PKS的组态在Quick Builder中设置。
1、通道设置⑴建通道Number of items to Add:建通道的个数;Type:通道类型,选择Modbus Channel;Use Name:通道名称,只能一次建一个通道。
Fomat:此项可以一次建多个通道,通道的个数在Number of items to Add中设定。
⑵通道组态Main栏:Name:通道名称;Description:对通道做说明;其它设置保持默认。
Port栏:Port Type:端口类型,选TerminalServer;Protocol:协议类型,选Modbus RTU;TerminalServer TCP Host Name:终端服务器网络地址; TerminalServer TCP Port No:终端服务器端口的TCP地址; 其它设置保持默认。
Redundant Port栏Port Type:端口类型。
选Redundant TerminalServer; 其它设置参考Port栏。
2、控制器设置⑴建控制器参数设置参考建通道部分⑵控制器组态Channel Name:选择需要的通道;PLC Station ID:第三方设备地址;Data Table:数据类型Digital Input: 只读 数据范围:100001 to 132766;Digital Output: 可读写 数据范围:000001 to 032766;Holding Register:可读写 数据范围:400001 to 432766;Input Register: 只读 数据范围:300001 to 332766。
其它设置保持默认。
3、通讯点设置⑴建新点参数设置参考建通道部分⑵点组态a、开关量组态Point ID:点名称;Enterprise Model:企业模型;Item Name Description:点描述;Parent Asset:区域设置;PV Source Address:点地址;PV Scan Period:扫描周期;Number of States:状态数;State Descriptors:定义状态;其它设置保持默认。
b、模拟量组态PV Source Address:点地址,必须指定数据类型(见附录);Engineering Units:工程单位;100% Range Value:上限;0% Range Value:下限;其它设置参考开关量组态设置。
4、建立通讯连接⑴通道连接⑵控制器连接附录:Data format for scaling 16-bit integersYou can scale point parameter values with a data format if they have addresses in the Input Register and Holding Register data tables. Select the format that corresponds to the counts that have been set in the controller register.Data Format Counts in Controller RegisterU4095 (default)0 to 4095U9999 0 to 9999U999 0 to 999U15B 0 to 32767U16B 0 to 65535S16B -32768 to 32767NoteIf auxiliary parameters have a data format type that requires scaling (U4095, U999, and so on), they take the same range as the PV.Data format for scaling 32-bit integersThe Modbus Interface will combine two 16-bit registers (as defined by the Modbus protocol standard) into a 32-bit value.The little-endian word formats listed in the following table.Data Format DescriptionCounts in ControllerRegisterS32B Unsigned 32-bit BinaryLittle-endianNot scaledU32B Unsigned 32-bit BinaryLittle-endianNot scaledS32BS Signed 32-bit Binary ScaledLittle-endian-32768 to 32767U32BS Signed 32-bit Binary ScaledLittle-endian0 to 65535These data formats assume the following word/byte order: •two 16-bit registers in big endian byte order•the first register transmitted is the low word•the second register transmitted is the high wordThe value is calculated as (high register x 65536) + low register. The big-endian word formats listed in the following table.Data FormatDescriptionCounts in Controllerregister Unsigned 32-bit Binary Big-endian Not scaledUnsigned 32-bit Binary ScaledBig-endian0 to 65535U32BBU32BSBS32BB Signed 32-bit Binary Big-endian Not scaledS32BSB Signed 32-bit Binary ScaledBig-endian-32768 to 32767These data formats assume the following word/byte order: •two 16-bit registers in big endian byte order•the first register transmitted is the high word•the second register transmitted is the low wordThe value is calculated as (high register x 65536) + low register. Data format for reading floating point valuesSelect format IEEEFP to read two consecutive registers as a single precision floating point number.Variations on the IEEEFP format that you can specify include:Format DescriptionIEEEFPB Bytes are big endian format (this is the same as IEEEFP) IEEEFPBB Bytes are byte-swapped big endian formatIEEEFPL Bytes are little endian formatIEEEFPLB Bytes are byte-swapped little endian formatNote•IEEEFP numbers use two data addresses, address and address-1.Do not specify address-1 (the lower address) as the pointparameter location address.•When configuring controller data tables, do not assign overlapping data addresses if floating point values are usedand do not set an IEEEFP address to 1.Data format for reading raw values without scalingSelect a format of C16, or enter a 0, to read all 16 bits in the register without scaling.To read less than 16 bits without scaling enter the starting bit number (1 to 15).If you are not using scaling, the point range is still used for PV indicator bar height only (the PV indicator bar is on the Point detail display on Station).。