Operators
These are Operators of the IEC 61131-3 languages:
Operations | 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 |
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 | |
BOO | Converts to Boolean |
ANA | Converts to real |
REAL | Converts to real |
MSG | Converts to message |
TMR | Converts to time |
Internal Operations | |
OPERATE | Varies depending on the implementation of the treated I/O |
SYSTEM | Accesses the system parameters |
String Manipulation | |
CAT | Concatenates multiple messages into one |
Provide Feedback