Chapter 28 Bit Shift Functions; Shifting Data To The Left By N Bit(S) - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

28
BIT SHIFT FUNCTIONS
28.1

Shifting Data to the Left by n Bit(s)

SHL(_E)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These functions shift the input value to the left by (n) bit(s), and output the operation result.
Ladder, FBD/LD
[Without EN/ENO]
s
d
n
Setting data
■Description, type, data type
Argument
Description
EN
Execution condition (TRUE: Executed, FALSE: Not executed)
s (IN)
Input
n (N)
Number of bits to be shifted
ENO
Output status (TRUE: Normal, FALSE: Abnormal)
d
Output
RnSFCPU RnSFCPU
(Standard)
(Safety)
[With EN/ENO]
EN
ENO
s
d
n
Structured text
[Without EN/ENO]
d:=SHL(s,n);
[With EN/ENO]
d:=SHL_E(EN,ENO,s,n);
Type
Input variable
Input variable
Input variable
Output variable
Output variable
28.1 Shifting Data to the Left by n Bit(s)
Data type
BOOL
ANY_BIT
ANY_BIT
BOOL
ANY_BIT
28 BIT SHIFT FUNCTIONS
1919
28

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents