CONTENTS
A - 12
CONTENTS
SAFETY PRECAUTIONS......................................................................................................................A - 1
CONDITIONS OF USE FOR THE PRODUCT ......................................................................................A - 9
REVISIONS ...........................................................................................................................................A - 10
INTRODUCTION ...................................................................................................................................A - 11
MANUALS .............................................................................................................................................A - 18
MANUAL PAGE ORGANIZATION.........................................................................................................A - 20
GENERIC TERMS AND ABBREVIATIONS ..........................................................................................A - 22
CHAPTER1 OVERVIEW 1-1 to 1-20
1.1 Processing Order in the CPU Module....................................................................................1 - 1
1.2 Storing and Executing Programs ........................................................................................... 1 - 2
1.3 Structured Programming........................................................................................................ 1 - 3
1.4 Devices and Instructions Useful for Programming................................................................. 1 - 6
1.5 Features................................................................................................................................. 1 - 11
1.5.1 Features of the Basic model QCPU ..................................................................................1 - 11
1.5.2 Features of the High Performance model QCPU..............................................................1 - 13
1.5.3 Features of the Process CPU ...........................................................................................1 - 15
1.5.4 Features of the Redundant CPU.......................................................................................1 - 17
1.6 Checking Serial Number and Function Version ..................................................................... 1 - 19
CHAPTER2 SEQUENCE PROGRAMS 2-1 to 2-51
2.1 Sequence Program Overview ................................................................................................ 2 - 1
2.2 Sequence Program Configuration.......................................................................................... 2 - 3
2.2.1 Main routine program ........................................................................................................2 - 4
2.2.2 Subroutine program ..........................................................................................................2 - 5
2.2.3 Interrupt program ..............................................................................................................2 - 6
2.3 Settings When Program is Divided .......................................................................................2 - 14
2.3.1 Initial execution type program ...........................................................................................2 - 19
2.3.2 Scan execution type program ...........................................................................................2 - 22
2.3.3 Low-speed execution type program ..................................................................................2 - 23
2.3.4 Stand-by type program ......................................................................................................2 - 31
2.3.5 Fixed scan execution type program ..................................................................................2 - 36
2.3.6 Changing the program execution type ..............................................................................2 - 40
2.4 Data Used in Sequence Programs ........................................................................................2 - 42
2.4.1 BIN (Binary Code) .............................................................................................................2 - 45
2.4.2 HEX (Hexadecimal)...........................................................................................................2 - 46
2.4.3 BCD (Binary-coded Decimal) ............................................................................................2 - 47
2.4.4 Real number (Floating-point data).....................................................................................2 - 48
2.4.5 Character string data.........................................................................................................2 - 51
CHAPTER3 CPU MODULE OPERATION 3-1 to 3-16
3.1 Initial Processing.................................................................................................................... 3 - 1
3.2 I/O Refresh (Refresh Processing with Input/Output Modules) ............................................... 3 - 2