Showing results 1 to 1 of 1

Thread: The value of the Zenon variable is not changed from C # code.

  1. #1
    Join Date

    Default The value of the Zenon variable is not changed from C # code.


    I'm trying to set the value of the Zenon variable in C # code in the following way:

    zVariable.SetValue(newValue, Constants.STATE_SPONT, (int)InternalHelpers.TimeConversion.SystemToZenOn(dt), 0);
    _utils.AddLine($"Variable: {zVariable.Name} Wert: {newValue} Datum: {dt} in der Funktion {MethodName} geschrieben");
    The Zenon variable name is formed like this:

    In the Zenon project, the variable is in a Real format, in C # in a Double.

    Everything is displayed correctly in the log file, but the new value is not assigned into the Zenon variable .

    Which Zenon settings should I pay attention to?

    Thank you in advance.
    Last edited by genakust : 14th June 2021 at 10:12

Similar Threads

  1. Zenon editor 8.2 install fails, due to SQL Server Rules Check code (-1)
    By cannonpm in forum Engineering Studio & Service Engine
    Replies: 1
    Last Post: 2nd March 2021, 03:23
  2. How to change? VBA code -> c# code
    By backjahyun in forum VSTA
    Replies: 1
    Last Post: 22nd March 2016, 07:46
  3. Using C++ code in Zenon
    By mrocznia in forum VSTA
    Replies: 2
    Last Post: 22nd January 2014, 14:42
  4. How to trigger a function when a variable changed?
    By denver in forum zenon Service Engine Supervisor
    Replies: 1
    Last Post: 16th May 2012, 10:12
  5. Replies: 0
    Last Post: 11th March 2010, 15:59

Tags for this Thread

Posting Rules

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