XOR

XOR

PROGRAM XOR
     VAR
       BOOL1,BOOL2,BOOL3: BOOL;
  END_VAR
    BOOL3:= BOOL1 XOR BOOL2;
END_PROGRAM

Function calculates the exclusive disjunction of two or more inputs. Output is true if an odd number of inputs is in true.

InputType Description
IN1..ANY_BITInput value
OutputType Description
ANY_BITOutput value

  • © Energocentrum Plus, s.r.o. 2017 - 2024