CODESYS Development System
Operator: MOD The IEC operator is used for modulo division. The result of the function is the non-negative, integer remainder of division. Permitted data types: BYTE , WORD , DWORD , LWORD , SINT , US
CODESYS Development System
Operator: MOVE The IEC operator is used for assigning a variable to another variable of a corresponding type. Because MOVE is available in the CFC, FBD, and LD editors, you can also use the EN/ENO fun
CODESYS Development System
Operator: NOT The IEC operator is used for the bitwise NOT of a bit operand. When the respective input bit yields 0, the output bit also yields 1, and the other way around. Permitted data types: BOOL
CODESYS Development System
Operator: OR The IEC operator is used for the bitwise OR of bit operands. When at least one of the input bits yields 1, the output bit also yields 1; otherwise 0. Permitted data types: BOOL , BYTE , W
CODESYS Development System
Operator: XOR The IEC operator is used for the bitwise XOR of bit operands. When only one of the two input bits yields 1, the output bit also yields 1. When both inputs yield 1 or 0, then the output y
CODESYS Development System
Operator: SHL The IEC operator is used for bitwise shift of an operand to the left. erg := SHL (in, n) in : Operand which is shifted to the left n : Number of bits to shift in to the left Important If
CODESYS Development System
Operator: SHR The IEC operator is used for bitwise shift of an operand to the right. erg := SHR (in, n) in : Operand which is shifted to the right n : Number of bits to shift in to the right Important
CODESYS Development System
Operator: ROL The IEC operator is used for bitwise rotation of an operand to the left. Permitted data types: BYTE , WORD , DWORD , LWORD erg := ROL (in, n) CODESYS moves in n-times one bit to the left
CODESYS Development System
Operator: ROR The IEC operator is used for bitwise rotation of an operand to the right. Permitted data types: BYTE , WORD , DWORD , LWORD erg := ROR(in,n) CODESYS moves in n-times one bit to the right
CODESYS Development System
Operator: __POUNAME The operator is an extension of the IEC 61131-1 standard. At runtime, the operator yields the name of the POU that contains the operator __POUNAME . The result is of type STRING .