EasyManuals Logo

Mitsubishi MELSEC-Q/L User Manual

Mitsubishi MELSEC-Q/L
850 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 #346 background imageLoading...
Page #346 background image
344
SFTBR, SFTBRP, SFTBL, SFTBLP
(2) n1 and n2 are specified under the condition that n1 is larger than n2. If the value of n2 is equal to or larger than the value
of n1, the remainder of n2 / n1 (n2 devided by n1) is used for a shift.
However, if the remainder of n2 / n1 is 0, the instruction will be not processed.
(3) This instruction specifies n1 ranged from 1 to 64.
(4) Bits starting from the lowest bit to n2th bit are filled with 0s. If the value of n2 is larger than the value of n1, the remainder
of n2 / n1 will be 0.
(5) If the value specified by n1 or n2 is 0, the instruction will be not processed.
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored into
SD0.
Program Example
(1) The following program shifts the data of Y10 to Y17 (8 bits) specified by to the right by 2 bits (n2), when M0 is turned
on.
[Ladder Mode] [List Mode]
[Operation]
(2) The following program shifts the data of Y21 to Y2C (12 bits) specified by to the left by 5 bits (n2), when M0 is turned
on.
[Ladder Mode] [List Mode]
[Operation]
Error
code
Error details
Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100
The value specified in n1 is other than 0 to 64.
The value in n2 is negative.
4101
The points specified in n1 exceed those of the device specified in .
D
D
Step
Instruction
Device
10111001
Y10Y11Y12Y13Y14Y15Y16Y17
Y10Y11Y12Y13Y14Y15Y16Y17
00101110
0
Carry flag
(SM700)
D
Step
Instruction
Device
010111011 001
Y21Y22Y23Y24Y25Y26Y27Y28Y29Y2AY2BY2C
001001011 000
Y21Y22Y23Y24Y25Y26Y27Y28Y29Y2AY2BY2C
0
Carry flag
(SM700)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC-Q/L and is the answer not in the manual?

Mitsubishi MELSEC-Q/L Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC-Q/L
CategoryController
LanguageEnglish

Related product manuals