Showing results 1 to 3 of 3

Thread: Allocation is not following the trigger variable status

  1. #1
    Join Date
    17.02.2020
    Posts
    18

    Default Allocation is not following the trigger variable status

    Hello,

    I created an Allocation to allocate the value of a source variable to a target variable. this allocation is to be triggered by a binary trigger variable which toggles every 5 seconds.
    However, the target variable's value is changing as soon as there is a change in the source variable, regardless of the trigger variable state. 
    I understand that "If no variable is linked, the allocation is spontaneous. This means that whenever the value of the source variable changes, it is automatically written to the target variable". But why is this happenning even when the trigger variable is linked?

    Thanks in advance.

  2. #2
    Join Date
    28.02.2013
    Posts
    200

    Default Re: Allocation is not following the trigger variable status

    Dear Anas,

    the behaviour depends on the parameter trigger type. Here you can specify if the allocation shall be triggered on the rising edge of the trigger variable only or all the time while the trigger variable is true.

    Regards,
    Felix

  3. #3
    Join Date
    17.02.2020
    Posts
    18

    Default Re: Allocation is not following the trigger variable status

    Solved it. Once I changed the Target Variable's driver to Local, the Allocation started to behave as it should.

    Quote Originally Posted by felixst View Post
    Dear Anas,

    the behaviour depends on the parameter trigger type. Here you can specify if the allocation shall be triggered on the rising edge of the trigger variable only or all the time while the trigger variable is true.

    Regards,
    Felix

    Thanks Felix, the trigger type was right. The problem was with the variable driver.

Similar Threads

  1. Replies: 1
    Last Post: 14th February 2020, 09:15
  2. trigger the Screen type action by variable
    By sgh66 in forum zenon Supervisor
    Replies: 1
    Last Post: 8th November 2019, 11:10
  3. How to trigger a function when a variable changed?
    By denver in forum zenon Supervisor
    Replies: 1
    Last Post: 16th May 2012, 10:12
  4. Replies: 3
    Last Post: 5th April 2011, 09:16
  5. SQL variables allocation problem
    By rloureiro in forum Drivers
    Replies: 4
    Last Post: 13th March 2008, 13:32

Posting Rules

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