OR
Performs a Boolean OR operation between two values.
Ladder Representation
Block Structure
| Variable Type | Name | Data Type | Description |
|---|---|---|---|
| VAR_INPUT | EN | BOOL | Block enable. |
| VAR_INPUT | Value1 | BYTE USINT SINT WORD UINT INT DWORD UDINT DINT | Operation variable. |
| VAR_INPUT | Value2 | BYTE USINT SINT WORD UINT INT DWORD UDINT DINT | Operation variable. |
| VAR_OUTPUT | ENO | BOOL | End of operation. |
| VAR_OUTPUT | Result | BYTE USINT SINT WORD UINT INT DWORD UDINT DINT | Variable that stores the operation result. |
Operation
When EN is TRUE, the block writes to Result the Boolean OR operation between Value1 and Value2.
When EN is FALSE, Result remains unchanged.
After the operation is complete, ENO passes the EN value to the next Ladder block.
Execution Flowchart

Examples
- Ladder Example
- Structured Text Example
The Ladder example performs a Boolean OR operation between AUX and AUX2 and stores the result in AUX3.
The following Structured Text code applies the same logic shown in the Ladder example.
Structured Text
VAR
AUX : BYTE := 2#1100_1110;
AUX2 : BYTE := 2#1001_1100;
AUX3 : BYTE;
END_VAR
AUX3 := FB_OR(
EN:=DI1,
Value1:=AUX,
Value2:=AUX2,
ENO=>DO1);