使用搜索功能查看 Kepware 的信息库,其中包含 500 多篇知识库文章。缩小搜索结果范围,或在下面的搜索字段中输入您的查询。

或者,如果您无法找到解决方案,我们还有另一个资源:我们的 PTC eSupport Portal。 如果系统提示您登录 eSupport Portal,您可以使用“我的 Kepware”凭据。需要一个“我的 Kepware”帐户吗?在此处创建

搜索解决方案结果:
View All Solutions

Kepware Knowledge Base: Solution


How to Scale Data from a PLC


Last Update: 2018/11/12

Kepware supports linear and squared scaling on Static Tags. In order to use either form of scaling, users must set the Hi and Low values before setting the engineering value and data type that will be visible to the client application. The Hi and Low values are sent by the PLC, and the server will perform the proper calculation on the Raw Input Value to convert it to the Engineering Value. In the example below, a device address has a value range of 0-10000. The client application needs the data as a floating point number with a range of 0.00-100.00.

  1. To start, create a Static Tag with a data type of Word.
  2. Next, select the Scaling tab and ensure that Linear Scaling is enabled.
  3. In Raw Value Range, set the Low value to 0 and the Hi value to 10000.
  4. In Scaled Value Range, set the Low scaled value to 0 and the Hi scaled value to 100.
  5. Once the tag is connected from the client application, it will be a floating point data type.

If the PLC address has a value of 27, the tag will show a value of .27; 1250 will show a value of 12.50, and so forth.

Note 1: Scaling can also be applied in reverse. If a value is written to the tag, the server will scale it to the appropriate raw value.

Note 2: If the percent deadband is being used from an OPC client, the deadband will be applied to the scaled value. For more information, refer to Scaling Data in Kepware Products.

Related Products
GE Ethernet