SHL
Function name
SHL
ST call
PROGRAM SHL_DEMO VAR WORD1,WORD2: WORD; INT1: INT; END_VAR WORD2:= SHL(IN:=WORD1,N:=INT1); END_PROGRAM
Description
The function moves the bit pattern from right to left. The moved bits are set to zero.
Inputs
Input | Type | Description |
IN | ANY_BIT | Input value |
N | ANY_INT | Number of bits to move the value to left |
Outputs
Output | Type | Description |
⇒ | ANY_BIT | Output value |