当前位置: 首页 > news >正文

电能表预付费系统-标准传输规范(STS)(14)

6.3.6 Amount: TransferAmount (传输数额)

6.3.6.1 General

TransferAmount is the amount of service units or currency units coded into the Amount field of the token and received by the meter.

        TransferAmount是编码到令牌的amount字段中并由仪表接收的服务单位或货币单位的数量。
The associated unit for the TransferAmount is defined in Table 17.

        TransferAmount的相关单位定义在表17中。

The STS Association also reserves the transfer types given in Table 18 for other applications.

        STS协会还保留表18中的传输类型,以用于其它用途。

 6.3.6.2 Amount for SubClass 0 to 3

The 16 bits of the Amount field are subdivided into two sections, a base-10 exponent of 2 bits and a mantissa of 14 bits. The bits are numbered from right to left, starting at 0. Bit 15 is the most significant bit of the exponent and Bit 13 is the most significant bit of the mantissa. The bit allocations within this field are illustrated in Table 19.

        Amount字段的16位被细分为两个部分,以10为基数的2位指数和14位的尾数。比特从右到左编号,从0开始。第15位是指数的最高有效位,第13位是尾数的最高有效位。这个字段内的位分配如表19所示。 

 The mathematical formula for TransferAmount conversion is as follows:

        TransferAmount转换的数学公式如下:

All TransferAmount conversions shall be rounded up in favour of the customer. The possible TransferAmount ranges and the associated maximum errors that can arise owing to rounding up are shown in Table 20. Examples of TransferAmount values are given in Table 21 .

        所有TransferAmount转换应以客户为受益人进行四舍五入。表20显示了可能TransferAmount范围和由于四舍五入而产生的相关最大错误。表21给出了TransferAmount值的示例。

 6.3.6.3 Amount for SubClass 4 to 7

 The bit allocation for Amount field is given in Table 22.

         表22给出了Amount字段的位分配。

The final value of e is calculated from e 4 , e 3 , e 2 , e 1 and e 0 , obtained from 6.3.21 , Table 29 and Table 22 and assigning them bit values as given in Table 23.

        从6.3.21、表29和表22中得到的e4、e3、e2、e1和e0计算出e的最终值,并为它们赋位,如表23所示。 

The mathematical formula for the TransferAmount t conversion is as follows:

        TransferAmount t转换的数学公式如下: 

The sign of TransferAmount t is obtained from the value of s given in Table 29 where:

  • t is positive for s = 0;
  • t is negative for s = 1 .

        TransferAmount的符号t由表29中s的值得到,其中:

  • 当s = 0时T是正的;
  • 当s = 1时T是负的。

All TransferAmount conversions shall be rounded up towards positive infinity in favour of the customer (see Table 24 for examples of rounding negative values).

        所有TransferAmount转换都应四舍五入到正无穷大,以方便客户(参见表24,以获取四舍五入负值的示例)。 

The maximum error due to rounding is 0,055 %. Examples of TransferAmounts and associated errors due to rounding up are shown in Table 25.

        舍入的最大误差为0.055%。表25显示了transferamount和由于四舍五入导致的相关错误的示例。 

 

 

 

 


http://www.mrgr.cn/news/54718.html

相关文章:

  • Android视频编解码 MediaCodec使用(2)
  • 什么是HarmonyOS元服务?
  • Docker 笔记
  • 决策树:从理论到实践
  • 阿里云验证码短信发送服务搭建(flask)
  • vue3 解决背景图与窗口留有间隙的问题
  • 【数据结构】【单调栈】视野总和
  • 动态规划之打家劫舍
  • Python 类
  • 【计网】从零开始理解TCP协议 --- 拥塞控制机制,延迟应答机制,捎带应答,面向字节流
  • 【OD】【E卷】【真题】【100分】最大利润贪心的商人(PythonJavaJavaScriptC++C)
  • Docker无法拉取镜像解决办法
  • 程序员数学:用Python学透线性代数和微积分 中文目录
  • #P3014. 数字游戏
  • STM32F1+HAL库+FreeTOTS学习18——任务通知
  • Comfyui如何快速选出图像的高光和阴影 _ layerstyle节点
  • 动态规划58道算法题
  • 【Modern C++】特性学习与补漏
  • 作业2-线性回归的Matlab代码实现
  • SQL入门
  • RHCE——时间服务器
  • Java面试指南:Java基础介绍
  • Chromium127编译指南 Windows篇 - 编译前的准备(一)
  • 策略的结合——Actor-Critic算法求解冰湖游戏
  • code CERT_HAS_EXPIRED npm ERR! errno CERT_HAS_EXPIRED 证书过期
  • java事务讲解(详解篇)