使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 d08-8c、d08-8cm...

77
D08-8CD08-8CM 使 用 手 册 版本 2 0 1 5 . 1 2

Upload: others

Post on 30-Aug-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

D08-8C、D08-8CM 型 流 量 积 算 仪

使 用 手 册

版本 2 0 1 5 . 1 2

Page 2: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 2005.05.12 初始版本 1.01 赵迪 2006.03.06 增加了 RS485 半双工多机通讯功能 1.02 赵迪 2010.03.15 下位机程序改进,产品可靠性提高;

对于 D08-8C 产品,通讯协议中增加“读瞬时

流量设定值”指令,具体见本手册附录一。

2.01

Page 3: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

使用须知

尊敬的用户,感谢您购买本公司生产的 D08 系列流量显示仪。本手册详细叙述了正确、

安全使用该系列产品的必要事项。

产品使用者,请务必认真参阅本手册并理解后使用,在使用过程中,请注意带有 标

志的文字及注意事项中包含的所有内容。 对于未按照使用手册使用造成的财产损失或人身伤害,本公司有权不承担责任。 本手册对您安装、维护及故障维修时,必不可少,请妥善留存保管。

Page 4: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

目 录

D08-8C 型流量积算仪 D08-8CM 型流量积算仪 1 用途................................................ 1 1 用途................................................ 19 2 主要技术指标................................ 1 2 主要技术指标................................ 19 3 工作原理........................................ 2 3 工作原理........................................ 20 4 安装和接线.................................... 2 4 安装和接线.................................... 20 4.1 外形尺寸......................................... 2 4.1 外形尺寸......................................... 20 4.2 安装开孔尺寸................................. 2 4.2 安装开孔尺寸................................. 20 4.3 安装方式......................................... 2 4.3 安装方式......................................... 20 4.4 积算仪视图..................................... 3 4.4 积算仪视图..................................... 21 4.5 串行通讯接线图............................. 3 4.5 串行通讯接线图.............................. 21 4.6 D 形插座信号图............................. 4 4.6 D 形插座信号图............................. 22 4.7 ~220V 电源接线图....................... 5 4.7 ~220V 电源接线图........................ 23 5 操作方法........................................ 5 5 操作方法........................................ 23 5.1 开机................................................ 5 5.1 开机................................................. 23 5.2 初始状态......................................... 5 5.2 初始状态......................................... 23 5.3 按键定义......................................... 5 5.3 按键定义......................................... 23 5.4 菜单功能说明................................. 5 5.4 菜单功能说明................................. 23 5.5 关机................................................ 7 5.5 关机................................................ 24 6 操作举例........................................ 7 6 操作举例........................................ 25 7 注意事项........................................ 8 7 注意事项........................................ 25 8 选型与订货规格填写....................... 9 8 选型与订货规格填写....................... 26 9 关于产品的上位机软件说明 11 9 关于产品的上位机软件说明 28 附录一:D08-8C 积算仪通信协议 12 附录二:D08-8CM 积算仪通信协议 29

D08 SERIES FLOW READOUT BOXES

Page 5: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 1 页 共 33 页

D08-8C 型数字流量积算仪

技 术 说 明 书

1.用途 D08-8C 型数字流量积算仪为气体质量流量控制器(MFC)提供工作电源、操作控制、数字

显示瞬时流量和累积流量。D08-8C 型数字流量积算仪可直接与我厂 D07 系列质量流量控制器配

套使用。同时原则上可以与世界上其它型号的质量流量控制器配合使用。 2.主要技术指标 2.1 输出电源……………………………………………………+15V,200mA 电压偏差: ±5%

-15V,400mA 电压偏差: ±5%

2.2 累积显示位数………………………………………………………………………6 位(0~ 999999)

2.3 流量累积误差…………………………………………………………………………………< 0.3 %

2.4 瞬时流量显示分辨率………………………………………………………………………0.1% F.S

2.5 输入输出信号………………………………………………………………电压信号:0~+5.00V

2.6 供电电源………………………………………………………………~85-265V AC 50Hz/60 Hz

2.7 通讯接口…………………………………………………………………………RS232/RS485 接口

2.8 最大功耗…………………………………………………………………………………………10W

2.9 控制通道数…………………………………………………………………………………1 路 MFC

2.10 外形尺寸…………………………………………………………………………72×72×168 mm

2.11 重量……………………………………………………………………………………………0.5Kg

Page 6: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 2 页 共 33 页

3.工作原理 本型号流量积算仪由 ±15V 电源、5V 电源、数据采集系统芯片、瞬时流量和累积流量显

示器、按键和通讯部件等部分组成。由质量流量控制器送来的流量检测电压(0~+5V),经数据

采集系统芯片转换为数字信号,再进行运算处理和累积后,将瞬时流量值送到四位 LED 数码管

显示,显示单位为:SCCM(标准毫升/分)和 SLM(标准升/分);或者 SLM(标准升/分)和

SKLM(标准千升/分);同时将累积值送入 6 位 LED 数码管显示,显示单位与瞬时流量的单位

对应,分别为:SCC(标准毫升)和 SL(标准升),或者 SL(标准升)和 SKL(标准千升)。 流量的最大累积量为:999999 SL,若使用的流量计的单位为 SCCM,则开始的累积量单位

为 SCC,当累积到了 1000SCC 时,则累积单位自动变为 SL。如果累积量超过最大值时,计数器

将自动清零,从零开始继续累积。假如用户使用 100SCCM 量程的流量计,则最小累积时间可达

166666.67 小时(约 19 年)。本流量积算仪具有连续累积时间长、可循环累积、累积流量的小数

点和单位能自动调整等特点。 本机设计有串行通讯口,可以通过 RS232 接口或 RS485 接口与计算机进行通讯(RS232 和

RS485可通过电路板上的滑动开关 S2来切换),可以在上位机显示并控制流量控制器的工作状态,

关于串行通讯的接线请见本说明书的 4.5 部分,关于通信协议请见本说明书的附录一。 4.安装和接线 4.1 外形尺寸,本机采用标准塑料机箱,外形见图 1。

图 1 外形尺寸图

4.2 安装开孔尺寸:67×67mm 4.3 安装方式:标准嵌装式

Page 7: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 3 页 共 33 页

4.4 积算仪前视图见图 2,后视图见图 3

图 2 前视图 图 3 后视图

4.5 串行通讯接线图,串行通讯的 D 型插座见图 4

图 4 串口信号图

当您采用一台上位机与一台 8C 积算仪进行通讯的方式时,请使用 RS232 通讯方式;当您采

Page 8: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 4 页 共 33 页

用一台上位机与多台 8C 积算仪进行通讯的方式时(最多 16 台),请使用 RS485 通信方式。 采用 RS232 方式通讯时:

将图 4 中的 2 引脚(TXD)与上位机串口的 RXD(PC 机串口的 2 引脚)相连; 将图 4 中的 3 引脚(RXD)与上位机串口的 TXD(PC 机串口的 3 引脚)相连; 将图 4 中的 5 引脚(SG)与上位机串口的 SG(PC 机串口的 5 引脚)相连;

采用 RS485 方式通讯时: 将图 4 中的 6 引脚(A+)与上位机 RS485 串口的(A+)相连; 将图 4 中的 7 引脚(B-)与上位机 RS485 串口的(B-)相连;

此时采用的是 RS485 半双工通信方式,通过为每一台积算仪设置不同的地址来标识它们,

此时可以实现一台上位机控制 16 台 8C 积算仪。(具体的通信协议请见附录一) 4.6 与 MFC 相连的 D 型插座信号见图 5

图 5 与 MFC 相连的 D 型接口信号图

当本流量积算仪与 MFC 配套使用时, 只需用电缆(用户根据不同型号的 MFC 定购不同的电

缆)通过 D 型插头将流量积算仪与 MFC 连接起来即可。

Page 9: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 5 页 共 33 页

4.7 ~220V 电源接线图,见图 3 中左边端子排的下三个端子分别为 220V(L)、220V(N)和 GND,

此三个端子应通过电源线与 220V 交流电源连接,为安全起见 GND 必须连接。 5.操作方法 5.1 开机:本机无电源开关,当外部交流电源接通时,本机即可工作。 5.2 初始状态

新机初次上电默认为阀控状态,绿色“阀自动”指示灯将会亮起;默认满量程为 100.0SCCM;

默认通信地址为 1;累积值单位默认为 SCC; 5.3 按键定义

D08-8C 型数字流量积算仪前面板上共有“阀自动”、“阀关闭”、“设置”、“确认”、

“增加”和“减少”六个按键。 a)“设置”键:该键实现下述 5.4 菜单设置功能,该菜单下有六个子菜单; b)“确认”键:决定具体进入哪一个功能菜单,设置完成后按下"确认"键有保存设置功能; c)“增加”键:为满量程、流量设定和地址设置的增加键,每按一次其数值增加 1,连按则数值

连续增加。 d)“减少”键:为满量程、流量设定和地址设置的减少键,每按一次其数值减少 1,连按则数值

连续减小。 e)“阀自动”键:该键实现控制阀的功能,开机初始状态为阀控状态,当流量控制器处于关闭或

清洗状态时,按此键可使流量控制器返回阀控状态。 f)“阀关闭”键:该键实现控制阀的关闭功能; 5.4 菜单功能说明

在正常显示瞬时流量时,若按下“设置”键,显示“1”表示进入子菜单 1。 子菜单 1:瞬时流量设定

进入子菜单 1 后,此时可以按下四个键进行相应的动作,按增加键显示“2”即进入子菜单

2;按减少键显示“6”,即进入子菜单 6;按设置键跳回瞬时流量显示;按确定键进入流量设定

Page 10: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 6 页 共 33 页

方式,并且个位开始闪烁,此时可以通过增加减少键来改变个位的值,每按增加减少键一次,值

改变 1,连按则连续增加或减少,设置好个位的值以后按确定键,此时十位的数字开始闪烁,可

以通过增加减少键来设定十位的值,依此类推,当按下四次确定键以后流量设定完成,退回“1”此时按增加减少键可以选择其他子菜单,按设置键退回瞬时流量显示。

注意:

1. 当在子菜单 1 中逐位设置的瞬时流量设定值大于满量程值时,按下确定键后会自

动默认为满量程值。

2. 为了避免将零飘值计入累积流量,本积算仪设计为当积算仪的瞬时流量小于等于

满量程的 1%时,此时的瞬时值不计入累积流量。

子菜单 2:满量程设置 此菜单的设置方式与子菜单 1 的设置方法完全相同,只不过按下四次确定键以后不会退回

“2”,而是小数点闪烁,此时可以通过增加键改变小数点的位置,设置好小数点的位置以后,

按确定键退回“2” 此时按增加减少键可以选择其他子菜单,按设置键退回瞬时流量显示。 注意:

满量程的设置精度将影响瞬时显示值的精度,即瞬时显示值的小数点位置将和满量程

的小数点位置相同。 子菜单 3:单位灯的设置

进入“3”后按确定键显示“31”此时按增加键或减少键可以反复改变 SLM 灯亮还是 SCCM灯亮,表示相应的单位。设置完成后按确定键返回“3”。此时按增加减少键可以选择其他子菜

单,按设置键退回瞬时流量显示。

子菜单 4:地址设定 进入“4”后,设置方法与子菜单 1 的设置方法完全相同,地址范围 0~255。

注意:

当显示仪与上位机通讯时,显示仪的地址必须与上位机发送数据的地址相同,

否则无法正常通讯,详见《D08-8C 型数字流量积算仪通信协议》。

Page 11: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 7 页 共 33 页

子菜单 5:清洗 进入“5”以后,按确定键显示“51”,再按确定键时,阀自动灯灭,清洗灯开始闪烁,流

量控制器处于清洗状态,此时可有两种方式结束清洗状态,第一种方式为按设置键停止清洗,返

回“51”,同时清洗灯灭自动灯亮;第二种方式为按阀自动键停止清洗并返回瞬时流量显示,同

时清洗灯灭自动灯亮。 注意:

当质量流量控制器处于清洗状态时,通过流量控制器的瞬时流量通常很大,此时显示

仪显示的瞬时流量值将溢出并有闪烁,表示此时的瞬时流量远远大于满量程。 子菜单 6:累积量清零

此功能可以将累积量手动清零,进入“6”以后,按确定键显示“61”,再按确定键累积量

清零(清零过程需要 1.5 秒)并返回到瞬时流量显示状态。 5.5 关机 用户切断外接交流电源,即可关机。

掉电保护功能:

掉电时显示仪的瞬时流量设定值、满量程值和单位具有掉电保护功能,下次再上电时

保持不变;运行时流量累积值每 30 秒钟向 flash 中存储一次,上电时会取出上次运

行时最后一次所存的累积值。

6.操作举例 例一:将显示仪的满量程由原来的 100.0SCCM 改为 2000SCCM,操作过程如下: 1) 按一次“设置”键,进入子菜单状态 1,再按一次增加键,显示器显示“2”; 2) 再按“确认”键,进入满量程设置子菜单,则个位的“0”在闪烁; 3) 按三次“确认”键,千位的“1”在闪烁,表示此时可通过“增加”或“减少”键改变其值; 4) 按一次“增加”键,闪烁的值显示为“2”; 5) 按一次“确认”键,进入小数点设置状态,初始在十位闪烁; 6) 按三次“增加”键使小数点消失(小数点在个位时不显示小数点); 7) 最后按一次“确认”键,退回到子菜单 2,再按一次设置键返回到瞬时显示状态。

Page 12: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 8 页 共 33 页

8) 更改满量程后应该将累积量清零 1 次,操作过程如下: 按一次“设置”键,进入子菜单 1,按一次“减少”键,显示子菜单 6,按一次“确认”键

显示“61”,再按一次“确认”键,等待 1.5 秒,清零操作完成并回到瞬时显示状态。 例二:将显示仪瞬时流量的单位由原来的 SCCM 改为 SLM,操作过程如下: 1) 按一次“设置”键,进入子菜单状态 1,再按两次增加键,显示器显示“3”; 2) 再按一次“确认”键,显示“31”,表示已经进入单位设置子菜单; 3) 按一次“增加”键,SCCM 灯灭,SLM 灯亮; 4) 按一次“确认”键,退回到“3”; 5) 按一次“设置”键,退回到瞬时显示状态; 6) 与例一相同,更改流量单位后也应该将累积量清零 1 次,操作过程同例一中的第八步。 7.注意事项 7.1 禁止带电插拔信号线。 7.2 当流量检测端的检测电压信号为负时,将显示-00.0。 7.3 在显示仪处于阀自动(即阀控状态)时,此时按下关闭键流量控制器会关闭,在此关闭状态

下也可以按设置键进入子菜单 1 进行流量设定,但是当设定完成后按下确定键时控制器不会

马上动作,因为此时控制器仍处于关闭状态,此时要按阀自动键后流量控制器才会动作。 7.4 本积算仪也可以与质量流量计配套使用,此时设定与阀控不起作用只显示瞬时流量和累积流

量。 7.5 本积算仪的通信协议请见附录一。

Page 13: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 9 页 共 33 页

8.选型与订货规格填写 8.1 显示仪选型表

适用范围 电路类型 外形 显示类型 输入电源 输出电源 扩展功能

产品型号 MFC MFM 模拟

产品 数字

产品

嵌入式 仪表 塑壳

台式 豪华 机箱

上架式 型材 机箱

单通道 单显示

多通道 单显示

多通道 多显示

~110 VAC

~220 VAC

~85 -265 VAC

±15 VDC

+24 VDC

4~20mA/ 0~10mA 电流输入

4~20mA/ 0~10mA 电流输出

4~20mA / 1~5V

输入信号

4~20mA / 1~5V

输出信号

RS232/RS485通讯

设定 显示

流量 积算

1F √ √ √ √ √ √ √ √ √ 1FM √ √ √ √ √ √ √ 1FP √ √ √ √ √ √ √ √ √ √ 1/2/4 √ √ √ √ √ √ √

2F/3F/4F √ √ √ √ √ √ √ √ 2B/3B/4B 2E/3E/4E

√ √ √ √ √ √ √

1K √ √ √ √ √ √ √ √ 1~5V 1G √ √ √ √ √ √ √ √

1GM √ √ √ √ √ √ √ 8C √ √ √ √ √ √ √ √ √

8CM √ √ √ √ √ √ √ √

Page 14: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 10 页 共 33 页

8.2 订货填写示例 D08- [t] - [b] - [s]

[t] – 8C

Type 型号

[c] – -[2] RS232

Communication type 通讯

-[4] RS485 [s] – -[-] 各路均为百分比显示(100.0),中文标签。

Special request特殊要求

-[S] 给出显示对应的量程(见对应关系表),并注明其他要求。

量程 代表字母 5sccm A 10sccm B 20sccm C 30sccm D 50sccm E

100sccm F 200sccm G 300sccm H 500sccm J

1slm K 2slm L 3slm M 5slm N

10slm P 20slm Q 30slm R 50slm U 100slm V 150slm W 200slm X 250slm Y 300slm Z

百分比显示 S

Page 15: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 11 页 共 33 页

9. 关于产品的上位机软件说明 9.1 概述

D08-8C 型流量积算仪软件是应用于北京七星华创流量积算仪 D08-8C/8CM 产品的应用软

件。提供了良好的人机交互界面和便捷的操作,主要功能包括监控设备的瞬时流量和累积流量、

设定设备的瞬时流量、设备瞬时流量的实时曲线显示、流量数据的保存(Excel 文档)和流量上下

限报警等功能。软件操作界面如下:

9.2 软件下载步骤说明 1)打开网页:http://mfc.sevenstar.com.cn 2)点击网页上的“登陆/注册”。 3)若为已注册用户,可直接登录,进入下一步骤; 若为未注册用户,请点击网页上的“立即注册”,填写必要信息,待用户审核通过后,进入

下一步骤。(审核过程请参见“新闻中心”中“关于新版网站注册用户审核的说明”) 4)进入“下载中心”,选择“相关技术资料”,点击网页上的“D08-8C 型流量积算仪安装软件

及使用说明”,即可下载该软件。

Page 16: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 12 页 共 33 页

附录一:D08-8C 型数字流量积算仪通信协议 一: 概述

本通信协议应用于 D08-8C 型流量积算仪与上位机的通信,数据以 16 进制格式传输,波特

率:9600;数据位 8 位;停止位:1 位;效验位:无。 二: 通信协议的具体格式 1: 读流量积算仪的当前状态 上位机→积算仪

字节含义:

01 03 00 02 00 08 E5 CC

01: 设备地址,此处设备地址为 1;

03: 功能码 03(读取);

00 02: 读取参数的起始地址,为 0x0002;

00 08: 读取的字数,为 8个字(16个字节);

E5 CC: CRC 效验值,E5为 CRC的低 8位,CC为高 8位。

上位机←积算仪

字节含义:

01 03 10(1)(2)(3)(4)(5)(6)(7)(8)(9)(10)(11)(12)(13)(14)(15)(16) CRCL CRCH

01: 设备地址,此处设备地址为 1;

03: 功能码 03(读取);

10: 上传的字节数,为 16个字节;

(1)~(4): 瞬时流量值;

传输数据“00~09”表示数字“0 ~9 ”;

传输数据“10~19”表示数字“0.~9.”;

“0F”表示灭;

“0A”表示负号“-”;

Page 17: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 13 页 共 33 页

“1A”表示负号“-.”;

传输顺序为先低位后高位;

例如(1)~(4)为 00 10 09 0F表示瞬时流量为“90.0”;

(5)~(10): 流量累积值;

传输数据定义规则与瞬时流量相同;

例如(5)~(10)为05 13 04 02 0F 0F表示累积流量为“243.5”;

(11)~(14): 满量程;

传输数据定义规则与瞬时流量相同;

例如(11)~(14)为 00 10 00 01表示满量程为“100.0”;

(15): 流量单位;

00 表示单位为 SCCM和 SCC(或者 SLM和 SL);

01 表示单位为 SCCM和 SL(或者 SLM和 KSL);

11 表示单位为 SLM 和 SL(或者 KSLM和 KSL);

(16): 阀状态;

00表示关闭; 80 表示阀控; FF 表示清洗;

CRCL: CRC 的低 8位;

CRCH: CRC 的高 8位。

2: 读瞬时流量设定值 上位机→积算仪

字节含义:

01 03 01 0A 00 02 E5 F5

01: 设备地址,此处设备地址为 1;

03: 功能码 03(读取);

01 0A: 读取参数的起始地址,为 0x010A;

00 02: 读取的字数,为 2个字(4个字节);

E5 F5: CRC 效验值,E5为 CRC的低 8位,F5为高 8位。

Page 18: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 14 页 共 33 页

上位机←积算仪

字节含义:

01 03 04 (1) (2) (3) (4) CRCL CRCH

01: 设备地址,此处设备地址为 1;

03: 功能码 03(读取);

04: 上传的字节数,为 4个字节;

(1)~(4): 瞬时流量设定值;

传输数据“00~09”表示数字“0 ~9 ”;

传输数据“10~19”表示数字“0.~9.”;

传输顺序为先低位后高位;

例如(1)~(4)为 00 10 08 00表示瞬时流量设定值为“80.0”;

CRCL: CRC 的低 8位;

CRCH: CRC 的高 8位。

3:累积流量清零 上位机→积算仪

字节含义:

01 05 00 18 00 FF 0D 8D

01: 设备地址,此处设备地址为 1;

05: 功能码 05;

00 18: 操作起始地址,为 0x0018;

00 FF: 表示清零;

0D 8D: CRC 效验值,0D为 CRC的低 8位,8D为高 8位。

上位机←积算仪

与上位机发给积算仪的数据相同。

01 05 00 18 00 FF 0D 8D

Page 19: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 15 页 共 33 页

4:设定阀状态 上位机→积算仪

01 06 00 16 00 00 68 0E 关闭

01 06 00 16 00 80 69 AE 阀控

01 06 00 16 00 FF 28 4E

字节含义:

清洗

01: 设备地址,此处设备地址为 1;

06: 功能码 06(写 1个字);

00 16: 操作起始地址,为 0x0016;

00 00:表示关闭; 00 80:表示阀控; 00 FF:表示清洗;

最后两个字节: CRC效验,低位在前,高位在后。

上位机←积算仪

01 06 00 16 00 00 68 0E 关闭

01 06 00 16 00 80 69 AE 阀控

01 06 00 16 00 FF 28 4E

与上位机发给积算仪的数据相同。

清洗

5:设定瞬时流量 上位机→积算仪

字节含义:

01 06 01 0A (1) (2) CRCL CRCH

01: 设备地址,此处设备地址为 1;

06: 功能码 06(写 1个字);

01 0A: 操作起始地址,为 0x010A;

(1) (2): 以 16进制表示的流量设定值,高位在前低位在后;

注意设定瞬时流量时不考虑小数点,系统的小数点与满量程的小数点位置相同。

例如(1)(2)为 00 00小数点在个位表示设定为 0,小数点在十位表示设定为 0.0

(1)(2)为 01 F4 小数点在个位表示设定为 500,小数点在十位表示设定为 50.0

Page 20: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 16 页 共 33 页

(1)(2)为 02 EE小数点在个位表示设定为 750,小数点在十位表示设定为 75.0

(1)(2)为 03 E8 小数点在个位表示设定为 1000,小数点在十位表示设定为 100.0

(1)(2)为 1D 4C 小数点在个位表示设定为 7500,小数点在十位表示设定为 750.0

CRCL、CRCH: CRC 效验,低位在前,高位在后。

与上位机发给积算仪的数据相同。

上位机←积算仪

三:CRC 的计算方法 CRC 即循环冗余效验,它将通信指令中的所有字节除 CRC本身外按下图所示方法计算。

Page 21: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 17 页 共 33 页

Page 22: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 18 页 共 33 页

用 C 语言实现 CRC 计算:

CRC=0xFFFF;

for(i=0;i<length(message)-1;i++)

{

CRC=CRC^(message[i] & 0x00FF);

for(j=0;j<8;j++)

{

carry=CRC & 0x0001;

CRC=CRC>>1;

if(carry==0x0001)CRC=CRC^0xA001;

}

}

用 Pascal 语言实现 CRC计算:

PROCEDURE CALCRC(var CRC:word; c:char); Var carry:word;

I:byte BEGIN CRC := CRC XOR ( ord(c) AND $00FF ); For d := 0 To 7 Do

Begin carry := CRC AND $0001 ; CRC := CRC SHR 1 ; If carry = $0001 Then CRC := CRC XOR $A001 ;

End; END; CRC := $FFFF; For i := 1 To Length(Message) Do CALCRC(CRC, Message [i]); Message := Message + chr( (CRC + 256) MOD (((CRC div 256)+1)*256))+ chr(CRC div 256);

Page 23: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 19 页 共 33 页

D08-8CM 型流量积算仪 技 术 说 明 书

1.用途 流量积算仪为质量流量计(MFM)提供工作电源、瞬时流量和累积流量的数字显示, D08-8CM 型数字流量积算仪可直接与我厂 D07 系列质量流量计配套使用。同时原则上可以与世

界上其它型号的质量流量计配合使用。 2.主要技术指标 2.1 输出电源…………………………………………………+15V, 200 mA 电压偏差: ±5%

-15V, 400 mA 电压偏差: ±5%

2.2 累积量显示位数………………………………………………………………6 位(0~ 999999)

2.3 流量累积误差…………………………………………………………………………… < 0.3 %

2.4 瞬时流量显示分辨率…………………………………………………………………±0.1% F.S

2.5 输入信号电压………………………………………………………………电压信号:0~+5.00V

2.6 供电电源………………………………………………………………~85-265V AC 50Hz/60 Hz

2.7 通讯接口…………………………………………………………………………RS232/RS485 接口

2.8 最大功耗……………………………………………………………………………………… 10W

2.9 控制通道数……………………………………………………………………………… 1 路 MFC

2.10 外形尺寸…………………………………………………………………………72×72×168mm

2.11 重量………………………………………………………………………………………… 0.5kg

Page 24: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 20 页 共 33 页

3.工作原理 本型号流量积算仪由 ±15V 电源、5V 电源、数据采集系统芯片、瞬时流量和累积流量显

示器、按键和通讯部件等部分组成。由质量流量计送来的流量检测电压(0~+5V),经数据采集

系统芯片转换为数字信号,再进行运算处理和累积后,将瞬时流量值送到四位 LED 数码管显示,

显示单位为:SCCM(标准毫升/分)和 SLM(标准升/分);或者 SLM(标准升/分)和 SKLM(标准千升/分);同时将累积值送入 6 位 LED 数码管显示,显示单位与瞬时流量的单位对应,

分别为:SCC(标准毫升)和 SL(标准升),或者 SL(标准升)和 SKL(标准千升)。 流量的最大累积量为:999999 SL,若使用的流量计的单位为 SCCM,则开始的累积量单位

为 SCC,当累积到了 1000SCC 时,则累积单位自动变为 SL。如果累积量超过最大值时,计数器

将自动清零,从零开始继续累积。假如用户使用 100SCCM 量程的流量计,则最小累积时间可达

166666.67 小时(约 19 年)。本流量积算仪具有连续累积时间长、可循环累积、累积流量的小数

点和单位能自动调整等特点。 本机设计有串行通讯口,可以通过 RS232 接口或 RS485 接口与计算机进行通讯(RS232 和

RS485 可通过电路板上的滑动开关 S2 来切换),可以在上位机显示流量计的工作状态,关于串

行通讯的接线请见本说明书的 4.5 部分,关于通信协议请见本说明书的附录二。 4.安装和接线 4.1 外形尺寸,本机采用标准塑料机箱,外形见图 1。

4.2 安装开孔尺寸:67×67mm 4.3 安装方式:标准嵌装式

Page 25: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 21 页 共 33 页

4.4 积算仪前视图见图 2,后视图见图 3

图 2 前视图 图 3 后视图 4.5 串行通讯接线图,串行通讯的 D 型插座见图 4

图 4 串口信号图

当您采用一台上位机与一台 8CM 积算仪进行通讯的方式时,请使用 RS232 通讯方式;当您

采用一台上位机与多台 8CM 积算仪进行通讯的方式时(最多 16 台),请使用 RS485 通信方式。 采用 RS232 方式通讯时:

Page 26: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 22 页 共 33 页

将图 4 中的 2 引脚(TXD)与上位机串口的 RXD(PC 机串口的 2 引脚)相连; 将图 4 中的 3 引脚(RXD)与上位机串口的 TXD(PC 机串口的 3 引脚)相连; 将图 4 中的 5 引脚(SG)与上位机串口的 SG(PC 机串口的 5 引脚)相连;

采用 RS485 方式通讯时: 将图 4 中的 6 引脚(A+)与上位机 RS485 串口的(A+)相连; 将图 4 中的 7 引脚(B-)与上位机 RS485 串口的(B-)相连;

此时采用的是 RS485 半双工通信方式,通过为每一台积算仪设置不同的地址来标识它们,

此时可以实现一台上位机控制 16 台 8CM 积算仪。(具体的通信协议请见附录二) 4.6 与 MFC 相连的 D 型插座信号见图 5

图 5 与 MFM 相连的 D 型插座信号图

当本流量积算仪与 MFM 配套使用时,只需用电缆(用户根据不同型号的 MFM 定购不同的

电缆)通过 D 型插头将流量积算仪与 MFM 连接起来即可。

Page 27: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 23 页 共 33 页

4.7 ~220V 电源接线图,见图 3 中左边端子排的下三个端子分别为 220V(L)、220V(N)和 GND,

此三个端子应通过电源线与 220V 交流电源连接,为安全起见 GND 必须连接。 5.操作方法 5.1 开机:本机无电源开关,当外部交流电源接通时,本机即可工作。 5.2 初始状态

新机初次上电默认满量程为 100.0SCCM;默认通信地址为 1;累积值单位默认为 SCC; 5.3 按键定义 D08-8CM 型数字流量积算仪前面板上共有“设置”、“确认”、“增加”和“减少” 四个键。 a)“设置”键:该键实现下述 3.3 菜单设置功能,该菜单下有四个子菜单; b)“确认”键:决定具体进人哪一个子菜单,设置完成后按下“确认”键有保存设置的功能; c)“增加”键:为满量程、地址设置的增加键,每按一次数值增加 1,连续按下则数值连续增加。 d)“减少”键:为满量程、地址设置的减少键,每按一次数值减少 1,连续按下则数值连续减小。 5.4 菜单功能说明

在正常显示瞬时流量时,若按下“设置”键,显示“1”表示进入子菜单 1 子菜单 1:满量程设置

进入子菜单 1 后,此时可以按下四个键进行相应的动作,按增加键显示“2”即进入子菜单

2;按减少键显示“4”,即进入子菜单 4;按设置键跳回瞬时流量显示;按确定键进入满量程设

定方式,并且个位开始闪烁,此时可以通过增加减少键来改变个位的值,每按增加减少键一次,

值改变 1,连按则连续增加或减少,设置好个位的值以后按确定键,此时十位的数字开始闪烁,

可以通过增加减少键来设定十位的值,依此类推,当按下四次确定建以后,小数点闪烁,此时可

以通过增加键改变小数点的位置,设置好小数点的位置以后,按确定键退回“1”,此时按增加

减少键可以选择其他子菜单,按设置键退回瞬时流量显示。

Page 28: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 24 页 共 33 页

注意:

满量程的设置精度将影响瞬时显示值的精度,即瞬时显示值的小数点位置将和满量程的

小数点位置相同。

子菜单 2:单位灯的设置 进入“2”后按确定键显示“21”此时按增加键或减少键可以反复改变 SLM 灯亮还是 SCCM

灯亮(或者是 SLM 灯亮还是 KSLM 灯亮),表示相应的瞬时流量单位。设置完成后按确定键返

回“2”。此时按增加减少键可以选择其他子菜单,按设置键退回瞬时流量显示。

子菜单 3:地址设定 进入“3”后,设置方法与子菜单 1 的设置方法完全相同(无小数点)。

注意:

当显示仪与上位机通讯时,显示仪的地址必须与上位机发送数据的地址相同,

否则无法正常通讯,详见《D08-8CM 型数字流量积算仪通信协议》。

子菜单 4:累积量清零

此功能可以将累积量手动清零,进入“4”以后,按确定键显示“41”,再按确定键累积量清

零(清零过程需要 1.5 秒)并退回到瞬时流量显示状态。 5.5 关机 用户切断外接交流电源, 即可关机。

掉电保护功能:

掉电时显示仪的满量程值和单位具有掉电保护功能,下次再上电时保持不变;运行时

流量累积值每 30 秒钟向 flash 中存储一次,上电时会取出上次运行时最后一次所存

的累积值。

Page 29: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 25 页 共 33 页

6.操作举例 例一:将显示仪的满量程由原来的 100.0SCCM 改为 2000SCCM,操作过程如下: 1) 按一次“设置”键,进入子菜单状态 1,显示器显示“1”; 2) 再按“确认”键,进入满量程设置子菜单,则个位的“0”在闪烁; 3) 按三次“确认”键,千位的“1”在闪烁,表示此时可通过“增加”或“减少”键改变其值; 4) 按一次“增加”键,闪烁的值显示为“2”; 5) 按一次“确认”键,进入小数点设置状态,初始在十位闪烁; 6) 按三次“增加”键使小数点消失(小数点在个位时不显示小数点); 7) 最后按一次“确认”键,退回到子菜单 1,再按一次设置键返回到瞬时显示状态。 8) 更改满量程后应该将累积量清零 1 次,操作过程如下: 按一次“设置”键,进入子菜单 1,按一次“减少”键,显示子菜单 4,按一次“确认”键

显示“41”,再按一次“确认”键,等待 1.5 秒,清零操作完成并回到瞬时显示状态。 例二:将显示仪瞬时流量的单位由原来的 SCCM 改为 SLM,操作过程如下: 1) 按一次“设置”键,进入子菜单状态 1,再按一次增加键,显示器显示“2”; 2) 再按一次“确认”键,显示“21”,表示已经进入单位设置子菜单; 3) 按一次“增加”键,SCCM 灯灭,SLM 灯亮; 4) 按一次“确认”键,退回到“2”; 5) 按一次“设置”键,退回到瞬时显示状态; 6) 与例一相同,更改流量单位后也应该将累积量清零 1 次,操作过程同例一中的第八步。 7.注意事项 7.1 当流量检测端的检测电压信号为负时,将显示-00.0。

7.2 本积算仪的通信协议请见附录二。

Page 30: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 26 页 共 33 页

8.选型与订货规格填写 8.1 显示仪选型表

适用范围 电路类型 外形 显示类型 输入电源 输出电源 扩展功能

产品型号 MFC MFM 模拟

产品 数字

产品

嵌入式 仪表 塑壳

台式 豪华 机箱

上架式 型材 机箱

单通道 单显示

多通道 单显示

多通道 多显示

~110 VAC

~220 VAC

~85 -265 VAC

±15 VDC

+24 VDC

4~20mA/ 0~10mA 电流输入

4~20mA/ 0~10mA 电流输出

4~20mA / 1~5V

输入信号

4~20mA / 1~5V

输出信号

RS232/RS485通讯

设定 显示

流量 积算

1F √ √ √ √ √ √ √ √ √ 1FM √ √ √ √ √ √ √ 1FP √ √ √ √ √ √ √ √ √ √ 1/2/4 √ √ √ √ √ √ √

2F/3F/4F √ √ √ √ √ √ √ √ 2B/3B/4B 2E/3E/4E

√ √ √ √ √ √ √

1K √ √ √ √ √ √ √ √ 1~5V 1G √ √ √ √ √ √ √ √

1GM √ √ √ √ √ √ √ 8C √ √ √ √ √ √ √ √ √

8CM √ √ √ √ √ √ √ √

Page 31: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 27 页 共 33 页

8.2 订货填写示例 D08- [t] - [b] - [s]

[t] – 8CM

Type 型号

[c] – -[2] RS232

Communication type 通讯

-[4] RS485 [s] – -[-] 各路均为百分比显示(100.0),中文标签。

Special request特殊要求

-[S] 给出显示对应的量程(见对应关系表),并注明其他要求。

量程 代表字母 5sccm A 10sccm B 20sccm C 30sccm D 50sccm E

100sccm F 200sccm G 300sccm H 500sccm J

1slm K 2slm L 3slm M 5slm N

10slm P 20slm Q 30slm R 50slm U 100slm V 150slm W 200slm X 250slm Y 300slm Z

百分比显示 S

Page 32: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 28 页 共 33 页

9. 关于产品的上位机软件说明 9.1 概述

D08-8C 型流量积算仪软件是应用于北京七星华创流量积算仪 D08-8C/8CM 产品的应用软

件。提供了良好的人机交互界面和便捷的操作,主要功能包括监控设备的瞬时流量和累积流量、

设定设备的瞬时流量、设备瞬时流量的实时曲线显示、流量数据的保存(Excel 文档)和流量上下

限报警等功能。软件操作界面如下:

9.2 软件下载步骤说明 1)打开网页:http://mfc.sevenstar.com.cn 2)点击网页上的“登陆/注册”。 3)若为已注册用户,可直接登录,进入下一步骤; 若为未注册用户,请点击网页上的“立即注册”,填写必要信息,待用户审核通过后,进入

下一步骤。(审核过程请参见“新闻中心”中“关于新版网站注册用户审核的说明”) 4)进入“下载中心”,选择“相关技术资料”,点击网页上的“D08-8C 型流量积算仪安装软件

及使用说明”,即可下载该软件。

Page 33: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 29 页 共 33 页

附录二:

D08-8CM 型数字流量积算仪通信协议 一: 概述

本通信协议应用于 D08-8CM 型流量积算仪与上位机的通信,数据以 16 进制格式传输, 波特率:9600;数据位 8 位;停止位:1 位;效验位:无。 二: 通信协议的具体格式 1: 读流量积算仪的当前状态 上位机→积算仪

字节含义:

01 03 00 02 00 08 E5 CC

01: 设备地址,此处设备地址为 1;

03: 功能码 03(读取);

00 02: 读取参数的起始地址,为 0x0002;

00 08: 读取的字数,为 8个字(16个字节);

E5 CC: CRC 效验值,E5为 CRC的低 8位,CC为高 8位。

上位机←积算仪

字节含义:

01 03 10(1)(2)(3)(4)(5)(6)(7)(8)(9)(10)(11)(12)(13)(14)(15)(16) CRCL CRCH

01: 设备地址,此处设备地址为 1;

03: 功能码 03(读取);

10: 上传的字节数,为 16个字节;

Page 34: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 30 页 共 33 页

(1)~(4): 瞬时流量值;

传输数据“00~09”表示数字“0 ~9 ”;

传输数据“10~19”表示数字“0.~9.”;

“0F”表示灭;

“0A”表示负号“-”;

“1A”表示负号“-.”;

传输顺序为先低位后高位;

例如(1)~(4)为 00 10 09 0F表示瞬时流量为“90.0”;

(5)~(10): 流量累积值;

传输数据定义规则与瞬时流量相同;

例如(5)~(10)为05 13 04 02 0F 0F表示累积流量为“243.5”;

(11)~(14): 满量程;

传输数据定义规则与瞬时流量相同;

例如(11)~(14)为 00 10 00 01表示满量程为“100.0”;

(15): 流量单位;

00 表示单位为 SCCM和 SCC(或者 SLM和 SL);

01 表示单位为 SCCM和 SL(或者 SLM和 KSL);

11 表示单位为 SLM 和 SL(或者 KSLM和 KSL);

(16): 未定义。

CRCL: CRC 的低 8位;

CRCH: CRC 的高 8位。

2:累积流量清零 上位机→积算仪

字节含义:

01 05 00 18 00 FF 0D 8D

01: 设备地址,此处设备地址为 1;

05: 功能码 05;

Page 35: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 31 页 共 33 页

00 18: 操作起始地址,为 0x0018;

00 FF: 表示清零;

0D 8D: CRC 效验值,0D为 CRC的低 8位,8D为高 8位。

上位机←积算仪

与上位机发给积算仪的数据相同。

01 05 00 18 00 FF 0D 8D

三:CRC 的计算方法 CRC 即循环冗余效验,它将通信指令中的所有字节除 CRC本身外按下图所示方法计算。

Page 36: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 32 页 共 33 页

Page 37: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

第 33 页 共 33 页

用 C 语言实现 CRC 计算:

CRC=0xFFFF;

for(i=0;i<length(message)-1;i++)

{

CRC=CRC^(message[i] & 0x00FF);

for(j=0;j<8;j++)

{

carry=CRC & 0x0001;

CRC=CRC>>1;

if(carry==0x0001)CRC=CRC^0xA001;

}

}

用 Pascal 语言实现 CRC计算:

PROCEDURE CALCRC(var CRC:word; c:char); Var carry:word;

I:byte BEGIN CRC := CRC XOR ( ord(c) AND $00FF ); For d := 0 To 7 Do

Begin carry := CRC AND $0001 ; CRC := CRC SHR 1 ; If carry = $0001 Then CRC := CRC XOR $A001 ;

End; END; CRC := $FFFF; For i := 1 To Length(Message) Do CALCRC(CRC, Message [i]); Message := Message + chr( (CRC + 256) MOD (((CRC div 256)+1)*256))+ chr(CRC div 256);

Page 38: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

D08 系列

流量显示仪 北京七星华创电子股份有限公司

质量流量计分公司 (北京七星弗洛尔电子设备制造有限公司制造) 地 址: 北京市朝阳区酒仙桥东路 1 号 通讯地址: 北京 741 信箱 3 分箱 邮政编码: 100015 联系电话: +86-10-64362939 64362925 传 真: +86-10-64362923 网 址: www.mfcsevenstar.cn 电子信箱(E-mail): [email protected] 乘车路线: 乘地铁到东直门, 换乘 401 路公共汽车,到陈各庄下车或 乘地铁到农业展览馆,换乘 516 路公共汽车,到酒仙桥东路北口下车 上海办事处: 上海市浦东新区张江路 368 号 29 号楼 722 室 电 话: +86-21-63532370 传 真: +86-21-63533265 深圳办事处: 深圳市福田区振华路 45 号汽车大厦 B712(518031) 电 话: +86-755-88290258 传 真: +86-755-88294770

*公司承诺不断提升产品品质,保

留在不经通知的情况下对此手册

所含信息进行修改的权力。

*本手册内容,已经严格审校,如

有错误或遗漏,劳请及时告知。

*七星电子 版权所有

Page 39: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

D08-8C、D08-8CM

Flow Accumulator

Instruction Manual

Version December,2015

Page 40: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

D08-8C、D08-8CM Flow Accumulator revision:

Author Date Description Revision Zhao Di 05/12/2005 Initial version 1.01 Zhao Di 03/06/2006 This version can make the function that one

master(PC) communicates with 16 D08-8C/8CM Accumulators comes true.

1.02

Zhao Di 03/15/2010 The program in D08-8C/8CM were modified to make it more stable; The command of reading instantaneous flow set point value was added in D08-8C communication protocol. Please see Appendix One for details.

2.01

Page 41: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

A NOTE TO OUR CUSTOMERS

Dear customer,

Thank you for purchasing SEVENSTAR D08 series Flow Readout Boxes.

This user manual is important when installing and doing maintenance. Please keep it carefully.

We strongly recommend that you read this manual thoroughly before you starting to use the product. This user manual

introduces the important issues including the proper and safe use of the products.

And please notice the words and section with the symbol . Not in accordance with the user manual for the use of

property caused by loss or personal injury, SEVENSTAR may not be responsible.

If you require any additional information or assistant of Sevenstar D08 series Flow Readout Boxes. Please feel free to

contact your local Sevenstar Sales Agent or Sevenstar Customer Service at:

(8610)- 6436 2925.

Yours sincerely,

Sevenstar

Page 42: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

CONTENTS

D08-8C for mass flow controller D08-8CM for mass flow meter 1. APPLICATIONS................................................. 1 1. APPLICATIONS..................................................... 20

2. SPECIFICATIONS............................................. 1 2. SPECIFICATIONS................................................. 20

3. OPERATION PRINCIPLE.................................. 2 3. OPERATION PRINCIPLE...................................... 21

4. INSTALLATION & CONNECTION..................... 2 4. INSTALLATION & CONNECTION......................... 21

4.1 Dimension.......................................................... 2 4.1 Dimension.............................................................. 21

4.2 Tapping Installation Dimension.......................... 3 4.2 Tapping Installation Dimension.............................. 22

4.3 Installation Mode................................................ 3 4.3 Installation type..................................................... 22

4.4 view of Accumulator............................................ 3 4.4 view of Accumulator.............................................. 22

4.5 Serial communication Connection...................... 3 4.5 Serial communication Connection.......................... 22

4.6 D Connection...................................................... 4 4.6 D Connection........................................................ 23

4.7 ~220V Power Connection................................... 5 4.7 ~220V Power Connection.................................... 24

5. OPERATION INSTRUCTIONS........................... 5 5. OPERATION INSTRUCTIONS............................ 24

5.1 Start Up.............................................................. 5 5.1 Start Up................................................................ 24

5.2 Initial State.......................................................... 5 5.2 Initial State........................................................... 24

5.3 Button Definitions................................................ 6 5.3 Button Definitions................................................ 24

5.4 Menu Instructions............................................... 7 5.4 Menu Instructions................................................ 25

5.5 Shut Down.......................................................... 9 5.5 Shut Down........................................................... 26

6. EXAMPLE.......................................................... 9 6. EXAMPLE........................................................... 27

7. CAUTION........................................................... 10 7. CAUTION............................................................ 28

8. PRODUCTION SELECTION............................ 11 8. PRODUCTION SELECTION.............................. 28

APPENDIX One: COMMUNICATION PROTOCAL OF

8C ACCUMULATOR

13 APPENDIX Two: COMMUNICATION PROTOCAL OF

8CM ACCUMULATOR

30

D08 SERIES FLOW READOUT BOXES

Page 43: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 1 of 33

D08 SERIES FLOW READOUT BOXES D08-8C Flow Accumulator

Operating Instruction

1. APPLICATION D08-8C Flow Accumulator provides operating power supply, flow accumulating, instantaneous flow rate and cumulate flow rate digital display of MFC/MFM. General speaking, D08-8C Flow Accumulator is compatible with D07 series MFC & MFM, and it can also compatible with other MFCs. 2. SPECIFICATIONS

2.1 Output Power Supply (for MFC or MFM operation) …………......…+15V, 200 mA Voltage Difference: ±5%

-15V, 400 mA Voltage Difference: ±5%

2.2 Max Display Range…………………………………………………………........…999999 SL ( or 999999 Standard M3)

2.3 Flow Cumulated Error…………………………………………………………….…………………………………………< 0.3 %

2.4 Instantaneous Flow Display Distinguish ability…………………………….......…………………………………0.1% F.S

2.5 Standard Power Supply……………………………………….......…………+5.00V, 5mA Voltage Difference: ±0.1%

2.6 Supply Power…………………………………………………………....…………………………….~85-265V AC 50Hz/60Hz

2.7 Serial Communication interface…………………………………….......………………………………………RS232, RS485

2.8 Max power consumption…………………………………………………..……………………………………………………10W

2.9 Bypass Control……………………………………………………………..………………………1 Way MFC or 1 Way MFM

2.10 Dimension………………………………………………………………..……………………………………(72×72×168) mm

2.11 Weight……………………………………………………………………....................................................…………………0.5 kg

Page 44: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 2 of 33

3. OPERATION PRINCIPLE D08-8C Accumulator is consisted of ±15V power supply, 5V power supply, modulus converter, instantaneous flow & cumulated flow displayer, 6 keys and communication part. The flow test voltage (0V~+5V) that came from MFC/MFM converts to digital signal after pass through A/D converter to operate and cumulate processing in SCU( Single Chip Micyoco ). After that, the

instantaneous flow rate is delivered to four-place-LED displayer, the displaying units are SCCM (Standard Milliliter/Min) or SLM (Standard Liter/Min); it also could be: SLM or KSLM (Standard

Kiloliter /Min, viz. Standard M3/Min). The cumulated value is delivered simultaneously to 6-place-LED displayer, the displaying units are SCC (Standard Milliliter) or SL (Standard Liter);

it also could be: SL or KSL (Standard Kiloliter, viz. M3).

The maximum cumulated flow could match to 999999 SL, if MFM unit is SCCM, the preliminary cumulated flow unit is SCC, when cumulated value matched to 1000 SCC, the

cumulated flow unit will change to SL automatically. If cumulated value exceeds the maximum, the arithmometer will reset automatically and begin accumulating from zero. If user used 100 SCCM MFM, the minimum cumulated time could match to 166666.67 hours(about 19 years).

Our Flow Accumulator is quite good at long-time continuous accumulation, circulate accumulation, cumulated value radix point and unit automatic adjustment.

D08-8C Accumulator offers Serial Communication function, it can communicate with

master(PC) via Standard RS232 or RS485 Serial Communication Interface ( RS-232 and RS-485 is switched by the slide switch S2 on circuit board). Please refer to the Chapter 4.5 for more details of the serial communication. Please refer to appendix one for more details of the

communication protocol.

4. INSTALLATION & CONNECTION 4.1 Dimensions: It used standard plastic chassis, as showing in figure 1:

Page 45: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 3 of 33

Figure1. Dimensions of D08-8C

4.2 Installation Tapping Dimensions: ( 67×67 )mm

4.3 Installation Mode: Standard Inlay Installation 4.4 Front panel view(Figure 2) and rear panel view(Figure 3)

Figure2. Front panel view of D08-8C Figure3. Rear panel view of D08-8C

4.5 Seriel communication connection(Figure 4)

Page 46: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 4 of 33

Figure4. 9-pin Standard D-Sub socket

When you use one Master(PC) communicated with one D08-8C Accumulator, we commend RS232 communication mode; When you use one Master(PC) communicated with many D08-8C Accumulators( the maximum is 16 ), we commend RS485 communication mode; When you select RS232 communication mode:

Please connect pin 2(TXD) , pin 3(RXD) and pin 5(SG) showed in figure 4 to PC’s standard RS232 serial port’s corresponding pin 2(RXD),pin 3(TXD) and pin 5(Signal COM);

When you select RS485 communication mode:

Please connect pin 6(A+) , pin 7(B-) showed in figure 4 to the Master(PC)’s standard RS485 serial port’s corresponding pin(A+), pin(B-). In fact, this is the Half-Duplex RS485 Communication Mode, you should set every 8C Accumulator to the different address, the Master(PC) can discern every 8C Accumulator by the different address, in this mode you can use one Master(PC) communicate with 16 8C Accumulators (if you want know more about the communication protocol, please read the Appendix One).

4.6 15 pin Standard D-Sub connection with MFC

Page 47: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 5 of 33

Figure 5. 15 pin Standard D-Sub connection with MFC

It can be directly connected with MFC through D-Sub by cable.

4.7 ~220V power connection is showed in figure 3. For the sake of safety GND must be connected.

5. OPERATION 5.1 Startup

There is no power switch of Flow Accumulator, it could be operated after external alternating current connecting.

5.2 Initial State

“ Valve Drive ” is default when you connect external alternating current, the green “ Valve Drive ” LBD will light at the same time. Full scale readout defaults to 100.0SCCM; communication address

Page 48: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 6 of 33

defaults to 1, and cumulate flow unit defaults to SCC.

5.3 Keys Definitions

The D08-8C Accumulator is operated and configured by the six keys in the front panel, The keys’ meaning is shown below:

“SET “Key

This key is used to implementation functions under mentioned in 5.4, it has six submenus.

“OK” Key

This key let users enter the menu and save the value they have set.

“+” Key

This key can increase the value of Full Scale, Flow Setpoint and Address, when you quickly press this Key one time, the value will goes up “1”, when you press this key and continue several seconds, the value will goes up continuously.

“-” Key

This key can diminish the value of Full Scale, Flow Setpoint and Address, when you quickly press this Key one time, the value will goes down “1”, when you press this key and continue several seconds, the value will goes down continuously.

“AUTO” Key

MFC’s valve defaults to “ Valve Drive ” when the power is connected. This key can make MFC’s valve reset to “ Valve Drive ” state when MFC’s valve is in “OFF” or “PURGE” state.

“OFF” Key

This key is used to set MFC’s valve state to “OFF” state.

Page 49: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 7 of 33

5.4 The submenus The D08-8C has six submenus. All the submenus can be accessed and displayed easily: you can change from one submenu to another using the “+/-” keys or return to the state of displaying instantaneous flow value at any time by pressing the “SET” key.

Submenu1 : SET INSTANTANEOUS FLOW

To enter submenu1, press “SET” key and the display will read ”1”. Then you have four selections:

Press “+” key to enter submenu 2, and the display will read “2” ;

Press “-” key to enter submenu 6, and the display will read “6”;

Press “SET” key again to return to the state of instantaneous flow display; Press “OK” key to set the instantaneous flow. The setting sequence is as follows: At fist the last digit of setpoint value will flash, you can increase or diminish the last digit value by the “+ key” and “- key”, when the desired value is displayed, press the “OK key” and then the tens digit will flash allowing being updated in the same way. So you can change the setpoint value from the last digit to the first digit.

NOTICE

1 When the setpoint exceeds the Full Scale value, the setpoint value will automatically default to the Full Scale value after the “OK key” is pressed.

2 To avoid zero drift value being added to the cumulate value, D08-8C Accumulator is designed when the instantaneous flow value is less than or equal to one percent of the Full Scale value, this instantaneous flow value will not be added to the cumulate flow value.

Submenu2: SET FULL SCALE

This submenu’s operation method is identical to submenu 1. The only difference is that when you complete the first digit setting, the display value does not return to “2”, instead of that, the radix

Page 50: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 8 of 33

point will flash, and you can change the radix point’s location by the “+ key”. After that, press “OK key” to save the Full Scale value. At last, press “Set key” to return to the state of displaying instantaneous flow.

NOTICE

The Full Scale’s radix point location will have a effect on the instantaneous flow, it means the Full Scale and the instantaneous flow’s radix point have the same location.

Submenu3: SET UNIT

In this mode, the displayed reading is “3” indicating submenu 3. Press the OK key, it appears “31” in the display; then use “+/-” keys to make SLM LBD or SCCM LBD turns on or off. After that, press “OK key” to save the unit. At last, press “Set key” to return to the state of displaying instantaneous flow.

Submenu4: SET ADDRESS

This function of submenu is identical to submenu1, the range of address is 0~255.

NOTICE

When D08-8C accumulator communicate with PC, you should make sure that accumulator’s address is match to the protocol data’s address sent by Master(PC). If not, communication does not work. For the details, see《The Communication Protocal of D08-8C Flow Accumulator》below.

Submenu5: PURGE

When the displayed reading is “5”, press the “OK key” once, the display will read “51”; Press the “OK key” again, AUTO LBD will turn off, and PURGE LBD will flash, the MFC’s valve will be set to the “ Valve Purge ” state.

NOTICE

Page 51: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 9 of 33

When MFC’s valve is in “ Purge ” state, the displayed reading will overflow and flash, indicating that the instantaneous flow measured value is far greater than the Full Scale value.

Submenu6: CUMULATE FLOW RESET TO ZERO

When the displayed reading is “6”, press the “OK key” once, the display will read “61”; Press the “OK key” again, the cumulate flow will reset to zero, and then will automatically return to the state of instantaneous flow display( this process may take 1.5 seconds ).

5.5 SHUT DOWN

Disconnected AC power, the accumulator will turn off.

Cumulate flow value’s SAFEGUARD FUNCTION when power is off

The setpoint of instantaneous flow, Flow Full Scale and Units will be saved at the time of power off. When the power on, these values will not be changed. Specially, the cumulate flow value will be saved every 30 seconds, when the power on the cumulate flow matches to the last saved value.

6. EXAMPLES ONE: If you want to change the Full Scale value from 100.0SCCM to 2000SCCM, perform the

following steps: 1 Press the “SET key” once, “1” will appear on the display; increase it to “2” with the “+

key”;

2 Press the “OK key” to enter submenu2,unit digit “0” will flash; 3 Press the “OK key” three times, thousands digit “1” will flash, allowing being updated by

using “+ key” or “- key” ; 4 Increment it to “2” with the “+ key”;

Page 52: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 10 of 33

5 Press the “OK key”, the current radix point location will be shown and flash; 6 Press the “+ key” three times, the radix point will extinguish; 7 Press the “OK key” to save operation and return to submenu2, then depress the “SET key”

to 8 exit; 9 When you change the Full Scale, you should reset the cumulate flow value to zero, please

following the steps shown below: Press the “SET key” once, “1” will appear on the display indicating submenu1 is entered;

Press the “- key” once to scroll the number, the display will read “6” indicating submenu6

is entered;

Press the “OK key” once, “61” will be displayed;

Press the “OK key” again and wait for 1.5 seconds, the accumujlated value will be set to

zero and exit.

TWO: If you attempt to change the unit from SCCM to SLM, follow the steps shown below:

1 Press the “SET key” once, “1” will appear on the display indicating submenu1 is entered; then press the “+ key” twice to display “3”;

2 Press the “OK key” once to display “31”; 3 Press the “+ key” once, SCCM LBD will turn off and SLM LBD will turn on; 4 Press the “OK key” once to save and return to submenu3; 5 Press the “SET key” to exit; 6 Perform step 8 described in Example One.

7. CAUTION

7.1 When voltage signal of flow is negative, “-00.0” will be displayed.

Page 53: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 11 of 33

7.2 When the MFC is in the state of “Valve control”, You can change MFC’s valve state to “OFF” state by pressing the “OFF key”, in this situation, you can also enter the submenu 1 and change the instantaneous flow setpoint value, but when you complete the setpoint setting, the new value will not take effect at once, because the MFC’s valve is still in the “OFF” state, you must press the “AUTO key” making the MFC’s valve be changed to the “AUTO” state, and then the new setpoint value will take effect.

7.3 D08-8C Flow Accumulator can also operate together with MFM, in this situation, the “Valve control” and Setpoint didn’t work, it just tests instantaneous flow and displays instantaneous flow and cumulate flow.

7.4 Reference appendix 1 for more information about communication protocol.

8. PRODUCTION SELECTION 8.1 Type selection

Circuit Cases Display Power supply Output voltage

Other funtions

Type MFC MFM Ana. Dig. Mini -Type

Desk -style

Rack -desk -style

1 channel

1 Display

Multi- Channel

1 Display

Multi- Channel Multi-

Display

~110 VAC

~220 VAC

~85 -265 VAC

±15 VDC

+24 VDC

4~20mA/ 0~10mA I input

4~20mA/ 0~10mA I output

4~20mA / 1~5V Input Signal

4~20mA / 1~5V Output Signal

RS232/ RS485

Commu-nication

Setpoint display

Flow Accumu

-lator

1F √ √ √ √ √ √ √ √ √ 1FM √ √ √ √ √ √ √ 1FP √ √ √ √ √ √ √ √ √ √ 1/2/4 √ √ √ √ √ √ √

2F/3F/4F √ √ √ √ √ √ √ √ 2B/3B/4B 2E/3E/4E

√ √ √ √ √ √ √

1K √ √ √ √ √ √ √ √ 1~5V 1G √ √ √ √ √ √ √ √

1GM √ √ √ √ √ √ √ 8C √ √ √ √ √ √ √ √ √

8CM √ √ √ √ √ √ √ √

Page 54: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 12 of 33

8.2 Order form D08- [t] - [b] - [s]

[t] – 8C

Type

[c] – -[2] RS232

Communication type

-[4] RS485 [s] – -[-] percentage display(100.0),Chinese label.

Special request

-[S] List full scale(see table on right side) and other request.

Full scale Code 5sccm A 10sccm B 20sccm C 30sccm D 50sccm E

100sccm F 200sccm G 300sccm H 500sccm J

1slm K 2slm L 3slm M 5slm N

10slm P 20slm Q 30slm R 50slm U 100slm V 150slm W 200slm X 250slm Y 300slm Z

Page 55: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 13 of 33

APPENDIX 1 D08-8C COMMUNICATION PROTOCAL

1:Summary This protocol is applied to the communication between the Master(PC) and D08-8C Flow Accumulator. Data format: hexadecimal Baud rate: 9600 b/s Data bits: 8 bits Stop bits: 1 bit Check bits: none 2:DETAILED DATA FORMAT 2.1 Read flow accumulator’s current state → Request message from the Master(PC) 8 bytes

03 Reading command;

01 03 00 02 00 08 E5 CC

which means: 01 Address of the device, here 1;

00 02 Address to read, here 0x0002; 00 08 Number of word to read: Here 8 words(16 bytes); E5 CC CRC(calculated) ←Answer message from the Slave device 01 03 10(1)(2)(3)(4)(5)(6)(7)(8)(9)(10)(11)(12)(13)(14)(15)(16) CRCL CRCH

which means: 01 Address of the device, here 1; 03 Reading command; 10 Number of bytes read, here 16 bytes; (1)~(4) Instantaneous flow value;

Page 56: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 14 of 33

The data “00~09” denotes corresponding number “0~9” ; The data “10~19” denotes corresponding number “0.~9.”; “0F” denotes blank; “0A” denotes “-” ;

“1A” denotes “-.” ; Transferred sequence is from low digit to high digit; For example: (1)~(4)=00 10 09 0F denotes the instantaneous flow is “90.0”; (5)~(10) Cumulate flow value; The Data definitions are the same as that of instantaneous flow value; For example: (5)~(10)=05 13 04 02 0F 0F denotes the cumulate flow is “243.5”; (11)~(14) Full Scale The Data definitions are the same as that of instantaneous flow value; For example: (11)~(14)=00 10 00 01 denotes the Full Scale is “100.0”; (15) Units; 00 denotes SCCM and SCC(or SLM and SL); 01 denotes SCCM and SL(or SLM and KSL); 11 denotes SLM and SL(or KSLM and KSL); (16) Valve state;

00 denotes “Valve OFF”; 80 denotes “Valve AUTO”; FF denotes “Valve PURGE”; CRCL CRCH: CRC(calculated) 2.2 Read Instantaneous flow set point value → Request message from the Master(PC) 8 bytes 01 03 01 0A 00 02 E5 F5

which means: 01 Address of the device, here 1; 03 Reading command; 01 0A Address to read, here 0x010A;

Page 57: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 15 of 33

00 02 Number of word to read: Here 2 words(4 bytes); E5 F5 CRC(calculated) ←Answer message from the Slave device

2.3 Reset the cumulate flow value to zero

01 03 04 (1) (2) (3) (4) CRCL CRCH

which means: 01 Address of the device, here 1; 03 Reading command; 04 Number of bytes read, here 4 bytes; (1)~(4) Instantaneous flow set point value;

The data “00~09” denotes corresponding number “0~9” ; The data “10~19” denotes corresponding number “0.~9.”; Transferred sequence is from low digit to high digit; For example: (1)~(4)=00 10 08 00 denotes the instantaneous set point flow is “80.0”; CRCL CRCH: CRC(calculated)

→ Request message from the Master(PC) 8 bytes

05 Command number;

01 05 00 18 00 FF 0D 8D

which means: 01 Address of the device, here 1;

00 18 Starting address; 00 FF The meaning is Reset the cumulate flow value; 0D 8D CRC(calculated) ←Answer message from the Slave device The answer is identical to the request. 2.4 Changing the Valve state

Page 58: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 16 of 33

→ Request message from the Master(PC) 8 bytes 01 06 00 16 00 00 68 0E “Valve OFF” 01 06 00 16 00 80 69 AE “Valve Control” 01 06 00 16 00 FF 28 4E

01 Address of the device, here 1

“Valve PURGE”

which means:

06 Command, here writing 1 word; 00 16 Starting address; 00 00 Valve OFF; 00 80 Valve Control; 00 FF Valve PURGE; Last two bytes CRC(calculated) ←Answer message from the Slave device The answer is identical to the request. 2.5 Set the setpoint value of instantaneous flow → Request message from the Master(PC) 8 bytes

06 Command, here writing 1 word;

01 06 01 0A (1) (2) CRCL CRCH

which means: 01 Address of the device, here 1

01 0A Starting address; (1) (2) Setpoint value in hex. (1) is the Hi byte, (2) is the Lo byte; NOTICE When you set the setpoint value, you shouldn’t be concerned about the location of radix point, because the radix point’s location is identical to the Full Scale’s.

Examples

Page 59: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 17 of 34

Data Radix point location Setpoint value 00 00 0

Decimal location 0.0 01 F4 500

Decimal location 50.0 02 EE 750

Decimal location 75.0 03 E8 1000

Decimal location 100.0 1D 4C 7500

Decimal location 750.0 CRCL CRCH: CRC(calculated) ←Answer message from the Slave device The answer is identical to the request. 3:CRC calculation algorithm The CRC is calculated from all the bytes of the message excepted the CRC itself by using a “Cyclic redundancy check” with the following algorithm:

Page 60: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 18 of 34

Page 61: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 19 of 34

C code for a CRC calculation: CRC=0xFFFF; for(i=0;i<length(message)-1;i++) { CRC=CRC^(message[i] & 0x00FF); for(j=0;j<8;j++)

{ carry=CRC & 0x0001; CRC=CRC>>1; if(carry==0x0001)CRC=CRC^0xA001;

} } Pascal Code for a CRC calculation: PROCEDURE CALCRC(var CRC:word; c:char); Var carry:word;

I:byte BEGIN CRC := CRC XOR ( ord(c) AND $00FF ); For d := 0 To 7 Do

Begin carry := CRC AND $0001 ; CRC := CRC SHR 1 ; If carry = $0001 Then CRC := CRC XOR $A001 ;

End; END; CRC := $FFFF;

Page 62: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 20 of 34

For i := 1 To Length(Message) Do CALCRC(CRC, Message [i]); Message := Message + chr( (CRC + 256) MOD (((CRC div 256)+1)*256))+ chr(CRC div 256);

D08-8CM Flow Accumulator Operating Instruction

1. APPLICATION D08-8CM Flow Accumulator provides operating power supply, flow accumulating, instantaneous flow valve and cumulate flow rate digital display of MFM. General speaking, D08-8CM Flow Accumulator could operate together with D07 series MFM, and it can also operate together with other international models of MFM. 2. SPECIFICATIONS

2.1 Output Power Supply (for MFC or MFM operation) ………....……..+15V, 200 mA Voltage Difference: ±5%

-15V, 400 mA Voltage Difference: ±5%

2.2 Max Display Range………………………………………………………........……999999 SL ( or 999999 Standard M3)

2.3 Flow Cumulated Error………………………………………………………….……………………………………………< 0.3 %

2.4 Instantaneous Flow Display Distinguish ability…………………………...……………………………………….0.1% F.S

2.5 Standard Power Supply…………………………………………...…………+5.00V, 5mA Voltage Difference: ±0.1%

2.6 Supply Power………………………………………………………….………………………………~85-265V AC 50Hz/60Hz

2.7 Serial Communication interface………………………………….......…………………………………………RS232, RS485

Page 63: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 21 of 34

2.8 Max power consumption…………………………………………………..……………………………………………………10W

2.9 Bypass Control………………………………………………………………..…………………………………………1 Way MFM

2.10 Dimension……………………………………………………………………..………………………………(72×72×168) mm

2.11 Weight……………………………………………………………………………..………………………………………………0.5 kg 3. OPERATION PRINCIPLE

D08-8CM Accumulator is consisted by ±15V power supply, 5V power supply, modulus converter, instantaneous flow & cumulated flow displayer, 4 keys and communication part. The

flow test voltage (0V~+5V) that came from MFM converts to digital signal after pass through A/D converter to operate and cumulate processing in SCU( Single Chip Micyoco ). After that the instantaneous flow rate is delivered to four-place-LED displayer, the displaying units are SCCM (Standard Milliliter/Min) or SLM (Standard Liter/Min); it also could be: SLM or KSLM

(Standard Kiloliter /Min, viz. Standard M3/Min). The cumulated value simultaneously is delivered to 6-place-LED displayer, the displaying units are SCC (Standard Milliliter) or SL

(Standard Liter); it also could be: SL or KSL (Standard Kiloliter, viz. M3).

The maximum cumulated flow could match to 999999 SL, if MFM unit is SCCM, the preliminary cumulated flow unit is SCC, when cumulated value matched to 1000 SCC, the

cumulated flow unit will change to SL automatically. If cumulated value exceeds the maximum, the arithmometer will reset automatically and begin accumulating from zero. If user used 100 SCCM MFM, the minimum cumulated time could match to 166666.67 hours(about 19 years).

Our Flow Accumulator is quite good at long-time continuous accumulation, circulate accumulation, cumulated value radix point and unit automatic adjustment.

D08-8CM Accumulator offers Serial Communication function, it can communicate with

master(PC) via Standard RS232 or RS485 Serial Communication Interface( RS-232 and RS-485 is switched by the slide switch S2 on circuit board). Please refer to the Chapter 4.5 for more details of the serial communication. Please refer to appendix two for more details of the

communication protocol.

4. INSTALLATION & CONNECTION

Dimensions: It used standard plastic chassis, as showing in figure 1:

Page 64: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 22 of 33

Figure1. Dimensions of D08-8C

4.2 Installation Tapping Dimensions: ( 67×67 )mm

4.3 Installation Mode: Standard Inlay Installation 4.4 Front panel view(Figure 2) and rear panel view(Figure 3)

Figure2. Front panel view of D08-8CM Figure3. Rear panel view of D08-8CM

4.5 Seriel communication connection(Figure 4)

Page 65: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 23 of 34

Figure4. 9-pin Standard D-Sub socket When you use one Master(PC) communicated with one D08-8CM Accumulator, we commend RS232 communication mode; When you use one Master(PC) communicated with many D08-8CM Accumulators( the maximum is 16 ), we commend RS485 communication mode; When you select RS232 communication mode:

Please connect pin 2(TXD) , pin 3(RXD) and pin 5(SG) showed in figure 4 to PC’s standard RS232 serial port’s corresponding pin 2(RXD),pin 3(TXD) and pin 5(Signal COM);

When you select RS485 communication mode:

Please connect pin 6(A+) , pin 7(B-) showed in figure 4 to the Master(PC)’s standard RS485 serial port’s corresponding pin(A+), pin(B-). In fact, this is the Half-Duplex RS485 Communication Mode, you should set every 8CM Accumulator to the different address, the Master(PC) can discern every 8CM Accumulator by the different address, in this mode you can use one Master(PC) communicate with 16 8CM Accumulators (if you want know more about the communication protocol, please read the Appendix One).

4.6 15 pin Standard D-Sub connection with MFC

Page 66: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 24 of 33

Figure 5. 15 pin Standard D-Sub connection with MFM

It can be directly connected with MFC through D-Sub by cable.

4.7 ~220V power connection is showed in figure 3. For the sake of safety GND must be connected.

5. OPERATION 5.1 Startup

There is no power switch of Flow Accumulator, it could be operated after external alternating current connecting.

5.2 Initial State

Full scale readout defaults to 100.0SCCM; communication address defaults to 1, and cumulate flow unit defaults to SCC.

5.3 Keys Definitions

The D08-8CM Accumulator is operated and configured by the four keys in the front panel, The keys’ meaning is shown below:

“SET” Key

Page 67: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 25 of 34

This key is used to implementation functions under mentioned in 5.4, it has four submenus.

“OK” Key

This key let users enter the menu and save the value they have set.

“+” Key

This key can increase the value of Full Scale and Address, when you quickly press this Key one time, the value will goes up 1, when you press this key and continue several seconds, the value will goes up continuously.

“-” Key

This key can diminish the value of Full Scale and Address, when you quickly press this Key one time, the value will goes down 1, when you press this key and continue several seconds, the value will goes down continuously.

5.4 The submenus The D08-8CM has four submenus. All the submenus can be accessed and displayed easily: you

can change from one submenu to another using the “+/-” keys or return to the state of displaying instantaneous flow value at any time by pressing the SET key.

Submenu1 : SET FULL SCALE

To enter submenu1, press “SET” key and the display will read ”1”. Then you have four selections:

Press “+” key to enter submenu 2, and the display will read “2” ;

Press “-” key to enter submenu 4, and the display will read “4”;

Press “SET” key again to return to the state of instantaneous flow display;

Press “OK” key to set the Full Scale. The set sequence is as follows:

Page 68: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 26 of 34

At fist the last digit of Full Scale value will flash, you can increase or diminish the last digit value by the “+ key” and “- key”, when the desired value is displayed, press the “OK key” and then the tens digit will flash allowing being updated in the same way. So you can change the Full Scale value from the last digit to the first digit. After that, the radix point will flash, and you can change the radix point’s location by the “+ key”. And then, press “OK key” to save the Full Scale value. At last, press “Set key” to return to the state of displaying instantaneous flow.

NOTICE

The Full Scale’s radix point location will have a effect on the instantaneous flow, it means the Full Scale and the instantaneous flow’s radix point have the same location.

Submenu2: SET UNIT

In this mode, the displayed reading is “2” indicating submenu 2. Press the “OK” key, it appears “21” in the display; then use “+/-” keys to make SLM LBD or SCCM LBD turns on or off. After that, press “OK key” to save the unit. At last, press “Set key” to return to the state of displaying instantaneous flow.

Submenu3: SET ADDRESS

This function of submenu is identical to submenu1, the address’s range is 0~255.

NOTICE

When D08-8CM accumulator communicate with PC, you should make sure that accumulator’s address is match to the protocol data’s address sent by Master(PC). If

not, communication does not work. For the details, see《The Communication Protocal of D08-8CM Flow Accumulator》below.

Submenu4: CUMULATE FLOW RESET TO ZERO

When the displayed reading is “4”, press the “OK key” once, the display will read “41”; Press the “OK key” again, the cumulate flow will reset to zero, and then will automatically return to the state of

Page 69: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 27 of 34

instantaneous flow display( this process may take 1.5 seconds ).

5.5 SHUT DOWN

Disconnected AC power, the accumulator will turn off.

Cumulate flow value’s SAFEGUARD FUNCTION when power is off

The Full Scale and Units will be saved at the time of power off, when the power on these values will not be changed.

Specially, the cumulate flow value will be saved every 30 seconds, when the power on the cumulate flow matches to the

last saved value.

6. EXAMPLES ONE: If you want to change the Full Scale value from 100.0SCCM to 2000SCCM, perform the

following steps:

1. Press the “SET key” once, “1” will appear on the display;

2. Press the “OK key” to enter submenu1,unit digit “0” will flash;

3. Press the “OK key” three times, thousands digit “1” will flash, allowing being updated by

using “+ key” or “- key” ;

4. Increment it to “2” with the “+ key”;

5. Press the “OK key”, the current radix point location will be shown and flash;

6. Press the “+ key” three times, the radix point will extinguish;

Page 70: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 28 of 34

7. Press the “OK key” to save operation and return to submenu1, then depress the “SET key”

to exit;

8. When you change the Full Scale, you should reset the cumulate flow value to zero, please

following the steps shown below:

Press the “SET key” once, “1” will appear on the display indicating submenu1 is entered;

Press the “- key” once to scroll the number, the display will read “4” indicating submenu4

is entered;

Press the “OK key” once, “41” will be displayed;

Press the “OK key” again and wait for 1.5 seconds, the accumujlated value will be set to

zero and exit.

TWO: If you attempt to change the unit from SCCM to SLM, follow the steps shown below:

1. Press the “SET key” once, “1” will appear on the display indicating submenu1 is entered; then press the “+ key” once to display “2”;

2. Press the “OK key” once to display “21”;

3. Press the “+ key” once, SCCM LBD will turn off and SLM LBD will turn on;

4. Press the “OK key” once to save and return to submenu2;

Page 71: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 29 of 34

5. Press the “SET key” to exit;

6. P Perform step 8 described in Example One.

7. CAUTION

7.1 When voltage signal of flow is negative, “-00.0” will be displayed.

7.2 Reference appendix 2 for more information about communication protocol.

8. PRODUCTION SELECTION 8.1 Type selection

Circuit Cases Display Power supply Output voltage

Other funtions

Type MFC MFM Ana. Dig. Mini -Type

Desk -style

Rack -desk -style

1 channel

1 Display

Multi- Channel

1 Display

Multi- Channel Multi-

Display

~110 VAC

~220 VAC

~85 -265 VAC

±15 VDC

+24 VDC

4~20mA/ 0~10mA I input

4~20mA/ 0~10mA I output

4~20mA / 1~5V Input Signal

4~20mA / 1~5V Output Signal

RS232/ RS485

Commu-nication

Setpoint display

Flow Accumu

-lator

1F √ √ √ √ √ √ √ √ √ 1FM √ √ √ √ √ √ √ 1FP √ √ √ √ √ √ √ √ √ √ 1/2/4 √ √ √ √ √ √ √

2F/3F/4F √ √ √ √ √ √ √ √ 2B/3B/4B 2E/3E/4E

√ √ √ √ √ √ √

1K √ √ √ √ √ √ √ √ 1~5V 1G √ √ √ √ √ √ √ √

1GM √ √ √ √ √ √ √ 8C √ √ √ √ √ √ √ √ √

8CM √ √ √ √ √ √ √ √

Page 72: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 30 of 34

8.2 Order form D08- [t] - [b] - [s]

[t] – 8CM

Type

[c] – -[2] RS232

Communication type

-[4] RS485 [s] – -[-] percentage display(100.0),Chinese label.

Special request

-[S] List full scale(see table on right side) and other request.

APPENDIX 2

Full scale Code 5sccm A

10sccm B 20sccm C 30sccm D 50sccm E 100sccm F 200sccm G 300sccm H 500sccm J

1slm K 2slm L 3slm M 5slm N 10slm P 20slm Q 30slm R 50slm U

100slm V 150slm W 200slm X 250slm Y 300slm Z

Page 73: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 31 of 34

D08-8CM COMMUNICATION PROTOCAL 1:Summary This protocol is applied to the communication between the Master(PC) and D08-8CM Flow Accumulator. Data format: hexadecimal Baud rate: 9600 b/s Data bits: 8 bits Stop bits: 1 bit Check bits: none 2: DETAILED DATA FORMAT 2.1 Read flow accumulator’s current state → Request message from the Master(PC) 8 bytes 01 03 00 02 00 08 E5 CC

which means: 01 Address of the device, here 1; 03 Reading command; 00 02 Address to read, here 0x0002; 00 08 Number of word to read: Here 8 words(16 bytes); E5 CC CRC(calculated) ←Answer message from the Slave device 01 03 10(1)(2)(3)(4)(5)(6)(7)(8)(9)(10)(11)(12)(13)(14)(15)(16) CRCL CRCH

which means: 01 Address of the device, here 1; 03 Reading command; 10 Number of bytes read, here 16 bytes; (1)~(4) Instantaneous flow value;

The data “00~09” denotes corresponding number “0~9” ;

Page 74: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 32 of 34

The data “10~19” denotes corresponding number “0.~9.”; “0F” denotes blank; “0A” denotes “-” ;

“1A” denotes “-.” ; Transferred sequence is from low digit to high digit; For example: (1)~(4)=00 10 09 0F denotes the instantaneous flow is “90.0”; (5)~(10) Cumulate flow value; The Data definitions are the same as that of instantaneous flow value; For example: (5)~(10)=05 13 04 02 0F 0F denotes the cumulate flow is “243.5”; (11)~(14) Full Scale The Data definitions are the same as that of instantaneous flow value; For example: (11)~(14)=00 10 00 01 denotes the Full Scale is “100.0”; (15) Units; 00 denotes SCCM and SCC(or SLM and SL); 01 denotes SCCM and SL(or SLM and KSL); 11 denotes SLM and SL(or KSLM and KSL); (16) Not defined CRCL CRCH: CRC(calculated) 2.2 Reset the cumulate flow value to zero → Request message from the Master(PC) 8 bytes 01 05 00 18 00 FF 0D 8D

which means: 01 Address of the device, here 1; 05 Command number; 00 18 Starting address; 00 FF The meaning is Reset the cumulate flow value; 0D 8D CRC(calculated)

Page 75: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 33 of 34

←Answer message from the Slave device The answer is identical to the request. 3:CRC calculation algorithm The CRC is calculated from all the bytes of the message excepted the CRC itself by using a “Cyclic redundancy check” with the following algorithm:

C code for a CRC calculation: CRC=0xFFFF;

Page 76: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Page 34 of 34

for(i=0;i<length(message)-1;i++) { CRC=CRC^(message[i] & 0x00FF); for(j=0;j<8;j++)

{ carry=CRC & 0x0001; CRC=CRC>>1; if(carry==0x0001)CRC=CRC^0xA001;

} } Pascal Code for a CRC calculation: PROCEDURE CALCRC(var CRC:word; c:char); Var carry:word;

I:byte BEGIN CRC := CRC XOR ( ord(c) AND $00FF ); For d := 0 To 7 Do

Begin carry := CRC AND $0001 ; CRC := CRC SHR 1 ; If carry = $0001 Then CRC := CRC XOR $A001 ;

End; END; CRC := $FFFF; For i := 1 To Length(Message) Do CALCRC(CRC, Message [i]); Message := Message + chr( (CRC + 256) MOD (((CRC div 256)+1)*256))+ chr(CRC div 256);

Page 77: 使 用 手 册2017/03/01  · 使 用 手 册 2 0 1 5 . 1 2 D08-8C、D08-8CM 型流量积算仪版本: 作者 日期 描述 版本号 赵迪 1.012005.05.12 初始版本 赵迪 2006.03.06

Beijing Sevenstar Qualiflow Electronic Equipment Manufacturing Co.Ltd. D08 Series Flow Readout Boxes. Beijing Sevenstar Electronics Co., Ltd Mass Flow Meter Subsidiary Co., Ltd Address: No.1 Jiuxianqiao East Rd., Chaoyang District, Beijing, China P.O.BOX 3#741, Beijing, China Post code: 100015 Tel: (+86)-10-64361831 ext. 8527 Fax: (+86)-10-64362923 Homepage: www.mfcsevenstar.cn E-Mail: [email protected] Shanghai Office: Room 722, Bldg.29, No.368, Zhangjiang Rd, Pudong New Area,

Shanghai, China Tel: (+86)-21-63532370 Fax: (+86)-21-63533265 Shenzhen Office: Room 712, Section B, Qiche Tower, No.45 Zhenhua Road,

Futian District, Shenzhen, China Zip code: 518031 Tel: (+86)-755-88290258 Fax: (+86)-755-88294770

*Description may be changed following improvements to product. The information contained in this document is subject to change without notice *If there is any mistake in this uses manual, please feel free to contact us. *©2010 Beijing Seventar Electronics Co.,Ltd All rights reserved.