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 #211 background imageLoading...
Page #211 background image
6 - 60 6 - 60
MELSEC-Q/QnA
6 BASIC INSTRUCTIONS
[Operation Errors]
(1) In the following cases, an operation error occurs, the error flag (SM0) turns ON, an error code
is stored in SD0, and the instruction is not executed.
• When values other than 0 to 9 are designated to any digits of
S
.
[When QCPU is used]
When QCPU is used, the error above can be suppressed by turning ON SM722.
However, the instruction is not executed regardless of whether SM722 is turned ON or OFF if
the designated value is out of the available range.
For BCDP/DBCDP instructions, the next operation is disabled regardless of the presence of
errors unless the execution condition is turned from OFF to ON.
[Operation Example]
(1) The following program converts the BCD data at X10 to X1B to BIN when X8 is ON, and stores
it at D8.
PLC input module
Input
power
supply
Digital
switch BCD
Can be
used at
other
COM
1
2
4
8
10
20
40
80
COM
100
200
400
800
0
1
0
0
1
1
0
0
0
1
1
0
COM
COM
X1F
X1E
X1D
X1C
X1B
X1A
X19
X18
X17
X16
X15
X14
X13
X12
X11
X10
[Ladder Mode] [List Mode]
Steps
Instruction
Device
(2) The following program converts the BCD data at X10 to X37 to BIN when X8 is ON, and stores
it at D0 and D1.
PLC Output Module
Input
power
supply
BCD digital switch
X13 to X10X17 to X14X1B to X18X1F to X1CX23 to X20X27 to X24X2B to X28X2F to X2CX33 to X30X37 to X34
[Ladder Mode] [List Mode]
Steps
Instruction
Device
If the data set at X10 to X37 is a BCD value which exceeds 2147483647, the value at D0 and D1
will be a negative value, because it exceeds the range of numerical values that can be handled by
a 32-bit device.
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