XORN

Exclusive OR NOT Connection

The content of the accumulator is connected with the inverted operand defined in the operand field by a logical XOR operation. The result is transferred to the accumulator.

Remarks

  • Operator only available in IL programming language.

  • All operands must be of the same data type.

  • Valid operands for this operator must be of one of the following data types: (BOOL, WORD, DWORD)

Truth table:

Input 1

Input 2

Output
Signal

0

0

1

1

0

0

0

1

0

1

1

1

Related topics:

Example

POU header

All input and output variables used for programming this function have been declared in the POU header. The same POU header is used for all programming languages.

IL body

LD

var_1

(* Load var_1 in accu *)

XORN

var_2

(* Perform an XOR of accu with inverted var_2; store result in accu *)

ST

var_3

(* Store accu in var_3 *)

Modified on: 2019-01-24Feedback on this pagePanasonic hotline