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 - 21
CHAPTER1 OVERVIEW 1-1 to 1-14
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.6 Checking Serial Number and Function Version ..................................................................... 1 - 13
CHAPTER2 SEQUENCE PROGRAMS 2-1 to 2-43
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 - 13
2.3.1 Initial execution type program ...........................................................................................2 - 17
2.3.2 Scan execution type program ...........................................................................................2 - 20
2.3.3 Stand-by type program......................................................................................................2 - 21
2.3.4 Fixed scan execution type program ..................................................................................2 - 26
2.3.5 Changing the program execution type ..............................................................................2 - 30
2.4 Data Used in Sequence Programs ........................................................................................ 2 - 32
2.4.1 BIN (Binary Code) .............................................................................................................2 - 35
2.4.2 HEX (Hexadecimal)...........................................................................................................2 - 37
2.4.3 BCD (Binary-coded Decimal) ............................................................................................2 - 38
2.4.4 Real number (Floating-point data).....................................................................................2 - 39
2.4.5 Character string data.........................................................................................................2 - 43
CHAPTER3 CPU MODULE OPERATION 3-1 to 3-14
3.1 Initial Processing.................................................................................................................... 3 - 1
3.2 I/O Refresh (Refresh Processing with Input/Output Modules)...............................................3 - 2
3.3 Program Operation ................................................................................................................3 - 2
3.4 END Processing..................................................................................................................... 3 - 2
3.5 Operation Processing in the RUN,STOP, or PAUSE Status .................................................. 3 - 3
3.6 Operation Processing during Momentary Power Failure ....................................................... 3 - 5
3.7 Data Clear Processing...........................................................................................................3 - 6