您好,欢迎访问三七文档
当前位置:首页 > 外语资料 > 托福 > 梅特勒托利多称重仪表通讯SICS协议命令
用于ICS4__/ICS6__的MT-SICS标准接口命令集2-/62201967312/12感谢您选择了梅特勒-托利多公司的产品与服务。梅特勒-托利多公司提供的称重设备/系统具有高品质和高可靠性。作为称重设备/系统的设计者和生产者,梅特勒-托利多比其他任何人都更了解称重设备/系统如何运行以及如何为您提供最佳的解决方案。我们的产品和服务,将会伴随您走向成功!我们诚挚的邀请您访问我们的网站:请用一点时间注册您的产品。通过注册,您将继续获得以下信息:产品性能的改进;新产品和服务;您所购产品的重要通知;312/1222019673-/6目录1介绍······················································································41.1命令的标准化·········································································41.2命令综述··············································································52数据交换··············································································62.1命令格式············································································62.2应答格式·············································································72.3程序员提示···········································································82.4建立通信·············································································92.5故障查找···········································································103命令综述···········································································1140级命令···················································································154.1综述·················································································154.2命令描述···········································································1651级命令···················································································225.1综述·················································································225.2命令描述···········································································2262级命令···················································································276.1综述·················································································276.2命令描述···········································································2873级命令···················································································517.1综述·················································································517.2命令描述···········································································528命令索引···········································································724-/62201967312/121介绍在测量重量时,存在对于秤的可读性和最大量程的要求,以及对于从小于一毫克直至几百吨的称量范围的要求。为了满足这些基本和扩展需求,梅特勒-托利多公司能提供范围广泛的天平和秤。我们的许多天平和秤都可以集成到复杂的计算机或数据采集系统中。为了以一种简单的方式把我们的秤集成到客户的系统中,并充分利用它们的能力,大多数秤的功能可根据合适的命令通过数据接口而获得。1.1命令的标准化所有新上市的梅特勒-托利多装置都支持标准化命令集“梅特勒-托利多标准接口命令集”(MT-SICS);根据装置的功能,命令集分为4个等级:·MT-SICS的第0级用于最简单的秤的命令集,例如,称重传感器·MT-SICS的第1级用于标准秤的命令集扩展,即,无集成应用的秤·MTSICS的第2级命令集扩展,增加了专门针对一个产品系列的命令·MTSICS的第3级命令集扩展,增加了专门针对一个产品系列中特定应用的命令这个概念的具体显著特点是,在0级和1级MT-SICS组合中的命令对于所有秤是完全相同的。最简单的称重秤和完全扩展的称重工作站都能识别0级和1级MT-SICS的命令。对各种应用的调查显示,绝大部分系统解决方案都能利用0级和1级MT-SICS的命令来处理。对您来说,这意味着:如果您需要限制0级和1级的MT-SICS命令,那么您可以在不改变应用程序的情况下,通过梅特勒-托利多的附加秤来扩展您的系统。512/1222019673-/61.2命令综述1.2.10级和1级MT-SICS利用0级和1级的MT-SICS命令,可通过接口来执行下列操作:•请求称重结果•去皮并预设皮重•秤的清零•识别MT-SICS的实施•识别秤•复位秤•控制显示屏•控制秤的操作功能键。1.2.22级和3级MT-SICS当然,您可以使用数据接口来实现当前称重系统或应用中的所有可用功能。这些附加功能集中在2级和3级MT-SICS的命令中。请注意,当您创建软件应用时,量身定制的2级MT-SICS的命令已存在于你的产品系列中。6-/62201967312/122数据交换通过数据接口收到的每个命令都需要通过设备给发射器的应答来确认。命令和应答是具有固定格式的数据字符串,相关详细内容请参见第3章至第6章。2.1命令格式发送给设备的命令包括一个或多个ASCII字符集中的字符。操作请遵循以下规则:•输入命令时只能采用大写字母。•命令的可选参数之间必须通过空格分开(ASCII32十进制,10十进制,在这个描述中表示为),而且要与命令名称分开。•文本的可选输入是一系列8位ASCII字符集的字符,从32(十进制)到255(十进制)。•文本必须用引号“”框住。•每个命令必须以CRLF(ASCII13十进制,10十进制)结束。字符CRLF没有在本描述中列出;它能通过大多数输入键盘上的Enter或Return(回车)键来键入。但是,为了实现与设备的通信,必须包括CRLF。发送重量值时的命令格式标识重量值重量单位框架命令规格1到4个字符1到10个字符1到3个字符CRLF示例皮重规格命令TA13.295kg将“Hello”写到显示屏的命令DHello712/1222019673-/62.2应答格式设备发送的所有应答都符合以下某种格式:•具有重量值的应答•没有重量值的应答•错误报文2.2.1具有重量值的应答格式ID状态重量值重量单位框架应答标识1到4个字符空格1个字符10个字符1到3个字符CRLF状态重量值的状态,参见命令描述重量值称重结果;显示为10位数,包括小数点和符号(如果值是负的,那么-直接在第一个位数的前面)。重量值以右对齐格式出现。前面的零均不显示,除非零是在小数点的左侧。示例具有稳定的重量值的应答SS0.256g2.2.2没有重量值的应答格式ID状态参数框架应答标识1到4个字符1个字符取决于命令的应答代码CRLF示例对DHello的应答DA文本完全显示DR开始文本被截去,以适应显示屏窗口中的剩余文本2.2.3错误报文错误报文始终包括2个字符和框架。ES语法错误当秤不能处理收到的字符时,设备发送语法错误,例如,命令不存在。6-/62201967312/122.2.4S命令集的应答示例命令等级应答S0SS15.31kgSI0SD15.17kgSU2SS0.01531tSU2SS540.0ozSU2SS33.76lbSX2SXSG15.15kgN15.15kgT0.00kgSX2SXSG15000gN15000gT0gSM2SM0.178kg0.1772SMI2SMD0.528kgD0.5288SV2SV12.034kg12.0344SVI2SVD0.400kgD0.3994请注意S命令集的各种应答格式。更多详细内容,请参考命令描述。2.3程序员提示命令和应答通过程序评估设备对命令的应答,改善您应用软件的可靠性。应答是对设备已经收到命令的确认。复位在建立设备和系统之间的通信时,为了能够从一个预定的状态开始,你需要发送复位命令。当设备或系统被打开或关闭时,能够收到或发送故障字符。引号“”引号必须始终包含在输入命令中。超时如果在超时期限内重量没有达到稳定,设备将会发送应答...I和一个不稳定的重量值。超时后将会从头开始。912/1222019673-/62.4建立通信为了实现与计算机的正确连接,需要做出以下设置和配置。•确保设备和计算机通过RS232、USB装置、以太网或WLAN正确地连接。•为保证合适的连接,请始终使用梅特勒-托利多原装配件。•对于串行连接,请使用设备用户手册中规定的合适电缆。对于通过USB设备或以太网的连接,请使用带有M12接头的电缆,它们可以作为配件获得。•设备必须设定为对话模式。验证通信参数(波特率、奇偶位和握手)在设备和计算机上的设置完全相同。•关于设备配置,请参考相应的用户手册。请确保PC终端程序(例如,超级终端)配置与设备相符。6-/62201967312/1210注意对于超级终端,务必要给回车键添加换行字符。选择超级终端的相应复选框:设置-ASCII调整-发送带有换行的行结束。2.5故障查找•如果计算机和设备之
本文标题:梅特勒托利多称重仪表通讯SICS协议命令
链接地址:https://www.777doc.com/doc-7097184 .html