Codesys Trend - setting Y axis minimum and maximum as variables - error

hannibal
3 days ago
2 days ago
  • hannibal - 3 days ago

    I am experiencing an issue when trying to define the Y-axis limits in a Trend Graphic using variables. When I set the Minimum and Maximum values as variables, an error is triggered.

    My goal is to make the Y-axis limits dynamic so they can adjust according to the installation. Both variables are initialized as follows:

    gP_YMin = -100.0
    gP_YMax = 100.0

    However, I still get the following error:

    "The minimum axis value must be less than the maximum axis value"

    Does anyone have an idea why this is happening or how to resolve it?

     
  • hannibal - 2 days ago

    Hi,
    It was my fault. I was using a REAL variable instead of INTEGER. Sorry for posting this.

     

Log in to post a comment.