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 .
CODESYS Development System
Data Type: BOOL Type Values Memory BOOL TRUE (1), FALSE (0) 8 bits :
CODESYS Development System
Integer data types Important Information can be lost when converting from larger data types to smaller data types. CODESYS provides the following integer data types. Type Lower limit Upper Limit Memor