Attention

IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.

SHL

Shifts a bit string left by a specified number of positions.

IEC 61131-3

Section 2.5.1.5.6

Support

Supported

Signatures

#

Input (IN)

Input (N)

Return Type

Support

1

BYTE

INT

BYTE

Supported

2

WORD

INT

WORD

Supported

3

DWORD

INT

DWORD

Supported

4

LWORD

INT

LWORD

Supported

Description

Shifts the bit string IN left by N positions. Vacated positions on the right are filled with zeros. Bits shifted beyond the leftmost position are discarded.

Example

See Also

  • SHR — shift right

  • ROL — rotate left

  • ROR — rotate right