Showing results 1 to 4 of 4

Thread: refreshing the variable used

  1. #1
    michael_k Gast

    Default refreshing the variable used

    how can I refresh the values that changed by VBA?thus,when the values of varibale was changed the changed value in automatically way be refreshed in RT.

  2. #2

    Default Re: refreshing the variable used

    when you write a variable value in VBA, this value will be send through VBA, through the runtime, to the driver. As the driver either reads cyclically or uses spontaneous communication, the value written by VBA should automatically be refreshed in the zenon runtime!

    Writing by VBA is the same process as writing directly from the zenon runtime.

  3. #3
    michael_k Gast

    Default Re: refreshing the variable used

    I am obliged to execute VBA for internal variable that I've used.
    what do you think about this?
    how can I execute the internal varible automatically when the external variable is changed.(external variable is the type of spontaneous)
    both of these are in relation to each others.
    Last edited by michael_k : 29th December 2009 at 15:55

  4. #4

    Default Re: refreshing the variable used

    I'm not 100% sure, but I think you need to configure an allocation in zenon. The external variable is the source variable, and the internal variable the target variable. Each time the external variable changes, the internal variable changes as well.

    Allocations can be spontaneous, but can also be triggered by a third variable.

Posting Rules

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