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
(G, IN0, IN1) means: OUT := IN0; if G = [...] Permitted data types IN0
CODESYS Development System
0 THEN // 0 means [...] on the string dwSynch := 0
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 index> From 0 [...] PartialVarB := GVL.Variable.%B0; PartialVarX := array[idx].%X0
CODESYS Development System
Functions In ST, you can use a function call as an operand. Example 194 . Example: Result := Fct(7) + 3; TIME() function This function yields the time (in milliseconds) that has elapsed since system b
CODESYS Development System
Data Types In the programming, a variable is identified by its name and has an address in the memory of the target system. Accordingly, variable names are identifiers under which the allocated memory