fx3u programming manual

906
PROGRAMMING MANUAL - Basic & Applied Instructions Edition FX3U / FX3UC SERIES PROGRAMMABLE CONTROLLERS

Upload: suthep-lairusamee

Post on 28-Apr-2015

316 views

Category:

Documents


23 download

TRANSCRIPT

PROGRAMMING MANUAL - Basic & Applied Instructions EditionFX3U / FX3UC SERIES PROGRAMMABLE CONTROLLERS1FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction EditionFX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction EditionForewordThis manual contains text, diagrams and explanations which will guide the reader through the safe and correct installation, use, and operation of the FX3U/FX3UC Series programmable controller. It should be read and understood before attempting to install or use the unit.Store this manual in a safe place so that you can take it out and read it whenever necessary. Always forward it to the end user. 2005 MITSUBISHI ELECTRIC CORPORATIONManual No. JY997D16601Revision DDate 11 / 2007This manual confers no industrial property rights or any rights of any other kind, nor does it confer any patent licenses.Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights whichmay occur as a result of using the contents noted in this manual.2FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction EditionOutline Precautions This manual provides information for the use of the FX3U Series Programmable Controllers. The manual has been written to be used by trained and competent personnel. The definition of such a person or persons is as follows;a) Any engineer who is responsible for the planning, design and construction of automatic equipmentusing the product associated with this manual should be of a competent nature, trained and qualifiedto the local and national standards required to fulfill that role. These engineers should be fully aware ofall aspects of safety with regards to automated equipment.b) Any commissioning or service engineer must be of a competent nature, trained and qualified to thelocal and national standards required to fulfill that job. These engineers should also be trained in theuse and maintenance of the completed product. This includes being completely familiar with allassociated documentation for the said product. All maintenance should be carried out in accordancewith established safety practices.c) All operators of the completed equipment should be trained to use that product in a safe andcoordinated manner in compliance to established safety practices. The operators should also befamiliar with documentation which is connected with the actual operation of the completed equipment.Note: the term 'completed equipment' refers to a third party constructed device which contains or uses the product associated with this manual This product has been manufactured as a general-purpose part for general industries, and has not been designed or manufactured to be incorporated in a device or system used in purposes related to human life. Before using the product for special purposes such as nuclear power, electric power, aerospace, medicine or passenger movement vehicles, consult with Mitsubishi Electric. This product has been manufactured under strict quality control. However when installing the product where major accidents or losses could occur if the product fails, install appropriate backup or failsafe functions in the system. When combining this product with other products, please confirm the standard and the code, or regulations with which the user should follow. Moreover, please confirm the compatibility of this product to the system, machine, and apparatus with which a user is using. If in doubt at any stage during the installation of the product, always consult a professional electrical engineer who is qualified and trained to the local and national standards. If in doubt about the operation or use, please consult the nearest Mitsubishi Electric distributor. Since the examples indicated by this manual, technical bulletin, catalog, etc. are used as a reference, please use it after confirming the function and safety of the equipment and system. Mitsubishi Electric will accept no responsibility for actual use of the product based on these illustrative examples. This manual content, specification etc. may be changed without a notice for improvement. The information in this manual has been carefully checked and is believed to be accurate; however, you have noticed a doubtful point, a doubtful error, etc., please contact the nearest Mitsubishi Electric distributor.Registration Microsoft and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. The company name and the product name to be described in this manual are the registered trademarks or trademarks of each company.3FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of ContentsTable of ContentsRelated manuals...................................................................................................................... 14Generic Names and Abbreviations Used in Manuals .......................................................... 201. Introduction 221.1 Programming Language in PLCs.................................................................................................. 221.1.1 Types of programming languages................................................................................................. 221.1.2 Compatibility among programs...................................................................................................... 232. Overview (Sequence Program) 242.1 Introduction of Convenient Functions............................................................................................ 242.1.1 Convenient functions for input processing..................................................................................... 242.1.2 Convenient functions for output processing .................................................................................. 252.1.3 Functions for supporting sequence control.................................................................................... 252.2 Introduction of Applied Instructions............................................................................................... 262.2.1 Major applied instructions.............................................................................................................. 262.3 Analog/Positioning Special Control ............................................................................................... 282.4 Link and Communication............................................................................................................... 282.5 Introduction of Devices Constructing PLC .................................................................................... 302.5.1 Relationship among devices.......................................................................................................... 302.5.2 Device list ...................................................................................................................................... 312.6 Program Memory and Devices (Battery Backed).......................................................................... 332.6.1 Memory structure........................................................................................................................... 332.6.2 Memory operations and latched (battery backed) (power ON/OFF and RUN/STOP)................... 342.6.3 Types of backup methods against power failure ........................................................................... 362.6.4 Change between general devices and latched (battery backed) devices ..................................... 362.6.5 How to initialize devices (battery backed) ..................................................................................... 362.7 Types and Setting of Parameters.................................................................................................. 382.7.1 Parameter list ................................................................................................................................ 382.7.2 Parameter initial values and available tools for changing parameter values................................. 392.7.3 Memory capacity setting range...................................................................................................... 402.7.4 Compatible optional memory model .............................................................................................. 402.7.5 Entry code ..................................................................................................................................... 412.7.6 Special unit initial value setting [GX Developer Ver.8.23Z or later] ............................................... 452.7.7 Positioning setting [for TBL (FNC152) instruction] [GX Developer Ver.8.23Z or later].................. 452.7.8 Parameter settings by GX Developer ............................................................................................ 463. Instruction List 563.1 Basic Instructions.......................................................................................................................... 563.2 Step Ladder Instructions ............................................................................................................... 583.3 Applied Instructions ... in Ascending Order of FNC Number......................................................... 584. Devices in Detail 724.1 Device Number List....................................................................................................................... 724.2 I/O Relays [X, Y]............................................................................................................................ 754.2.1 Numbers of I/O relays.................................................................................................................... 754.2.2 Functions and roles ....................................................................................................................... 764.2.3 Operation timing of input relays..................................................................................................... 774.3 Auxiliary Relay [M] ........................................................................................................................ 784.3.1 Numbers of auxiliary relays ........................................................................................................... 784.3.2 Functions and operation examples................................................................................................ 784FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of Contents4.4 State Relay [S] .............................................................................................................................. 804.4.1 Numbers of state relays................................................................................................................. 804.4.2 Functions and operation examples................................................................................................ 804.5 Timer [T]........................................................................................................................................ 824.5.1 Numbers of timers ......................................................................................................................... 824.5.2 Functions and operation examples................................................................................................ 824.5.3 Set value specification method...................................................................................................... 834.5.4 Cautions on routines...................................................................................................................... 834.5.5 Details of timer operation and timer accuracy ............................................................................... 834.5.6 Program examples [off-delay timer and flicker timer] .................................................................... 844.5.7 Handling timers as numeric devices.............................................................................................. 854.6 Counter [C].................................................................................................................................... 864.6.1 Numbers of counters ..................................................................................................................... 864.6.2 Features of counters...................................................................................................................... 864.6.3 Related devices (to specify counting direction) [32-bit counter] .................................................... 864.6.4 Functions and operation examples................................................................................................ 874.6.5 Set value specification method...................................................................................................... 884.6.6 Response speed of counters......................................................................................................... 894.6.7 Handling counters as numeric devices.......................................................................................... 894.7 High Speed Counter [C] ................................................................................................................ 914.7.1 Types and device numbers of high speed counters...................................................................... 914.7.2 Input assignment for high speed counters..................................................................................... 944.7.3 Handling of high speed counters................................................................................................... 954.7.4 Current value update timing and comparison of current value...................................................... 974.7.5 Related devices............................................................................................................................. 984.7.6 Changing the logic of external reset input signal ........................................................................... 994.7.7 Assignment of counter input terminal and switching of function.................................................... 994.7.8 How to use 2-phase 2-count input counters C251 to C255 with 4 edge counting....................... 1004.7.9 Conditions for hardware counters to be handled as software counters....................................... 1014.7.10 Response frequency of high speed counters ............................................................................ 1024.7.11 Cautions on use......................................................................................................................... 1044.8 Data Register and File Register [D] ............................................................................................ 1064.8.1 Numbers of data registers and file registers................................................................................ 1064.8.2 Structures of data registers and file registers.............................................................................. 1074.8.3 Functions and operation examples of data registers................................................................... 1084.8.4 Functions and operation examples of file registers ..................................................................... 1104.8.5 Cautions on using file registers ................................................................................................... 1134.9 Extension Register [R] and Extension File Register [ER] ........................................................... 1144.9.1 Numbers of extension registers and extension file registers....................................................... 1144.9.2 Data storage destination and access method ............................................................................. 1144.9.3 Structures of extension registers and extension file registers ..................................................... 1154.9.4 Initialization of extension registers and extension file registers................................................... 1154.9.5 Functions and operation examples of extension registers .......................................................... 1164.9.6 Functions and operation examples of extension file registers..................................................... 1174.9.7 Cautions on using extension file registers................................................................................... 1184.9.8 Registration of data in extension registers and extension file registers....................................... 1194.10 Index Register [V and Z] ........................................................................................................... 1234.10.1 Numbers of index registers........................................................................................................ 1234.10.2 Functions and structures ........................................................................................................... 1234.10.3 Indexing of devices.................................................................................................................... 1244.11 Pointer [P and I] ........................................................................................................................ 1254.11.1 Numbers of pointers .................................................................................................................. 1254.11.2 Functions and operation examples of pointers for branch......................................................... 1254.11.3 Functions and operation examples of pointers for interrupt ...................................................... 1265FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of Contents5. How to Specify Devices and Constants to Instructions 1305.1 Numeric Values Handled in PLCs(Octal, Decimal, Hexadecimal and Real Numbers)................................................................ 1305.1.1 Types of numeric values.............................................................................................................. 1305.1.2 Conversion of numeric values ..................................................................................................... 1315.1.3 Handling of numeric values in floating point operations .............................................................. 1315.2 Specification of Constants K, H and E (Decimal, Hexadecimal and Real Number).................... 1335.2.1 Constant K (decimal number)...................................................................................................... 1335.2.2 Constant H (hexadecimal number).............................................................................................. 1335.2.3 Constant E (real number) ............................................................................................................ 1335.3 Character Strings ........................................................................................................................ 1345.3.1 Character string constant ("ABC") ............................................................................................... 1345.3.2 Character string data................................................................................................................... 1345.4 Specification of Digits for Bit Devices (Kn[ ]***)........................................................................... 1355.5 Bit Specification of a Word Device (D[ ].b) .................................................................................. 1365.6 Direct Specification of Buffer Memory (U[ ]\G[ ]) ......................................................................... 1365.7 Indexing....................................................................................................................................... 1375.7.1 Indexing in basic instructions....................................................................................................... 1375.7.2 Indexing in applied instructions ................................................................................................... 1385.7.3 Indexing example for instruction with limited number of use. ...................................................... 1406. What to Understand before Programming 1416.1 How to Read Explanation of Instructions .................................................................................... 1416.2 Cautions on Creation of Fundamental Programs........................................................................ 1446.2.1 Programming procedure and execution order ............................................................................. 1446.2.2 Double output (double coil) operation and countermeasures...................................................... 1456.2.3 Circuits which cannot be programmed and countermeasures .................................................... 1466.3 I/O Processing and Response Delay .......................................................................................... 1476.4 Mutual Relationship Among Program Flow Control Instructions................................................. 1486.5 General Rules for Applied Instructions........................................................................................ 1506.5.1 Expression and operation type of applied instructions ................................................................ 1506.5.2 Handling of general flags............................................................................................................. 1526.5.3 Handling of operation error flag................................................................................................... 1556.5.4 Handling functions of extension flag............................................................................................ 1566.5.5 Limitation in number of instructions............................................................................................. 1567. Basic Instruction 1587.1 LD, LDI ........................................................................................................................................ 1607.2 OUT............................................................................................................................................. 1627.3 AND, ANI..................................................................................................................................... 1657.4 OR, ORI ...................................................................................................................................... 1687.5 LDP, LDF, ANDP, ANDF, ORP, ORF ......................................................................................... 1717.6 ORB ............................................................................................................................................ 1777.7 ANB............................................................................................................................................. 1787.8 MPS, MRD, MPP ........................................................................................................................ 1797.9 MC, MCR .................................................................................................................................... 1847.10 INV............................................................................................................................................ 1877.11 MEP, MEF................................................................................................................................. 1887.12 PLS, PLF................................................................................................................................... 1907.13 SET, RST.................................................................................................................................. 1927.14 NOP .......................................................................................................................................... 1957.15 END........................................................................................................................................... 1967.16 Number of Instruction Steps and Specified Devices................................................................. 1976FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of Contents8. Program Flow FNC 00 to FNC 09 1988.1 FNC 00 CJ / Conditional Jump................................................................................................. 1998.1.1 CJ instruction and operations of contact and coil ........................................................................ 2038.1.2 Relationship between master control instruction and jump instruction........................................ 2058.2 FNC 01 CALL / Call Subroutine ............................................................................................... 2068.2.1 Cautions on subroutines and interrupt routines........................................................................... 2088.3 FNC 02 SRET / Subroutine Return.......................................................................................... 2108.4 FNC 03 IRET / Interrupt Return ............................................................................................... 2118.5 FNC 04 EI / Enable Interrupt.................................................................................................... 2138.6 FNC 05 DI / Disable Interrupt ................................................................................................... 2148.7 FNC 06 Main Routine Program End ........................................................................................ 2158.8 FNC 07 WDT / Watchdog Timer Refresh................................................................................. 2178.9 FNC 08 FOR / Start a FOR/NEXT Loop .................................................................................. 2208.10 FNC 09 NEXT / End a FOR/NEXT Loop................................................................................ 2219. Move and Compare FNC 10 to FNC 19 2249.1 FNC 10 CMP / Compare.......................................................................................................... 2259.2 FNC 11 ZCP / Zone Compare.................................................................................................. 2279.3 FNC 12 MOV / Move................................................................................................................ 2309.4 FNC 13 SMOV / Shift Move ..................................................................................................... 2339.5 FNC 14 CML / Complement ..................................................................................................... 2359.6 FNC 15 BMOV / Block Move.................................................................................................... 2379.6.1 Function of transfer between file registers and data registers..................................................... 2399.7 FNC 16 FMOV / Fill Move........................................................................................................ 2419.8 FNC 17 XCH / Exchange ......................................................................................................... 2449.9 FNC 18 BCD / Conversion to Binary Coded Decimal .............................................................. 2469.10 FNC 19 BIN Conversion to Binary ......................................................................................... 24910. Arithmetic and Logical Operation (+, , , ) FNC 20 to FNC 29 25210.1 FNC 20 ADD / Addition .......................................................................................................... 25310.2 FNC 21 SUB / Subtraction ..................................................................................................... 25610.3 FNC 22 MUL / Multiplication .................................................................................................. 25910.4 FNC 23 DIV / Division ............................................................................................................ 26210.5 FNC 24 INC / Increment......................................................................................................... 26510.6 FNC 25 DEC / Decrement...................................................................................................... 26710.7 FNC 26 WAND / Logical Word AND...................................................................................... 26810.8 FNC 27 WOR / Logical Word OR........................................................................................... 27010.9 FNC 28 WXOR / Logical Exclusive OR.................................................................................. 27210.10 FNC 29 NEG / Negation....................................................................................................... 27411. Rotation and Shift Operation FNC 30 to FNC 39 27611.1 FNC 30 ROR / Rotation Right ................................................................................................ 27711.2 FNC 31 ROL / Rotation Left ................................................................................................... 27911.3 FNC 32 RCR / Rotation Right with Carry............................................................................... 28111.4 FNC 33 RCL / Rotation Left with Carry.................................................................................. 28311.5 FNC 34 SFTR / Bit Shift Right................................................................................................ 28511.6 FNC 35 SFTL / Bit Shift Left................................................................................................... 28711.6.1 Replacement of SFT instruction in F1 and F2 Series ................................................................ 29011.7 FNC 36 WSFR / Word Shift Right .......................................................................................... 29111.8 FNC 37 WSFL / Word Shift Left ............................................................................................. 2937FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of Contents11.9 FNC 38 SFWR / Shift Write [FIFO/FILO Control] ................................................................... 29511.10 FNC 39 SFRD / Shift Read [FIFO Control] .......................................................................... 29812. Data Operation FNC 40 to FNC 49 30012.1 FNC 40 ZRST / Zone Reset ................................................................................................... 30112.2 FNC 41 DECO / Decode........................................................................................................ 30412.3 FNC 42 ENCO / Encode ........................................................................................................ 30712.4 FNC 43 SUM / Sum of Active Bits.......................................................................................... 30912.5 FNC 44 BON / Check Specified Bit Status............................................................................. 31212.6 FNC 45 MEAN / Mean ........................................................................................................... 31412.7 FNC 46 ANS / Timed Annunciator Set................................................................................... 31612.8 FNC 47 ANR / Annunciator Reset.......................................................................................... 31812.9 FNC 48 SQR / Square Root ................................................................................................... 31912.10 FNC 49 FLT / Conversion to Floating Point ......................................................................... 32113. High Speed Processing FNC 50 to FNC 59 32313.1 FNC 50 REF / Refresh........................................................................................................... 32413.1.1 What should be understood before using the REF instruction .................................................. 32713.2 FNC 51 REFF / Refresh and Filter Adjust.............................................................................. 32813.2.1 What should be understood before using REFF instruction...................................................... 33013.3 FNC 52 MTR / Input Matrix .................................................................................................... 33113.3.1 Operation and cautions for MTR instruction.............................................................................. 33413.4 FNC 53 HSCS / High Speed Counter Set.............................................................................. 33513.4.1 Common cautions on using instructions for high speed counter ............................................... 33713.5 FNC 54 HSCR / High Speed Counter Reset.......................................................................... 34013.6 FNC 55 HSZ / High Speed Counter Zone Compare.............................................................. 34313.6.1 Program in which comparison result is set to ON when power is turned ON[ZCP (FNC 11) instruction] ..................................................................................................... 34613.6.2 Table high speed comparison mode (M8130) ........................................................................... 34813.6.3 Frequency control mode (HSZ and PLSY instructions) (M8132) .............................................. 35113.7 FNC 56 SPD / Speed Detection............................................................................................. 35413.8 FNC 57 PLSY / Pulse Y Output ............................................................................................. 35813.9 FNC 58 PWM / Pulse Width Modulation ................................................................................ 36313.10 FNC 59 PLSR / Acceleration/Deceleration Setup................................................................ 36614. Handy Instruction FNC 60 to FNC 69 37114.1 FNC 60 IST / Initial State ....................................................................................................... 37214.1.1 IST instruction equivalent circuit................................................................................................ 37414.1.2 Example of IST instruction introduction (example of workpiece transfer mechanism) .............. 37514.2 FNC 61 SER / Search a Data Stack ...................................................................................... 38314.3 FNC 62 ABSD / Absolute Drum Sequencer........................................................................... 38614.4 FNC 63 INCD / Incremental Drum Sequencer ....................................................................... 38914.5 FNC 64 TTMR / Teaching Timer............................................................................................ 39114.6 FNC 65 STMR / Special Timer............................................................................................... 39314.7 FNC 66 ALT / Alternate State ................................................................................................ 39514.8 FNC 67 RAMP / Ramp Variable Value .................................................................................. 39714.9 FNC 68 ROTC / Rotary Table Control ................................................................................... 39914.10 FNC 69 SORT / SORT Tabulated Data ............................................................................... 4028FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of Contents15. External FX I/O Device FNC 70 to FNC 79 40515.1 FNC 70 TKY / Ten Key Input ................................................................................................. 40615.2 FNC 71 HKY / Hexadecimal Input.......................................................................................... 41015.3 FNC 72 DSW / Digital Switch (Thumbwheel Input)................................................................ 41415.4 FNC 73 SEGD / Seven Segment Decoder ............................................................................ 41715.5 FNC 74 SEGL / Seven Segment With Latch.......................................................................... 41915.5.1 How to select a seven-segment display unit ............................................................................. 42215.5.2 How to select parameter "n" based on seven-segment display specifications.......................... 42215.6 FNC 75 ARWS / Arrow Switch............................................................................................... 42415.7 FNC 76 ASC / ASCII Code Data Input................................................................................... 42915.8 FNC 77 PR / Print (ASCII Code) ............................................................................................ 43115.9 FNC 78 FROM / Read From A Special Function Block ......................................................... 43415.9.1 Common items between FROM instruction and TO instruction (details)................................... 43715.10 FNC 79 TO / Write To A Special Function Block ................................................................. 43916. External FX Device FNC 80 to FNC 89 44116.1 FNC 80 RS / Serial Communication....................................................................................... 44216.2 FNC 81 PRUN / Parallel Run (Octal Mode) ........................................................................... 44416.3 FNC 82 ASCI / Hexadecimal to ASCII Conversion................................................................ 44616.4 FNC 83 HEX / ASCII to Hexadecimal Conversion................................................................. 44916.5 FNC 84 CCD / Check Code ................................................................................................... 45216.6 FNC 87 RS2 / Serial Communication 2.................................................................................. 45516.7 FNC 88 PID / PID Control Loop ............................................................................................. 45717. Data Transfer 2 FNC100 to FNC109 46117.1 FNC102 ZPUSH/Batch Store of Index Register..................................................................... 46217.2 FNC103 ZPOP/Batch POP of Index Register ........................................................................ 46518. Floating Point FNC110 to FNC139 46618.1 FNC110 ECMP / Floating Point Compare.............................................................................. 46818.2 FNC111 EZCP / Floating Point Zone Compare ..................................................................... 47018.3 FNC112 EMOV / Floating Point Move ................................................................................... 47218.4 FNC116 ESTR / Floating Point to Character String Conversion............................................ 47318.5 FNC117 EVAL / Character String to Floating Point Conversion ............................................ 47918.6 FNC118 EBCD / Floating Point to Scientific Notation Conversion......................................... 48418.7 FNC119 EBIN / Scientific Notation to Floating Point Conversion .......................................... 48618.8 FNC120 EADD / Floating Point Addition................................................................................ 48818.9 FNC121 ESUB / Floating Point Subtraction........................................................................... 48918.10 FNC122 EMUL / Floating Point Multiplication...................................................................... 49018.11 FNC123 EDIV / Floating Point Division................................................................................ 49118.12 FNC124 EXP / Floating Point Exponent .............................................................................. 49218.13 FNC125 LOGE / Floating Point Natural Logarithm.............................................................. 49418.14 FNC126 LOG10 / Floating Point Common Logarithm.......................................................... 49618.15 FNC127 ESQR / Floating Point Square Root ...................................................................... 49818.16 FNC128 ENEG / Floating Point Negation ............................................................................ 49918.17 FNC129 INT / Floating Point to Integer Conversion............................................................. 50018.18 FNC130 SIN / Floating Point Sine........................................................................................ 50218.19 FNC131 COS / Floating Point Cosine.................................................................................. 50418.20 FNC132 TAN / Floating Point Tangent ................................................................................ 50518.21 FNC133 ASIN / Floating Point Arc Sine............................................................................... 5069FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of Contents18.22 FNC134 ACOS / Floating Point Arc Cosine......................................................................... 50818.23 FNC135 ATAN / Floating Point Arc Tangent........................................................................ 51018.24 FNC136 RAD / Floating Point Degrees to Radians Conversion .......................................... 51218.25 FNC137 DEG / Floating Point Radians to Degrees Conversion.......................................... 51419. Data Operation 2 FNC140 to FNC149 51619.1 FNC140 WSUM / Sum of Word Data..................................................................................... 51719.2 FNC141 WTOB / WORD to BYTE......................................................................................... 51919.3 FNC142 BTOW / BYTE to WORD......................................................................................... 52119.4 FNC143 UNI / 4-bit Linking of Word Data.............................................................................. 52419.5 FNC144 DIS / 4-bit Grouping of Word Data........................................................................... 52619.6 FNC147 SWAP / Byte Swap.................................................................................................. 52819.7 FNC149 SORT2 / Sort Tabulated Data 2............................................................................... 52920. Positioning Control FNC150 to FNC159 53320.1 FNC150 DSZR / Dog Search Zero Return............................................................................. 53420.2 FNC151 DVIT / Interrupt Positioning...................................................................................... 53620.3 FNC152 TBL / Batch Data Positioning Mode......................................................................... 53820.4 FNC155 ABS / Absolute Current Value Read........................................................................ 53920.5 FNC156 ZRN / Zero Return ................................................................................................... 54020.6 FNC157 PLSV / Variable Speed Pulse Output ...................................................................... 54220.7 FNC158 DRVI / Drive to Increment........................................................................................ 54420.8 FNC159 DRVA / Drive to Absolute ........................................................................................ 54621. Real Time Clock Control FNC160 to FNC169 54821.1 FNC160 TCMP / RTC Data Compare.................................................................................... 54921.2 FNC161 TZCP / RTC Data Zone Compare ........................................................................... 55121.3 FNC162 TADD / RTC Data Addition...................................................................................... 55421.4 FNC163 TSUB / RTC Data Subtraction................................................................................. 55621.5 FNC164 HTOS / Hour to Second Conversion........................................................................ 55821.6 FNC165 STOH / Second to Hour Conversion........................................................................ 56021.7 FNC166 TRD / Read RTC data ............................................................................................. 56221.8 FNC167 TWR / Set RTC data................................................................................................ 56321.9 FNC169 HOUR / Hour Meter ................................................................................................. 56622. External Device FNC170 to FNC179 56822.1 FNC170 GRY / Decimal to Gray Code Conversion ............................................................... 56922.2 FNC171 GBIN / Gray Code to Decimal Conversion .............................................................. 57022.3 FNC176 RD3A / Read form Dedicated Analog Block ............................................................ 57122.4 FNC177 WR3A / Write to Dedicated Analog Block................................................................ 57223. Introduction of Alternate Instructions FNC180 57323.1 Instruction correspondence table.............................................................................................. 57310FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of Contents24. Others FNC181 to FNC189 57524.1 FNC182 COMRD / Read Device Comment Data .................................................................. 57624.2 FNC184 RND / Random Number Generation........................................................................ 57924.3 FNC186 DUTY / Timing Pulse Generation ............................................................................ 58124.4 FNC188 CRC / Cyclic Redundancy Check............................................................................ 58424.5 FNC189 HCMOV / High Speed Counter Move...................................................................... 58825. Block Data Operation FNC190 to FNC199 59325.1 FNC192 BK+ / Block Data Addition ....................................................................................... 59425.2 NFC193 BK / Block Data Subtraction ................................................................................. 59725.3 FNC194~199 BKCMP=, >, , = / Block Data Compare......................................... 60026. Character String Control FNC200 to FNC209 60526.1 FNC200 STR / BIN to Character String Conversion .............................................................. 60626.2 FNC201 VAL / Character String to BIN Conversion............................................................... 61126.3 FNC202 $+ / Link Character Strings ...................................................................................... 61626.4 FNC203 LEN / Character String Length Detection ................................................................ 61926.5 FNC204 RIGHT / Extracting Character String Data from the Right ....................................... 62126.6 FNC205 LEFT / Extracting Character String Data from the Left ............................................ 62426.7 FNC206 MIDR / Random Selection of Character Strings ...................................................... 62726.8 FNC207 MIDW / Random Replacement of Character Strings............................................... 63026.9 FNC208 INSTR / Character string search.............................................................................. 63426.10 FNC209 $MOV / Character String Transfer ......................................................................... 63627. Data Operation 3 FNC210 to FNC219 63927.1 FNC210 FDEL / Deleting Data from Tables........................................................................... 64027.2 FNC211 FINS / Inserting Data to Tables ............................................................................... 64227.3 FNC212 POP / Shift Last Data Read [FILO Control] ............................................................. 64427.4 FNC213 SFR / Bit Shift Right with Carry................................................................................ 64727.5 FNC214 SFL / Bit Shift Left with Carry................................................................................... 64928. Data Comparison FNC220 to FNC249 65128.1 FNC224~230 LD =, >, , , = / Data Comparison .................................................... 65628.3 FNC240~246 OR=, >, , = / Data Comparison ...................................................... 65929. Data Table Operation FNC250 to FNC269 66229.1 FNC256 LIMIT / Limit Control ................................................................................................ 66329.2 FNC257 BAND / Dead Band Control ..................................................................................... 66729.3 FNC258 ZONE / Zone Control ............................................................................................... 67029.4 FNC259 SCL / Scaling (Coordinate by Point Data) ............................................................... 67329.5 FNC260 DABIN / Decimal ASCII to BIN Conversion ............................................................. 67829.6 FNC261 BINDA / BIN to Decimal ASCII Conversion ............................................................. 68129.7 FNC269 SCL2 / Scaling 2 (Coordinate by X/Y Data)............................................................. 68511FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of Contents30. External Device Communication (Inverter Communication) FNC270 to FNC274 69030.1 FNC270 IVCK / Inverter Status Check................................................................................... 69130.2 FNC271 IVDR / Inverter Drive................................................................................................ 69330.3 FNC272 IVRD / Inverter Parameter Read.............................................................................. 69530.4 FNC273 IVWR / Inverter Parameter Write............................................................................. 69730.5 FNC274 IVBWR / Inverter Parameter Block Write................................................................. 69931. Data Transfer 3 FNC275 to FNC279 70231.1 FNC278 RBFM / Divided BFM Read ..................................................................................... 70331.1.1 Common items between RBFM (FNC278) instruction and WBFM (FNC279) instruction ......... 70531.2 FNC279 WBFM / Divided BFM Write..................................................................................... 70832. High Speed Processing 2 FNC280 to FNC289 71032.1 FNC280 HSCT / High Speed Counter Compare With Data Table......................................... 71133. Extension File Register Control FNC290 to FNC299 71633.1 FNC290 LOADR / Load From ER.......................................................................................... 71733.2 FNC291 SAVER / Save to ER ............................................................................................... 71933.3 FNC292 INITR / Initialize R and ER....................................................................................... 72733.4 FNC293 LOGR / Logging R and ER...................................................................................... 73133.5 FNC294 RWER / Rewrite to ER............................................................................................. 73633.6 FNC295 INITER / Initialize ER............................................................................................... 74034. SFC Program and Step Ladder 74334.1 SFC Program............................................................................................................................ 74334.1.1 Outline ....................................................................................................................................... 74334.1.2 Explanation of function and operation ....................................................................................... 74334.1.3 SFC program creating procedure.............................................................................................. 74434.1.4 Handling and role of initial state relay........................................................................................ 74834.1.5 Latched (battery backed) type state relays................................................................................ 74934.1.6 Role of RET instruction.............................................................................................................. 74934.1.7 Preliminary knowledge for creating SFC program..................................................................... 74934.1.8 SFC flow formats....................................................................................................................... 75734.1.9 Program of branch/recombination state relays.......................................................................... 76034.1.10 Rule for creating branch circuit................................................................................................ 76134.1.11 Program examples .................................................................................................................. 76634.2 Step Ladder............................................................................................................................... 77534.2.1 Outline ....................................................................................................................................... 77534.2.2 Explanation of function and operation ....................................................................................... 77534.2.3 Expression of step ladder .......................................................................................................... 77634.2.4 Creation of step ladder program (SFC program STL program) ............................................ 77734.2.5 Preliminary knowledge for creating step ladder programs ........................................................ 77834.2.6 Program with state relays in branches and recombination........................................................ 78134.2.7 Program examples .................................................................................................................... 78512FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of Contents35. Interrupt Function and Pulse Catch Function 79135.1 Outline....................................................................................................................................... 79135.2 Common Items.......................................................................................................................... 79235.2.1 How to disable interrupt function and pulse catch function ....................................................... 79235.2.2 Related items............................................................................................................................. 79335.2.3 Cautions on use (common) ....................................................................................................... 79435.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function] .................... 79635.3.1 Input interrupt (interrupt triggered by external signal) [without delay function] .......................... 79635.3.2 Examples of practical programs (programs to measure short pulse width)............................... 80035.4 Input interrupt (Interrupt by External Signal) [With Delay Function] .......................................... 80235.5 Timer Interrupt (Interrupt in Constant Cycle)............................................................................. 80335.5.1 Timer interrupt (interrupt in constant cycle) ............................................................................... 80335.5.2 Examples of practical program (timer interrupt programs using applied instruction)................. 80435.6 Counter Interrupt - Interrupt Triggered by Counting Up of High Speed Counter....................... 80735.7 Pulse Catch Function [M8170 to M8177] .................................................................................. 80836. Operation of Special Devices (M8000 -, D8000 -) 81036.1 Special Device List (M8000 -, D8000 -) .................................................................................... 81036.1.1 Special Auxiliary Relay (M8000 to M8511)................................................................................ 81036.1.2 Special Data Register (D8000 to D8511) .................................................................................. 82536.2 Supplement of Special Devices (M8000 - and D8000 -) ........................................................... 84036.2.1 RUN monitor and initial pulse [M8000 to M8003] ...................................................................... 84036.2.2 Watchdog timer [D8000]............................................................................................................ 84136.2.3 Battery voltage low detection [M8005 and M8006].................................................................... 84236.2.4 Power failure detection time [D8008, M8008 and M8007]......................................................... 84236.2.5 Scan time (monitor) [D8010 to D8012] ...................................................................................... 84236.2.6 Internal clock [M8011 to M8014] ............................................................................................... 84336.2.7 Real time clock [M8015 to M8019 and D8013 to D8019] .......................................................... 84336.2.8 How to set real time clock.......................................................................................................... 84536.2.9 Input filter adjustment [D8020]................................................................................................... 84736.2.10 Battery [BATT (BAT)] LED OFF command [M8030]................................................................ 84836.2.11 Clear command [M8031 and M8032] ...................................................................................... 84936.2.12 Memory hold stop [M8033] (output hold in STOP mode) ........................................................ 84936.2.13 All outputs disable [M8034] ..................................................................................................... 84936.2.14 Individual operation for RUN/STOP input [M8035 to M8037].................................................. 85036.2.15 Constant scan mode [M8039 and D8039] ............................................................................... 85136.2.16 State control in program with STL instruction/SFC chart [M8040]........................................... 85136.2.17 Analog special adapters [M8260 to M8299 and D8260 to D8299] .......................................... 85237. Error Check Method and Error Code List 85437.1 States and Colors of LEDs PLC Operation Status.................................................................... 85437.1.1 POWER (POW) LED [lit, flickering or unlit] [FX3U/FX3UC]........................................................ 85437.1.2 RUN LED [lit or unlit] [FX3U/FX3UC].......................................................................................... 85537.1.3 BATT (BAT) LED [lit or unlit] [FX3U/FX3UC] .............................................................................. 85537.1.4 ERROR (ERR) LED [lit, flickering or unlit] [FX3U/FX3UC] ......................................................... 85537.1.5 L RUN LED [FX3UC-32MT-LT] .................................................................................................. 85637.1.6 L ERR LED [FX3UC-32MT-LT] .................................................................................................. 85637.2 Error Code Check Method and Indication................................................................................. 85737.2.1 Error code check method by display module (FX3U-7DM) ........................................................ 85737.2.2 Error code check method by GX Developer .............................................................................. 85837.2.3 Error indication .......................................................................................................................... 85937.3 Supplementary Explanation of Devices for Error Detection...................................................... 85937.3.1 Error detection (M8060 to/D8060 to) ......................................................................................... 85937.3.2 Operations of special devices for error detection ...................................................................... 86037.3.3 Error detection timing ................................................................................................................ 86037.4 Error Code List and Action........................................................................................................ 86113FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instructions Edition Table of ContentsAppendix A: Programming Tool Applicability and Version Upgrade History 868Appendix A-1 Programming Tool Applicability.......................................................................... 868Appendix A-1-1 Programming tool applicability.................................................................................... 868Appendix A-1-2 Cautions on writing during RUN ................................................................................. 869Appendix A-1-3 Cautions on using transparent function by way of USB in GOT1000 Series.............. 872Appendix A-1-4 Cautions on using transparent (2-port) function of GOT-F900 Series........................ 873Appendix A-2 Peripheral product applicability (except programming tools).............................. 874Appendix A-2-1 Applicable products and versions............................................................................... 874Appendix A-2-2 Incompatible peripheral products................................................................................ 874Appendix A-3 Version Upgrade History .................................................................................... 875Appendix A-3-1 Version check ............................................................................................................. 875Appendix A-3-2 How to look at the manufacturers serial number ....................................................... 875Appendix A-3-3 Version upgrade history [FX3U] .................................................................................. 875Appendix A-3-4 Version upgrade history [FX3UC]................................................................................ 876Appendix B: Instruction Execution Time 877Appendix B-1 Basic Instruction Execution Time....................................................................... 877Appendix B-2 Step Ladder Instruction Execution Time ............................................................ 878Appendix B-3 Label (P/I) Execution Time................................................................................. 879Appendix B-4 Applied Instruction Execution Time.................................................................... 879Appendix B-5 Execution Time of Pulse Generation Instruction P in Each Applied Instruction .... 887Appendix B-6 Execution Time on Combination of Applicable Devices and Indexing ............... 888Appendix B-6-1 Basic instruction (LD/LDI/AND/ANI/OR/ORI) execution time ..................................... 888Appendix B-6-2 Applied instruction execution time .............................................................................. 888Appendix C: Applied Instruction List [by Instruction Type/in Alphabetic Order] 890Appendix C-1 Applied instructions [by instruction type] ............................................................ 890Appendix C-2 Applied instructions [in alphabetical order] ........................................................ 894Appendix D: Discontinued models 898Warranty................................................................................................................................. 900Revised History ..................................................................................................................... 90114FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction Edition Related manualsRelated manualsFor detailed explanation of programming (basic instructions, applied instructions and step ladder instructions)in FX3U/FX3UC PLCs, refer to this manual.For hardware information on the PLC main unit, special extension units, etc., refer to each associated manual.For acquiring manuals, contact the distributor you have purchased the product from.~Essential manualCManual required depending on applicationUManual with additional manual for detailed explanationManual nameManual numberContentsModel name codeManuals for PLC main unitNFX3U PLC main unitUSupplied with productFX3U Series Hardware ManualJY997D18801I/O specifications, wiring and installation of the PLC main unit FX3U extracted from the FX3U Series Users Manual - Hardware Edition. For detailed explanation, refer to the FX3U Series Users Manual - Hardware Edition.~Additional ManualFX3U Series Users Manual - Hardware EditionJY997D16501Details about the hardware including I/O specifications, wiring, installation and maintenance of the FX3U PLC main unit.09R516NFX3UC PLC main unitUSupplied with productFX3UC(D, DSS)Series Hardware ManualJY997D28601I/O specifications, wiring and installation of the PLC main unit FX3UC (D, DSS) extracted from the FX3UC Series Users Manual - Hardware Edition. For detailed explanation, refer to the FX3UC Series Users Manual - Hardware Edition.~Additional ManualFX3UC Series Users Manual - Hardware EditionJY997D28701Details about the hardware including I/O specifications, wiring, installation and maintenance of the FX3UC PLC main unit.09R519NProgramming~Additional ManualFX3U/FX3UC Series Programming Manual - Basic & Applied Instruction Edition (this manual)JY997D16601Items related to programming in PLCs including explanation of basic instructions, applied instructions and various devices in FX3U/FX3UC PLCs.09R517NTerminal blockCSupplied with productFX INPUT AND OUTPUT TERMINAL BLOCKSJY992D50401 Terminal block handling procedures. Manuals for communication controlNCommonCAdditional ManualFX Series Users Manual - Data Communication EditionJY997D16901Details about simple N : N link, parallel link, computer link and no-protocol communication (RS instruction and FX2N-232IF).09R715CAdditional ManualFX3U Series Users Manual - MODBUS Serial Communication EditionJY997D26201Explains the MODBUS serial communication network in FX3U PLCs.NCommunication via RS-232C/RS-422/RS-485/USBWhen using each product, refer also to the Users Manual - Hardware Edition of the PLC main unit to which eachproduct is connected.USupplied with productFX3U-USB-BD Users ManualJY997D13501Items about the system configuration of USB communication expansion board and the driver installation method.For use, refer to the FX Series Users Manual - Data Communication Edition.15FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction Edition Related manualsUSupplied with productFX3U-232-BD Installation ManualJY997D12901Handling procedures of the RS-232C communication expansion board.For use, refer to the FX Series Users Manual - Data Communication Edition.NCommunication via RS-232C/RS-422/RS-485/USBWhen using each product, refer also to the Users Manual - Hardware Edition of the PLC main unit to which eachproduct is connected.USupplied with productFX3U-232ADPInstallation ManualJY997D13701Handling procedures of the RS-232C communication special adapter.For use, refer to the FX Series Users Manual - Data Communication Edition.USupplied with productFX3U-232ADP-MBInstallation ManualJY997D26401Handling procedures of the RS-232C communication special adapter.For the MODBUS serial communication network, refer to the FX3U Series Users Manual - MODBUS Serial Communication Edition.For computer link or non-protocol communication by RS and RS2 instructions, refer to the FX Series Users Manual - Data Communication Edition.USupplied with productFX2N-232IFHardware ManualJY992D73501Handling procedures of the RS-232C communication special function block.For use, refer to the FX Series Users Manual - Data Communication Edition.USupplied with productFX3U-422-BDInstallation ManualJY997D13101Handling procedures of the RS-422 communication expansion board.For use, refer to the FX Series Users Manual - Data Communication Edition.USupplied with productFX3U-485-BDInstallation ManualJY997D13001Handling procedures of the RS-485 communication expansion board.For use, refer to the FX Series Users Manual - Data Communication Edition.USupplied with productFX3U-485ADPInstallation ManualJY997D13801Handling procedures of the RS-485 communication special adapter.For use, refer to the FX Series Users Manual - Data Communication Edition.USupplied with productFX3U-485ADP-MBInstallation ManualJY997D26301Handling procedures of the RS-485 communication special adapter.For the MODBUS serial communication network, refer to the FX3U Series Users Manual - MODBUS Serial Communication Edition.For N:N link, parallel link, computer link or non- protocol communication by RS and RS2 instructions, refer to the FX Series Users Manual - Data Communication Edition.USupplied with productFX-485PC-IFHardware ManualJY992D81801Handling procedures of the RS-232C/RS-485 conversion interface. For use, refer to the FX Series Users Manual - Data Communication Edition.NCC-Link, MELSEC I/O LINK and AS-i systemWhen using each product, refer also to the Users Manual - Hardware Edition of the PLC main unit to which eachproduct is connected.USupplied with productFX2N-16CCL-M Hardware ManualJY992D93201Handling procedures of the CC-Link master special function block.For use, refer to the FX2N-16CCL-M Users Manual.CAdditional ManualFX2N-16CCL-M Users ManualJY992D93101Details about the CC-Link master special function block.09R710~Essential manualCManual required depending on applicationUManual with additional manual for detailed explanationManual nameManual numberContentsModel name code16FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction Edition Related manualsCSupplied with productFX2N-32CCL Users ManualJY992D71801Handling procedures of the CC-Link remote device station special function block.09R711CSupplied with productRemote I/O Stations and remote device stations for CC-LinkFor remote I/O stations and remote device stations for CC-Link, refer to each manual and the related data.USupplied with productFX2N-64CL-M Users Manual [Hardware Volume]JY997D05401Handling procedures of the CC-Link/LT master special function block.For use, refer to the FX2N-64CL-M Users Manual [Detailed Volume].CAdditional ManualFX2N-64CL-M Users Manual [Detailed Volume]JY997D08501Details about the CC-Link/LT master special function block.CSupplied with productRemote device Remote I/O Power AdapterFor remote device stations, remote I/O stations, power adapter and dedicated power supply for CC-Link/LT, refer to each manual and the related data.CSupplied with productFX2N-16LNK-M User's ManualJY992D73701Handling procedure of the master specialfunction block for the MELSEC I/O LINK09R709CSupplied with productFX2N-32ASI-M Users ManualJY992D76901Handling procedure of the master special function block for the AS-i system.Manuals for analog controlNCommonCAdditional ManualFX3U/FX3UC Users Manual - Analog Control EditionJY997D16701Detaileds about the analog special function block (FX3U-4AD, FX3U-4DA, FX3UC-4AD) and analog special adapter (FX3U--ADP).09R619NAnalog input, temperature input and temperature controlWhen using each product, refer also to the Users Manual - Hardware Edition of the PLC main unit to which eachproduct is connected.CSupplied with productFX2N-2AD Users GuideJY992D74701Handling procedures of the 2-channel analog input special function block.USupplied with productFX3U-4ADInstallation ManualJY997D20701Handling procedures of the 4-channel analog input special function block.For use refer to the FX3U/FX3UC Series UsersManual - Analog Control Edition.USupplied with productFX3U-4AD-ADPInstallation ManualJY997D13901Handling procedures of the 4-channel analoginput special adapter.For use, refer to the FX3U/FX3UC SeriesUsers Manual - Analog Control Edition.USupplied with productFX3UC-4ADInstallation ManualJY997D14901Handling procedures of the 4-channel analog input special function block.For use refer to the FX3U/FX3UC Series UsersManual - Analog Control Edition.CSupplied with productFX2N-4AD Users GuideJY992D65201Handling procedures of the 4-channel analog input special function block.CSupplied with productFX2NC-4ADUsers ManualJY997D07801Handling procedures of the 4-channel analog input special function block.CSupplied with productFX2N-8ADUsers ManualJY992D86001Handling procedures of the 8-channel analog input (and thermocouple input) special function block.09R608USupplied with productFX3U-4AD-PT-ADPUsers ManualJY997D14701Handling procedures of the 4-channel PT-100 temperature sensor input special adapter.For use, refer to the FX3U/FX3UC Series Users Manual - Analog Control Edition.~Essential manualCManual required depending on applicationUManual with additional manual for detailed explanationManual nameManual numberContentsModel name code17FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction Edition Related manualsCSupplied with productFX2N-4AD-PT Users GuideJY992D65601Handling procedures of the 4-channel PT-100 temperature sensor input special function block.USupplied with productFX3U-4AD-TC-ADPUsers ManualJY997D14801Handling procedures of the 4-channel thermocouple input special adapter.For use, refer to the FX3U/FX3UC Series Users Manual - Analog Control Edition.CSupplied with productFX2N-4AD-TC Users GuideJY992D65501Handling procedures of the 4-channel thermocouple input special function block.USupplied with productFX2N-2LC Users GuideJY992D85601Handling procedures of the 2-channel temperature control special function block.For use, refer to the FX2N-2LC Users ManualCAdditional ManualFX2N-2LC Users ManualJY992D85801Details about the 2-channel temperature control special function block.09R607Manuals for analog controlNAnalog outputWhen using each product, refer also to the Users Manual - Hardware Edition of the PLC main unit to which eachproduct is connected.CSupplied with productFX2N-2DA Users GuideJY992D74901Handling procedures of the 2-channel analog output special function block.USupplied with productFX3U-4DAInstallation ManualJY997D20801Handling procedures of the 4-channel analog output special function block.For use, refer to the FX3U/FX3UC Series Users Manual - Analog Control Edition.USupplied with productFX3U-4DA-ADPUsers ManualJY997D14001Handling procedures of the 4-channel analog output special adapter.For use, refer to the FX3U/FX3UC Series Users Manual - Analog Control Edition.CSupplied with productFX2N-4DA Users GuideJY992D65901Handling procedures of the 4-channel analog output special function block.CSupplied with productFX2NC-4DAUsers ManualJY997D07601Handling procedures of the 4-channel analog output special function block.NAnalog I/O (mixed)When using each product, refer also to the Users Manual - Hardware Edition of the PLC main unit to which eachproduct is connected.CSupplied with productFX0N-3A Users GuideJY992D49001Handling procedures of the 2-channel analog input/1-channel analog output special function block.CSupplied with productFX2N-5AUsers ManualJY997D11401Handling procedures of the 4-channel analog input/1-channel analog output special function block.09R616Manuals for positioning controlNHigh speed counterWhen using each product, refer also to the Users Manual - Hardware Edition of the PLC main unit to which eachproduct is connected.USupplied with productFX3U-4HSX-ADPInstallation ManualJY997D16301Handling procedure of the special high speed input adapter.CSupplied with productFX2N-1HC Users GuideJY992D65401Handling procedures of the 1-channel high speed counter special function block.~Essential manualCManual required depending on applicationUManual with additional manual for detailed explanationManual nameManual numberContentsModel name code18FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction Edition Related manualsManuals for positioning controlNCommonCAdditional ManualFX3U/FX3UC SeriesUsers Manual - Positioning EditionJY997D16801Details about the positioning function built in the FX3U/FX3UC Series.09R620NPulse output and positioningWhen using each product, refer also to the Users Manual - Hardware Edition of the PLC main unit to which eachproduct is connected.USupplied with productFX3U-2HSY-ADPInstallation ManualJY997D16401Handling procedure of the special high speed output adapter.For use, refer to the FX3U/FX3UC Series Users Manual - Positioning Edition.CSupplied with productFX2N/FX-1PG-EUsers ManualJY992D65301Handling procedures of the 1-axis pulse output special function block.09R610USupplied with productFX2N-10PGInstallation ManualJY992D91901Handling procedures of the 1-axis pulse output special function block.For use, refer to the FX2N-10PG Users Manual.CAdditional ManualFX2N-10PG Users ManualJY992D93401Details about the 1-axis pulse output special function block.09R611USupplied with productFX2N-10GMUsers GuideJY992D77701Handling procedures of the 1-axis positioning special extension unit.For use, refer to the FX2N-10GM/FX2N-20GM Hardware/Programming ManaulUSupplied with productFX2N-20GMUsers GuideJY992D77601Handling procedures of the 2-axis positioning special extension unit.For use, refer to the FX2N-10GM/FX2N-20GM Hardware/Programming ManualCAdditional ManualFX2N-10GM, FX2N-20GM Hardware/ProgrammingManualJY992D77801Details on the 1-axis/2-axis positioning special extension unit.09R612NProgrammable cam switchWhen using each product, refer also to the Users Manual - Hardware Edition of the PLC main unit to which eachproduct is connected.CSupplied with productFX2N-1RM-E-SETUsers ManualJY992D71101Handling procedures of the programmable cam switch special extension unit.09R614Manuals for FX3U-20SSC-H positioning BlockUSupplied withproductFX3U-20SSC-H Installation ManualJY997D21101Handling procedures of the 2-axis positioning special function block.For use, refer to the FX3U-20SSC-H User's Manual.-CSeparatevolumeFX3U-20SSC-H User's ManualJY997D21301Describes FX3U-20SSC-H Positioning block details.09R622CSupplied withproductFX Configurator-FP Operation ManualJY997D21801Describes operation details of FX Configurator-FP Configuration Software.09R916Other manualsWhen using each product, refer also to the Users Manual - Hardware Edition of the PLC main unit to which eachproduct is connected.NConnector conversionUSupplied with productFX3U-CNV-BDInstallation ManualJY997D13601Handling procedures of the connector conversion expansion board for specialadapter connection.NBattery (maintenance option)USupplied withproductFX3U-32BL BatteryHardware ManualJY997D14101 Battery life and handling procedures ~Essential manualCManual required depending on applicationUManual with additional manual for detailed explanationManual nameManual numberContentsModel name code19FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction Edition Related manualsNDisplay moduleUSupplied withproductFX3U-7DMUser's ManualJY997D17101Procedures for mounting and handling the display moduleNDisplay module holderUSupplied withproductFX3U-7DM-HLDUser's ManualJY997D15401Procedures for mounting and handling the display module holderNMemorry cassetteUSupplied withproductMemorry cassette FX3U-FLROM-16/64/64LHardware ManualJY997D12801Specifications and operating procedures of the memory cassetteNExtension power supply unitUSupplied withproductFX3U-1PSU-5VInstallation ManualJY997D22501Specifications and operating procedures ofthe extension power supply unitUSupplied withproductFX3UC-1PS-5VInstallation ManualJY997D12201Specifications and operating procedures ofthe FX3UC-1PS-5V~Essential manualCManual required depending on applicationUManual with additional manual for detailed explanationManual nameManual numberContentsModel name code20FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction Edition Generic Names and Abbreviations Used in ManualsGeneric Names and Abbreviations Used in ManualsAbbreviation/generic name NameProgrammable controllersFX3U Series Generic name of FX3U Series PLCsFX3U PLC or main unit Generic name of FX3U Series PLC main unitsFX3UC Series Generic name of FX3UC Series PLCsFX3UC PLC or main unit Generic name of FX3UC Series PLC main unitsFX2N Series Generic name of FX2N Series PLCsFX2NC Series Generic name of FX2NC Series PLCsFX1N Series Generic name of FX1N Series PLCsFX1NC SeriesGeneric name of FX1NC Series PLC main unitsOnly manuals in Japanese are available for these products.FX1S Series Generic name of FX1S Series PLCsExpansion boardsExpansion boardGeneric name of expansion boards (The models shown below):FX3U-232-BD, FX3U-422-BD, FX3U-485-BD, FX3U-USB-BD, and FX3U-CNV-BDSpecial adaptersSpecial adapterGeneric name of special high speed I/O adapters, special communication adapters, and special analog adaptersConnectable equipment may vary depending on the main unit. For connectable equipment, refer to the Users Manual - Hardware Edition of the main unit.Special high speed I/O adapterGeneric name of special high speed I/O adapters (The models shown below):FX3U-2HSY-ADP and FX3U-4HSX-ADPSpecial communication adapterGeneric name of special communication adapters (The models shown below):FX3U-232ADP(-MB) and FX3U-485ADP(-MB)Special analog adapterGeneric name of special analog adapters (The models shown below):FX3U-4AD-ADP, FX3U-4DA-ADP, FX3U-4AD-PT-ADP, and FX3U-4AD-TC-ADPExtension equipmentExtension equipmentGeneric name of I/O extension equipment and special extension equipmentConnectable equipment may vary depending on the main unit. For connectable equipment, refer to the Users Manual - Hardware Edition of the main unit.I/O extension equipmentGeneric name of FX2N Series I/O extension units, FX2N Series I/O extension blocks, FX2NC Series I/O extension blocks, and FX0N Series I/O extension blocksConnectable equipment may vary depending on the main unit. For connectable equipment, refer to the Users Manual - Hardware Edition of the main unit.Special function block/unit or special extension equipmentGeneric name of special extension units and special function blocksConnectable equipment may vary depending on the main unit. For connectable equipment, refer to the Users Manual - Hardware Edition of the main unit.Special extension unit Generic name of special extension unitsSpecial function blockGeneric name of special function blocks Connectable equipment may vary depending on the main unit. For connectable equipment, refer to the Users Manual - Hardware Edition of the main unit.FX3UC Series special function blockFX3UC-4AD21FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction Edition Generic Names and Abbreviations Used in ManualsOpen field networks CC-Link and CC-Link/LTCC-Link equipment Generic name of CC-Link master station and CC-Link remote stationsCC-Link master (station)Generic name of CC-Link master station (having following model name):FX2N-16CCL-MCC-Link remote station Generic name of remote I/O stations and remote device stationsCC-Link/LT equipmentGeneric name of CC-Link/LT master station, CC-Link/LT remote I/O stations, power supply adapters, and dedicated power suppliesCC-Link/LT master Generic name of built-in type CC-Link/LT master and (additional) CC-Link/LT masterBuilt-in type CC-Link/LT masterGeneric name of built-in type CC-Link/LT master built in FX3UC-32MT-LT(Additional) CC-Link/LT masterGeneric name of CC-Link/LT master station (having following model name):FX2N-64CL-MPower supply adapter Generic name of units connected to supply the power to the CC-Link/LT systemDedicated power supply Generic name of power supplies connected to supply the power to the CC-Link/LT systemAS-i systemAS-i masterGeneric name of AS-i system master station (having following model name):FX2N-32ASI-MMELSEC I/O LINKMELSEC I/O LINK masterGeneric name of MELSEC I/O LINK master station (having following model name):FX2N-16LNK-MOptionsExtension power supply unit FX3UC-1PS-5V (for FX3UC series), FX3U-1PSU-5V (for FX3U series) Memory cassette FX3U-FLROM-16, FX3U-FLROM-64, and FX3U-FLROM-64LBattery FX3U-32BLPeripheral equipmentPeripheral equipment Generic name of programming software, handy programming panels, and display unitsProgramming toolsProgramming tool Generic name of programming software and handy programming panelsProgramming software Generic name of programming softwareGX DeveloperGeneric name of programming software packages SWLD5C-GPPW-J and SWLD5C-GPPW-EFX-PCS/WIN(-E) Generic name of programming software packages FX-PCS/WIN and FX-PCS/WIN-EHandy programming panel (HPP)Generic name of programming panels FX-20P(-E) and FX-10P(-E)RS-232C/RS-422 converter FX-232AW, FX-232AWC, and FX-232AWC-HRS-232C/RS-485 converter FX-485PC-IF-SET and FX-485PC-IFDisplay unitsGOT1000 Series Generic name of GT15, GT11 and GT10 GOT-900 Series Generic name of GOT-A900 and GOT-F900 SeriesGOT-A900 Series Generic name of GOT-A900 SeriesGOT-F900 Series Generic name of GOT-F900 SeriesET-940 SeriesGeneric name of ET-940 SeriesOnly manuals in Japanese are available for these products.ManualsFX3U Hardware Edition FX3U Series Users Manual - Hardware EditionFX3UC Hardware Edition FX3UC Series Users Manual - Hardware EditionProgramming Manual FX3U/FX3UC Series Programming Manual - Basic & Applied Instruction EditionCommunication Control Edition FX Series Users Manual - Data Communication EditionAnalog Control Edition FX3U/FX3UC Series Users Manual - Analog Control EditionPositioning Control Edition FX3U/FX3UC Series Users Manual - Positioning EditionAbbreviation/generic name Name22FX3U/FX3UC Series Programmable ControllersProgramming Manual - Basic & Applied Instruction Edition1 Introduction1.1 Programming Language in PLCs1. IntroductionThis chapter explains basic items related to programming in FX3U and FX3UC programmable controllers(PLCs).1.1 Programming Language in PLCsThis section explains the features of programming in FX3U and FX3UC PLCs.1.1.1 Types of programming languagesFX3U and FX3UC PLCs support the following three types of programming languages:1. List programmingThis method is the basis of programs.1) FeaturesIn this method, sequence instructions are input in the form of instruction words such as "LD", "AND" and"OUT".This input method is the basis of sequence programs.2) Example of list display2. Circuit programmingIn this method, ladder formats are drawn on the graphic screen.1) FeaturesIn a circuit program, a sequence circuit is drawn on the graphic screen by sequence formats and devicenumbers. Because a sequence circuit is expressed with contact symbols and coil symbols, the contentsof a program can be understood easily.In the circuit display status, the PLC operations can be monitored.2) Example of circuit display3. SFC (STL ) programmingThis input method allows sequence design in accordance with the flow of machine operations.1) FeaturesIn an SFC (sequential function chart) program, sequences can be designed in accordance with the flow ofmachi