| Type | FunctionAvailable as standard (non-safety-related) and safety-related type (*_S). For the safety-related type, the safety-related data types (SAFE*) are expected at the formal parameters. | 
| Description | Performs a logical XOR operation (exclusive OR) on the operands connected to IN1 and IN2. The output is TRUE if the inputs are not equivalent.Truth table for the XOR function: 
| IN1 | IN2 | 1 | OUT |  
| FALSE | FALSE | 1 | FALSE |  
| FALSE | TRUE | 1 | TRUE |  
| TRUE | FALSE | 1 | TRUE |  
| TRUE | TRUE | 1 | FALSE |  | 
| Notes | 
Further inputs can be added.All parameters can be negated.Note: The negation of formal parameters is not supported in safety-related code (SNOLD).The function provides implicit data type conversion at its input and output parameters according to the rules defined by the IEC 61131 standard. | 
| Parameters | Inputs  IN1 
 
| Data type: | ANY_(SAFE)BIT |  
| Description: | First input value. |   IN2 
Output
 
| Data type: | ANY_(SAFE)BIT |  
| Description: | Second input value. |   OUT 
 
| Data type: | ANY_(SAFE)BIT |  
| Description: | Output value. |  | 
| Additional information |  EN/ENO behavior 
The POU is only executed if TRUE  is applied to the EN input. If EN = FALSE, the POU is not executed and ENO = FALSE indicates the inactivity. 
 |