Name :Or arithmetic

Symbol:OR

Illustrate:

        Perform or operate operands. If all inputs are 0, then the result bit is also 0, otherwise it is 1.

Image:

Parameter:

Parameter | Statement | Type | Description
--- | --- | --- | ---
IN1 | Input | BOOL |
    The first input value
IN2 | Input | BOOL |
    Number of characters
OUT | Output | BOOL |
    The result of the calculation

Example:

LD:

ST:

TagOut:=OR(IN1:=TagIn1,IN2:=TagIn2);

Interpretation:

parameter | operand | value
--- | --- | ---
IN1 | TagIn1 | input：TRUE
IN2 | TagIn2 | input：FALSE
OUT | TagOut | output：TRUE

    	As long as one input is 1, the result is 1.