EasyManuals Logo
Home>Mitsubishi>Controller>MELSEC QCPU

Mitsubishi MELSEC QCPU User Manual

Mitsubishi MELSEC QCPU
285 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 #165 background imageLoading...
Page #165 background image
6 - 14 6 - 14
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
[Program Example]
(1) The following program performs a comparison operation when X20 goes ON, comparing the
data for the number of points from D100 equivalent to the value stored in D0 with the data the
number of points from R0 equivalent to the value stored in D0, and stores the result from M10
onward.
[Ladder Mode] [List Mode]
Steps
Instruction Device
4D0
b15- - - - - - - -b0
(BIN)
D101 (BIN)
(BIN)
1000
2000
4000
3000 (BIN)
D100
D102
D103
1000 (BIN)
R1 2000 (BIN)
4000 (BIN)
5000 (BIN)
R0
R2
R3
ON
M11 ON
ON
OFF
M10
M12
M13
=
==
=
b15- - - - - - - -b0
(2) The following program performs a comparison operation when X1C goes ON, comparing the
constant K1000 with the data 4 points from D10, and stores the result in b4 to b7 of D0.
[Ladder Mode] [List Mode]
Steps
Instruction
Device
0
1
6
LD
BKCMP<>P
X1C
K1000
END
D10
D0.4
K4
2000 (BIN)
D11 1000 (BIN)
2222 (BIN)
1000 (BIN)
D10
D12
D13
(BIN)
b15- - - - - - - -b0
1000
0
1
0 000
1
0
1
0
11
0
0 00
D0 after the operation
Bits already in this state
do not change
[See Function (6)]
b15- - - - - - - - - b7- - -b4- - - - b0
0
1 0 000 1 0001000 00
D0 prior to the operation
< >
b15- - - - - - - -b0
b15- - - - - - - - - b7- - -b4- - - - b0
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC QCPU and is the answer not in the manual?

Mitsubishi MELSEC QCPU Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC QCPU
CategoryController
LanguageEnglish

Related product manuals