-

SHR_WORD

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

Type Function
Description Performs a bitwise right shift operation on the WORD operand connected to the input IN. N specifies the number of bits to be shifted. The empty bit positions are filled with zeros.
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 right shifting of 3 bits