3
Table of Contents
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
Table of Contents
Positioning of This Manual....................................................................................................... 9
Related Manuals...................................................................................................................... 12
Generic Names and Abbreviations Used in Manuals .......................................................... 15
1. Outline 16
1.1 Outline of Structured Programs and Programming languages ..................................................... 16
1.1.1 Outline of Structured Programs..................................................................................................... 16
1.1.2 Programming languages ............................................................................................................... 17
1.2 PLC Series and Programming Software Version.......................................................................... 17
1.3 Cautions on Creation of Fundamental Programs.......................................................................... 18
1.3.1 I/O PROCESSING AND RESPONSE DELAY .............................................................................. 18
1.3.2 Double output (double coil) operation and countermeasures........................................................ 19
1.3.3 Circuits which cannot be created by structured ladder programs and countermeasures.............. 20
1.3.4 Handling of general flags............................................................................................................... 20
1.3.5 Handling of operation error flag ..................................................................................................... 23
1.3.6 Handling of function extension flag................................................................................................ 24
1.3.7 Limitation in number of sequence instructions and number of simultaneous instances
of instructions ................................................................................................................................ 24
2. Instruction List 27
2.1 Basic Instructions.......................................................................................................................... 27
2.2 Step Ladder Instructions ............................................................................................................... 28
2.3 Applied Instructions....................................................................................................................... 28
3. Configuration of Instruction 47
3.1 Expression and Operation Form of Sequence Instructions........................................................... 47
3.2 Labels............................................................................................................................................ 49
3.3 Devices and Addresses ................................................................................................................ 52
3.4 EN and ENO ................................................................................................................................. 53
4. How to Read Explanation of Instructions 54
5. Basic Instruction 56
5.1 LD, LDI, AND, ANI, OR, OR.......................................................................................................... 56
5.2 LDP, LDF, ANDP, ANDF, ORP, ORF ........................................................................................... 61
5.3 OUT (Excluding timers and counters)........................................................................................... 67
5.4 Operating Timer ............................................................................................................................ 70
5.4.1 OUT_T........................................................................................................................................... 70
5.5 Operating Counters....................................................................................................................... 74
5.5.1 OUT_C, OUT_C_32 ...................................................................................................................... 74
5.6 AND(...), OR(...) ............................................................................................................................ 77
5.7 MPS, MRD, MPP .......................................................................................................................... 79
5.8 INV ................................................................................................................................................ 84
5.9 MEP, MEF..................................................................................................................................... 86
5.10 SET, RST.................................................................................................................................... 88
5.11 PLS, PLF..................................................................................................................................... 92
5.12 MC, MCR .................................................................................................................................... 95
5.13 END............................................................................................................................................. 99