SHL is an IEC operator that shifts the bits of an operand to the left by a specified number of positions. It is written as erg := SHL(in, n), where in is the value to shift and n is the number of bit positions. The result is assigned to erg.
| Language | iec 61131 3 |
|---|---|
| Code | SHL |
| Group | Operator |
| Syntax | erg := SHL (in, n) |
| Dialect | CODESYS |
| Name | Description |
|---|---|
| in | Operand which is shifted to the left |
| n | Number of bits to shift in to the left |