Name :Equal

Symbol :EQ

Illustrate:

        Compares whether the first input is equal to the second input, and the result is assigned to the output OUT.

Image:

Parameter:

Parameter | Statement | Type | Description
--- | --- | --- | ---
IN1 | Input | INT/SINT/DINT/UINT/USINT/UDINT/ULINT/REAL/LREAL/BYTE/WORD/LWORD/DWORD/TIME/DATE/TOD/DT/STRING |
    The first input value
IN2 | Input | INT/SINT/DINT/UINT/USINT/UDINT/ULINT/REAL/LREAL/BYTE/WORD/LWORD/DWORD/TIME/DATE/TOD/DT/STRING |
    The second input value
OUT | Output | BOOL |
    Output value

Example:

LD:

ST:

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

Interpretation:

parameter | operand | value
--- | --- | ---
IN1 | TagIn1 | Enter a value：1
IN2 | TagIn2 | Enter a value：1
OUT | TagOut | Output value：1

        IN1 and IN2 input the corresponding type of data, and EQ outputs the calculation result.