A - 3 A - 3
INTRODUCTION
Thank you for purchasing the Mitsubishi MELSEC-Q Series (Q mode) and MELSEC-QnA Series of
Programmable Logic Controllers.
Before using the product, please read this manual carefully to develop full familiarity with the functions and
performance of the Programmable Logic Controller Q Series (Q mode)/QnA Series you have purchased, so
as to ensure correct use.
A copy of this manual should be forwarded to the end User.
CONTENTS
1. GENERAL DESCRIPTION 1 - 1 to 1 - 4
1.1 Related Programming Manuals ............................................................................................................. 1 - 1
1.2 Abbreviation and Generic Name............................................................................................................1 - 4
2. INSTRUCTION TABLES 2 - 1 to 2 - 49
2.1 Types of Instructions ..............................................................................................................................2 - 1
2.2 How to Read Instruction Tables.............................................................................................................2 - 2
2.3 Sequence Instructions............................................................................................................................2 - 4
2.3.1 Contact Instruction........................................................................................................................... 2 - 4
2.3.2 Connection instructions ................................................................................................................... 2 - 5
2.3.3 Output instructions...........................................................................................................................2 - 6
2.3.4 Shift instructions ..............................................................................................................................2 - 6
2.3.5 Master control instructions............................................................................................................... 2 - 7
2.3.6 Termination instruction ....................................................................................................................2 - 7
2.3.7 Other instructions............................................................................................................................. 2 - 7
2.4 Basic Instructions ...................................................................................................................................2 - 8
2.4.1 Comparison operation instruction ...................................................................................................2 - 8
2.4.2 Arithmetic operation instructions ..................................................................................................... 2 - 14
2.4.3 Data conversion instructions ...........................................................................................................2 - 19
2.4.4 Data transfer instructions.................................................................................................................2 - 21
2.4.5 Program branch instruction .............................................................................................................2 - 23
2.4.6 Program execution control instructions...........................................................................................2 - 23
2.4.7 I/O refresh instructions ....................................................................................................................2 - 23
2.4.8 Other convenient instructions..........................................................................................................2 - 24
2.5 Application Instructions .......................................................................................................................... 2 - 25
2.5.1 Logical operation instructions..........................................................................................................2 - 25
2.5.2 Rotation instructions ........................................................................................................................2 - 27
2.5.3 Shift instructions ..............................................................................................................................2 - 28
2.5.4 Bit processing instructions...............................................................................................................2 - 28
2.5.5 Data processing instructions ...........................................................................................................2 - 29
2.5.6 Structure creation instructions.........................................................................................................2 - 32
2.5.7 Table operation instructions ............................................................................................................2 - 33
2.5.8 Buffer memory access instructions.................................................................................................2 - 34
2.5.9 Display instructions..........................................................................................................................2 - 34
2.5.10 Debugging and failure diagnosis instructions ...............................................................................2 - 35
2.5.11 Character string processing instructions.......................................................................................2 - 36
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com