CODESYS Development System
Operator: OR_ELSE The operator is an extension of the IEC 61131-3 standard. The OR_ELSE operator is permitted only for programming in structured text: OR operation of BOOL and BIT operands with short-
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: SEL The IEC operator is used for bitwise selection. OUT := SEL(G, IN0, IN1) means: OUT := IN0; if G = FALSE OUT := IN1; if G = TRUE Permitted data types IN0 , …, INn and OUT : any identical
CODESYS Development System
Operator: TEST_AND_SET The multicore operator is an extension of the IEC 61131-3 standard. The operator can be used for implementing a semaphore, for example to guarantee exclusive access to a variabl
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
Partial Variable Access The expression complies with the IEC 61131-3 standard. Partial variable access is possible in the case of IEC variables of data type BYTE , WORD , DWORD or LWORD (data type ANY
CODESYS Development System
Addresses Caution If you use pointers to addresses, then the contents of addresses can be moved during an online change. If you use absolute addresses, then the contents of addresses does not change d