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: 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: __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
Time Data Types Data Type: TIME Syntax TIME#<time declaration> Time data types are treated internally as DWORD . In the case of TIME , this leads to a resolution in milliseconds. Data Type Lower Limit
CODESYS Development System
User-defined data type: TYPE :
CODESYS Development System
Data Type: Implicit Enumeration The implicit enumeration allows for an easy way to declare a new enumeration variable which is valid only within the local POU. A variable of this type can take a limit
CODESYS Development System
Data Structure: UNION A UNION is a data structure with usually different data types. In a union, all components have the same offset and therefore the same amount of storage space. TYPE NAME_AB: UNION