Name :Shift left

Symbol :SHL

Illustrate:

        Move the input parameter 1 "IN" to the left and the input parameter 2 "N" bit, and add 0 to the rightmost bit, and assign the result to the output parameter OUT.

Image:

Parameter:

Parameter | Statement | Type | Description
--- | --- | --- | ---
IN | Input | BOOL/BYTE/WORD/DWORD |
    First input value (operand)
N | Input | UINT |
    Second input value (number of left shifts)
OUT | Output | BOOL/BYTE/WORD/DWORD |
    Output value

Example:

LD:

ST:

TagOut := SHL(IN := TagIn1, N := TagIn2);

Interpretation:

parameter | operand | value
--- | --- | ---
IN | TagIn1 | 8
N | TagIn2 | 2
OUT | TagOut | 32

    	IN and N input the corresponding types of data, and SHL outputs the left-shift result.