Jump to content

ISY Logic - NOT(......)


Recommended Posts

Posted (edited)

We have And(), along with OR() in ISY trigger logic. NOT(...) would be nice to simply some logic trigger lines where complex logic is required.

Many people have trouble with DeMorgan's theorum to convert logic. I admit, I am getting rusty also.

 

eg:

If
   (
    XXXX is switched On
    OR
    YYYY is switched On
   )
   AND (
       NOT (    <--------------------------- provides an easier to understand OR logic that runs Else, keeping function concepts in one program
          XXXX is switched Off
          OR
          YYYY is switched Off
        )
  )
Then
      turn lights On
Else
      turn lights off

 

If
   (
    CabinetDoor1 status is On
    OR
    CabinetDoor2 status is On
   )
   OR (
       NOT (     <----------------------------------provides a simplified AND logic  run Else trigger logic = both are closed
          CabinetDoor1 status is Off
          AND
          CabinetDoor2 status is Off
        )
  )
Then
      turn CabinetLight On
Else
      turn CabinetLight off

   

 

Edited by larryllix
Posted
Just now, asbril said:

I just looked up and saw something going right over my head :-)

But I think that I get it......

Yeah, looks more complicated than the normal way

  • Like 1
  • 2 weeks later...
Posted

Here is another fine example where this syntax is required to simplify ISY program coding logic down from about four programs to one program.

 

 

Guest
This topic is now closed to further replies.

×
×
  • Create New...