EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #793 background imageLoading...
Page #793 background image
18 BIT SHIFT FUNCTIONS
18.1 n-bit Left Shift
791
18
18 BIT SHIFT FUNCTIONS
18.1 n-bit Left Shift
SHL(_E)
These functions shift an input value leftward by (n) bits and output the result.
Setting data
Descriptions, types, and data types
Processing details
Operation processing
These functions shift the WORD or DWORD type data input to (s) left by (n) bits and output the result in the same data type
as (s) from (d).
The number input in (n) is used as the number of left-shift bits.
Ex.
When the data type of (s) is WORD and 8 is input in (n)
"0" is set to "n" bits from the least significant bit.
A value input to (n) is the WORD or DWORD type data value.
A value input to (n) (Number of shift bits) is the INT type data value and within the following range.
Ladder diagram Structured text
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
d:=SHL(s,n);
[With EN/ENO]
d:=SHL_E(EN,ENO,s,n);
Argument Description Type Data type
EN Execution condition (TRUE: Execution, FALSE: Stop) Input variable BOOL
s Input Input variable ANY_BIT
n Number of shift bits Input variable ANY_BIT
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable ANY_BIT
When the data type of (s) is WORD When the data type of (s) is DWORD
A value in (n) is within 0 to 15.
The lower 4-bit data of the value in (n) is used.
[Example]
When the input value is 6: 6
When the input value is 22: 6
A value in (n) is within 0 to 31.
The lower 5-bit data of the value in (n) is used.
[Example]
When the input value is 6: 6
When the input value is 22: 22
s d
n
EN ENO
sd
n
IN (WORD)
270FH F00H
WORD
0100100011100111
270FH
01110 10000000000
F00H
These bits become "0".

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
SeriesMELSEC iQ-F
Communication InterfacesEthernet, RS-485, USB
TypeProgrammable Logic Controller (PLC)
I/O PointsUp to 256 points (depends on configuration)
Built-in I/OVaries depending on CPU type (e.g., 16, 32, 64)
Programming LanguageLadder Logic, Structured Text, Function Block Diagram, Instruction List, Sequential Function Chart
Communication ProtocolsEthernet, Modbus RTU/ASCII, Modbus TCP, CC-Link IE Field Basic
Expansion ModulesDigital I/O, Analog I/O, Communication
Power Supply24 V DC or 100-240 V AC (depending on model)
Ethernet Port1 port (10/100BASE-TX)
RS-485 Port1 port (depends on model)
USB Port1 port (USB 2.0)
High-speed CounterUp to 200 kHz (depends on model)
Pulse OutputUp to 200 kHz (depends on model)
Operating Temperature0°C to 55°C
Storage Temperature-25°C to 75°C

Related product manuals