5
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instructions Edition
Table of Contents
5. How to Specify Devices and Constants to Instructions
5.1 Numeric Values Handled in PLCs (Octal, Decimal, Hexadecimal and Real Numbers) .............. 126
5.1.1 Types of numeric values.............................................................................................................. 126
5.1.2 Conversion of numeric values ..................................................................................................... 127
5.1.3 Handling of numeric values in floating point operations .............................................................. 127
5.4 Specification of Digits for Bit Devices (Kn[ ]***)........................................................................... 131
5.5 Specification of a Bit of Word Device (D[ ].b) .............................................................................. 132
5.6 Direct Specification of Buffer Memory (U[ ]\G[ ]) ......................................................................... 132
5.7 Indexing....................................................................................................................................... 133
5.7.1 Indexing in basic instructions....................................................................................................... 133
5.7.2 Indexing in applied instructions ................................................................................................... 134
6. What to Understand before Programming
6.1 How to Read Explanation of Instructions .................................................................................... 137
6.2 Cautions on Creation of Fundamental Programs........................................................................ 140
6.2.1 Programming procedure and execution order ............................................................................. 140
6.2.2 Double output (double coil) operation and countermeasures...................................................... 141
6.2.3 Circuits which cannot be programmed and countermeasures .................................................... 142
6.3 I/O Processing and Response Delay .......................................................................................... 143
6.4 Mutual Relationship Among Program Flow Control Instructions................................................. 144
6.5 General Rules for Applied Instructions........................................................................................ 146
6.5.1 Expression and operation type of applied instructions ................................................................ 146
6.5.2 Handling of general flags............................................................................................................. 148
6.5.3 Handling of operation error flag ................................................................................................... 150
6.5.4 Handling functions of extension flag............................................................................................ 151
6.5.5 Limitation in number of instructions ............................................................................................. 151
7.1 LD, LDI ........................................................................................................................................ 155
7.2 OUT............................................................................................................................................. 157
7.3 AND, ANI..................................................................................................................................... 160
7.4 OR, ORI ...................................................................................................................................... 163
7.5 LDP, LDF, ANDP, ANDF, ORP, ORF ......................................................................................... 166
7.6 ORB ............................................................................................................................................ 172
7.7 ANB............................................................................................................................................. 173
7.8 MPS, MRD, MPP ........................................................................................................................ 174
7.9 MC, MCR .................................................................................................................................... 179
7.10 INV ............................................................................................................................................ 182
7.11 PLS, PLF................................................................................................................................... 183
7.12 SET, RST .................................................................................................................................. 185
7.13 NOP .......................................................................................................................................... 188
7.14 END........................................................................................................................................... 189
7.15 Number of Instruction Steps and Specified Devices ................................................................. 190