Showing results 1 to 3 of 3

Thread: Variable setting

  1. #1
    whitetaru Gast

    Default Variable setting

    Hi,

    Lets say i have Variables, A,B,C,D and E. All are binary type.

    How do i set A=1, when B=C=D=E=1?
    How do i set A=0, when B=C=D=E=0?

    Warmest Regards
    Whitetaru

  2. #2

    Default Re: Variable setting

    You can use a variable from the mathematics driver.

    This driver is created by default and allows you to make such logical calculations based on other variables.

    Simply create a new boolean formula variable of the mathematics driver, add the B, C, D and E variables to the formula in the calculation. The formula would be X01 AND X02 AND X03 AND X04 (the value of the mathematics variable "a" would be "1" when the condition is true, and "0" when the condition in the formula is not met)

  3. #3
    whitetaru Gast

    Default Re: Variable setting

    Quote Originally Posted by markclemens View Post
    You can use a variable from the mathematics driver.

    This driver is created by default and allows you to make such logical calculations based on other variables.

    Simply create a new boolean formula variable of the mathematics driver, add the B, C, D and E variables to the formula in the calculation. The formula would be X01 AND X02 AND X03 AND X04 (the value of the mathematics variable "a" would be "1" when the condition is true, and "0" when the condition in the formula is not met)
    Thanks alot

Similar Threads

  1. Setting the clock time element
    By douglasm in forum zenon Supervisor
    Replies: 1
    Last Post: 26th February 2010, 23:59
  2. Replies: 2
    Last Post: 4th December 2009, 10:08
  3. "variable image remanent" setting is not saved
    By markclemens in forum zenon Supervisor
    Replies: 0
    Last Post: 28th March 2008, 09:13

Posting Rules

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