Operators
These are standard operators of the IEC 61131-3 languages:
Operators | Description |
---|---|
Arithmetic Operations | |
Addition | Adds two or more variables |
Division | Divides two variables |
Multiplication | Multiplies two or more variables |
Subtraction | Subtracts a variable from another |
1 GAIN | Assigns one variable into another |
NEG | Integer negation |
Boolean Operations | |
AND | Boolean AND |
OR | Boolean OR |
XOR | Boolean exclusive OR |
NOT | Boolean negation |
Comparators | |
Less Than | Tests if one value is less than another |
Less Than or Equal | Tests if one value is less than or equal to another |
Greater Than | Tests if one value is greater than another |
Greater Than or Equal | Tests if one value is greater than or equal to another |
Equal | Tests if one value is equal to another |
Not Equal | Tests if one value is not equal to another |
Data Conversion | |
Equal | Converts to Boolean |
Equal | Converts to Short integer |
Equal | Converts to Unsigned short integer |
Equal | Converts to BYTE |
Equal | Converts to Integer |
ANY_TO_UINT | Converts to Unsigned integer |
ANY_TO_WORD | Converts to WORD |
ANY_TO_DINT | Converts to Double integer |
Equal | Converts to Unsigned double integer |
Equal | Converts to Double WORD |
Equal | Converts to Long integer |
Equal | Converts to Unsigned long integer |
Equal | Converts to Long WORD |
Equal | Converts to Real |
Equal | Converts to Long real |
Equal | Converts to Time |
Equal | Converts to Date |
Equal | Converts to String |
Provide Feedback