Showing results 1 to 4 of 4

Thread: Scaling Issue in Value Calculation

  1. #1
    Join Date
    13.09.2017
    Posts
    7

    Default Scaling Issue in Value Calculation

    Hi Friends ,

    I am using Zenon 7.50, Here i was using Modbus Protocol to communicate, In Modscan i was getting value of 8798.2356 but in Zenon runtime i was getting the value of 8798.2350 can any one help to sort out or resolve the issue.

  2. #2
    Join Date
    10.12.2007
    Posts
    176

    Default AW: Scaling Issue in Value Calculation

    The data type REAL (32bits) is a floating point value which has only ~7.2 precise decimals. So this variance is quite normal.

  3. #3
    Join Date
    13.09.2017
    Posts
    7

    Default Re: Scaling Issue in Value Calculation

    In that case i want to show 8358.5632 this value in screen, how can i show it can you please help.

  4. #4
    Join Date
    10.12.2007
    Posts
    176

    Default AW: Scaling Issue in Value Calculation

    I don't understand your question. As I told you already the last digit of this value isn't really supported by the datatype real (as the value would have 8 digits - real only supports 7.2 digits). You can simply show it, but it may not match with the value from a PLC or whereever this value comes from. So I would recommend to change the variable to datatype LREAL if the driver supports this datatype or simply to show only 3 digits behind the separator.

Similar Threads

  1. Scaling Problem
    By tigershark in forum zenon Energy Edition
    Replies: 2
    Last Post: 20th November 2016, 22:13
  2. Value Calculation on Real numbers
    By bsneddon in forum zenon Supervisor
    Replies: 1
    Last Post: 22nd May 2015, 13:20
  3. Historical Trend Scaling
    By navaneet in forum zenon Supervisor
    Replies: 4
    Last Post: 7th October 2013, 15:25
  4. y-scaling trendelement
    By affoltep in forum zenon Supervisor
    Replies: 1
    Last Post: 22nd July 2009, 13:38

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •