-

SHL_WORD

Note
The function is only supported if a Safety PLC is used in the project.

Type Function
Description Performs a bitwise left shift operation on the WORD operand connected to the input IN. N specifies the number of bits to be shifted.
Notes
  • The empty bit positions resulting from the shift operation are filled with zeros.
  • When shifting with N < 0, the function delivers the output value 0 because the parameter N is always considered as an unsigned integer value.
  • The function does not support execution control with EN/ENO.
Parameters Inputs

IN

N

Output

OUT
Error behaviorError behavior
Example Bitwise left shifting of 3 bits