Mitsubishi MELSEC QCPU Programming Manual page 226

Programmable logic controller
Table of Contents

Advertisement

6 BASIC INSTRUCTIONS
[Operation Errors]
(1) In the following cases an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored at SD0.
• The range n-points from the device at
• The data n-points from the device designated by
• The
S
(2) See Section 3.6 for information regarding errors during index modification.
[Program Example]
(1) The following program converts BIN 16-bit data the number of points from D100 corresponding
to the value stored at D0 to BCD when X20 goes ON, and stores the result following D200.
[Ladder Mode]
6 - 75
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
and
devices overlap.
D
D100 BIN 5432
0 0 0 1 0 1 0 1 0 0 1 1 1 0 0 0
0 0 0 1 0 0 0 1 0 1 0 1 1 1 0 0
D101 BIN 4444
D102 BIN 3210
0 0 0 0 1 1 0 0 1 0 0 0 1 0 1 0
0 1 0 1 0 1 0 0 0 0 1 1 0 0 1 0
D200 BCD 5432
D201 BCD 4444
0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0
0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 0
D202 BCD 3210
or
exceeds the relevant device.
S
D
is outside the 0 to 9999 range.
S
[List Mode]
Steps
Instruction
BCD
3
D0
conversions
MELSEC-Q/QnA
(Error code: 4101)
(Error code: 4100)
(Error code: 4101)
Device
6 - 75

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qnacpuMelsec q modeMelsec q series

Table of Contents