Mitsubishi FX3U Series Programming Manual

Mitsubishi FX3U Series Programming Manual

Hide thumbs Also See for FX3U Series:
Table of Contents

Advertisement

Quick Links

PROGRAMMING MANUAL - Basic & Applied Instructions Edition
FX
/ FX
SERIES PROGRAMMABLE CONTROLLERS
3U
3UC

Advertisement

Table of Contents
loading

Summary of Contents for Mitsubishi FX3U Series

  • Page 1 PROGRAMMING MANUAL - Basic & Applied Instructions Edition / FX SERIES PROGRAMMABLE CONTROLLERS...
  • Page 3 This 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 which may occur as a result of using the contents noted in this manual.
  • Page 4 • 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.
  • Page 5: Table Of Contents

    Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents Table of Contents Related manuals........................15 Generic Names and Abbreviations Used in Manuals ............20 1. Introduction 1.1 Programming Language in PLCs ....................22 1.1.1 Types of programming languages ....................22 1.1.2 Compatibility among programs......................
  • Page 6 Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents 4.3 Auxiliary Relay [M] ........................75 4.3.1 Numbers of auxiliary relays ......................75 4.3.2 Functions and operation examples....................75 4.4 State Relay [S] ..........................77 4.4.1 Numbers of state relays......................... 77 4.4.2 Functions and operation examples....................
  • Page 7 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 .....................
  • Page 8 Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents 8. Program Flow – FNC 00 to FNC 09 8.1 FNC 00 – CJ / Conditional Jump....................192 8.1.1 CJ instruction and operations of contact and coil ................ 196 8.1.2 Relationship between master control instruction and jump instruction........
  • Page 9 Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents 11. Rotation and Shift Operation – FNC 30 to FNC 39 11.1 FNC 30 – ROR / Rotation Right ....................269 11.2 FNC 31 – ROL / Rotation Left ....................271 11.3 FNC 32 –...
  • Page 10 Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents 14. Handy Instruction – FNC 60 to FNC 69 14.1 FNC 60 – IST / Initial State ....................... 364 14.1.1 IST instruction equivalent circuit....................366 14.1.2 Example of IST instruction introduction (example of workpiece transfer mechanism) ....367 14.2 FNC 61 –...
  • Page 11 Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents 18. Floating Point – FNC110 to FNC139 18.1 FNC110 – ECMP / Floating Point Compare................460 18.2 FNC111 – EZCP / Floating Point Zone Compare ..............462 18.3 FNC112 –...
  • Page 12 Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents 21. Real Time Clock Control – FNC160 to FNC169 21.1 FNC160 – TCMP / RTC Data Compare..................541 21.2 FNC161 – TZCP / RTC Data Zone Compare ................543 21.3 FNC162 –...
  • Page 13 Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents 27. Data Operation 3 – FNC210 to FNC219 27.1 FNC210 – FDEL / Deleting Data from Tables................632 27.2 FNC211 – FINS / Inserting Data to Tables ................634 27.3 FNC212 –...
  • Page 14 Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents 34. SFC Program and Step Ladder 34.1 SFC Program ..........................733 34.1.1 Outline ............................733 34.1.2 Explanation of function and operation ..................733 34.1.3 SFC program creating procedure ....................734 34.1.4 Handling and role of initial state relay..................
  • Page 15 Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents 36. Operation of Special Devices (M8000 -, D8000 -) 36.1 Special Device List (M8000 -, D8000 -) ..................800 36.1.1 Special Auxiliary Relay (M8000 to M8511)................800 36.1.2 Special Data Register (D8000 to D8511) ..................
  • Page 16 Series Programmable Controllers Programming Manual - Basic & Applied Instructions Edition Table of Contents Appendix B: Instruction Execution Time Appendix B-1 Basic Instruction Execution Time ............... 863 Appendix B-2 Step Ladder Instruction Execution Time ............864 Appendix B-3 Label (P/I) Execution Time ................. 865 Appendix B-4 Applied Instruction Execution Time ..............
  • Page 17: Related Manuals

    Series Programmable Controllers Related manuals Programming Manual - Basic & Applied Instruction Edition Related manuals For detailed explanation of programming (basic instructions, applied instructions and step ladder instructions) in FX PLCs, refer to this manual. For the hardware information on the PLC main unit, special extension units, etc., refer to each manual. For acquiring required manuals, contact a distributor you have purchased the product.
  • Page 18 Series Programmable Controllers Related manuals Programming Manual - Basic & Applied Instruction Edition Essential manual Manual required depending on application Manual having additional manual for detailed explanation Manual Model Manual name Contents number name code Communication via RS-232C/RS-422/RS-485 When using each product, refer also to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected.
  • Page 19 Series Programmable Controllers Related manuals Programming Manual - Basic & Applied Instruction Edition Essential manual Manual required depending on application Manual having additional manual for detailed explanation Manual Model Manual name Contents number name code Manuals for analog control Common Detaileds about the analog special function Additional User’s Manual...
  • Page 20 Series Programmable Controllers Related manuals Programming Manual - Basic & Applied Instruction Edition Essential manual Manual required depending on application Manual having additional manual for detailed explanation Manual Model Manual name Contents number name code Manuals for analog control Analog output When using each product, refer also to the User’s Manual - Hardware Edition of the PLC main unit to which each product is connected.
  • Page 21 Series Programmable Controllers Related manuals Programming Manual - Basic & Applied Instruction Edition Essential manual Manual required depending on application Manual having additional manual for detailed explanation Manual Model Manual name Contents number name code Handling procedures of the 1-axis Supplied -10GM positioning special extension unit.
  • Page 22: Generic Names And Abbreviations Used In Manuals

    Series Programmable Controllers Generic Names and Abbreviations Used in Manuals Programming Manual - Basic & Applied Instruction Edition Generic Names and Abbreviations Used in Manuals Abbreviation/generic name Name Programmable controllers Series Generic name of FX Series PLCs PLC or main unit Generic name of FX Series PLC main units Series...
  • Page 23 Series Programmable Controllers Generic Names and Abbreviations Used in Manuals Programming Manual - Basic & Applied Instruction Edition Abbreviation/generic name Name Open field networks CC-Link and CC-Link/LT CC-Link equipment Generic name of CC-Link master station and CC-Link remote device stations Generic name of CC-Link master station (having following model name): CC-Link master (station) -16CCL-M...
  • Page 24: Introduction

    Series Programmable Controllers 1 Introduction Programming Manual - Basic & Applied Instruction Edition 1.1 Programming Language in PLCs Introduction This chapter explains basic items related to programming in FX and FX programmable controllers (PLCs). Programming Language in PLCs This section explains the features of programming in FX and FX PLCs.
  • Page 25: Compatibility Among Programs

    Series Programmable Controllers 1 Introduction Programming Manual - Basic & Applied Instruction Edition 1.1 Programming Language in PLCs 1.1.2 Compatibility among programs All sequence programs created by the above three types are stored in the form of instruction words (contents as at the time of list program) in the program memory inside the PLC.
  • Page 26: Overview (Sequence Program)

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.1 Introduction of Convenient Functions Overview (Sequence Program) This chapter explains the basic functions of FX PLCs. This chapter includes not only the features of PLCs but also introduction of representative functions, parameters and memory to utilize the functions of PLCs.
  • Page 27: Convenient Functions For Output Processing

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.1 Introduction of Convenient Functions 5. Three types of "interrupt" functions for receiving short-period pulses and priority processing → Refer to Chapter 35. 1) Input interrupt Signals from specific input relays are monitored.
  • Page 28: Introduction Of Applied Instructions

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.2 Introduction of Applied Instructions 4. Registration of "entry code" for protecting programs The entry code can be registered to prevent erroneous wiring to and plagiarism of created sequence programs.
  • Page 29 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.2 Introduction of Applied Instructions • Multiplication (MUL/FNC 22) 7. Handy instructions and instructions for external devices • Division (DIV/FNC 23) • Initial state (IST/FNC 60) •...
  • Page 30: Analog/Positioning Special Control

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.3 Analog/Positioning Special Control Analog/Positioning Special Control For the details, refer to the manual of each product. 1. Analog I/O control 3. High speed counter •...
  • Page 31 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.4 Link and Communication 8. No-protocol communication No-protocol serial communication is available between an FX PLC and interface equipment in accordance with RS-232C/RS-485 such as bar code reader, printer, personal computer and measuring instrument.
  • Page 32: Introduction Of Devices Constructing Plc

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.5 Introduction of Devices Constructing PLC Introduction of Devices Constructing PLC Many relays, timers, and counters are built into an FX PLC, with many NO (normally open) contacts and NC (normally closed) contacts.
  • Page 33: Device List

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.5 Introduction of Devices Constructing PLC 2.5.2 Device list 1. Input relays (X) and output relays (Y) 4. Timers (T) → Refer to Section 4.2. →...
  • Page 34 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.5 Introduction of Devices Constructing PLC 6. Data registers (D) → Refer to Section 4.8. Data registers store numeric data values. All data registers in FX PLCs are 16-bit type (whose most significant bit is positive or negative).
  • Page 35: Program Memory And Devices (Battery Backed)

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.6 Program Memory and Devices (Battery Backed) Program Memory and Devices (Battery Backed) 2.6.1 Memory structure PLCs are supplied with RAM memory. By mounting an optional memory device, the memory type can be changed. 1.
  • Page 36: Memory Operations And Latched (Battery Backed) (Power On/Off And Run/Stop)

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.6 Program Memory and Devices (Battery Backed) 2.6.2 Memory operations and latched (battery backed) (power ON/OFF and RUN/STOP) 1. Backup operation The operations of the data memory, bit device memory and program memory in FX PLCs are classified as shown below: 1) Types of program memory...
  • Page 37 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.6 Program Memory and Devices (Battery Backed) 3) Types of bit device memory Power Item Power OFF STOP→RUN RUN→STOP OFF→ON Does not Cleared. change. Input relay (X) Cleared.
  • Page 38: Types Of Backup Methods Against Power Failure

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.6 Program Memory and Devices (Battery Backed) 2.6.3 Types of backup methods against power failure There are following types of latch (battery backup) for the program memory and built-in devices in the PLC. 1.
  • Page 39: Types And Setting Of Parameters

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Types and Setting of Parameters Setting of parameters means setting the environment where the PLC operates. Almost all FX PLCs can be used with factory default values.
  • Page 40: Parameter Initial Values And Available Tools For Changing Parameter Values

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Classification Item Description This parameter sets interrupt inputs for the maximum speed, bias speed, creep speed, Constant zero return speed, acceleration time, deceleration time, and DVIT instruction. setting Positioning It is necessary to set the memory capacity.
  • Page 41: Memory Capacity Setting Range

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters 2.7.3 Memory capacity setting range Built-in memory capacity Can be set by changing parameter. Special unit initial Comment capacity File register capacity Memory capacity Positioning setting...
  • Page 42: Entry Code

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters 2.7.5 Entry code By registering the entry code in a PLC, the functions of programming tools, display modules, and display units to change programs, monitor devices, and current value changing function in the PLC can be restricted (access restriction).
  • Page 43 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters 2. Entry code setting and access restriction Setting status Programming tool and access restriction 1) When a programming tool supports the second entry code The programming tool performs the following operations in accordance with the selected registration condition: Program...
  • Page 44 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Registering and changing the entry codes This paragraph explains the operating procedure of GX Developer (Ver.8.23Z) → For the entry code registration/change procedure in FX-10P(-E), FX-20P(-E), and FX-PCS/WIN(-E), refer to the manual of each product.
  • Page 45 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Reading/writing a program from/to a PLC with the entry codes registered This paragraph explains the operating procedure of GX Developer (Ver.8.23Z) →...
  • Page 46: Special Unit Initial Value Setting [Gx Developer Ver.8.23Z Or Later]

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Resetting the entry codes, and validating the reset entry codes (Keyword Protect) This paragraph explains the operating procedure of GX Developer (Ver.8.23Z) →...
  • Page 47: Parameter Settings By Gx Developer

    Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters 2.7.8 Parameter settings by GX Developer This subsection explains the parameter setting procedures by GX Developer (Ver.8.23Z). Opening the parameter setting screen In the project tree area provided on the left end of the screen, double-click [Parameter] →...
  • Page 48 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Setting devices 1. Click "Device" tab, and set devices. Set item Contents of setting Setting range Supplemental relay Set the latched (battery backed) auxiliary relay range. Initial value: 500 to 1023 0 to 1023 State Set the latched (battery backed) state relay range.
  • Page 49 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Assigning I/Os and setting the initial values for special unit 1. Click "I/O assignment" tab, and then set the I/O assignment and special function blocks/ units.
  • Page 50 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters 2. On "Special Function Block Settings" dialog box, set the initial values of special function blocks and units. Set item Contents of setting Setting range "Unit No."...
  • Page 51 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Setting the PLC system (1) Click "PLC system (1)" tab, and then set "Battery less mode", "MODEM initialized", and "RUN ter- minal input."...
  • Page 52 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Setting the PLC system (2) 1. Click "PLC system (2)" tab. 2. Only when a latch (battery backed) area for a serial port exists through an extended PLC, select a channel to be set and put a check mark to "Operate communication setting."...
  • Page 53 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Setting positioning The positioning setting function is available in FX PLCs Ver.2.00 or later. 1. Click "Positioning" tab. "Positioning" tab is displayed when a check mark is put to "Positioning" on "Memory capacity"...
  • Page 54 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Set item Contents of setting Set range Set the bias speed for each output number of pulse. 1/10 or less of the Bias speed [Hz] Initial value: 0 maximum speed...
  • Page 55 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters 3. Click [Individual setting] button to display "Positioning instruction settings" dialog box. In this dialog box, set the positioning table for each pulse output destination. Set item Contents of setting Setting range...
  • Page 56 Series Programmable Controllers 2 Overview (Sequence Program) Programming Manual - Basic & Applied Instruction Edition 2.7 Types and Setting of Parameters Set item Contents of setting Setting range A check mark here means not to transfer the positioning setting when PLC turns ON.
  • Page 57: Instruction List

    Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.1 Basic Instructions Instruction List This chapter introduces a list of instructions available in programming. Instructions added in FX and FX PLCs are shaded in the list. Basic Instructions The basic instructions are provided in the following series.
  • Page 58: Step Ladder Instructions

    Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.2 Step Ladder Instructions Mnemonic Name Symbol Function Applicable devices Reference Connection Instruction Serial connection of AND Block – Section 7.7 multiple parallel circuits Parallel connection of OR Block –...
  • Page 59: Applied Instructions

    Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number Applied Instructions ... in Ascending Order of FNC Number Applied instructions such as Arithmetic operation, Rotation and Shift, Handy instructions etc. are used especially when numeric data is handled.
  • Page 60 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 61 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 62 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 63 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 64 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 65 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 66 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 67 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 68 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 69 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 70 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 71 Series Programmable Controllers 3 Instruction List Programming Manual - Basic & Applied Instruction Edition 3.3 Applied Instructions ... in Ascending Order of FNC Number *1: The instruction is provided in the FX Series Ver.3.00 or later. *2: The function is changed in the FX Series Ver.1.30 or later.
  • Page 72: Devices In Detail

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.1 Device Number List Devices in Detail This chapter explains numeric values handled in the PLC as well as the roles and functions of various built-in devices including I/O relays, auxiliary relays, state relays, counters and data registers.
  • Page 73 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.1 Device Number List Device name Description Reference Counter General type up counter C0 to C99 100 points 0 to 32,767 counts (16 bits) [variable] The setting can be changed between the Latched (battery backed) latched (battery backed) type and the non-...
  • Page 74 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.1 Device Number List Device name Description Reference High speed counter 8 points maximum can be used among C235 to C255 1-phase 1-counting input C235 to C245 [latched (battery backed) type].
  • Page 75: I/O Relays [X, Y]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.2 I/O Relays [X, Y] I/O Relays [X, Y] Some numbers of input relays and output relays are specific ones secured in the main unit, and other numbers are assigned to extension devices in the connection order.
  • Page 76: Operation Timing Of Input Relays

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.2 I/O Relays [X, Y] 4.2.3 Operation timing of input relays The PLC executes sequence control by repeatedly executing the following processing procedure. In such batch I/O method, there are not only driving time of input filters and output devices but also response delays caused by operation cycles.
  • Page 77: Auxiliary Relay [M]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.3 Auxiliary Relay [M] Auxiliary Relay [M] There are many auxiliary relays inside the PLC. Coils of auxiliary relays are driven by contacts of various devices inside the PLC in the same way as output relays.
  • Page 78 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.3 Auxiliary Relay [M] 2. latched (battery backed) type When the power is turned OFF while the PLC is operating, all of output relays and general type auxiliary relays turn OFF.
  • Page 79: State Relay [S]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.4 State Relay [S] State Relay [S] State relays (S) are important devices to program stepping type process control simply, and combined with the step ladder instruction STL. State relays can be used in the SFC (sequential function chart) programming method.
  • Page 80 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.4 State Relay [S] 2. Latched (battery backed) type • Latched (battery backed) type state relays store their ON/OFF status even if the power is shut down while the PLC is operating, so the operation can be restarted from the last point in the process.
  • Page 81: Timer [T]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.5 Timer [T] Timer [T] Timers add and count clock pulses of 1 ms, 10 ms, 100 ms, etc. inside the PLC. When the counted value reaches a specified set value, the output contact of the timer turns on.
  • Page 82: Set Value Specification Method

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.5 Timer [T] 4.5.3 Set value specification method 1. Specifying a constant (K) T10 is on 100 ms (0.1 sec) type. Constant When the constant "100" is specified, T10 works as a X003 (decimal integer) 10-second timer (0.1 sec ×...
  • Page 83: Program Examples [Off-Delay Timer And Flicker Timer]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.5 Timer [T] 4.5.6 Program examples [off-delay timer and flicker timer] Off-delay timer X001 X001 Y000 Y000 X001 (20 sec) Y000 K200 Flicker timer (blink) X001 X001 Y000...
  • Page 84: Handling Timers As Numeric Devices

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.5 Timer [T] 4.5.7 Handling timers as numeric devices In timers, the output contact operating in accordance with the set value is used in some cases, and the present value is used as numeric data for control in other cases.
  • Page 85: Counter [C]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.6 Counter [C] Counter [C] 4.6.1 Numbers of counters The table below shows counter (C) numbers. (Numbers are assigned in decimal.) → For high speed counters, refer to Section 4.7. 16-bit up counter 32-bit bi-directional counter Counting range: −2,147,483,648 to +2,147,483,647...
  • Page 86: Functions And Operation Examples

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.6 Counter [C] 4.6.4 Functions and operation examples 1. General type and latched (battery backed) type 16-bit up counters • The valid set range of 16-bit binary up counter is from K1 to K32767 (decimal constant). K0 provides the same operation as K1, and the output contact turns on at the first counting.
  • Page 87: Set Value Specification Method

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.6 Counter [C] • When the coil C200 is driven by the counting input X014, a counter starts up-counting or down-counting. When the current value of a counter increases from "−6" to "−5", the output contact is set. When the current value decreases from "−5"...
  • Page 88: Response Speed Of Counters

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.6 Counter [C] 2. 32-bit counter 1) Specification by constant (K) Constant (decimal constant): −2,147,483,648 to +2,147,483,647 X003 43210 counts K43,210 C200 2) Indirect specification (D) X001 Pairs of data registers are used for indirect specification.
  • Page 89 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.6 Counter [C] 2. Examples in applied instructions For the full use of counters as numeric devices, refer to the explanation of applied instructions later. FNC 12 C20 (current value) is transferred to D10.
  • Page 90: High Speed Counter [C]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] High Speed Counter [C] 4.7.1 Types and device numbers of high speed counters 1. Types of high speed counters The main unit has built-in 32-bit high speed bi-directional counters (1-phase 1-counting, 1-phase 2-counting and 2-phase 2-counting).
  • Page 91 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] 5. High speed counter device list External reset External start Classification Counter No. Edge count Data length input terminal input terminal C235 C236 C237...
  • Page 92 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] Notation of high speed counter devices For some high speed counters in FX and FX PLCs, assignment of input terminals switches when special auxiliary relays are used together.
  • Page 93: Input Assignment For High Speed Counters

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] 4.7.2 Input assignment for high speed counters Inputs X000 to X007 are assigned as shown in the table below according to each high speed counter number. When a high speed counter is used, the filter constant of a corresponding input number in the main unit automatically changes (X000 to X005: 5 µs, X006 and X007: 50 µs).
  • Page 94: Handling Of High Speed Counters

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] Prohibition to overlap input numbers • Inputs X000 to X007 are used for high speed counters, input interrupt, pulse catch, SPD/ZRN/DSZR/DVIT instructions and general-purpose inputs.
  • Page 95 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] • The current value increases or decreases without regard to the operation of the output contact. When a counter executes up-counting from "+2,147,483,647", the counter value becomes "−2,147,483,648". In the same way, when a counter executes down-counting from "−2,147,483,648", the counter value becomes "+2,147,483,647".
  • Page 96: Current Value Update Timing And Comparison Of Current Value

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] • A 2-phase encoder generates outputs for the A phase and the B phase by the phase difference of 90°. With these outputs, a high speed counter automatically executes up-counting and down-counting as shown in the figure below.
  • Page 97: Related Devices

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] 4.7.5 Related devices 1. Devices used to switch the counting direction of 1-phase 1-counting input counters Type Counter No. Specifying device Up-counting Down-counting C235...
  • Page 98: Changing The Logic Of External Reset Input Signal

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] 4.7.6 Changing the logic of external reset input signal The counters C241 to C245, C247 to C250 and C252 to C255 are usually reset when the external reset input turns ON.
  • Page 99: How To Use 2-Phase 2-Counting Input Counter C251 To C255 At 4 Edge Count

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] 4.7.8 How to use 2-phase 2-counting input counter C251 to C255 at 4 edge count. In the 2-phase 2-counting input counters C251 to C255, the edge count is usually set to 1. By the programs shown in the table below, the edge count is set to 4.
  • Page 100: Condition Handled As Software Counters

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] 4.7.9 Condition handled as software counters High speed counters are classified into hardware counters and software counters. In some conditions, however, hardware counters are handled as software counters.
  • Page 101: Response Frequency Of High Speed Counters

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] 4.7.10 Response frequency of high speed counters 1. Response frequency of hardware counters The table below shows the maximum response frequency of hardware counters. When hardware counters are handled as software counters in some operating conditions, Their maximum response frequency becomes equivalent to that of software counters, and thus hardware counters are subject to restrictions in total frequency.
  • Page 102 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] 2) When special analog adapters and FX Series special function blocks/units in use Counter type Response frequency and total frequency according to instruction use condition When HSZ and HSCT Magnifica- When only HSCT...
  • Page 103: Cautions On Use

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.7 High Speed Counter [C] 4.7.11 Cautions on use • For a contact to drive the coil of a high speed counter, use a contact which is normally ON during high speed counting.
  • Page 104: Data Register And File Register [D]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.8 Data Register and File Register [D] Data Register and File Register [D] Data registers are devices for storing numeric data. File registers are handled as the initial values of data registers.
  • Page 105: Structures Of Data Registers And File Registers

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.8 Data Register and File Register [D] 4.8.2 Structures of data registers and file registers 1) 16-bit type One (16-bit) data register or file register can store a numeric value within the range from -32768 to +32767.
  • Page 106: Functions And Operation Examples Of Data Registers

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.8 Data Register and File Register [D] 4.8.3 Functions and operation examples of data registers Data registers are devices for storing numeric data. Each data register stores 16-bit data (whose most significant bit specifies the positive or negative sign). Combined two data registers can store 32-bit numeric data (whose most significant bit specifies the positive or negative sign).
  • Page 107 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.8 Data Register and File Register [D] 3. Operation examples Data registers can be used in various control with numeric data. This paragraph explains the operations of representative basic instructions and applied instructions among various applications.
  • Page 108: Functions And Operation Examples Of File Registers

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.8 Data Register and File Register [D] 4.8.4 Functions and operation examples of file registers A file register is a device for setting the initial value of a data register with the same number. Each file register stores 16-bit data (whose most significant bit specifies the positive or negative sign).
  • Page 109 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.8 Data Register and File Register [D] • When a file register is monitored from peripheral equipment, the data register area [B] inside the data memory is read.
  • Page 110 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.8 Data Register and File Register [D] 3. Data register ← File register <writing by BMOV (FNC 15) instruction> When a file register (D1000 or later) is specified for the destination of BMOV (FNC 15) instruction, it is possible to directly write data to the file register area [A] inside the program memory.
  • Page 111: Cautions On Using File Registers

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.8 Data Register and File Register [D] 2) When file registers of different device numbers are specified for the source and destination Write Inside built-in RAM Inside system memory or M8024...
  • Page 112: Extension Register [R] And Extension File Register [Er]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.9 Extension Register [R] and Extension File Register [ER] Extension Register [R] and Extension File Register [ER] Extension registers (R) are devices for extending data registers (D), and are backed up by the battery. While a memory cassette is mounted, the contents of extension registers (R) can be stored in extension file registers (ER).
  • Page 113: Structures Of Extension Registers And Extension File Registers

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.9 Extension Register [R] and Extension File Register [ER] 4.9.3 Structures of extension registers and extension file registers One extension register consists of 16 bits. Extension registers can be used in 16-bit and 32-bit applied instructions for operation in the same way as data registers.
  • Page 114: Functions And Operation Examples Of Extension Registers

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.9 Extension Register [R] and Extension File Register [ER] 4.9.5 Functions and operation examples of extension registers Extension registers can be used in various control with numeric data in the same way as data registers. This subsection explains operations in representative basic instructions and applied instructions among various applications.
  • Page 115: Functions And Operation Examples Of Extension File Registers

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.9 Extension Register [R] and Extension File Register [ER] 4.9.6 Functions and operation examples of extension file registers Extension file registers (ER) are usually used as log data storage destinations and set data storage destinations.
  • Page 116: Cautions On Using Extension File Registers

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.9 Extension Register [R] and Extension File Register [ER] 2. Sectors of extension registers and extension file registers According to the data structure, extension registers and extension file registers are divided into sectors. One sector consists of 2048 devices.
  • Page 117: Registration Of Data Of Extension Registers And Extension File Registers

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.9 Extension Register [R] and Extension File Register [ER] 4.9.8 Registration of data of extension registers and extension file registers This subsection explains the operating procedure of GX Developer (Ver.8.23Z or later). →...
  • Page 118 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.9 Extension Register [R] and Extension File Register [ER] Setting the data 1. Right-click [Device memory] in the project data list to open the submenu. 2.
  • Page 119 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.9 Extension Register [R] and Extension File Register [ER] 5. Input a device number to be set to "Device Label", and click the [Display] button. 6.
  • Page 120 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.9 Extension Register [R] and Extension File Register [ER] Writing (transferring) data to the PLC 1. Select [Online] → [Write to PLC...] to open the [Write to PLC] dialog box. FX3U(C)*1 In some versions of GX Developer, "FX3UC"...
  • Page 121: Index Register [V And Z]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.10 Index Register [V and Z] 4.10 Index Register [V and Z] Index registers can be used as in the case of data registers. And they are special registers since they can change the contents of device numbers and numeric values by program when combined with another device number or numeric value in operands of applied instructions.
  • Page 122: Indexing Of Devices

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.10 Index Register [V and Z] 4.10.3 Indexing of devices Available devices and the contents of indexing are as described below: → For the indexing use method and cautions, refer to Section 5.7. Decimal devices/numeric values: M, S, T, C, D, R, KnM, KnS, P and K For example, when "V0 = K5"...
  • Page 123: Pointer [P And I]

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.11 Pointer [P and I] 4.11 Pointer [P and I] 4.11.1 Numbers of pointers The table below shows numbers of pointers (P)(I). (Numbers are assigned in decimal.) When using a pointer for input interrupt, an input number assigned to it cannot be used together with a "high speed counter"...
  • Page 124: Functions And Operation Examples Of Pointers For Interrupt

    Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.11 Pointer [P and I] 4.11.3 Functions and operation examples of pointers for interrupt → For the details of interrupt function, refer to Chapter 35. There are three types of pointers for interrupt.
  • Page 125 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.11 Pointer [P and I] Operations • Interrupt is usually disabled in the PLC. FNC 04 If interrupt is enabled by EI instruction, when X000 or X001 turns ON while a program is scanned, the PLC executes the interrupt Interrupt enabled routine [1] or [2], and then returns to the main...
  • Page 126 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.11 Pointer [P and I] Operations • Timer interrupt is enabled after EI instruction. Step Interrupt is FNC 04 It is not necessary to program DI (disable enabled interrupt) instruction when no zone to disable timer interrupt is needed.
  • Page 127 Series Programmable Controllers 4 Devices in Detail Programming Manual - Basic & Applied Instruction Edition 4.11 Pointer [P and I] Operations Step • Enable interrupt after EI instruction, and FNC 04 describe the main program. M8000 • Drive the coil of a high speed counter, and C255 K2,147,483,647 specify an interrupt pointer in DHSCS (FNC 53)
  • Page 128: How To Specify Devices And Constants To Instructions

    Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.1 Numeric Values Handled in PLCs (Octal, Decimal, Hexadecimal and Real Numbers) How to Specify Devices and Constants to Instructions This chapter explains how to specify sources and destinations in sequence instructions which are the basis in handling instructions for PLCs.
  • Page 129: Conversion Of Numeric Values

    Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.1 Numeric Values Handled in PLCs (Octal, Decimal, Hexadecimal and Real Numbers) 6. Real numbers (floating point data) and FX PLCs have the floating point operation function to achieve operation of high accuracy.
  • Page 130 Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.1 Numeric Values Handled in PLCs (Octal, Decimal, Hexadecimal and Real Numbers) Binary floating point (real number) When handling a binary floating point (real number) in data registers, use a pair of data registers having serial device numbers.
  • Page 131: Specification Of Constants K, H And E (Decimal, Hexadecimal And Real Number)

    Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.2 Specification of Constants K, H and E (Decimal, Hexadecimal and Real Number) Scientific notation (real number) is valid in the following instructions: - Conversion from binary floating point (real number) into scientific notation (real number): FNC118 ([D]EBCD) - Conversion from scientific notation (real number) into binary floating point (real number): FNC119...
  • Page 132: Character Strings

    Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.3 Character Strings Character Strings Character strings are classified into character string constants which directly specify character strings in operands in applied instructions and character string data. 5.3.1 Character string constant ("ABC") A device "character string"...
  • Page 133: Specification Of Digits For Bit Devices (Kn[ ]***)

    Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.4 Specification of Digits for Bit Devices (Kn[ ]***) Specification of Digits for Bit Devices (Kn[ ]***) Handling of bit devices Devices which handle only the ON/OFF information such as X, Y, M and S are called bit devices.
  • Page 134: Specification Of A Bit Of Word Device (D[ ].B)

    Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.5 Specification of a Bit of Word Device (D[ ].b) Specification of a Bit of Word Device (D[ ].b) By specifying a bit of a word device, the specified bit can be used as bit data. When specifying a bit of a word device, use a word device number and bit number (hexadecimal).
  • Page 135: Indexing

    Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.7 Indexing Indexing The functions and structures of index registers are explained in detail in "4.10 Index Register [V and Z]". Refer to Section 4.10 in advance.
  • Page 136: Indexing In Applied Instructions

    Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.7 Indexing 5.7.2 Indexing in applied instructions Expression of applied instructions allowing indexing In the explanation of applied instructions, " "...
  • Page 137 Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.7 Indexing Cautions 1) Even if a numeric value written to index registers does not exceed the 16-bit numeric value range (0 to 32767), make sure to overwrite both V and Z using a 32-bit instruction.
  • Page 138 Series Programmable Controllers 5 How to Specify Devices and Constants to Instructions Programming Manual - Basic & Applied Instruction Edition 5.7 Indexing In the case of constants The indexing operation is explained in an example in which the X004 transfer destination in MOV instruction is indexed with the index FNC 12 register V6 (as shown in the figure on the right).
  • Page 139: What To Understand Before Programming

    Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.1 How to Read Explanation of Instructions What to Understand before Programming This chapter explains the I/O processing, relationship among instructions and programming method which should be understood before creating sequence programs.
  • Page 140 Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.1 How to Read Explanation of Instructions Outline 1. Instruction format 1) The applied instruction number (FNC No.) and instruction mnemonic are indicated. The table below shows the meaning of simplified expression.
  • Page 141 Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.1 How to Read Explanation of Instructions Applicable devices Devices which can be specified in operands of instructions are shown. When a device supports an instruction, " " is added to the device. 1) Bit devices 2) Word devices •X : Input relay (X)
  • Page 142: Cautions On Creation Of Fundamental Programs

    Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.2 Cautions on Creation of Fundamental Programs Cautions on Creation of Fundamental Programs This paragraph explains cautions on programming. 6.2.1 Programming procedure and execution order 1.
  • Page 143: Double Output (Double Coil) Operation And Countermeasures

    Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.2 Cautions on Creation of Fundamental Programs 6.2.2 Double output (double coil) operation and countermeasures 1. Operation of double outputs When a coil gives double outputs (double coils) in a sequence program, the priority is given to the latter one. Suppose that a same coil Y003 is used in two positions as Input processing shown in the figure on the right.
  • Page 144: Circuits Which Cannot Be Programmed And Countermeasures

    Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.2 Cautions on Creation of Fundamental Programs 6.2.3 Circuits which cannot be programmed and countermeasures 1. Bridge circuit A circuit in which the current flows in the both directions should be changed as shown in the figure on the right (so that a circuit without D and a circuit without B are connected in parallel).
  • Page 145: I/O Processing And Response Delay

    Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.3 I/O Processing and Response Delay I/O Processing and Response Delay 1. Operation timing of I/O relays and response delay FX PLCs execute the I/O processing by repeating The ON/OFF status of input [Input the process (1) to process (3).
  • Page 146: Mutual Relationship Among Program Flow Control Instructions

    Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.4 Mutual Relationship Among Program Flow Control Instructions Mutual Relationship Among Program Flow Control Instructions The table below shows the mutual relationship among various program flow control instructions. In the table below, "...
  • Page 147 Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.4 Mutual Relationship Among Program Flow Control Instructions :This combination can be used without any problem. × :This combination is disabled; Operation error will be occurs. :This combination is not disabled, but is better not to be used because the operation will be complicated.
  • Page 148: General Rules For Applied Instructions

    Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.5 General Rules for Applied Instructions General Rules for Applied Instructions 6.5.1 Expression and operation type of applied instructions Instructions and operands - To applied instructions in PLCs, function numbers FNC 00 to FNC are assigned.
  • Page 149 Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.5 General Rules for Applied Instructions Instruction form and operation type Applied instructions are classified into "16-bit type" or "32-bit type" by the size of handled numeric values. And by the operation type, applied instructions are classified into "continuous operation type"...
  • Page 150: Handling Of General Flags

    Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.5 General Rules for Applied Instructions 6.5.2 Handling of general flags In some types of applied instructions, the following flags operate: Examples: M8020: Zero flag M8021: Borrow flag M8022: Carry flag M8029: Instruction execution complete flag...
  • Page 151 Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.5 General Rules for Applied Instructions 2. Introduction of method for using flags in any positions other than just under applied instructions When two or more applied instructions are programmed, general flags turn ON or OFF when each applied instruction turns ON.
  • Page 152: Handling Of Operation Error Flag

    Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.5 General Rules for Applied Instructions 6.5.3 Handling of operation error flag When there is an error in the applied instruction configuration, target device or target device number range and an error occurs while operation is executed, the following flag turns ON and the error information is stored.
  • Page 153: Handling Functions Of Extension Flag

    Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.5 General Rules for Applied Instructions 6.5.4 Handling functions of extension flag In some applied instructions, the function can be extended by combining a specific special auxiliary relay determined for each applied instruction.
  • Page 154 Series Programmable Controllers 6 What to Understand before Programming Programming Manual - Basic & Applied Instruction Edition 6.5 General Rules for Applied Instructions Limitation in simultaneous drive of instructions Some applied instructions can be programmed twice or more, but the number of simultaneous drive is limited. Even in instructions not shown below, if two or more instructions are driven at the same time for a same I/O number, it is regarded as double outputs.
  • Page 155: Basic Instruction

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition Basic Instruction This chapter explains types and functions of basic sequence instructions. For beginners of sequence control, we can offer texts for learning "Introduction Course" and "Relay Ladder Course".
  • Page 156 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition Mnemonic Name Symbol Function Applicable devices Reference Connection Instruction Serial connection of − AND Block Section 7.7 multiple parallel circuits Parallel connection of − OR Block Section 7.6 multiple contact circuits Stores the current result of...
  • Page 157: Ld, Ldi

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.1 LD, LDI LD, LDI Outline LD and LDI instructions are contacts connected to bus lines. When combined with ANB instruction described later, LD and LDI instructions can be used for the start of branches.
  • Page 158 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.1 LD, LDI 2. LDI instruction (initial logical operation, NC contact type) Circuit program List program LDIinstruction Connection to bus line 0000 X000 X000 0001 Y000 Y000 Bus line Timing chart...
  • Page 159: Out

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.2 OUT Outline OUT instruction drives coils of output relays (Y), auxiliary relays (M), state relays (S), timers (T) and counters (C). 1. Instruction format Mnemonic Operation Condition Basic Instruction Continuous...
  • Page 160 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.2 OUT Timing chart X000 OUT instruction Y000 X001 OUT instruction M100 OUT instruction M101 2. When a timer or counter is used The set value is required after OUT instruction for the counting coil of a timer or counter. The set value can be specified directly by a decimal number (K) or indirectly using a data register (D) or extension register (R).
  • Page 161 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.2 OUT 3. Indexing Devices used in OUT instruction can be indexed with index registers (V and Z). (State relays (S), special auxiliary relays (M), 32-bit counters (C), and "D .b" cannot be indexed.) The index registers V0 to V7 and Z0 to Z7 are Circuit program List program...
  • Page 162: And, Ani

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.3 AND, ANI AND, ANI Outline AND and ANI instructions connect one contact in series. The number of contacts connected in series is not limited, so AND and ANI instructions can be used consecutively as many times as necessary.
  • Page 163 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.3 AND, ANI 2. ANI instruction (serial connection of NC (normally closed) contacts) Circuit program List program ANI instruction X002 X000 0000 X002 Contact connected 0001 X000 Y003 in series...
  • Page 164 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.3 AND, ANI Program examples Circuit program List program AND instruction 0000 X000 X001 X000 Contact connected 0001 X001 Y003 in series 0002 Y003 0003 X002 ANI instruction Contact connected 0004...
  • Page 165: Or, Ori

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.4 OR, ORI OR, ORI Outline OR and ORI instructions are used to connect one contact in parallel. If two or more contacts are connected in series, use ORB instruction described later to connect such a serial circuit block to another circuit in parallel.
  • Page 166 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.4 OR, ORI 2. ORI instruction (parallel connection of NC (normally closed) contacts) Circuit program List program X000 0000 X000 0001 X002 Y001 0002 Y001 X002 Timing chart LD instruction X000...
  • Page 167 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.4 OR, ORI 5. Bit specification of data register (D) A bit in data register (D) can be specified as a device used in OR and ORI instructions. When specifying a bit in data register, input "."...
  • Page 168: Ldp, Ldf, Andp, Andf, Orp, Orf

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.5 LDP, LDF, ANDP, ANDF, ORP, ORF LDP, LDF, ANDP, ANDF, ORP, ORF Outline LDP, ANDP, and ORP instructions for contacts detect the rising edge, and become active during one operation cycle only at the rising edge of a specified bit device (that is, when the bit device turns ON from OFF).
  • Page 169 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.5 LDP, LDF, ANDP, ANDF, ORP, ORF Explanation of function and operation 1. LDP, ANDP, and ORP instructions (initial logical operation of rising edge pulse, serial connection of rising edge pulse, and parallel connection of rising edge pulse) Circuit program List program...
  • Page 170 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.5 LDP, LDF, ANDP, ANDF, ORP, ORF 2. LDF, ANDF, and ORF instructions (initial logical operation of falling/trailing edge pulse, serial connection of falling/trailing edge pulse, and parallel connection of falling/trailing edge pulse) Circuit program List program...
  • Page 171 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.5 LDP, LDF, ANDP, ANDF, ORP, ORF 4. Output drive side The following two circuits offer a same operation: <OUT instruction> <Pulse instruction> X010 X010 X010 Operation Operation cycle...
  • Page 172 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.5 LDP, LDF, ANDP, ANDF, ORP, ORF 5. Differences in the operation caused by auxiliary relay (M) numbers When an auxiliary relay (M) is specified as a device in LDP, LDF, ANDP, ANDF, ORP and ORF instructions, the operation varies depending on the device number range as shown in the figure below.
  • Page 173 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.5 LDP, LDF, ANDP, ANDF, ORP, ORF Cautions 1. Cautions when LDP, LDF, ANDP, ANDF, ORP, or ORF instruction programmed in a same step is executed twice or more within one operation cycle When LDP, LDF, ANDP, ANDF, ORP or ORF instruction programmed in a same step is executed twice or more within one operation cycle, the following operation results: Programs executed twice or more...
  • Page 174: Orb

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.6 ORB Outline A circuit in which two or more contacts are connected in series is called serial circuit block. 1. Instruction format Mnemonic Operation Condition Basic Instruction Continuous Operation...
  • Page 175: Anb

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.7 ANB Outline Use ANB instruction to connect a branch circuit (parallel circuit block) to the preceding circuit in series. Use LD or LDI instruction at the start of branch. After completing a parallel circuit block, connect the parallel circuit block to the preceding circuit in series by ANB instruction.
  • Page 176: Mps, Mrd, Mpp

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.8 MPS, MRD, MPP MPS, MRD, MPP Outline and FX PLCs have 11 memories called "Stack" which store the intermediate result (ON or OFF) of operations. Instruction format Mnemonic Operation Condition...
  • Page 177 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.8 MPS, MRD, MPP Explanation of function and operation These instructions are convenient in programming branched multi-output circuits. 1. MPS, MRD, and MPP instructions (stores the current result of the internal PLC operations, reads the current result of the internal PLC operations, and pops (recalls and removes) the currently stored result) X004...
  • Page 178 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.8 MPS, MRD, MPP Program examples 1) Program example 1: One stack Only one stack is used in this example. Circuit program List program X000 X001 X002 0000 LD X000...
  • Page 179 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.8 MPS, MRD, MPP 2) Program example 2: One stack with ANB and ORB instructions Circuit program List program X000 X001 Y000 0000 LD X000 0001 X002 0002 LD X001...
  • Page 180 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.8 MPS, MRD, MPP 4) Program example 4: Four stacks Circuit program List program X000 X001 X002 X003 X004 0000 LD X000 0009 OUT Y000 Y000 0001 0010 0002 AND X001...
  • Page 181: Mc, Mcr

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.9 MC, MCR MC, MCR Outline When MC instruction is executed, the bus line (LD or LDI point) is moved to a position after MC contact. The bus line can be returned to the original position by MCR instruction.
  • Page 182 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.9 MC, MCR Circuit program List program 0000 X000 X000 0001 N000 M100 Three-step instruction M100 M100 0004 X001 0005 Y000 0006 X002 X001 0007 Y001 Y000 0 ←...
  • Page 183 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.9 MC, MCR 2) When the nesting structure is adopted When using MC instructions inside MC instruction, increase the nest level "N" in turn in the way "N0 → N1 →...
  • Page 184: Inv

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.10 INV 7.10 Outline INV instruction inverts the operation result up to just before INV instruction, and does not require device number specification. Mnemonic Operation Condition Basic Instruction Continuous Operation...
  • Page 185: Pls, Plf

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.11 PLS, PLF 7.11 PLS, PLF Outline When PLS instruction is executed, an applicable device is activated during only one operation cycle after a drive input turns ON. When PLF instruction is executed, an applicable device is activated during only one operation cycle after a drive input turns OFF.
  • Page 186 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.11 PLS, PLF 3. Output drive side The following two circuits cause a same operation. <OUT instruction> <PLS instruction> X000 X000 X000 X000 ON during one operation cycle In each case, M0 is ON during only one operation cycle when X000 changes from OFF to ON.
  • Page 187: Set, Rst

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.12 SET, RST 7.12 SET, RST Outline 1) Setting a bit device (SET instruction (set bit device latch ON)) When the command input turns ON, SET instruction sets to ON an output relay (Y), auxiliary relay (M), state relay (S) and bit specification of word device.
  • Page 188 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.12 SET, RST Explanation of function and operation SET instruction drives the coil for an output relay (Y), auxiliary relay (M), state relay (S) and bit specification of data register (D).
  • Page 189 Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.12 SET, RST Cautions on using RST instruction for a jumped program, subroutine program or interrupt program When RST instruction for a timer or counter is executed in a jumped program, subroutine program or interrupt program, the timer or counter may be kept in the reset status and the timer or counter may be disabled.
  • Page 190: Nop

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.13 NOP 7.13 Outline NOP instruction specifies no operation. When a program is erased completely, all steps are replaced with NOP instructions. When NOP instruction is located between general instructions, PLCs ignore NOP instruction. If NOP instructions are put in the middle of a program, fluctuation of step numbers is minimized when the program is changed or added.
  • Page 191: End

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.14 END 7.14 Outline END instruction specifies the end of a program. (Do not write the END instruction in the middle of a program.) 1. Instruction format Mnemonic Operation Condition Basic Instruction...
  • Page 192: Number Of Instruction Steps And Specified Devices

    Series Programmable Controllers 7 Basic Instruction Programming Manual - Basic & Applied Instruction Edition 7.15 Number of Instruction Steps and Specified Devices 7.15 Number of Instruction Steps and Specified Devices For ORB, ANB, MPS, MPD, MPP, MCR, INV, NOP and END instructions, refer to pages explaining these instructions.
  • Page 193 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition Program Flow – FNC 00 to FNC 09 FNC 00 to FNC 09 provide instructions mainly related to control flow of sequence programs such as conditional program execution and priority processing.
  • Page 194: Fnc 00 - Cj / Conditional Jump

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.1 FNC 00 – CJ / Conditional Jump FNC 00 – CJ / Conditional Jump Outline CJ or CJP instruction jumps to a pointer (P); The sequence program steps between CJ or CJP instruction and the pointer are not executed.
  • Page 195 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.1 FNC 00 – CJ / Conditional Jump Cautions 1. Relationship between the label input position and the list program The figure below shows programming of a label.
  • Page 196 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.1 FNC 00 – CJ / Conditional Jump 5. Label unnecessary for the pointer P63 The pointer P63 specifies jump to END step. Do not program P63. If P63 is programmed, PLCs will display the error code 6507 (defective label definition) and stop.
  • Page 197 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.1 FNC 00 – CJ / Conditional Jump Program example 1. When jump is necessary after the OFF processing In one operation cycle after X023 changed ON from OFF, CJ P7 instruction becomes valid. By using this method, jump can be executed after all outputs between CJ P7 instruction and the label P7 turn OFF.
  • Page 198: Cj Instruction And Operations Of Contact And Coil

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.1 FNC 00 – CJ / Conditional Jump 8.1.1 CJ instruction and operations of contact and coil In the program example shown below, when X000 turns ON, the program execution jumps from CJ instruction in the first circuit to the label P8.
  • Page 199 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.1 FNC 00 – CJ / Conditional Jump 2. Circuit example 2 for explaining operations (when only RST instruction for a timer or counter is jumped) When X011 turns ON while RST instruction for the X012...
  • Page 200: Relationship Between Master Control Instruction And Jump Instruction

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.1 FNC 00 – CJ / Conditional Jump 8.1.2 Relationship between master control instruction and jump instruction The figure below shows the contents of operation and the relationship between the master control instruction. Avoid using [2], [4] and [5] because the operation will be complicated.
  • Page 201: Fnc 01 - Call / Call Subroutine

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.2 FNC 01 – CALL / Call Subroutine FNC 01 – CALL / Call Subroutine Outline This instruction calls and executes a program which should be processed commonly in a sequence program. This instruction saves the number of program steps, and achieves efficient program design.
  • Page 202 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.2 FNC 01 – CALL / Call Subroutine Caution 1. Using a label (P) number twice or more In CALL instructions, a same number can be used twice or more in operands (P). However, do not use a label (P) and number used in another instruction (CJ instruction).
  • Page 203: Cautions On Subroutines And Interrupt Routines

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.2 FNC 01 – CALL / Call Subroutine 8.2.1 Cautions on subroutines and interrupt routines This paragraph explains cautions on creating programs in subroutines and interrupt routines. The explanation below is given for subroutines, but the situation also applies to interrupt routines.
  • Page 204 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.2 FNC 01 – CALL / Call Subroutine Example for resetting held outputs (countermeasures) 1) Program example X000 FNC 01 CALLP X001 X002...
  • Page 205: Fnc 02 - Sret / Subroutine Return

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.3 FNC 02 – SRET / Subroutine Return FNC 02 – SRET / Subroutine Return Outline This instruction returns the program execution from a subroutine to the main program. 1.
  • Page 206: Fnc 03 - Iret / Interrupt Return

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.4 FNC 03 – IRET / Interrupt Return FNC 03 – IRET / Interrupt Return Outline This instruction returns the program execution from an interrupt routine to the main program. 1.
  • Page 207 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.4 FNC 03 – IRET / Interrupt Return Program example Interrupts are usually disabled in PLCs. FNC 04 Use EI instruction to enable interrupts. When X000 turns ON while the main program is executed, M8000 instructions after the interrupt routine pointer I001 are...
  • Page 208: Fnc 04 - Ei / Enable Interrupt

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.5 FNC 04 – EI / Enable Interrupt FNC 04 – EI / Enable Interrupt Outline Interrupts are usually disabled in PLCs. This instruction enables interrupts in PLCs.
  • Page 209: Fnc 05 - Di / Disable Interrupt

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.6 FNC 05 – DI / Disable Interrupt FNC 05 – DI / Disable Interrupt Outline This instruction disables interrupts after interrupts were enabled by DI (FNC 05) instruction. 1.
  • Page 210: Fnc 06 - Main Routine Program End

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.7 FNC 06 – Main Routine Program End FNC 06 – Main Routine Program End Outline This instruction indicates the end of the main program. 1.
  • Page 211 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.7 FNC 06 – Main Routine Program End 2. In the case of CALL instruction Main routine program X011 FNC 01 P 21 CALL Main routine...
  • Page 212: Fnc 07 - Wdt / Watchdog Timer Refresh

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.8 FNC 07 – WDT / Watchdog Timer Refresh FNC 07 – WDT / Watchdog Timer Refresh Outline This instruction refreshes the watchdog timer in a sequence program. 1.
  • Page 213 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.8 FNC 07 – WDT / Watchdog Timer Refresh Cautions 1. When a watchdog timer error occurs A watchdog timer error may occur in the following cases. To avoid the error, input a program shown below near the head step to extend the watchdog timer time, or shift FROM/TO instruction execution timing.
  • Page 214 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.8 FNC 07 – WDT / Watchdog Timer Refresh 3. When FOR/NEXT instruction is repeated many times Put WDT instruction between FOR and NEXT instructions. FNC 08 K30000 Program...
  • Page 215: Fnc 08 - For / Start A For/Next Loop

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.9 FNC 08 – FOR / Start a FOR/NEXT Loop FNC 08 – FOR / Start a FOR/NEXT Loop Outline FOR instruction specifies the number of repetition of the loop between FOR and NEXT (FNC 09) instructions.
  • Page 216: Fnc 09 - Next / End A For/Next Loop

    Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.10 FNC 09 – NEXT / End a FOR/NEXT Loop 8.10 FNC 09 – NEXT / End a FOR/NEXT Loop Outline NEXT instruction specifies the end position of the loop.
  • Page 217 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.10 FNC 09 – NEXT / End a FOR/NEXT Loop Caution 1. Limitation in the number of nesting FOR-NEXT loop can be nested up to 5 levels. level NEXT level...
  • Page 218 Series Programmable Controllers 8 Program Flow – FNC 00 to FNC 09 Programming Manual - Basic & Applied Instruction Edition 8.10 FNC 09 – NEXT / End a FOR/NEXT Loop Program example 1. Program with three FOR-NEXT loops FNC 08 The loop [3] is repeated 4 times.
  • Page 219 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition Move and Compare – FNC 10 to FNC 19 FNC 10 to FNC 19 provide fundamental data processing instructions such as data transfer and data comparison which are regarded as most important in applied instructions.
  • Page 220: Fnc 10 - Cmp / Compare

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.1 FNC 10 – CMP / Compare FNC 10 – CMP / Compare Outline This instruction compares two values, and outputs the result (smaller, equal or larger) to bit devices (3 points).
  • Page 221 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.1 FNC 10 – CMP / Compare 2. 32-bit operation (DCMP and DCMPP) The comparison value [ ] and the comparison source [ ] are compared with each other.
  • Page 222: Fnc 11 - Zcp / Zone Compare

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.2 FNC 11 – ZCP / Zone Compare FNC 11 – ZCP / Zone Compare Outline This instruction compares two values (zone) with the comparison source, and outputs the result (smaller, equal or larger) to bit devices (3 points).
  • Page 223 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.2 FNC 11 – ZCP / Zone Compare Explanation of function and operation 1. 16-bit operation (ZCP and ZCPP) The lower comparison value and upper comparison value are compared with the comparison...
  • Page 224 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.2 FNC 11 – ZCP / Zone Compare Cautions 1. Number of occupied devices From the device specified as , three devices are occupied.
  • Page 225: Fnc 12 - Mov / Move

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.3 FNC 12 – MOV / Move FNC 12 – MOV / Move Outline This instruction transfers (copies) the contents of a device to another device. 1.
  • Page 226 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.3 FNC 12 – MOV / Move When a word device is specified Command input FNC 12 :D10 :D50 Command contact Before execution...
  • Page 227 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.3 FNC 12 – MOV / Move Program examples 1. When reading the current value of a timer and counter X001 (Current value of T0) →...
  • Page 228: Fnc 13 - Smov / Shift Move

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.4 FNC 13 – SMOV / Shift Move FNC 13 – SMOV / Shift Move Outline This instruction distributes and composes data in units of digit (4 bits). 1.
  • Page 229 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.4 FNC 13 – SMOV / Shift Move Explanation of function and operation 1. 16-bit operation (SMOV and SMOVP) The contents of the transfer source and transfer destination are converted into 4-digit BCD...
  • Page 230: Fnc 14 - Cml / Complement

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.5 FNC 14 – CML / Complement FNC 14 – CML / Complement Outline This instruction inverts data in units of bit, and then transfers (copies) the inverted data. 1.
  • Page 231 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.5 FNC 14 – CML / Complement 2. 32-bit operation (DCML and DCMLP) Each bit of devices specified as [ ] is inverted (from 0 to 1 or from 1 to 0), and then transferred to [ •...
  • Page 232: Fnc 15 - Bmov / Block Move

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.6 FNC 15 – BMOV / Block Move FNC 15 – BMOV / Block Move Outline This instruction transfers (copies) a specified number of data at one time. 1.
  • Page 233 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.6 FNC 15 – BMOV / Block Move Extension function (bi-directional transfer function) By controlling the direction inverse flag M8024 for BMOV (FNC 15) instruction, data can be transferred in two directions in one program.
  • Page 234: Function Of Transfer Between File Registers And Data Registers

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.6 FNC 15 – BMOV / Block Move 9.6.1 Function of transfer between file registers and data registers BMOV (FNC 15) instruction has a special function for file registers (D1000 and later). →...
  • Page 235 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.6 FNC 15 – BMOV / Block Move 2. Cautions on use 1) When updating the contents of a file register with a same number (same-number update mode), make sure that the file register number is equivalent between 2) When using file registers in the same-number update mode, make sure that the number of transfer points specified by "n"...
  • Page 236: Fnc 16 - Fmov / Fill Move

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.7 FNC 16 – FMOV / Fill Move FNC 16 – FMOV / Fill Move Outline This instruction transfers same data to specified number of devices. 1.
  • Page 237 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.7 FNC 16 – FMOV / Fill Move • When a constant (K) is specified as the transfer source , it is automatically converted into binary.
  • Page 238 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.7 FNC 16 – FMOV / Fill Move Program example 1. When writing specified data to two or more devices X000 FNC 16 FMOV...
  • Page 239: Fnc 17 - Xch / Exchange

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.8 FNC 17 – XCH / Exchange FNC 17 – XCH / Exchange Outline This instruction exchanges data between two devices. 1.
  • Page 240 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.8 FNC 17 – XCH / Exchange Extension function (function compatible between the FX Series and the FX Series) When the instruction is executed while M8160 is ON, high-order 8 bits (byte) and low-order 8 bits (byte) of a word device are exchanged each other.
  • Page 241: Fnc 18 - Bcd / Conversion To Binary Coded Decimal

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal FNC 18 – BCD / Conversion to Binary Coded Decimal Outline This instruction converts binary (BIN) data into binary-coded decimal (BCD) data.
  • Page 242 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal 2. 32-bit operation (DBCD and DBCDP) This instruction converts the binary (BIN) data of [ ] into binary-coded decimal (BCD) data, and transfers the converted BCD data to [ •...
  • Page 243 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.9 FNC 18 – BCD / Conversion to Binary Coded Decimal Program examples 1. When the seven-segment display unit has 1 digit X000 FNC 18 K1Y000...
  • Page 244: Fnc 19 - Conversion To Binary

    Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.10 FNC 19 – Conversion to Binary 9.10 FNC 19 – Conversion to Binary Outline This instruction converts a binary-coded decimal (BCD) data into binary (BIN) data. Use this instruction to convert a binary-coded decimal (BCD) value such as a value set by a digital switch into a binary (BIN) data and receive the converted binary data so that the data can be handled in operations in PLCs.
  • Page 245 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.10 FNC 19 – Conversion to Binary 2. 32-bit operation (DBIN and DBINP) This instruction converts the binary-coded decimal (BCD) data of [ ] into binary (BIN) data, and transfers the converted binary data to [ •...
  • Page 246 Series Programmable Controllers 9 Move and Compare – FNC 10 to FNC 19 Programming Manual - Basic & Applied Instruction Edition 9.10 FNC 19 – Conversion to Binary Program examples 1. When the digital switch has 1 digit X000 FNC 19 K1X000 MOV instruction can be used instead.
  • Page 247 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10. Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 FNC 20 to FNC 29 provide instructions for arithmetic operations and logical operations of numeric data.
  • Page 248: Fnc 20 - Add / Addition

    10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.1 FNC 20 – ADD / Addition 10.1 FNC 20 – ADD / Addition Outline This instruction executes addition by two values to obtain the result (A + B = C).
  • Page 249 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.1 FNC 20 – ADD / Addition Related devices 1. Relationship between the flag operation and the sign (positive or negative) of a numeric value →...
  • Page 250 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.1 FNC 20 – ADD / Addition Program example 1. Difference between ADD instruction and INC instruction caused by a program for adding "+1"...
  • Page 251: Fnc 21 - Sub / Subtraction

    10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.2 FNC 21 – SUB / Subtraction 10.2 FNC 21 – SUB / Subtraction Outline This instruction executes subtraction using two values to obtain the result (A −...
  • Page 252 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.2 FNC 21 – SUB / Subtraction Related devices 1. Relationship between the flag operation and the sign (positive or negative) of a numeric value →...
  • Page 253 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.2 FNC 21 – SUB / Subtraction Program example 1. Difference between SUB instruction and DEC instruction caused by a program for subtracting "1"...
  • Page 254: Fnc 22 - Mul / Multiplication

    10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.3 FNC 22 – MUL / Multiplication 10.3 FNC 22 – MUL / Multiplication Outline This instruction executes multiplication by two values to obtain the result (A x B = C).
  • Page 255 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.3 FNC 22 – MUL / Multiplication • When a digit (K1 to K8) is specified for [ A digit can be specified in the range from K1 to K8.
  • Page 256 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.3 FNC 22 – MUL / Multiplication Program examples 1. 16-bit operation X000 (D 0) × (D 2) → (D 5,D 4) FNC 22 2.
  • Page 257: Fnc 23 - Div / Division

    10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.4 FNC 23 – DIV / Division 10.4 FNC 23 – DIV / Division Outline This instruction executes division by two values to obtain the result (A ÷...
  • Page 258 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.4 FNC 23 – DIV / Division 2. 32-bit operation (DDIV and DDIVP) ] indicates the dividend, [ ] indicates the divisor, the quotient is transferred to ]), and the remainder is transferred to [ +2].
  • Page 259: Fnc 24 - Inc / Increment

    10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.5 FNC 24 – INC / Increment 10.5 FNC 24 – INC / Increment Outline This instruction increments the data of a specified device by "1".
  • Page 260 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.5 FNC 24 – INC / Increment Program example X010 The current values of the counters C0 to FNC 12 0 →...
  • Page 261: Fnc 25 - Dec / Decrement

    10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.6 FNC 25 – DEC / Decrement 10.6 FNC 25 – DEC / Decrement Outline This instruction decrements the data of a specified device by "1".
  • Page 262: Fnc 26 - Wand / Logical Word And

    10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.7 FNC 26 – WAND / Logical Word AND 10.7 FNC 26 – WAND / Logical Word AND Outline This instruction executes the logical product (AND) operation of two numeric values.
  • Page 263 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.7 FNC 26 – WAND / Logical Word AND 2. 32-bit operation (DAND and DANDP) The logical product (AND) operation is executed to the contents of [ ] and [ ] in...
  • Page 264: Fnc 27 - Wor / Logical Word Or

    10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.8 FNC 27 – WOR / Logical Word OR 10.8 FNC 27 – WOR / Logical Word OR Outline This instruction executes the logical sum (OR) operation of two numeric values.
  • Page 265 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.8 FNC 27 – WOR / Logical Word OR 2. 32-bit operation (DOR and DORP) The logical sum (OR) operation is executed to the contents of [ ] and [ ] in units...
  • Page 266: Fnc 28 - Wxor / Logical Exclusive Or

    10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.9 FNC 28 – WXOR / Logical Exclusive OR 10.9 FNC 28 – WXOR / Logical Exclusive OR Outline This instruction executes the exclusive logical sum (XOR) operation of two numeric values.
  • Page 267 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.9 FNC 28 – WXOR / Logical Exclusive OR 2. 32-bit operation (DXOR and DXORP) The exclusive logical sum (XOR) operation is executed to the contents of [ ] and [ ] in units of bit, and the result is transferred to [...
  • Page 268: Fnc 29 - Neg / Negation

    10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.10 FNC 29 – NEG / Negation 10.10 FNC 29 – NEG / Negation Outline This instruction obtains the complement of a numeric value (by inverting each bit and adding "1").
  • Page 269 10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29 Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition 10.10 FNC 29 – NEG / Negation Program examples The program examples below are provided to obtain the absolute value of a negative binary value. 1.
  • Page 270 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11. Rotation and Shift Operation – FNC 30 to FNC 39 FNC 30 to FNC 39 provide instructions for rotating and shifting bit data and word data in specified directions. FNC No.
  • Page 271: Fnc 30 - Ror / Rotation Right

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.1 FNC 30 – ROR / Rotation Right 11.1 FNC 30 – ROR / Rotation Right Outline This instruction shifts and rotates the bit information rightward by the specified number of bits without the carry flag.
  • Page 272 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.1 FNC 30 – ROR / Rotation Right 2. 32-bit operation (DROR and DRORP) "n" bits out of 32 bits of [ ] are rotated rightward.
  • Page 273: Fnc 31 - Rol / Rotation Left

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.2 FNC 31 – ROL / Rotation Left 11.2 FNC 31 – ROL / Rotation Left Outline This instruction shifts and rotates the bit information leftward by the specified number of bits without the carry flag.
  • Page 274 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.2 FNC 31 – ROL / Rotation Left 2. 32-bit operation (DROL and DROLP) "n" bits out of 32 bits of [ ] are rotated leftward.
  • Page 275: Fnc 32 - Rcr / Rotation Right With Carry

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.3 FNC 32 – RCR / Rotation Right with Carry 11.3 FNC 32 – RCR / Rotation Right with Carry Outline This instruction shifts and rotates the bit information rightward by the specified number of bits together with the carry flag.
  • Page 276 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.3 FNC 32 – RCR / Rotation Right with Carry 2. 32-bit operation (DRCR and DRCRP) "n" bits out of 32 bits of [ ] and 1 bit (carry flag M8022) are rotated rightward.
  • Page 277: Fnc 33 - Rcl / Rotation Left With Carry

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.4 FNC 33 – RCL / Rotation Left with Carry 11.4 FNC 33 – RCL / Rotation Left with Carry Outline This instruction shifts and rotates the bit information leftward by the specified number of bits together with the carry flag.
  • Page 278 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.4 FNC 33 – RCL / Rotation Left with Carry 2. 32-bit operation (DRCL and DRCLP) "n" bits out of 32 bits of [ ] and 1 bit (carry flag M8022) are rotated leftward.
  • Page 279: Fnc 34 - Sftr / Bit Shift Right

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.5 FNC 34 – SFTR / Bit Shift Right 11.5 FNC 34 – SFTR / Bit Shift Right Outline This instruction shifts bit devices of the specified bit length rightward by the specified number of bits.
  • Page 280 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.5 FNC 34 – SFTR / Bit Shift Right Explanation of function and operation 1. 16-bit operation (SFTR and SFTRP) For "n1"...
  • Page 281: Fnc 35 - Sftl / Bit Shift Left

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.6 FNC 35 – SFTL / Bit Shift Left 11.6 FNC 35 – SFTL / Bit Shift Left Outline This instruction shifts bit devices of the specified bit length leftward by the specified number of bits.
  • Page 282 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.6 FNC 35 – SFTL / Bit Shift Left Explanation of function and operation 1. 16-bit operation (SFTL and SFTLP) For "n1"...
  • Page 283 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.6 FNC 35 – SFTL / Bit Shift Left Program example (conditional stepping of 1-bit data) By setting X000 to X007 to ON in turn, Y000 to Y007 are activated in turn. If the order is wrong, activation is disabled.
  • Page 284: Replacement Of Sft Instruction In F And F Series

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.6 FNC 35 – SFTL / Bit Shift Left 11.6.1 Replacement of SFT instruction in F and F Series SFT instruction in F PLCs corresponds to SFTL (FNC 35) instruction in FX...
  • Page 285: Fnc 36 - Wsfr / Word Shift Right

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.7 FNC 36 – WSFR / Word Shift Right 11.7 FNC 36 – WSFR / Word Shift Right Outline This instruction shifts word devices with "n1"...
  • Page 286 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.7 FNC 36 – WSFR / Word Shift Right Caution Note that "n2" words are shifted when the drive input turns ON in WSFRP instruction, but that "n2" words are shifted in each operation cycle in WSFR instruction.
  • Page 287: Fnc 37 - Wsfl / Word Shift Left

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.8 FNC 37 – WSFL / Word Shift Left 11.8 FNC 37 – WSFL / Word Shift Left Outline This instruction shifts the word data information leftward by the specified number of words.
  • Page 288 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.8 FNC 37 – WSFL / Word Shift Left Caution Note that "n2" words are shifted every time the drive input turns ON from OFF in WSFLP instruction, but that "n2"...
  • Page 289: Fnc 38 - Sfwr / Shift Write [Fifo/Lifo Control]

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.9 FNC 38 – SFWR / Shift Write [FIFO/LIFO Control] 11.9 FNC 38 – SFWR / Shift Write [FIFO/LIFO Control] Outline This instruction writes data for first-in first-out (FIFO) and last-in first-out (LIFO) control.
  • Page 290 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.9 FNC 38 – SFWR / Shift Write [FIFO/LIFO Control] Explanation of function and operation 1. 16-bit operation (SFWR and SFWRP) The contents of are written to "n-1"...
  • Page 291 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.9 FNC 38 – SFWR / Shift Write [FIFO/LIFO Control] Program example 1. Example of first-in first-out control →...
  • Page 292: Fnc 39 - Sfrd / Shift Read [Fifo Control]

    Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.10 FNC 39 – SFRD / Shift Read [FIFO Control] 11.10 FNC 39 – SFRD / Shift Read [FIFO Control] Outline This instruction reads data for first-in first-out control.
  • Page 293 Series Programmable Controllers 11 Rotation and Shift Operation – FNC 30 to FNC 39 Programming Manual - Basic & Applied Instruction Edition 11.10 FNC 39 – SFRD / Shift Read [FIFO Control] Before execution S+10 S+9 S+8 S+7 S+6 S+5 S+4 S+3 Pointer Executed at the 1st time −1 →...
  • Page 294 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12. Data Operation – FNC 40 to FNC 49 FNC 40 to FNC 49 provide instructions for executing complicated processing for fundamental applied instructions FNC 10 to FNC 39 and for executing special processing.
  • Page 295: Fnc 40 - Zrst / Zone Reset

    Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.1 FNC 40 – ZRST / Zone Reset 12.1 FNC 40 – ZRST / Zone Reset Outline This instruction resets devices located in a zone between two specified devices at one time. Use this instruction for restarting operation from the beginning after pause or after resetting control data.
  • Page 296 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.1 FNC 40 – ZRST / Zone Reset When are word devices "K0" is written to the entire range from at one time.
  • Page 297 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.1 FNC 40 – ZRST / Zone Reset 2. When specifying high speed counters (C235 to C255) ZRST instruction is handled as the 16-bit type, but 32-bit counters can be specified in However, it is not possible to specify a 16-bit counter in and specify a 32-bit counter in should be a same type.
  • Page 298: Fnc 41 - Deco / Decode

    Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.2 FNC 41 – DECO / Decode 12.2 FNC 41 – DECO / Decode Outline This instruction converts numeric data into ON bit. A bit number which is set to ON by this instruction indicates a numeric value.
  • Page 299 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.2 FNC 41 – DECO / Decode is a word device (1 ≤ n ≤ 4) 2) When The numeric value (expressed in 2 on the low-order side) of is decoded to When all bits of...
  • Page 300 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.2 FNC 41 – DECO / Decode Program example 1. When setting bit devices to ON according to the value of a data register The value of D0 (whose current value is "14"...
  • Page 301: Fnc 42 - Enco / Encode

    Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.3 FNC 42 – ENCO / Encode 12.3 FNC 42 – ENCO / Encode Outline This instruction obtains positions in which bits are ON in data. 1.
  • Page 302 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.3 FNC 42 – ENCO / Encode is a word device (1 ≤ n ≤ 4) 2) When " bits (1 ≤ n ≤ 4) from a device specified in ON bit positions among "2 are encoded to The encoding result of...
  • Page 303: Fnc 43 - Sum / Sum Of Active Bits

    Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.4 FNC 43 – SUM / Sum of Active Bits 12.4 FNC 43 – SUM / Sum of Active Bits Outline This instruction counts the number of "1"...
  • Page 304 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.4 FNC 43 – SUM / Sum of Active Bits 2. 32-bit operation (DSUM and DSUMP) The number of bits in the ON status in [ ] is counted, and stored to •...
  • Page 305 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.4 FNC 43 – SUM / Sum of Active Bits Caution While the command input is OFF, the instruction is not executed. The output of the number of bits in the ON status is latched in the previous status.
  • Page 306: Fnc 44 - Bon / Check Specified Bit Status

    Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.5 FNC 44 – BON / Check Specified Bit Status 12.5 FNC 44 – BON / Check Specified Bit Status Outline This instruction checks whether a specified bit position in a specified device is ON or OFF.
  • Page 307 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.5 FNC 44 – BON / Check Specified Bit Status 2. 32-bit operation (DBON and DBONP) The status (ON or OFF) of the bit "n" in [ ] is output to [When the bit "n"...
  • Page 308: Fnc 45 - Mean / Mean

    Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.6 FNC 45 – MEAN / Mean 12.6 FNC 45 – MEAN / Mean Outline This instruction obtains the mean value of data. 1.
  • Page 309 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.6 FNC 45 – MEAN / Mean Caution When a device number is exceeded, "n" is handled as a smaller value in the possible range. Error When "n"...
  • Page 310: Fnc 46 - Ans / Timed Annunciator Set

    Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.7 FNC 46 – ANS / Timed Annunciator Set 12.7 FNC 46 – ANS / Timed Annunciator Set Outline This instruction sets a state relay for annuciator (S900 to S999). 1.
  • Page 311 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.7 FNC 46 – ANS / Timed Annunciator Set Program example 1. Displaying a fault number using an annunciator When the program for external fault diagnosis shown below is created and the contents of D8049 (smallest state relay number in the ON status) are monitored, the smallest state relay number in the ON status among S900 to S999 is displayed.
  • Page 312: Fnc 47 - Anr / Annunciator Reset

    Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.8 FNC 47 – ANR / Annunciator Reset 12.8 FNC 47 – ANR / Annunciator Reset Outline This instruction resets an annuciator (S900 to S999) in the ON status with the smallest number. 1.
  • Page 313: Fnc 48 - Sqr / Square Root

    Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.9 FNC 48 – SQR / Square Root 12.9 FNC 48 – SQR / Square Root Outline This instruction obtains the square root. As a related instruction, ESQR (FNC127) instruction obtains the square root in floating point operation.
  • Page 314 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.9 FNC 48 – SQR / Square Root Program example The square root of D10 is stored to D12. The value of D10 is "100". X000 FNC 48 D 10 →...
  • Page 315: Fnc 49 - Flt / Conversion To Floating Point

    Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.10 FNC 49 – FLT / Conversion to Floating Point 12.10 FNC 49 – FLT / Conversion to Floating Point Outline This instruction converts a binary integer into a binary floating point (real number).
  • Page 316 Series Programmable Controllers 12 Data Operation – FNC 40 to FNC 49 Programming Manual - Basic & Applied Instruction Edition 12.10 FNC 49 – FLT / Conversion to Floating Point Related devices → For the method of the zero and borrow flags, refer to Subsection 6.5.2. Device Name Description...
  • Page 317 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13. High Speed Processing – FNC 50 to FNC 59 FNC 50 to FNC 59 provide interrupt processing type high speed processing instructions which execute sequence control using the latest I/O information and utilize the high speed processing performance of PLCs.
  • Page 318: Fnc 50 - Ref / Refresh

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.1 FNC 50 – REF / Refresh 13.1 FNC 50 – REF / Refresh Outline This instruction immediately outputs the latest input (X) information or the current output (Y) operation result in the middle of a sequence program.
  • Page 319 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.1 FNC 50 – REF / Refresh Explanation of function and operation 1. 16-bit operation (REF and REFP) 1) When refreshing outputs (Y) "n"...
  • Page 320 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.1 FNC 50 – REF / Refresh Does not turn ON. Input terminal 20ms Input signal (X) 10ms 10ms 10ms Filter time REF instruction (executed)
  • Page 321: What Should Be Understood Before Using Ref Instruction

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.1 FNC 50 – REF / Refresh 13.1.1 What should be understood before using REF instruction 1. Changing the input filter The input filter value is determined by the contents (initial value: 10 ms) of D8020.
  • Page 322: Fnc 51 - Reff / Refresh And Filter Adjust

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.2 FNC 51 – REFF / Refresh and Filter Adjust 13.2 FNC 51 – REFF / Refresh and Filter Adjust Outline The input filter of the inputs X000 to X017 is the digital type, and its filter time can be changed using this...
  • Page 323 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.2 FNC 51 – REFF / Refresh and Filter Adjust Cautions 1. Setting the filter time "n" Set "n" within the range from K0 (H0) to K60 (H3C) [0 to 60 ms]. 2.
  • Page 324: What Should Be Understood Before Using Reff Instruction

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.2 FNC 51 – REFF / Refresh and Filter Adjust 13.2.1 What should be understood before using REFF instruction Generally, a C-R filter of approximately 10 ms is provided for inputs in PLCs as countermeasures against chattering and noise at the input contacts.
  • Page 325: Fnc 52 - Mtr / Input Matrix

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.3 FNC 52 – MTR / Input Matrix 13.3 FNC 52 – MTR / Input Matrix Outline This instruction reads matrix input as 8-point input × "n"-point output (transistor) in the time division method. 1.
  • Page 326 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.3 FNC 52 – MTR / Input Matrix The figure below shows an example of the FX -32MT-LT (sink input/sink output). For the wiring, refer to the following manual of the used PLC.
  • Page 327 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.3 FNC 52 – MTR / Input Matrix Program example n=Three outputs (Y020, Y021 and Y022) are set to ON in turn repeatedly. Every time an output is set to ON, eight inputs in the 1st, 2nd and 3rd columns are received in turn repeatedly, and stored to M30 to M37, M40 to M47 and M50 to M57 respectively.
  • Page 328: The Method And Cautions For Mtr Instruction

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.3 FNC 52 – MTR / Input Matrix 13.3.1 The method and cautions for MTR instruction 1. Command input 1) Setting the command input to normally ON For MTR instruction, set the command input to normally ON.
  • Page 329: Fnc 53 - Hscs / High Speed Counter Set

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.4 FNC 53 – HSCS / High Speed Counter Set 13.4 FNC 53 – HSCS / High Speed Counter Set Outline This instruction compares a value counted by a high speed counter with a specified value, and immediately sets an external output (Y) if the two values are equivalent each other.
  • Page 330 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.4 FNC 53 – HSCS / High Speed Counter Set Operation When the current value of the high speed counter C255 changes from "99" to "100" or from "101" to "100", Y010 is set to ON (output refresh).
  • Page 331: Common Cautions On Using Instructions For High Speed Counter

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.4 FNC 53 – HSCS / High Speed Counter Set 5. Reset operation by an external terminal → For the details, refer to "5. Reset operation by an external terminal" in Subsection 13.4.1. 6.
  • Page 332 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.4 FNC 53 – HSCS / High Speed Counter Set 3. Specification of output numbers (Y) When using a same instruction for high speed counter repeatedly or when driving two or more other instructions for high speed counter at the same time, specify such output devices (Y) whose high-order two digits are the same (in units of 8 devices).
  • Page 333 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.4 FNC 53 – HSCS / High Speed Counter Set 6. Priority order in operations among HSCS (FNC 53), HSCR (FNC 54), and HSZ (FNC 55) instructions for the same high speed counter When the same comparison value is used for the same high speed counter in HSCS (FNC 53), HSCR (FNC 54), and HSZ (FNC 55) instructions, high speed counter reset (self-reset) by HSCR (FNC 54) instruction is...
  • Page 334: Fnc 54 - Hscr / High Speed Counter Reset

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.5 FNC 54 – HSCR / High Speed Counter Reset 13.5 FNC 54 – HSCR / High Speed Counter Reset Outline This instruction compares the value counted by a high speed counter with a specified value at each count, and immediately resets an external output (Y) when both values become equivalent to each other.
  • Page 335 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.5 FNC 54 – HSCR / High Speed Counter Reset Operation When the present value of the high speed counter C255 changes (counts) from "99" to "100" or from "101" to "100", Y010 is reset (output refresh).
  • Page 336 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.5 FNC 54 – HSCR / High Speed Counter Reset 5. Other cautions on using HSCR instruction → For the details, refer Subsection 13.4.1. Program example 1.
  • Page 337: Fnc 55 - Hsz / High Speed Counter Zone Compare

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare Outline This instruction compares the current value of a high speed counter with two values (one zone), and outputs the comparison result to three bit devices (refresh).
  • Page 338 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare Comparison points Make sure that the comparison value 1 and the comparison value 2 have the following relationship: ] ≤...
  • Page 339 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare 2) Cases to select a general-purpose comparison instruction - When the required frequency is beyond the counting performance of software counters - When counting is regarded important, but the effect of the scan time can be ignored in operations according to the counting result...
  • Page 340: Program In Which Comparison Result Is Set To On When Power Is Turned On [Zcp (Fnc 11) Instruction]

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare 13.6.1 Program in which comparison result is set to ON when power is turned ON [ZCP (FNC 11) instruction] DHSZ instruction outputs the comparison result only when a counting pulse is input.
  • Page 341 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare X000 (input pulse for C235) X010 (Start) Y010 (smaller than zone) Y011...
  • Page 342 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare 13.6.2 Table high speed comparison mode (M8130) This paragraph explains the table high speed comparison mode (high speed pattern output) of the DHSZ instruction.
  • Page 343 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare 4) Output (Y) number Specify a hexadecimal number as the output (Y) number. Example: When specifying Y010, specify "H10".
  • Page 344 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare Comparison table Present value Comparison Output (Y) Table of C251 SET/RST data...
  • Page 345: Frequency Control Mode (Hsz And Plsy Instructions) (M8132)

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare 13.6.3 Frequency control mode (HSZ and PLSY instructions) (M8132) When the special auxiliary relay M8132 for declaring the frequency control mode is specified as in the DHSZ instruction, the special function shown below is provided if DPLSY instruction is combined.
  • Page 346 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare Command input FNC 12 D300 Comparison data DMOVP FNC 12 Frequency K300...
  • Page 347 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.6 FNC 55 – HSZ / High Speed Counter Zone Compare Output pulse characteristics Output pulse frequency (Hz) → Current value of C251 1) Write in advance prescribed data to data registers constructing the table as shown in this program example.
  • Page 348: Fnc 56 - Spd / Speed Detection

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.7 FNC 56 – SPD / Speed Detection 13.7 FNC 56 – SPD / Speed Detection Outline This instruction counts the input pulse for a specified period of time as interrupt input. The function of this instruction varies depending on the version.
  • Page 349 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.7 FNC 56 – SPD / Speed Detection Explanation of function and operation 1. 16-bit operation (SPD) × 1 ms. The measured value is stored in The input pulse is counted only for , the present...
  • Page 350 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.7 FNC 56 – SPD / Speed Detection 2. 32-bit operation (DSPD) [Ver.2.00 or later] The input pulse is counted only for [ ] x 1 ms.
  • Page 351 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.7 FNC 56 – SPD / Speed Detection Cautions 1. Input specifications of the input • An input device X000 to X007 specified as cannot overlap the following usage: - High speed counter - Input interrupt...
  • Page 352: Fnc 57 - Plsy / Pulse Y Output

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.8 FNC 57 – PLSY / Pulse Y Output 13.8 FNC 57 – PLSY / Pulse Y Output Outline This instruction generates a pulse signal.
  • Page 353 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.8 FNC 57 – PLSY / Pulse Y Output 2. 32-bit operation (DPLSY) A pulse train at the frequency [ ] is output by the quantity [ ] from the output (Y) Command...
  • Page 354 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.8 FNC 57 – PLSY / Pulse Y Output 2. Monitoring of the current value of the number of generated pulses The number of pulses output from Y000 or Y001 is stored in the following special data registers: Device Description...
  • Page 355 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.8 FNC 57 – PLSY / Pulse Y Output 4. Handling of pulse output terminals in the FX -32MT-LT The outputs Y000 and Y001 are the high Item Description...
  • Page 356 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.8 FNC 57 – PLSY / Pulse Y Output 6. Others 1) Types of pulse output instructions, positioning instructions and relevant instruction and their target output numbers Classification Instruction...
  • Page 357: Fnc 58 - Pwm / Pulse Width Modulation

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.9 FNC 58 – PWM / Pulse Width Modulation 13.9 FNC 58 – PWM / Pulse Width Modulation Outline This instruction outputs pulses whose cycle and ON duration are specified.
  • Page 358 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.9 FNC 58 – PWM / Pulse Width Modulation Cautions 1. Setting the pulse width and cycle ≤ Make sure that the pulse width and cycle satisfy the relationship "...
  • Page 359 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.9 FNC 58 – PWM / Pulse Width Modulation 4) When special high speed output adapters are connected, the same output numbers in the main unit are assigned as shown in the table below.
  • Page 360: Fnc 59 - Plsr / Acceleration/Deceleration Setup

    Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.10 FNC 59 – PLSR / Acceleration/Deceleration Setup 13.10 FNC 59 – PLSR / Acceleration/Deceleration Setup Outline This pulse output instruction has the acceleration/deceleration function. 1.
  • Page 361 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.10 FNC 59 – PLSR / Acceleration/Deceleration Setup 2. 32-bit operation (DPLSR) Pulses are output from the output (Y) by the specified number [ ] with acceleration/ deceleration to the maximum frequency [...
  • Page 362 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.10 FNC 59 – PLSR / Acceleration/Deceleration Setup Related devices 1. Instruction execution complete flag → For the instruction execution complete flag use method, refer to Subsection 6.5.2.
  • Page 363 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.10 FNC 59 – PLSR / Acceleration/Deceleration Setup 3. Handling of pulse output terminals in the FX -32MT-LT The outputs Y000 and Y001 are the high speed response type. When using a pulse output instruction or positioning instruction, adjust the load current of the open collector transistor output to about 10 to 100 mA (5 to 24V DC).
  • Page 364 Series Programmable Controllers 13 High Speed Processing – FNC 50 to FNC 59 Programming Manual - Basic & Applied Instruction Edition 13.10 FNC 59 – PLSR / Acceleration/Deceleration Setup Output operation Output operation Corresponding output remains ON (and the LED remains ON also) while the Relay output type main unit instruction is executed.
  • Page 365 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14. Handy Instruction – FNC 60 to FNC 69 FNC 60 to FNC 69 provide handy instructions which achieve complicated control in a minimum sequence program.
  • Page 366: Fnc 60 - Ist / Initial State

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State 14.1 FNC 60 – IST / Initial State Outline This instruction automatically controls the initial state and special auxiliary relays in a step ladder program. →...
  • Page 367 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State 1. Control of devices by switch operations (occupied devices) While the command input is ON, the following devices are automatically switched and controlled. While the command input is OFF, the devices are not switched.
  • Page 368: Ist Instruction Equivalent Circuit

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State 14.1.1 IST instruction equivalent circuit The details of special auxiliary relays (M) and initial state relays (S0 to S9) which are automatically controlled by IST instruction are as shown in the equivalent circuit below.
  • Page 369: Example Of Ist Instruction Introduction (Example Of Workpiece Transfer Mechanism)

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State 14.1.2 Example of IST instruction introduction (example of workpiece transfer mechanism) 1. Operation mode Mechanism for transferring a workpiece from the Stepping point A to the point B using the robot hand...
  • Page 370 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State 2. Transfer mechanism Start Left limit X004 X026 (4) Rightward Y003 Zero point (8) Leftward Y004 Upper limit...
  • Page 371 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State 3. Assignment of mode selection inputs For using IST instruction, it is necessary to assign inputs having consecutive device numbers as shown below for mode inputs.
  • Page 372 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State 4. Special auxiliary relay (M) for IST instruction Auxiliary relays (M) used in IST instruction are classified into two types. Some auxiliary relays are automatically controlled by IST instruction itself according to the situation.
  • Page 373 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State 5. Program example 1) Circuit diagram In the sequence circuit shown below, all areas except shaded areas are standard. Program the shaded areas according to the contents of control.
  • Page 374 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State c) Zero return operation mode Programming is not required when the zero return operation mode is not provided. It is necessary to set M8043 (zero return complete) to ON before starting the automatic mode.
  • Page 375 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State d) Automatic mode (stepping operation mode, cycle operation mode or continuous operation mode) SFC block State number Initial state for...
  • Page 376 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.1 FNC 60 – IST / Initial State 6. List program The list program for the circuit diagram shown on the previous page is as shown below: 0 LD X 004 32 STL S...
  • Page 377: Fnc 61 - Ser / Search A Data Stack

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.2 FNC 61 – SER / Search a Data Stack 14.2 FNC 61 – SER / Search a Data Stack Outline This instruction searches same data, maximum value and minimum value in the data table.
  • Page 378 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.2 FNC 61 – SER / Search a Data Stack 2) Operation example a) Example of search result table configuration and data Search result Comparison Searched data...
  • Page 379 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.2 FNC 61 – SER / Search a Data Stack 2) Operation example a) Example of search result table configuration and data Search result Searched data Comparison...
  • Page 380: Fnc 62 - Absd / Absolute Drum Sequencer

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.3 FNC 62 – ABSD / Absolute Drum Sequencer 14.3 FNC 62 – ABSD / Absolute Drum Sequencer Outline This instruction creates many output patterns corresponding to the current value of a counter. 1.
  • Page 381 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.3 FNC 62 – ABSD / Absolute Drum Sequencer 1) Write in advance the following data to +2n+1 by a transfer instruction: Rising point Falling point Target output...
  • Page 382 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.3 FNC 62 – ABSD / Absolute Drum Sequencer 1) Write in advance the following data to [ +1] to [ +4n+2, +4n+3] using a transfer instruction:...
  • Page 383: Fnc 63 - Incd / Incremental Drum Sequencer

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.4 FNC 63 – INCD / Incremental Drum Sequencer 14.4 FNC 63 – INCD / Incremental Drum Sequencer Outline This instruction creates many output patterns using a pair of counters. 1.
  • Page 384 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.4 FNC 63 – INCD / Incremental Drum Sequencer Operation X000 FNC 63 D300 INCD M8013 K9999 1 sec clock 1) Timing chart Suppose that the following data is written in advance by a transfer instruction: Device storing data...
  • Page 385: Fnc 64 - Ttmr / Teaching Timer

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.5 FNC 64 – TTMR / Teaching Timer 14.5 FNC 64 – TTMR / Teaching Timer Outline This instruction measures the period of time in which TTMR instruction is ON. Use this instruction to adjust the set value of a timer by a pushbutton switch.
  • Page 386 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.5 FNC 64 – TTMR / Teaching Timer Cautions 1. When the command contact turns OFF The current value [ +1] of the pressing and holding time is reset, and the teaching time will not change any more.
  • Page 387: Fnc 65 - Stmr / Special Timer

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.6 FNC 65 – STMR / Special Timer 14.6 FNC 65 – STMR / Special Timer Outline This instruction can easily make off-delay timers, one-shot timers and flicker timers. 1.
  • Page 388 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.6 FNC 65 – STMR / Special Timer Command input Flicker In the program shown below which turns OFF STMR instruction at the NC contact of +3, flicker is output +1 and +3 are occupied.
  • Page 389: Fnc 66 - Alt / Alternate State

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.7 FNC 66 – ALT / Alternate State 14.7 FNC 66 – ALT / Alternate State Outline This instruction alternates a bit device (from ON to OFF or from OFF to ON) when the input turns ON. 1.
  • Page 390 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.7 FNC 66 – ALT / Alternate State Caution 1. When using (continuous operation type) ALT instruction • When ALT instruction is used, a specified bit device is alternated in every operation cycle. For alternating a specified device by turning ON or OFF the command, use the (pulse operation type) ALTP instruction, or use a pulse operation type command contact such as LDP.
  • Page 391: Fnc 67 - Ramp / Ramp Variable Value

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.8 FNC 67 – RAMP / Ramp Variable Value 14.8 FNC 67 – RAMP / Ramp Variable Value Outline This instruction obtains the data which changes between the start value (initial value) and the end value (target value) in specified "n"...
  • Page 392 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.8 FNC 67 – RAMP / Ramp Variable Value • If the command input is set to OFF in the middle of operation, execution is paused. (The present data value stored in is held, and the number of scans stored in +1 is cleared.) When the command...
  • Page 393: Fnc 68 - Rotc / Rotary Table Control

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.9 FNC 68 – ROTC / Rotary Table Control 14.9 FNC 68 – ROTC / Rotary Table Control Outline This instruction is suitable for efficient control of the rotary table for putting/taking a product into/out of the rotary table.
  • Page 394 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.9 FNC 68 – ROTC / Rotary Table Control Explanation of function and operation 1. 16-bit operation (ROTC) The table rotation is controlled by "m2", so that a product can be efficiently put into or taken out of the rotary table divided into "m1"...
  • Page 395 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.9 FNC 68 – ROTC / Rotary Table Control Operation conditions The conditions required to use this instruction are as shown in the example below. 1) Rotation detection signal: X →...
  • Page 396: Fnc 69 - Sort / Sort Tabulated Data

    Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.10 FNC 69 – SORT / SORT Tabulated Data 14.10 FNC 69 – SORT / SORT Tabulated Data Outline This instruction sorts a data table consisting of data (lines) and group data (columns) based on a specified group data (column) in units of line in descending order.
  • Page 397 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.10 FNC 69 – SORT / SORT Tabulated Data • The data table configuration is explained in an example in which the sorting source data table has 3 lines and 4 columns (m1 = K3, m2 = K4).
  • Page 398 Series Programmable Controllers 14 Handy Instruction – FNC 60 to FNC 69 Programming Manual - Basic & Applied Instruction Edition 14.10 FNC 69 – SORT / SORT Tabulated Data 2) Sorting result when the instruction is executed with "n = K3 (column No. 3)" Column No.
  • Page 399 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15. External FX I/O Device – FNC 70 to FNC 79 FNC 70 to FNC 79 provide instructions to receive data from and send data to external devices mainly using inputs and outputs in PLCs.
  • Page 400: Fnc 70 - Tky / Ten Key Input

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.1 FNC 70 – TKY / Ten Key Input 15.1 FNC 70 – TKY / Ten Key Input Outline This instruction sets data to timers and counters through inputs of the ten keys from "0"...
  • Page 401 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.1 FNC 70 – TKY / Ten Key Input 2) Key pressing information [ +10] - For the key pressing information, +9 turn ON or OFF according to the pressed keys.
  • Page 402 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.1 FNC 70 – TKY / Ten Key Input 3. Number of occupied device 1) Ten bit devices are occupied from for connecting the ten keys.
  • Page 403 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.1 FNC 70 – TKY / Ten Key Input 3. Timing chart X000 1) When the ten keys are pressed in the order "[1] → [2] → [3] → [4]"...
  • Page 404: Fnc 71 - Hky / Hexadecimal Input

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.2 FNC 71 – HKY / Hexadecimal Input 15.2 FNC 71 – HKY / Hexadecimal Input Outline This instruction sets input data such as numeric value (0 to 9) and operation condition (function keys A to F) using 16 keys from 0 to F.
  • Page 405 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.2 FNC 71 – HKY / Hexadecimal Input 1) Input of a numeric value through keys 0 to 9: - When an input value is larger than "9999", it overflows from the most significant digit.
  • Page 406 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.2 FNC 71 – HKY / Hexadecimal Input 2. 32-bit operation (DHKY) Hexadecimal data input through the keys 0 to F is written as it is to [ 1) Input of a numeric value through the keys 0 to F: [ - When an input value is larger than "FFFFFFFF", it overflows from the most significant digit.
  • Page 407 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.2 FNC 71 – HKY / Hexadecimal Input Program example X004 FNC 71 X000 Y000 The connection diagram below shows an example of the FX -32MT-LT (sink input/sink output).
  • Page 408: Fnc 72 - Dsw / Digital Switch (Thumbwheel Input)

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.3 FNC 72 – DSW / Digital Switch (Thumbwheel Input) 15.3 FNC 72 – DSW / Digital Switch (Thumbwheel Input) Outline This instruction reads the set value of digital switches.
  • Page 409 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.3 FNC 72 – DSW / Digital Switch (Thumbwheel Input) 2) Specification of the number of sets ("n") - When using one set of 4 digits [n = k1] A 4-digit BCD digital switch connected to +3 is read in turn by the strobe signal...
  • Page 410 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.3 FNC 72 – DSW / Digital Switch (Thumbwheel Input) 2. Connection diagram This connection diagram shows an example of the FX -32MT-LT (sink input/sink output).
  • Page 411: Fnc 73 - Segd / Seven Segment Decoder

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.4 FNC 73 – SEGD / Seven Segment Decoder 15.4 FNC 73 – SEGD / Seven Segment Decoder Outline This instruction decodes data, and turns the seven-segment display unit (1 digit) ON.
  • Page 412 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.4 FNC 73 – SEGD / Seven Segment Decoder 2. Seven-segment decoding table Seven-segment Display Hexadeci- configuration data mal num- B8 B7 B6 B5 B4 B3 B2 B1 B0 −...
  • Page 413: Fnc 74 - Segl / Seven Segment With Latch

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.5 FNC 74 – SEGL / Seven Segment With Latch 15.5 FNC 74 – SEGL / Seven Segment With Latch Outline This instruction controls one or two sets of 4-digit seven-segment display units having the latch function.
  • Page 414 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.5 FNC 74 – SEGL / Seven Segment With Latch 3) Example of connecting one seven-segment display unit The connection diagram below shows an example of the FX -32MT-LT (sink input/sink output).
  • Page 415 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.5 FNC 74 – SEGL / Seven Segment With Latch Related devices → For the instruction execution complete flag use method, refer to Subsection 6.5.2. Device Name Description...
  • Page 416: How To Select A Seven-Segment Display Unit

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.5 FNC 74 – SEGL / Seven Segment With Latch 15.5.1 How to select a seven-segment display unit When selecting a seven-segment display unit based on its electrical characteristics, refer to the manual below: →...
  • Page 417 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.5 FNC 74 – SEGL / Seven Segment With Latch 3. Confirming the logic of the seven-segment display unit 1) Data input Logic Negative logic...
  • Page 418: Fnc 75 - Arws / Arrow Switch

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.6 FNC 75 – ARWS / Arrow Switch 15.6 FNC 75 – ARWS / Arrow Switch Outline This instruction inputs data through arrow switches used for shifting the digit and incrementing/decrementing the numeric value in each digit.
  • Page 419 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.6 FNC 75 – ARWS / Arrow Switch Explanation of function and operation Four arrow switches are connected to the inputs +3, a seven-segment display unit having the BCD decoder is connected to the outputs +7, and a numeric value is input to...
  • Page 420 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.6 FNC 75 – ARWS / Arrow Switch 4) Operation of the switches for changing data in each digit ( In a digit specified by a digit selection switch described above, data is changed as follows: - When the increment input turns ON change in the way "0 →...
  • Page 421 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.6 FNC 75 – ARWS / Arrow Switch Program example 1. When changing the timer number and displaying the current value 1) Specifying the timer number using a 3-digit digital switch X010 X011...
  • Page 422 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.6 FNC 75 – ARWS / Arrow Switch Program D300 D301 Practical timer circuit D399 X000 Decrement X001 Increment X002 Higher digit...
  • Page 423: Fnc 76 - Asc / Ascii Code Data Input

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.7 FNC 76 – ASC / ASCII Code Data Input 15.7 FNC 76 – ASC / ASCII Code Data Input Outline This instruction converts a half-width alphanumeric character string into ASCII codes.
  • Page 424 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.7 FNC 76 – ASC / ASCII Code Data Input Extension function When M8161 is set to ON for making the extension function valid, a half-width alphanumeric character string specified in is converted into ASCII codes, and transferred in turn only to low-order 8 bits (1 byte) of Command...
  • Page 425: Fnc 77 - Pr / Print (Ascii Code)

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.8 FNC 77 – PR / Print (ASCII Code) 15.8 FNC 77 – PR / Print (ASCII Code) Outline This instruction outputs ASCII code data to outputs (Y) in parallel.
  • Page 426 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.8 FNC 77 – PR / Print (ASCII Code) 2. Timing chart Command input +7 Data : Scan time (ms) +8 Strobe +9 Execution flag Types of output signals...
  • Page 427 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.8 FNC 77 – PR / Print (ASCII Code) 2) Timing chart (while M8027 is ON) Operation is started when X000 turns ON from OFF. Drive input X000 Head Last...
  • Page 428: Fnc 78 - From / Read From A Special Function Block

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.9 FNC 78 – FROM / Read From A Special Function Block 15.9 FNC 78 – FROM / Read From A Special Function Block Outline This instruction reads the contents of buffer memories (BMF) in a special extension unit/block attached to a PLC.
  • Page 429 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.9 FNC 78 – FROM / Read From A Special Function Block 2. 32-bit operation (DFROM and DFROMP) Special extension unit/block (BFM) →...
  • Page 430 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.9 FNC 78 – FROM / Read From A Special Function Block Program examples In programs, the contents of buffer memories (BFMs) in special extension unit/blocks are read (transferred) to data registers (D), extension registers (R) or auxiliary relays (M) with digit specification using an applied instruction such as FROM, MOV and BMOV.
  • Page 431: Common Items Between From Instruction And To Instruction (Details)

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.9 FNC 78 – FROM / Read From A Special Function Block 15.9.1 Common items between FROM instruction and TO instruction (details) Contents specified by operands 1.
  • Page 432 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.9 FNC 78 – FROM / Read From A Special Function Block Acceptance of interrupts while FROM/TO instruction is executed (M8028) 1.
  • Page 433: Fnc 79 - To / Write To A Special Function Block

    Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.10 FNC 79 – TO / Write To A Special Function Block 15.10 FNC 79 – TO / Write To A Special Function Block Outline This instruction writes data from a PLC to buffer memories (BFM) in a special extension unit/block.
  • Page 434 Series Programmable Controllers 15 External FX I/O Device – FNC 70 to FNC 79 Programming Manual - Basic & Applied Instruction Edition 15.10 FNC 79 – TO / Write To A Special Function Block 2. 32-bit operation (DTO and DTOP) PLC (word device) →...
  • Page 435 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16. External FX Device – FNC 80 to FNC 89 FNC 80 to FNC 89 provide control instructions for special adapters mainly connected to serial ports. PID control loop instruction is included in this group.
  • Page 436: Fnc 80 - Rs / Serial Communication

    Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.1 FNC 80 – RS / Serial Communication 16.1 FNC 80 – RS / Serial Communication Outline This instruction sends and receives data in no-protocol communication by way of a serial port (only the ch1) in accordance with RS-232C or RS-485 provided in the main unit.
  • Page 437 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.1 FNC 80 – RS / Serial Communication Related devices → For detailed explanation, refer to the Communication Control Manual. Device Name Device...
  • Page 438: Fnc 81 - Prun / Parallel Run (Octal Mode)

    Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.2 FNC 81 – PRUN / Parallel Run (Octal Mode) 16.2 FNC 81 – PRUN / Parallel Run (Octal Mode) Outline This instruction handles the device number of with digit specification and the device number of...
  • Page 439 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.2 FNC 81 – PRUN / Parallel Run (Octal Mode) Decimal bit device → Octal bit device Command input FNC 81 M0 to M7, M10 to M17 →...
  • Page 440: Fnc 82 - Asci / Hexadecimal To Ascii Conversion

    Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.3 FNC 82 – ASCI / Hexadecimal to ASCII Conversion 16.3 FNC 82 – ASCI / Hexadecimal to ASCII Conversion Outline This instruction converts hexadecimal codes into ASCII codes.
  • Page 441 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.3 FNC 82 – ASCI / Hexadecimal to ASCII Conversion 2. 16-bit conversion mode (while M8161 is OFF) (M8161 is also used for the RS, HEX, CCD and CRC instructions.) Each digit of hexadecimal data stored in and later is converted into an ASCII code, and transferred to...
  • Page 442 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.3 FNC 82 – ASCI / Hexadecimal to ASCII Conversion 3. 8-bit conversion mode (while M8161 is ON) (M8161 is used also for the RS, HEX, CCD and CRC instructions.) Each digit of hexadecimal data stored in and later is converted into an ASCII code, and transferred to low-order 8 bits of each device...
  • Page 443: Fnc 83 - Hex / Ascii To Hexadecimal Conversion

    Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.4 FNC 83 – HEX / ASCII to Hexadecimal Conversion 16.4 FNC 83 – HEX / ASCII to Hexadecimal Conversion Outline This instruction converts ASCII codes into hexadecimal codes.
  • Page 444 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.4 FNC 83 – HEX / ASCII to Hexadecimal Conversion 2. 16-bit conversion mode (while M8161 is OFF) (M8161 is used also for the RS, ASCI, CCD, and CRC instructions.) Each ASCII code stored in high-order 8 bits and low-order 8 bits of devices and later is converted into a hexadecimal code, and transferred to devices...
  • Page 445 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.4 FNC 83 – HEX / ASCII to Hexadecimal Conversion 3. 8-bit conversion mode (while M8161 is ON) (M8161 is used also for the RS, ASCI, CCD and CRC instructions.) Each ASCII code stored in low-order 8 bits of each device and later is converted into a hexadecimal code, and transferred to device...
  • Page 446: Fnc 84 - Ccd / Check Code

    Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.5 FNC 84 – CCD / Check Code 16.5 FNC 84 – CCD / Check Code Outline This instruction calculates the horizontal parity value and sum check value in the error check methods used in communication.
  • Page 447 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.5 FNC 84 – CCD / Check Code 2. 16-bit conversion mode (while M8161 is OFF) (M8161 is also used for the RS, ASCI, HEX and CRC instructions.) With regard to "n"...
  • Page 448 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.5 FNC 84 – CCD / Check Code 3. 8-bit conversion mode (while M8161 is ON) (M8161 is used also for the RS, ASCI, HEX and CRC instructions.) With regard to "n"...
  • Page 449: Fnc 87 - Rs2 / Serial Communication 2

    Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.6 FNC 87 – RS2 / Serial Communication 2 16.6 FNC 87 – RS2 / Serial Communication 2 Outline This instruction sends and receives data in no-protocol communication by way of serial ports in accordance with RS-232C or RS-485 provided in the main unit.
  • Page 450 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.6 FNC 87 – RS2 / Serial Communication 2 Related devices → For detailed explanation, refer to the Data Communication Edition. Device Device Name...
  • Page 451: Fnc 88 - Pid / Pid Control Loop

    Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.7 FNC 88 – PID / PID Control Loop 16.7 FNC 88 – PID / PID Control Loop Outline This instruction executes PID control which changes the output value according to the input variation.
  • Page 452 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.7 FNC 88 – PID / PID Control Loop 2. Set items Number of Set item Description occupied points •...
  • Page 453 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.7 FNC 88 – PID / PID Control Loop Set item Contents of setting Remarks When "0" is set, the derivative operation is Derivative time (TD) 0 to 32767 (×...
  • Page 454 Series Programmable Controllers 16 External FX Device – FNC 80 to FNC 89 Programming Manual - Basic & Applied Instruction Edition 16.7 FNC 88 – PID / PID Control Loop Cautions 1. When using two or more PID instructions Two or more PID instructions can be executed at the same time. (There is no limitation in the number of loops.) However, make sure that and other operands specified in each instruction are different to each other.
  • Page 455: Data Transfer 2 - Fnc100 To Fnc109

    Series Programmable Controllers 17 Data Transfer 2 – FNC100 to FNC109 Programming Manual - Basic & Applied Instruction Edition 17. Data Transfer 2 – FNC100 to FNC109 FNC100 to FNC109 provide an instruction for executing complicated processing for fundamental applied instructions and for executing special processing.
  • Page 456: Fnc102 - Zpush/Batch Store Of Index Register

    Series Programmable Controllers 17 Data Transfer 2 – FNC100 to FNC109 Programming Manual - Basic & Applied Instruction Edition 17.1 FNC102 – ZPUSH/Batch Store of Index Register 17.1 FNC102 – ZPUSH/Batch Store of Index Register Outline This instruction temporarily batch-stores the present value of the index registers V0 to V7 and Z0 to Z7. For restoring the present value of temporarily batch-stored index registers, use ZPOP (FNC103) instruction.
  • Page 457 Series Programmable Controllers 17 Data Transfer 2 – FNC100 to FNC109 Programming Manual - Basic & Applied Instruction Edition 17.1 FNC102 – ZPUSH/Batch Store of Index Register 4) The figure below shows the data structure batch-stored in and later. · When the nest structure is not used ·...
  • Page 458 Series Programmable Controllers 17 Data Transfer 2 – FNC100 to FNC109 Programming Manual - Basic & Applied Instruction Edition 17.1 FNC102 – ZPUSH/Batch Store of Index Register Program example In the program shown below, the contents of the index registers Z0 to Z7 and V0 to V7 before execution of subroutine program are batch-stored in D0 and later when index registers are used in the subroutine after the pointer P0.
  • Page 459: Fnc103 - Zpop/Batch Pop Of Index Register

    Series Programmable Controllers 17 Data Transfer 2 – FNC100 to FNC109 Programming Manual - Basic & Applied Instruction Edition 17.2 FNC103 – ZPOP/Batch POP of Index Register 17.2 FNC103 – ZPOP/Batch POP of Index Register Outline This instruction restores the contents of the index registers V0 to V7 and Z0 to Z8 which were batch-stored temporarily by ZPUSH (FNC102) instruction.
  • Page 460: Floating Point - Fnc110 To Fnc139

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18. Floating Point – FNC110 to FNC139 FNC110 to FNC119, FNC120 to FNC129 and FNC130 to FNC139 provide instructions for conversion, comparison, arithmetic operations, square root operation, trigonometry, etc. for floating point operations. FNC No.
  • Page 461 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition FNC No. Mnemonic Symbol Function Reference Section Floating Point to Integer Conversion 18.17 Section Floating Point Sine 18.18 Section Floating Point Cosine 18.19 Section Floating Point Tangent...
  • Page 462: Fnc110 - Ecmp / Floating Point Compare

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.1 FNC110 – ECMP / Floating Point Compare 18.1 FNC110 – ECMP / Floating Point Compare Outline This instruction compares two data (binary floating point), and outputs the result (larger, same or smaller) to three single bit devices.
  • Page 463 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.1 FNC110 – ECMP / Floating Point Compare • When a constant (K or H) is specified as [ ] or [ ], it is automatically converted from binary into binary floating point (real number) when the instruction is executed.
  • Page 464: Fnc111 - Ezcp / Floating Point Zone Compare

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.2 FNC111 – EZCP / Floating Point Zone Compare 18.2 FNC111 – EZCP / Floating Point Zone Compare Outline This instruction compares data (binary floating point) with two values (one zone), and outputs the comparison result to three single bit devices.
  • Page 465 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.2 FNC111 – EZCP / Floating Point Zone Compare Explanation of function and operation 1. 32-bit operation (DEZCP and DEZCPP) The comparison values [ ], [ ] are compared with the comparison source ] as floating point data, and either bit among...
  • Page 466: Fnc112 - Emov / Floating Point Move

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.3 FNC112 – EMOV / Floating Point Move 18.3 FNC112 – EMOV / Floating Point Move Outline This instruction transfers binary floating point data. →...
  • Page 467: Fnc116 - Estr / Floating Point To Character String Conversion

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.4 FNC116 – ESTR / Floating Point to Character String Conversion 18.4 FNC116 – ESTR / Floating Point to Character String Conversion Outline This instruction converts binary floating point data into a character string (ASCII codes) having a specified number of digits.
  • Page 468 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.4 FNC116 – ESTR / Floating Point to Character String Conversion 2. In the case of decimal point format Decimal point b8 b7 format Total number of ASCII code in "(specified...
  • Page 469 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.4 FNC116 – ESTR / Floating Point to Character String Conversion - When the number of digits of the decimal part is set to any value other than "0", "2EH (.)" is automatically stored in "specified number of digits of decimal part + 1"th digit.
  • Page 470 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.4 FNC116 – ESTR / Floating Point to Character String Conversion • The number of digits of the decimal part which can be specified by +2 is from 0 to 7.
  • Page 471 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.4 FNC116 – ESTR / Floating Point to Character String Conversion - The exponent part is fixed to 2 digits. When the exponent part is 1 digit, "30H (0)" is stored after the sign of the exponent part. Total number of digits (12) Fixed to 2 digits.
  • Page 472 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.4 FNC116 – ESTR / Floating Point to Character String Conversion Program examples 1) In the program example shown below, the contents (binary floating point data) of R0 and R1 are converted according to the contents specified by R10 to R12, and then stored to D0 and later when X000 turns ON X000...
  • Page 473: Fnc117 - Eval / Character String To Floating Point Conversion

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.5 FNC117 – EVAL / Character String to Floating Point Conversion 18.5 FNC117 – EVAL / Character String to Floating Point Conversion Outline This instruction converts a character string (ASCII codes) into binary floating point data.
  • Page 474 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.5 FNC117 – EVAL / Character String to Floating Point Conversion a) In the case of decimal point format b8 b7 31H(1) 2DH(-) 30H(0) 2EH(.)
  • Page 475 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.5 FNC117 – EVAL / Character String to Floating Point Conversion b) In the case of exponent format b8 b7 20H(space) 2DH(-) 2EH(-) 31H(1) 35H(5)
  • Page 476 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.5 FNC117 – EVAL / Character String to Floating Point Conversion Related devices → For the use methods of the zero, borrow and carry flags, refer to Subsection 6.5.2. Description Device Name...
  • Page 477 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.5 FNC117 – EVAL / Character String to Floating Point Conversion 2) In the program shown below, a character string stored in D10 and later is converted into binary floating point, and stored to D100 and D101 when X000 turns ON X000 FNC117...
  • Page 478: Fnc118 - Ebcd / Floating Point To Scientific Notation Conversion

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.6 FNC118 – EBCD / Floating Point to Scientific Notation Conversion 18.6 FNC118 – EBCD / Floating Point to Scientific Notation Conversion Outline This instruction converts binary floating point into scientific notation.
  • Page 479 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.6 FNC118 – EBCD / Floating Point to Scientific Notation Conversion Caution 1. Handling of floating point In floating point operations, all data is handled in binary floating point. Because binary floating point is difficult to understand (requiring a dedicated monitoring method), it is converted into scientific notation so that monitoring can be easily executed by peripheral equipment.
  • Page 480: Fnc119 - Ebin / Scientific Notation To Floating Point Conversion

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.7 FNC119 – EBIN / Scientific Notation to Floating Point Conversion 18.7 FNC119 – EBIN / Scientific Notation to Floating Point Conversion Outline This instruction converts scientific notation stored in devices into binary floating point.
  • Page 481 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.7 FNC119 – EBIN / Scientific Notation to Floating Point Conversion Program example By DEBIN instruction, a numeric value containing the decimal point can be directly converted into binary floating point.
  • Page 482: Fnc120 - Eadd / Floating Point Addition

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.8 FNC120 – EADD / Floating Point Addition 18.8 FNC120 – EADD / Floating Point Addition Outline This instruction executes addition of two binary floating point data. →...
  • Page 483: Fnc121 - Esub / Floating Point Subtraction

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.9 FNC121 – ESUB / Floating Point Subtraction 18.9 FNC121 – ESUB / Floating Point Subtraction Outline This instruction executes subtraction of two binary floating point data. →...
  • Page 484: Fnc122 - Emul / Floating Point Multiplication

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.10 FNC122 – EMUL / Floating Point Multiplication 18.10 FNC122 – EMUL / Floating Point Multiplication Outline This instruction executes multiplication of two binary floating point data. →...
  • Page 485: Fnc123 - Ediv / Floating Point Division

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.11 FNC123 – EDIV / Floating Point Division 18.11 FNC123 – EDIV / Floating Point Division Outline This instruction executes division of two binary floating point. →...
  • Page 486: Fnc124 - Exp / Floating Point Exponent

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.12 FNC124 – EXP / Floating Point Exponent 18.12 FNC124 – EXP / Floating Point Exponent Outline This instruction executes exponential operation whose base is "e (2.71828)". →...
  • Page 487 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.12 FNC124 – EXP / Floating Point Exponent Program example In the program example shown below, the exponential operation is executed for a value set in the 2-digit BCD format in X020 to X027, and the operation result is stored in the binary floating point format to D0 and D1 when X000 turns ON.
  • Page 488: Fnc125 - Loge / Floating Point Natural Logarithm

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.13 FNC125 – LOGE / Floating Point Natural Logarithm 18.13 FNC125 – LOGE / Floating Point Natural Logarithm Outline This instruction executes the natural logarithm operation. →...
  • Page 489 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.13 FNC125 – LOGE / Floating Point Natural Logarithm Program example In the program example shown below, natural logarithm of "10" set in D50 is calculated, and stored to D30 and D31 when X000 turns ON.
  • Page 490: Fnc126 - Log10 / Floating Point Common Logarithm

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.14 FNC126 – LOG10 / Floating Point Common Logarithm 18.14 FNC126 – LOG10 / Floating Point Common Logarithm Outline This instruction executes the common logarithm operation. →...
  • Page 491 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.14 FNC126 – LOG10 / Floating Point Common Logarithm Program example In the program example shown below, common logarithm of "15" set in D50 is calculated, and stored to D30 and D31 when X000 turns ON.
  • Page 492: Fnc127 - Esqr / Floating Point Square Root

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.15 FNC127 – ESQR / Floating Point Square Root 18.15 FNC127 – ESQR / Floating Point Square Root Outline This instruction obtains the square root of binary floating point. →...
  • Page 493: Fnc128 - Eneg / Floating Point Negation

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.16 FNC128 – ENEG / Floating Point Negation 18.16 FNC128 – ENEG / Floating Point Negation Outline This instruction inverts the sign of binary floating point (real number) data. →...
  • Page 494: Fnc129 - Int / Floating Point To Integer Conversion

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.17 FNC129 – INT / Floating Point to Integer Conversion 18.17 FNC129 – INT / Floating Point to Integer Conversion Outline This instruction converts binary floating point data into a binary integer which is a normal data format inside PLCs (binary floating point →...
  • Page 495 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.17 FNC129 – INT / Floating Point to Integer Conversion Related devices → For the methods of zero, borrow and carry flags, refer to Subsection 6.5.2. Device Name Description...
  • Page 496: Fnc130 - Sin / Floating Point Sine

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.18 FNC130 – SIN / Floating Point Sine 18.18 FNC130 – SIN / Floating Point Sine Outline This instruction obtains the sine value of an angle (in radian). →...
  • Page 497 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.18 FNC130 – SIN / Floating Point Sine Program example X001 FNC 12 (K45) → (D 0) K 45 MOVP An angle is selected by the inputs X002 X001 and X002.
  • Page 498: Fnc131 - Cos / Floating Point Cosine

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.19 FNC131 – COS / Floating Point Cosine 18.19 FNC131 – COS / Floating Point Cosine Outline This instruction obtains the cosine value of an angle (in radian). →...
  • Page 499: Fnc132 - Tan / Floating Point Tangent

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.20 FNC132 – TAN / Floating Point Tangent 18.20 FNC132 – TAN / Floating Point Tangent Outline This instruction obtains the tangent value of an angle (in radian). →...
  • Page 500: Fnc133 - Asin / Floating Point Arc Sine

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.21 FNC133 – ASIN / Floating Point Arc Sine 18.21 FNC133 – ASIN / Floating Point Arc Sine Outline −1 This instruction executes the SIN (arc sine) operation.
  • Page 501 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.21 FNC133 – ASIN / Floating Point Arc Sine Program example −1 In the program example shown below, the SIN value of data (binary floating point) stored in D0 and D1 is calculated, and the angle is output in 4-digit BCD to Y040 to Y057 when X000 turns ON.
  • Page 502: Fnc134 - Acos / Floating Point Arc Cosine

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.22 FNC134 – ACOS / Floating Point Arc Cosine 18.22 FNC134 – ACOS / Floating Point Arc Cosine Outline −1 This instruction executes the COS (arc cosine) operation.
  • Page 503 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.22 FNC134 – ACOS / Floating Point Arc Cosine Program example −1 In the program example shown below, the COS value of data (binary floating point) stored in D0 and D1 is calculated, and the angle is output in 4-digit BCD to Y040 to Y057 when X000 turns ON.
  • Page 504: Fnc135 - Atan / Floating Point Arc Tangent

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.23 FNC135 – ATAN / Floating Point Arc Tangent 18.23 FNC135 – ATAN / Floating Point Arc Tangent Outline −1 This instruction executes the TAN (arc tangent) operation.
  • Page 505 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.23 FNC135 – ATAN / Floating Point Arc Tangent Program example −1 In the program example shown below, the TAN value of data (binary floating point) stored in D0 and D1 is calculated, and the angle is output in 4-digit BCD to Y040 to Y057 when X000 turns ON.
  • Page 506: Fnc136 - Rad / Floating Point Degree To Radian Conversion

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.24 FNC136 – RAD / Floating Point Degree to Radian Conversion 18.24 FNC136 – RAD / Floating Point Degree to Radian Conversion Outline This instruction converts a value in degree into a value in radian.
  • Page 507 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.24 FNC136 – RAD / Floating Point Degree to Radian Conversion Program example In the program example shown below, a 4-digit BCD value set in degree in X020 to X037 is converted into a binary floating point value in radian, and stored to D20 and D21 when X000 turns ON.
  • Page 508: Fnc137 - Deg / Floating Point Radian To Degree Conversion

    Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.25 FNC137 – DEG / Floating Point Radian to Degree Conversion 18.25 FNC137 – DEG / Floating Point Radian to Degree Conversion Outline This instruction converts a value in radians into a value in degree.
  • Page 509 Series Programmable Controllers 18 Floating Point – FNC110 to FNC139 Programming Manual - Basic & Applied Instruction Edition 18.25 FNC137 – DEG / Floating Point Radian to Degree Conversion Program example In the program example shown below, a binary floating point value set in radian in D20 and D21 is converted into a BCD value in degree, and stored to Y040 and Y057 when X000 turns ON.
  • Page 510: Data Operation 2 - Fnc140 To Fnc149

    Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19. Data Operation 2 – FNC140 to FNC149 FNC140 to FNC149 provide an instruction for executing complicated processing for fundamental applied instructions and for executing special processing.
  • Page 511: Fnc140 - Wsum / Sum Of Word Data

    Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.1 FNC140 – WSUM / Sum of Word Data 19.1 FNC140 – WSUM / Sum of Word Data Outline This instruction calculates the sum of consecutive 16-bit or 32-bit data. When calculating the addition data (sum value) in units of byte (8 bits), use CCD (FNC 84) instruction.
  • Page 512 Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.1 FNC140 – WSUM / Sum of Word Data 2. 32-bit operation (DWSUM and DWSUMP) The sum of "n" 32-bit data starting from [ ] is stored as 64-bit data in [ Command input...
  • Page 513: Fnc141 - Wtob / Word To Byte

    Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.2 FNC141 – WTOB / WORD to BYTE 19.2 FNC141 – WTOB / WORD to BYTE Outline This instruction separates consecutive 16-bit data in units of byte (8 bits). 1.
  • Page 514 Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.2 FNC141 – WTOB / WORD to BYTE 3) When "n" is an odd number, only the low-order byte (8 bits) of the final one among the separation source devices is regarded as the target data as shown in the figure below.
  • Page 515: Fnc142 - Btow / Byte To Word

    Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.3 FNC142 – BTOW / BYTE to WORD 19.3 FNC142 – BTOW / BYTE to WORD Outline This instruction combines the low-order 8 bits (low-order byte) of consecutive 16-bit data. 1.
  • Page 516 Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.3 FNC142 – BTOW / BYTE to WORD 3) When "n" is an odd number, "H00" is stored in the high-order byte (8 bits) of the final one among the combination result destination devices as shown below.
  • Page 517 Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.3 FNC142 – BTOW / BYTE to WORD Program example In the program shown below, the low-order byte (8 bits) data stored in D20 to D25 is combined, and stored in D10 to D12.
  • Page 518: Fnc143 - Uni / 4-Bit Linking Of Word Data

    Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.4 FNC143 – UNI / 4-bit Linking of Word Data 19.4 FNC143 – UNI / 4-bit Linking of Word Data Outline This instruction combines the low-order 4 bits of consecutive 16-bit data.
  • Page 519 Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.4 FNC143 – UNI / 4-bit Linking of Word Data 3) In the case of "1 ≤ n ≤ 3", the high-order {4 × (4-n)} bits of are set to "0".
  • Page 520: Fnc144 - Dis / 4-Bit Grouping Of Word Data

    Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.5 FNC144 – DIS / 4-bit Grouping of Word Data 19.5 FNC144 – DIS / 4-bit Grouping of Word Data Outline This instruction separates 16-bit data in units of 4 bits.
  • Page 521 Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.5 FNC144 – DIS / 4-bit Grouping of Word Data Errors An operation error occurs in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
  • Page 522: Fnc147 - Swap / Byte Swap

    Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.6 FNC147 – SWAP / Byte Swap 19.6 FNC147 – SWAP / Byte Swap Outline This instruction swaps high-order 8 bits and low-order 8 bits of a word device. 1.
  • Page 523: Fnc149 - Sort2 / Sort Tabulated Data 2

    Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.7 FNC149 – SORT2 / Sort Tabulated Data 2 19.7 FNC149 – SORT2 / Sort Tabulated Data 2 Outline This instruction sorts a data table consisting of data (lines) and group data (columns) based on a specified group data (column) in units of line in the ascending or descending order.
  • Page 524 Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.7 FNC149 – SORT2 / Sort Tabulated Data 2 The data table configuration is explained in an example in which the sorting source data table has 3 lines and 4 columns (m1 = K3, m2 = K4).
  • Page 525 Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.7 FNC149 – SORT2 / Sort Tabulated Data 2 3. Operation examples When the instruction is executed with "n = K2 (column No. 2)" and "n = K3 (column No. 3)" for the following sorting source data, the operations shown below result.
  • Page 526 Series Programmable Controllers 19 Data Operation 2 – FNC140 to FNC149 Programming Manual - Basic & Applied Instruction Edition 19.7 FNC149 – SORT2 / Sort Tabulated Data 2 Related devices → For the instruction execution complete flag use method, refer to Subsection 6.5.2. Device Name Description...
  • Page 527: Positioning Control - Fnc150 To Fnc159

    Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20. Positioning Control – FNC150 to FNC159 FNC150 to FNC159 provide positioning instructions using the pulse output function built in PLCs. → For the details, refer to the Positioning Control Edition. FNC No.
  • Page 528: Fnc150 - Dszr / Dog Search Zero Return

    Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.1 FNC150 – DSZR / Dog Search Zero Return 20.1 FNC150 – DSZR / Dog Search Zero Return Outline This instruction executes zero return, and aligns the mechanical position with a present value register inside the PLC.
  • Page 529 Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.1 FNC150 – DSZR / Dog Search Zero Return 4 : When not using a special high speed output adapter in an FX PLC or when using an FX PLC, specify a transistor output number.
  • Page 530: Fnc151 - Dvit / Interrupt Positioning

    Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.2 FNC151 – DVIT / Interrupt Positioning 20.2 FNC151 – DVIT / Interrupt Positioning Outline This instruction executes one-speed interrupt constant quantity feed. →...
  • Page 531 Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.2 FNC151 – DVIT / Interrupt Positioning 2 : When not using a special high speed output adapter in an FX PLC or when using an FX PLC, specify a transistor output number.
  • Page 532: Fnc152 - Tbl / Batch Data Positioning Mode

    Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.3 FNC152 – TBL / Batch Data Positioning Mode 20.3 FNC152 – TBL / Batch Data Positioning Mode Outline This instruction executes one specified table operation set in the data table in advance in GX Developer (Ver.8.23Z or later).
  • Page 533: Fnc155 - Abs / Absolute Current Value Read

    FNC155 – ABS / Absolute Current Value Read Outline This instruction reads the absolute position (ABS) data when the Mitsubishi servo amplifier (equipped with the absolute position detection function) MR-H, MR-J2(S), or MR-J3 is connected. The data is converted into a pulse when being read.
  • Page 534: Fnc156 - Zrn / Zero Return

    Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.5 FNC156 – ZRN / Zero Return 20.5 FNC156 – ZRN / Zero Return Outline This instruction executes zero return, and aligns the mechanical position with a present value register inside the PLC.
  • Page 535 Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.5 FNC156 – ZRN / Zero Return Explanation of function and operation Command input FNC156 Caution on write during RUN Avoid write during RUN while the ZRN (FNC156) instruction is executed (that is, while pulses are output). Note that the PLC decelerates and stops pulse output if write during RUN is executed to a circuit block including the FNC156 instruction while pulses are output.
  • Page 536: Fnc157 - Plsv / Variable Speed Pulse Output

    Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.6 FNC157 – PLSV / Variable Speed Pulse Output 20.6 FNC157 – PLSV / Variable Speed Pulse Output Outline This instruction outputs variable speed pulses with an assigned rotation direction. →...
  • Page 537 Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.6 FNC157 – PLSV / Variable Speed Pulse Output Explanation of function and operation Command input FNC157 PLSV Caution on write during RUN Avoid write during RUN while PLSV (FNC157) instruction is executed (that is, while pulses are output).
  • Page 538: Fnc158 - Drvi / Drive To Increment

    Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.7 FNC158 – DRVI / Drive to Increment 20.7 FNC158 – DRVI / Drive to Increment Outline This instruction executes one-speed positioning by incremental drive. The movement distance from the present position can be specified with the positive or negative sign.
  • Page 539 Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.7 FNC158 – DRVI / Drive to Increment 2 : When not using a special high speed output adapter in an FX PLC or when using an FX PLC, specify a transistor output number.
  • Page 540: Fnc159 - Drva / Drive To Absolute

    Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.8 FNC159 – DRVA / Drive to Absolute 20.8 FNC159 – DRVA / Drive to Absolute Outline This instruction executes one-speed positioning by absolute drive. The movement distance from the zero point can be specified.
  • Page 541 Series Programmable Controllers 20 Positioning Control – FNC150 to FNC159 Programming Manual - Basic & Applied Instruction Edition 20.8 FNC159 – DRVA / Drive to Absolute 2 : When not using a special high speed output adapter in an FX PLC or when using an FX PLC, specify a transistor output number.
  • Page 542: Real Time Clock Control - Fnc160 To Fnc169

    Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21. Real Time Clock Control – FNC160 to FNC169 FNC160 to FNC169 provide operation and comparison instructions for the time data. These instructions can set the time of the real time clock built in a PLC, and converts the format of the time data.
  • Page 543: Fnc160 - Tcmp / Rtc Data Compare

    Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.1 FNC160 – TCMP / RTC Data Compare 21.1 FNC160 – TCMP / RTC Data Compare Outline This instruction compares the comparison time with the time data, and turns ON or OFF bit devices according to the comparison result.
  • Page 544 Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.1 FNC160 – TCMP / RTC Data Compare Explanation of function and operation 1. 16-bit operation (TCMP) The comparison time (hour, minute, and second) stored in , and is compared with the time data (hour, minute, and second) stored in...
  • Page 545: Fnc161 - Tzcp / Rtc Data Zone Compare

    Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.2 FNC161 – TZCP / RTC Data Zone Compare 21.2 FNC161 – TZCP / RTC Data Zone Compare Outline This instruction compares two comparison time (comparison time zone) with the time data, and turns ON or OFF the specified bit devices according to the comparison results.
  • Page 546 Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.2 FNC161 – TZCP / RTC Data Zone Compare Explanation of function and operation 1. 16-bit operation (TZCP) The lower limit and upper limit comparison time (hour, minute, and second) are compared with the time data (hour, minute, and second) stored in three devices +1, and +2.
  • Page 547 Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.2 FNC161 – TZCP / RTC Data Zone Compare Program example X000 FNC161 D 20 D 30 TZCP D20 (hour) D0 (hour) >...
  • Page 548: Fnc162 - Tadd / Rtc Data Addition

    Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.3 FNC162 – TADD / RTC Data Addition 21.3 FNC162 – TADD / RTC Data Addition Outline This instruction executes addition of two time data, and stores the addition result to word devices. 1.
  • Page 549 Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.3 FNC162 – TADD / RTC Data Addition Cautions 1) Number of occupied devices Three devices are occupied by respectively. Make sure that these devices are not used in other controls for the machine.
  • Page 550: Fnc163 - Tsub / Rtc Data Subtraction

    Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.4 FNC163 – TSUB / RTC Data Subtraction 21.4 FNC163 – TSUB / RTC Data Subtraction Outline This instruction executes subtraction of two time data, and stores the subtraction result to word devices. 1.
  • Page 551 Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.4 FNC163 – TSUB / RTC Data Subtraction Cautions 1) Number of occupied devices Three devices are occupied by respectively. Make sure that these devices are not used in other controls for the machine.
  • Page 552: Fnc164 - Htos / Hour To Second Conversion

    Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.5 FNC164 – HTOS / Hour to Second Conversion 21.5 FNC164 – HTOS / Hour to Second Conversion Outline This instruction converts the time data in units of "hour, minute, and second" into data in units of "second". 1.
  • Page 553 Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.5 FNC164 – HTOS / Hour to Second Conversion 2. 32-bit operation (DHTOS and DHTOSP) The time data (hour, minute, and second) stored in +1, and +2 is converted into data in units of "second", and stored to...
  • Page 554: Fnc165 - Stoh / Second To Hour Conversion

    Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.6 FNC165 – STOH / Second to Hour Conversion 21.6 FNC165 – STOH / Second to Hour Conversion Outline This instruction converts the time data in units of "second" into data in units of "hour, minute, and second". 1.
  • Page 555 Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.6 FNC165 – STOH / Second to Hour Conversion 2. 32-bit operation (DSTOH and DSTOHP) The time data in units of "second" stored in +1 and is converted into data in units of "hour, minute, and second", and stored to three devices...
  • Page 556: Fnc166 - Trd / Read Rtc Data

    Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.7 FNC166 – TRD / Read RTC data 21.7 FNC166 – TRD / Read RTC data Outline This instruction reads the clock data of the real time clock built in a PLC. 1.
  • Page 557: Fnc167 - Twr / Set Rtc Data

    Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.8 FNC167 – TWR / Set RTC data 21.8 FNC167 – TWR / Set RTC data Outline This instruction writes the clock data to the real time clock built in a PLC. 1.
  • Page 558 Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.8 FNC167 – TWR / Set RTC data - D8018 (year data) can be converted into the 4-digit mode. (Refer to the program example shown later.) Device Item Clock data...
  • Page 559 Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.8 FNC167 – TWR / Set RTC data Program example 1. Example of setting the clock data (time) In the program example shown below, the real time clock is set (to 15:20:30 on Tuesday, April 25, 2001). X000 FNC 12 Year (lower two digits)
  • Page 560: Fnc169 - Hour / Hour Meter

    Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.9 FNC169 – HOUR / Hour Meter 21.9 FNC169 – HOUR / Hour Meter Outline This instruction measures the ON time of the input contact in units of hour. 1.
  • Page 561 Series Programmable Controllers 21 Real Time Clock Control – FNC160 to FNC169 Programming Manual - Basic & Applied Instruction Edition 21.9 FNC169 – HOUR / Hour Meter 2. 32-bit operation Command input FNC169 DHOUR ] : Time after which is set to ON Specify the high-order side in +1, and the low-order side in ] : Current value in units of hour...
  • Page 562: External Device - Fnc170 To Fnc179

    Series Programmable Controllers 22 External Device – FNC170 to FNC179 Programming Manual - Basic & Applied Instruction Edition 22. External Device – FNC170 to FNC179 FNC170 to FNC179 provide conversion instructions for gray codes used in absolute type rotary encoders and instructions dedicated to analog blocks.
  • Page 563: Fnc170 - Gry / Decimal To Gray Code Conversion

    Series Programmable Controllers 22 External Device – FNC170 to FNC179 Programming Manual - Basic & Applied Instruction Edition 22.1 FNC170 – GRY / Decimal to Gray Code Conversion 22.1 FNC170 – GRY / Decimal to Gray Code Conversion Outline This instruction converts a binary value into a gray code, and transfers it. 1.
  • Page 564: Fnc171 - Gbin / Gray Code To Decimal Conversion

    Series Programmable Controllers 22 External Device – FNC170 to FNC179 Programming Manual - Basic & Applied Instruction Edition 22.2 FNC171 – GBIN / Gray Code to Decimal Conversion 22.2 FNC171 – GBIN / Gray Code to Decimal Conversion Outline This instruction converts a gray code into a binary value, and transfers it. 1.
  • Page 565: Fnc176 - Rd3A / Read Form Dedicated Analog Block

    Series Programmable Controllers 22 External Device – FNC170 to FNC179 Programming Manual - Basic & Applied Instruction Edition 22.3 FNC176 – RD3A / Read form Dedicated Analog Block 22.3 FNC176 – RD3A / Read form Dedicated Analog Block Outline This instruction reads an analog input value from the analog block FX -3A or FX -2AD.
  • Page 566: Fnc177 - Wr3A / Write To Dedicated Analog Block

    Series Programmable Controllers 22 External Device – FNC170 to FNC179 Programming Manual - Basic & Applied Instruction Edition 22.4 FNC177 – WR3A / Write to Dedicated Analog Block 22.4 FNC177 – WR3A / Write to Dedicated Analog Block Outline This instruction writes a digital value to the analog block FX -3A or FX -2DA.
  • Page 567: Introduction Of Alternate Instructions - Fnc180

    Series Programmable Controllers 23 Introduction of Alternate Instructions – FNC180 Programming Manual - Basic & Applied Instruction Edition 23.1 Instruction correspondence table 23. Introduction of Alternate Instructions – FNC180 23.1 Instruction correspondence table Outline EXTR instruction is provided for FX and FX PLCs.
  • Page 568 Series Programmable Controllers 23 Introduction of Alternate Instructions – FNC180 Programming Manual - Basic & Applied Instruction Edition 23.1 Instruction correspondence table MEMO...
  • Page 569: Others - Fnc181 To Fnc189

    Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24. Others – FNC181 to FNC189 FNC181 to FNC189 provide instructions for generating random numbers, executing CRC data operations, and processing data in high speed counter operations. FNC No.
  • Page 570: Fnc182 - Comrd / Read Device Comment Data

    Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.1 FNC182 – COMRD / Read Device Comment Data 24.1 FNC182 – COMRD / Read Device Comment Data Outline This instruction reads the comment data for devices registered (written) by programming software such as GX Developer.
  • Page 571 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.1 FNC182 – COMRD / Read Device Comment Data For example, when the comment of is "LineNo.1Start", it is stored in and later as shown below.
  • Page 572 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.1 FNC182 – COMRD / Read Device Comment Data Program example In the program shown below, the comment "Target Line A" set in D100 is stored in ASCII codes in D0 and later (when M8091 is OFF) when X010 is set to ON.
  • Page 573: Fnc184 - Rnd / Random Number Generation

    Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.2 FNC184 – RND / Random Number Generation 24.2 FNC184 – RND / Random Number Generation Outline This instruction generates random numbers. 1. Instruction format FNC 184 Mnemonic Operation Condition...
  • Page 574 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.2 FNC184 – RND / Random Number Generation Program example In the program example shown below, a random number is stored to D100 every time X010 turns ON. When the PLC mode switches from STOP to RUN, the time data converted into seconds and added by the value “(Year + Month) ×...
  • Page 575: Fnc186 - Duty / Timing Pulse Generation

    Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.3 FNC186 – DUTY / Timing Pulse Generation 24.3 FNC186 – DUTY / Timing Pulse Generation Outline This instruction generates the timing signal whose one cycle corresponds to the specified number of operation cycles.
  • Page 576 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.3 FNC186 – DUTY / Timing Pulse Generation 3) The counted number of scans is stored in either one among D8330 to D8334 in accordance with the timing clock output destination device The counted number of scans stored in either one among D8330 to D8334 is reset when the counted value reaches "n1+n2"...
  • Page 577 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.3 FNC186 – DUTY / Timing Pulse Generation Program example In the program shown below, when X000 is set to ON, M8330 is set to ON for 1 scan and OFF for 3 scans. X000 FNC186 M8330...
  • Page 578: Fnc188 - Crc / Cyclic Redundancy Check

    Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.4 FNC188 – CRC / Cyclic Redundancy Check 24.4 FNC188 – CRC / Cyclic Redundancy Check Outline This CRC instruction calculates the CRC (cyclic redundancy check) value which is an error check method used in communication.
  • Page 579 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.4 FNC188 – CRC / Cyclic Redundancy Check 16-bit conversion mode (while M8161 is OFF) In this mode, the operation is executed for high-order 8 bits (1 byte) and low-order 8 bits (1 byte) of a device specified in The operation result is stored to one 16-bit device specified in M8000...
  • Page 580 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.4 FNC188 – CRC / Cyclic Redundancy Check 8-bit conversion mode (while M8161 is ON) In this mode, the operation is executed only for low-order 8 bits (low-order 1 byte) of a device specified by With regard to the operation result, low-order 8 bits (1 byte) are stored to a device specified by , and high-order 8 bits (1 byte) are stored to a device specified by...
  • Page 581 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.4 FNC188 – CRC / Cyclic Redundancy Check Errors An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
  • Page 582: Fnc189 - Hcmov / High Speed Counter Move

    Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.5 FNC189 – HCMOV / High Speed Counter Move 24.5 FNC189 – HCMOV / High Speed Counter Move Outline This instruction transfers the current value of a specified high speed counter or ring counter. The function of this instruction varies depending on the version.
  • Page 583 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.5 FNC189 – HCMOV / High Speed Counter Move 2. High speed counter current value update timing and the effect of DHCMOV instruction 1) High speed counter current value update timing When a pulse is input to the input terminal for a high speed counter (C235 to C255), the high speed counter executes up counting or down counting.
  • Page 584 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.5 FNC189 – HCMOV / High Speed Counter Move Cautions When programming DHCMOV instruction in an input interrupt program, the following points should be observed.
  • Page 585 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.5 FNC189 – HCMOV / High Speed Counter Move 5) While input interrupts are disabled by the interrupt disable flags (shown in the table below), DHCMOV instructions are not executed because corresponding input interrupt programs are not executed.
  • Page 586 Series Programmable Controllers 24 Others – FNC181 to FNC189 Programming Manual - Basic & Applied Instruction Edition 24.5 FNC189 – HCMOV / High Speed Counter Move 2. Program example 2 In the program example shown below, the current value of C235 is transferred to D201 and D200, and the current value of C235 is cleared when X001 turns ON from OFF.
  • Page 587: Block Data Operation - Fnc190 To Fnc199

    Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25. Block Data Operation – FNC190 to FNC199 FNC190 to FNC199 provide instructions for rotating and shifting bit data and word data in specified directions. FNC No.
  • Page 588: Fnc192 - Bk+ / Block Data Addition

    Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.1 FNC192 – BK+ / Block Data Addition 25.1 FNC192 – BK+ / Block Data Addition Outline This instruction adds binary block data. 1.
  • Page 589 Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.1 FNC192 – BK+ / Block Data Addition 2. 32-bit operation (DBK+ and DBK+P) Command input FNC192 DBK+P 1) "2n" 32-bit binary data starting from [ ] are added to "2n"...
  • Page 590 Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.1 FNC192 – BK+ / Block Data Addition Errors An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
  • Page 591: Nfc193 - Bk- / Block Data Subtraction

    Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.2 NFC193 – BK– / Block Data Subtraction 25.2 NFC193 – BK– / Block Data Subtraction Outline This instruction subtracts binary block data. 1.
  • Page 592 Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.2 NFC193 – BK– / Block Data Subtraction 2. 32-bit operation (DBK- and DBK-P) Command input FNC193 DBK-P 1) "2n" 32-bit binary data starting from [ ] are subtracted from "2n"...
  • Page 593 Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.2 NFC193 – BK– / Block Data Subtraction Errors An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
  • Page 594: Fnc194~199 - Bkcmp=, >, <, < >, <=, >= / Block Data Compare

    Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare 25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare Outline These instructions compare block data in the comparison condition set in each instruction.
  • Page 595 Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare Explanation of function and operation 1. 16-b16-bit operation (BKCMP=, >, <, <>, <=, >= / BKCMP=P, >P, <P, <>P, <=P, and >=P) 1) "n"...
  • Page 596 Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare 2. 32-bit operation (DBKCMP=, >, <, <>, <=, >= / DBKCMP=P, >P, <P, <>P, <=P, and >=P) 1) "n"...
  • Page 597 Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare Caution • When using 32-bit high speed counters For comparing 32-bit high speed counters (C200 to C255), make sure to use an instruction for 32-bit operation (DBKCMP=, DBKCMP>, DBKCMP<, DBKCMP<>, DBKCMP<=, or DBKCMP>=).
  • Page 598 Series Programmable Controllers 25 Block Data Operation – FNC190 to FNC199 Programming Manual - Basic & Applied Instruction Edition 25.3 FNC194~199 – BKCMP=, >, <, < >, <=, >= / Block Data Compare Program example 1) In the program shown below, four 16-bit binary data starting from D100 are compared with four 16-bit binary data starting from D200 by BKCMP= (FNC194) instruction when X020 is set to ON, and the comparison result is stored in four points starting from M10.
  • Page 599: Character String Control - Fnc200 To Fnc209

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26. Character String Control – FNC200 to FNC209 FNC200 to FNC209 provide instructions for controlling character strings such as linking character string data, replacing some characters and extracting character string data.
  • Page 600: Fnc200 - Str / Bin To Character String Conversion

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.1 FNC200 – STR / BIN to Character String Conversion 26.1 FNC200 – STR / BIN to Character String Conversion Outline This instruction converts binary data into a character string (ASCII codes).
  • Page 601 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.1 FNC200 – STR / BIN to Character String Conversion Explanation of function and operation 1. 16-bit operation (STR and STRP) 1) All digits (specified by ) of 16-bit binary data stored in are converted into ASCII codes while...
  • Page 602 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.1 FNC200 – STR / BIN to Character String Conversion - When the number of all digits stored in Number of all digits excluding the sign and decimal Number of...
  • Page 603 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.1 FNC200 – STR / BIN to Character String Conversion 5) Converted character string data is stored in and later as shown below. - As the sign, "space"...
  • Page 604 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.1 FNC200 – STR / BIN to Character String Conversion • When the relationship between the number of all digits stored in and the number of digits of the decimal part stored in +1 does not satisfy the following (error code: K6706)
  • Page 605: Fnc201 - Val / Character String To Bin Conversion

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.2 FNC201 – VAL / Character String to BIN Conversion 26.2 FNC201 – VAL / Character String to BIN Conversion Outline This instruction converts a character string (ASCII codes) into binary data.
  • Page 606 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.2 FNC201 – VAL / Character String to BIN Conversion For example, when a character string "-123.45" is specified in and later, the conversion result is stored in as shown below.
  • Page 607 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.2 FNC201 – VAL / Character String to BIN Conversion 2. 32-bit operation (DVAL and DVALP) 1) A character string stored in and later is converted into 32-bit binary data.
  • Page 608 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.2 FNC201 – VAL / Character String to BIN Conversion stores 32-bit binary data converted from a character string with the decimal point ignored. In the character string located after , "space"...
  • Page 609 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.2 FNC201 – VAL / Character String to BIN Conversion Program example 1) In the program below, the character string data stored in D20 to D22 is regarded as an integer value, converted into a binary value, and stored in D0 when X000 is set to ON.
  • Page 610: Fnc202 - $+ / Link Character Strings

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.3 FNC202 – $+ / Link Character Strings 26.3 FNC202 – $+ / Link Character Strings Outline This instruction links a character string to another character string. →...
  • Page 611 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.3 FNC202 – $+ / Link Character Strings Explanation of function and operation 1. 16-bit operation ($+ and $+P) The character string data stored in and later is linked to the end of the character string data stored in and later, and the linked data is stored to devices starting from A character string stored in...
  • Page 612 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.3 FNC202 – $+ / Link Character Strings Program example In the program example shown below, a character string stored in D10 to D12 (abcde) is linked to the character string “ABCD”, and the result is stored to D100 and later when X000 turns ON.
  • Page 613: Fnc203 - Len / Character String Length Detection

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.4 FNC203 – LEN / Character String Length Detection 26.4 FNC203 – LEN / Character String Length Detection Outline This instruction detects the number of characters (bytes) of a specified character string. →...
  • Page 614 FNC 18 string is output to the display K4Y40 unit. b15---b8 b7----b0 49H(I) 4DH(M) Conversion Y057 to Y040 into BCD 53H(S) 54H(T) 42H(B) 55H(U) BCD value 53H(S) 49H(I) “MITSUBISHI” (Characters 49H(I) 48H(H) “ ABC..” after “00H” are 41H(A) ignored.) 43H(C) 42H(B)
  • Page 615: Fnc204 - Right / Extracting Character String Data From The Right

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.5 FNC204 – RIGHT / Extracting Character String Data from the Right 26.5 FNC204 – RIGHT / Extracting Character String Data from the Right Outline This instruction extracts a specified number of characters from the right end of a specified character string.
  • Page 616 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.5 FNC204 – RIGHT / Extracting Character String Data from the Right Explanation of function and operation 1. 16-bit operation (RIGHT and RIGHTP) “n”...
  • Page 617 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.5 FNC204 – RIGHT / Extracting Character String Data from the Right Errors An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
  • Page 618: Fnc205 - Left / Extracting Character String Data From The Left

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.6 FNC205 – LEFT / Extracting Character String Data from the Left 26.6 FNC205 – LEFT / Extracting Character String Data from the Left Outline This instruction extracts a specified number of characters from the left end of a specified character string.
  • Page 619 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.6 FNC205 – LEFT / Extracting Character String Data from the Left Explanation of function and operation 1. 16-bit operation (LEFT and LEFTP) “n”...
  • Page 620 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.6 FNC205 – LEFT / Extracting Character String Data from the Left Errors An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
  • Page 621: Fnc206 - Midr / Random Selection Of Character Strings

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.7 FNC206 – MIDR / Random Selection of Character Strings 26.7 FNC206 – MIDR / Random Selection of Character Strings Outline This instruction extracts a specified number of characters from arbitrary positions of a specified character string.
  • Page 622 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.7 FNC206 – MIDR / Random Selection of Character Strings Explanation of function and operation 1. 16-bit operation (MIDR and MIDRP) "...
  • Page 623 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.7 FNC206 – MIDR / Random Selection of Character Strings Cautions When handling character codes other than ASCII codes, note the following contents: •...
  • Page 624: Fnc207 - Midw / Random Replacement Of Character Strings

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.8 FNC207 – MIDW / Random Replacement of Character Strings 26.8 FNC207 – MIDW / Random Replacement of Character Strings Outline This instruction replaces the characters in arbitrary positions inside a designeted character string with a specified character string.
  • Page 625 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.8 FNC207 – MIDW / Random Replacement of Character Strings Explanation of function and operation 1. 16-bit operation (MIDW and MIDWP) “...
  • Page 626 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.8 FNC207 – MIDW / Random Replacement of Character Strings • When +1 (the number of characters to be extracted) is “-1”, the entire character string stored in and later is stored to and later.
  • Page 627 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.8 FNC207 – MIDW / Random Replacement of Character Strings Program example In the program example shown below, 4 characters are extracted from the character string data stored in D0 and later, and stored to the 3rd character (from the left end) and later for the character string data stored in D100 and later when X010 turns ON.
  • Page 628: Fnc208 - Instr / Character String Search

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.9 FNC208 – INSTR / Character string search 26.9 FNC208 – INSTR / Character string search Outline This instruction searches a specified character string within another character string. 1.
  • Page 629 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.9 FNC208 – INSTR / Character string search 4) A character string can be directly specified in the character string Character string to be searched Character string b8 b7 "AB"...
  • Page 630: Fnc209 - $Mov / Character String Transfer

    Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.10 FNC209 – $MOV / Character String Transfer 26.10 FNC209 – $MOV / Character String Transfer Outline This instruction transfers character string data. →...
  • Page 631 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.10 FNC209 – $MOV / Character String Transfer Even if the device range “ +n” storing the transfer source character string data overlaps the device range “...
  • Page 632 Series Programmable Controllers 26 Character String Control – FNC200 to FNC209 Programming Manual - Basic & Applied Instruction Edition 26.10 FNC209 – $MOV / Character String Transfer Program example In the program example shown below, character string data stored in D10 to D12 is transferred to D20 through D22.
  • Page 633: Data Operation 3 - Fnc210 To Fnc219

    Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27. Data Operation 3 – FNC210 to FNC219 FNC210 to FNC219 provide instructions for reading last-in data and controlling leftward/rightward shift instructions with carry.
  • Page 634: Fnc210 - Fdel / Deleting Data From Tables

    Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.1 FNC210 – FDEL / Deleting Data from Tables 27.1 FNC210 – FDEL / Deleting Data from Tables Outline This instruction deletes an arbitrary data from a data table. 1.
  • Page 635 Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.1 FNC210 – FDEL / Deleting Data from Tables Related instruction Instruction Description FINS(FNC211) Inserts data into an arbitrary position in a data table. Errors An operation error is caused in the following cases;...
  • Page 636: Fnc211 - Fins / Inserting Data To Tables

    Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.2 FNC211 – FINS / Inserting Data to Tables 27.2 FNC211 – FINS / Inserting Data to Tables Outline This instruction inserts data into an arbitrary position in a data table. 1.
  • Page 637 Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.2 FNC211 – FINS / Inserting Data to Tables Related instruction Instruction Description FDEL(FNC210) Deletes an arbitrary data from a data table. Errors An operation error is caused in the following cases;...
  • Page 638: Fnc212 - Pop / Shift Last Data Read [Lifo Control]

    Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.3 FNC212 – POP / Shift Last Data Read [LIFO Control] 27.3 FNC212 – POP / Shift Last Data Read [LIFO Control] Outline This instruction reads the last data written by shift write (SFWR) instruction for last-in first-out control.
  • Page 639 Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.3 FNC212 – POP / Shift Last Data Read [LIFO Control] • Subtract “1” from the value of the pointer data Data area Pointer +n-1...
  • Page 640 Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.3 FNC212 – POP / Shift Last Data Read [LIFO Control] Program example Among values stored in D20 input first to D101 to D106, the last value input is stored to D10, and “1” is subtracted from the number of stored data (pointer D100) every time X000 turns ON.
  • Page 641: Fnc213 - Sfr / Bit Shift Right With Carry

    Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.4 FNC213 – SFR / Bit Shift Right with Carry 27.4 FNC213 – SFR / Bit Shift Right with Carry Outline This instruction shifts 16 bits stored in a word device rightward by “n”...
  • Page 642 Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.4 FNC213 – SFR / Bit Shift Right with Carry When a bit device is specified by digit specification 16 bits are shifted according to the data of bit specification. Command input FNC213...
  • Page 643: Fnc214 - Sfl / Bit Shift Left With Carry

    Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.5 FNC214 – SFL / Bit Shift Left with Carry 27.5 FNC214 – SFL / Bit Shift Left with Carry Outline This instruction shifts 16 bits stored in a word device leftward by “n”...
  • Page 644 Series Programmable Controllers 27 Data Operation 3 – FNC210 to FNC219 Programming Manual - Basic & Applied Instruction Edition 27.5 FNC214 – SFL / Bit Shift Left with Carry When a bit device is specified by digit specification 16 bits are shifted according to the data of bit specification. Command input FNC214...
  • Page 645: Data Comparison - Fnc220 To Fnc249

    Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition 28. Data Comparison – FNC220 to FNC249 FNC220 to FNC249 provide data comparison instructions which can be handled as contact symbols in programming such as LD, AND and OR.
  • Page 646 Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition FNC No. Mnemonic Symbol Function Reference − − Section OR Compare 28.3 Section OR> OR Compare > 28.3 OR> Section OR< OR Compare <...
  • Page 647: Fnc224~230 - Ld =, >, <, <>, <=, >= / Data Comparison

    Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition 28.1 FNC224~230 – LD =, >, <, <>, <=, >= / Data Comparison 28.1 FNC224~230 – LD =, >, <, <>, <=, >= / Data Comparison Outline These instructions compare numeric values, and set a contact to ON when the condition agrees so that an operation is started.
  • Page 648 Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition 28.1 FNC224~230 – LD =, >, <, <>, <=, >= / Data Comparison Explanation of function and operation FNC224 to FNC230 are data comparison instructions connected to bus lines. The contents of are compared with the contents of in the binary format, and a contact becomes...
  • Page 649 Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition 28.1 FNC224~230 – LD =, >, <, <>, <=, >= / Data Comparison Program example When the current value of the counter C10 is "200", Y010 FNC224 K200 is driven.
  • Page 650: Fnc232~238 - And=, >, <, < >, <=, >= / Data Comparison

    Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition 28.2 FNC232~238 – AND=, >, <, < >, <=, >= / Data Comparison 28.2 FNC232~238 – AND=, >, <, < >, <=, >= / Data Comparison Outline These instructions compare numeric values, and set a contact to ON when the condition agrees.
  • Page 651 Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition 28.2 FNC232~238 – AND=, >, <, < >, <=, >= / Data Comparison Explanation of function and operation FNC232 to FNC237 are data comparison instructions connected to other contacts in series. The contents of are compared with the contents of in the binary format, and a contact becomes...
  • Page 652 Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition 28.2 FNC232~238 – AND=, >, <, < >, <=, >= / Data Comparison Program example X000 When X000 is ON and the current value of the counter FNC232 K200 C10 is "200"...
  • Page 653: Fnc240~246 - Or=, >, <, < >, <=, >= / Data Comparison

    Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition 28.3 FNC240~246 – OR=, >, <, < >, <=, >= / Data Comparison 28.3 FNC240~246 – OR=, >, <, < >, <=, >= / Data Comparison Outline These instructions compare numeric values, and set a contact to ON when the condition agrees.
  • Page 654 Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition 28.3 FNC240~246 – OR=, >, <, < >, <=, >= / Data Comparison Explanation of function and operation FNC240 to 246 are data comparison instructions connected to other contacts in parallel. The contents of are compared with the contents of in the binary format, and a contact becomes...
  • Page 655 Series Programmable Controllers 28 Data Comparison – FNC220 to FNC249 Programming Manual - Basic & Applied Instruction Edition 28.3 FNC240~246 – OR=, >, <, < >, <=, >= / Data Comparison Program example X001 When X001 turns ON or when the current value of the Y000 counter C10 is "200", Y000 is driven.
  • Page 656: Data Table Operation - Fnc250 To Fnc269

    Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29. Data Table Operation – FNC250 to FNC269 FNC No. Mnemonic Symbol Function Reference − − − − − − − −...
  • Page 657: Fnc256 - Limit / Limit Control

    Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.1 FNC256 – LIMIT / Limit Control 29.1 FNC256 – LIMIT / Limit Control Outline This instruction provides the upper limit value and lower limit value for an input numeric value, and controls the output value using these limit values.
  • Page 658 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.1 FNC256 – LIMIT / Limit Control Explanation of function and operation 1. 16-bit operation (LIMIT and LIMITP) Depending on how the input value (16-bit binary value) specified by compares to the range between , the output value is controlled.
  • Page 659 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.1 FNC256 – LIMIT / Limit Control 2. 32-bit operation (DLIMIT and DLIMITP) Depending on how the input value (32-bit binary value) specified by [ ] compares to the range between [ ] and [...
  • Page 660 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.1 FNC256 – LIMIT / Limit Control Program examples 1. Program example 1 In the program example shown below, the BCD data set in X020 to X037 is controlled by the limit values “500” to “5000”, and the controlled value is output to D1 when X000 turns ON.
  • Page 661: Fnc257 - Band / Dead Band Control

    Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.2 FNC257 – BAND / Dead Band Control 29.2 FNC257 – BAND / Dead Band Control Outline This instruction provides the upper limit value and lower limit value of the dead band for an input numeric value, and controls the output value using these limit values.
  • Page 662 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.2 FNC257 – BAND / Dead Band Control 2. 32-bit operation (DBAND and DBANDP) Depending on how the input value (32-bit binary value) specified by [ ] compares to the dead band range between [ ] and [...
  • Page 663 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.2 FNC257 – BAND / Dead Band Control Program examples 1. Program example 1 In the program example shown below, the BCD data set in X020 to X037 is controlled by the dead band from “-1000”...
  • Page 664: Fnc258 - Zone / Zone Control

    Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.3 FNC258 – ZONE / Zone Control 29.3 FNC258 – ZONE / Zone Control Outline Depending on how the input value compares to positive or negative, the output value is controlled by the bias value specified.
  • Page 665 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.3 FNC258 – ZONE / Zone Control 2. 32-bit operation (DZONE and DZONEP) The bias value specified by [ ] or [ ] is added to the input value specified by ], and output to the device specified by [ The bias value is added as shown below:...
  • Page 666 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.3 FNC258 – ZONE / Zone Control Program examples 1. Program example 1 In the program example shown below, the BCD data set in X020 to X037 is controlled by the zone from “-1000”...
  • Page 667: Fnc259 - Scl / Scaling (Coordinate By Point Data)

    Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.4 FNC259 – SCL / Scaling (Coordinate by Point Data) 29.4 FNC259 – SCL / Scaling (Coordinate by Point Data) Outline This instruction executes scaling of the input value using a specified data table, and outputs the result.
  • Page 668 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.4 FNC259 – SCL / Scaling (Coordinate by Point Data) Explanation of function and operation 1. 16-bit operation (SCL and SCLP) The input value specified in is processed by scaling for the specified conversion characteristics, and stored to a device number specified in...
  • Page 669 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.4 FNC259 – SCL / Scaling (Coordinate by Point Data) 3. Setting the conversion table for scaling The conversion table for scaling is set based on the data table stored in a device specified in [ ] and later.
  • Page 670 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.4 FNC259 – SCL / Scaling (Coordinate by Point Data) Setting the conversion setting data table for scaling Setting device and setting contents Set item When R0 is specified Remarks...
  • Page 671 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.4 FNC259 – SCL / Scaling (Coordinate by Point Data) Program example In the program example shown below, the value input to D0 is processed by scaling based on the conversion table for scaling set in R0 and later, and output to D10.
  • Page 672: Fnc260 - Dabin / Decimal Ascii To Bin Conversion

    Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.5 FNC260 – DABIN / Decimal ASCII to BIN Conversion 29.5 FNC260 – DABIN / Decimal ASCII to BIN Conversion Outline This instruction converts numeric data expressed in decimal ASCII codes (30H to 39H) into binary data.
  • Page 673 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.5 FNC260 – DABIN / Decimal ASCII to BIN Conversion 2. 32-bit operation (DDABIN and DDABINP) 1) Data stored in +5 expressed in decimal ASCII codes (30H to 39H) is converted into 32-bit binary data, and stored in [ Command input...
  • Page 674 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.5 FNC260 – DABIN / Decimal ASCII to BIN Conversion Program example In the program below, the sign and decimal ASCII codes in five digits stored in D20 to D22 are converted into a binary value when X000 is set to ON, and stored in D0.
  • Page 675: Fnc261 - Binda / Bin To Decimal Ascii Conversion

    Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.6 FNC261 – BINDA / BIN to Decimal ASCII Conversion 29.6 FNC261 – BINDA / BIN to Decimal ASCII Conversion Outline This instruction converts binary data into decimal ASCII codes (30H to 39H).
  • Page 676 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.6 FNC261 – BINDA / BIN to Decimal ASCII Conversion b) "20H (space)" is stored for "0" on the left side of the effective digits (zero suppression). 0 0 3 2 5 Effective digits +3 is set as follows depending on the ON/OFF status of M8091.
  • Page 677 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.6 FNC261 – BINDA / BIN to Decimal ASCII Conversion Related devices Device Name Description • In the case of 16-bit operation - When M8091 is OFF, +3 is set to "00H (NULL)."...
  • Page 678: Fnc269 - Scl2 / Scaling 2 (Coordinate By X/Y Data)

    Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data) 29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data) Outline This instruction executes scaling of the input value using a specified data table, and outputs the result.
  • Page 679 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data) Explanation of function and operation 1. 16-bit operation (SCL2 and SCL2P) The input value specified in is processed by scaling for the specified conversion characteristics, and stored to a device number specified in...
  • Page 680 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data) 3. Setting the conversion table for scaling The conversion table for scaling is set based on the data table stored in a device specified in [ ] and later.
  • Page 681 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data) Setting example of the conversion table for scaling A setting example for the 16-bit operation is shown below. For the 32-bit operation, set each item using 32-bit binary value.
  • Page 682 Series Programmable Controllers 29 Data Table Operation – FNC250 to FNC269 Programming Manual - Basic & Applied Instruction Edition 29.7 FNC269 – SCL2 / Scaling 2 (Coordinate by X/Y Data) Errors An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
  • Page 683 Series Programmable Controllers 30 External Device Communication (Inverter Communication) – FNC270 to FNC274 Programming Manual - Basic & Applied Instruction Edition 30. External Device Communication (Inverter Communication) – FNC270 to FNC274 FNC270 to FNC274 provide instructions for controlling operations and reading/writing parameters while two or more FREQROL inverters are connected.
  • Page 684: External Device Communication (Inverter Communication) - Fnc270 To Fnc274

    (having the communication function) Series general-purpose inverters Refer to the instruction code list shown on the next page. Refer to pages in the inverter manual on which the computer link function is explained in detail. Mitsubishi FREQROL-F700/A700 Series general-purpose inverters are supported in Ver.2.00 and later.
  • Page 685 Inverter models available in this instruction are added depending on the version as shown in the table below. Applicable version Item Outline of function Addition of applicable Mitsubishi FREQROL-F700/A700 Series general-purpose Ver.2.00 or later Ver.2.00 or later models inverters are supported.
  • Page 686: Fnc271 - Ivdr / Inverter Drive

    (having the communication function) Series general-purpose inverters Refer to the instruction code list shown on the next page. Refer to pages in the inverter manual on which the computer link function is explained in detail. Mitsubishi FREQROL-F700/A700 Series general-purpose inverters are supported in Ver.2.00 and later.
  • Page 687 Inverter models available in this instruction are added depending on the version as shown in the table below. Applicable version Item Outline of function Addition of applicable Mitsubishi FREQROL-F700/A700 Series general-purpose Ver.2.00 or later Ver.2.00 or later models inverters are supported.
  • Page 688: Fnc272 - Ivrd / Inverter Parameter Read

    , and output to Command input FNC272 IVRD Mitsubishi FREQROL-F700 /A700 /V500/F500/A500/E500/S500 (having the communication function) Series general-purpose inverters Mitsubishi FREQROL-F700/A700 Series general-purpose inverters are supported in Ver.2.00 and later.
  • Page 689 Inverter models available in this instruction are added depending on the version as shown in the table below. Applicable version Item Outline of function Addition of applicable Mitsubishi FREQROL-F700/A700 Series general-purpose Ver.2.00 or later Ver.2.00 or later models inverters are supported.
  • Page 690: Fnc273 - Ivwr / Inverter Parameter Write

    Command input FNC273 IVWR Mitsubishi FREQROL-F700 /A700 /V500/F500/A500/E500/S500 (having the communication function) Series general-purpose inverters Mitsubishi FREQROL-F700/A700 Series general-purpose inverters are supported in Ver.2.00 and later.
  • Page 691 Inverter models available in this instruction are added depending on the version as shown in the table below. Applicable version Item Outline of function Addition of applicable Mitsubishi FREQROL-F700/A700 Series general-purpose Ver.2.00 or later Ver.2.00 or later models inverters are supported.
  • Page 692: Fnc274 - Ivbwr / Inverter Parameter Block Write

    Series Programmable Controllers 30 External Device Communication (Inverter Communication) – FNC270 to FNC274 Programming Manual - Basic & Applied Instruction Edition 30.5 FNC274 – IVBWR / Inverter Parameter Block Write 30.5 FNC274 – IVBWR / Inverter Parameter Block Write Outline This instruction writes parameters of an inverter at one time using the computer link operation function of the inverter.
  • Page 693 -1”th parameter Set value Parameter number “ ”th parameter Set value Mitsubishi FREQROL-F700/A700 Series general-purpose inverters are supported in Ver.2.00 and later. 2. Related devices → For the instruction execution complete flag use method, refer to Subsection 6.5.2. Number Number...
  • Page 694 Inverter models available in this instruction are added depending on the version as shown in the table below. Applicable version Item Outline of function Addition of applicable Mitsubishi FREQROL-F700/A700 Series general-purpose Ver.2.00 or later Ver.2.00 or later models inverters are supported.
  • Page 695: Data Transfer 3 - Fnc275 To Fnc279

    Series Programmable Controllers 31 Data Transfer 3 – FNC275 to FNC279 Programming Manual - Basic & Applied Instruction Edition 31. Data Transfer 3 – FNC275 to FNC279 FNC275 to FNC279 provide instructions for executing more complicated processing for fundamental applied instructions and for special processing.
  • Page 696: Fnc278 - Rbfm / Divided Bfm Read

    Series Programmable Controllers 31 Data Transfer 3 – FNC275 to FNC279 Programming Manual - Basic & Applied Instruction Edition 31.1 FNC278 – RBFM / Divided BFM Read 31.1 FNC278 – RBFM / Divided BFM Read Outline This instruction reads data from continuous buffer memories (BFM) in a special function block/unit in several operation cycles in the time division method.
  • Page 697 Series Programmable Controllers 31 Data Transfer 3 – FNC275 to FNC279 Programming Manual - Basic & Applied Instruction Edition 31.1 FNC278 – RBFM / Divided BFM Read Explanation of function and operation 1. 16-bit operation (RBFM) A From the buffer memory (BFM) location # "m2" in the special function unit/block No."m1", the amount of memory specified by "n1"...
  • Page 698: Common Items Between Rbfm (Fnc278) Instruction And Wbfm (Fnc279) Instruction

    Series Programmable Controllers 31 Data Transfer 3 – FNC275 to FNC279 Programming Manual - Basic & Applied Instruction Edition 31.1 FNC278 – RBFM / Divided BFM Read 31.1.1 Common items between RBFM (FNC278) instruction and WBFM (FNC279) instruction Specification of unit number of special function block/unit and buffer memory →...
  • Page 699 Series Programmable Controllers 31 Data Transfer 3 – FNC275 to FNC279 Programming Manual - Basic & Applied Instruction Edition 31.1 FNC278 – RBFM / Divided BFM Read • Do not stop the driving of the instruction while it is being executed. If driving is stopped, the buffer memory (BFM) reading/writing processing is suspended, but the data acquired in the middle of reading/writing processing is stored in and later and buffer memories (BFM).
  • Page 700 Series Programmable Controllers 31 Data Transfer 3 – FNC275 to FNC279 Programming Manual - Basic & Applied Instruction Edition 31.1 FNC278 – RBFM / Divided BFM Read Program example In the example shown below, data is read/written from/to the buffer memories (BFM) in the unit No. 2 as follows: •...
  • Page 701: Fnc279 - Wbfm / Divided Bfm Write

    Series Programmable Controllers 31 Data Transfer 3 – FNC275 to FNC279 Programming Manual - Basic & Applied Instruction Edition 31.2 FNC279 – WBFM / Divided BFM Write 31.2 FNC279 – WBFM / Divided BFM Write Outline This instruction writes data to continuous buffer memories (BFM) in a special function block/unit in several operation cycles in the time division method.
  • Page 702 Series Programmable Controllers 31 Data Transfer 3 – FNC275 to FNC279 Programming Manual - Basic & Applied Instruction Edition 31.2 FNC279 – WBFM / Divided BFM Write Explanation of function and operation 1. 16-bit operation (WBFM) B From the buffer memory (BFM) location # "m2" in the special function block/unit No."m1", the amount of memory specified by "n1"...
  • Page 703: High Speed Processing 2 - Fnc280 To Fnc289

    Series Programmable Controllers 32 High Speed Processing 2 – FNC280 to FNC289 Programming Manual - Basic & Applied Instruction Edition 32. High Speed Processing 2 – FNC280 to FNC289 FNC No. Mnemonic Symbol Function Reference High Speed Counter Compare With Section HSCT HSCT...
  • Page 704: Fnc280 - Hsct / High Speed Counter Compare With Data Table

    Series Programmable Controllers 32 High Speed Processing 2 – FNC280 to FNC289 Programming Manual - Basic & Applied Instruction Edition 32.1 FNC280 – HSCT / High Speed Counter Compare With Data Table 32.1 FNC280 – HSCT / High Speed Counter Compare With Data Table Outline This instruction compares the current value of a high speed counter with preliminarily prepared data tables, and then sets or resets up to 16 output devices.
  • Page 705 Series Programmable Controllers 32 High Speed Processing 2 – FNC280 to FNC289 Programming Manual - Basic & Applied Instruction Edition 32.1 FNC280 – HSCT / High Speed Counter Compare With Data Table Table data used for comparison Operation output setting Operation output Table number Comparison data...
  • Page 706 Series Programmable Controllers 32 High Speed Processing 2 – FNC280 to FNC289 Programming Manual - Basic & Applied Instruction Edition 32.1 FNC280 – HSCT / High Speed Counter Compare With Data Table Operation example X000 FNC280 D200 C235 Y010 DHSCT M8000 FNC 54 K900...
  • Page 707 Series Programmable Controllers 32 High Speed Processing 2 – FNC280 to FNC289 Programming Manual - Basic & Applied Instruction Edition 32.1 FNC280 – HSCT / High Speed Counter Compare With Data Table Cautions • This instruction can be executed only once in a program. If this instruction is programmed twice or more, an operation error is caused by the second instruction and later, and the instruction will not be executed.
  • Page 708 Series Programmable Controllers 32 High Speed Processing 2 – FNC280 to FNC289 Programming Manual - Basic & Applied Instruction Edition 32.1 FNC280 – HSCT / High Speed Counter Compare With Data Table Program example In the program example shown below, the value input to D0 is compared with the comparison table data set in R0 and later, and then a specified pattern is output to Y010 to Y013.
  • Page 709: Extension File Register Control - Fnc290 To Fnc299

    Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33. Extension File Register Control – FNC290 to FNC299 FNC No. Mnemonic Symbol Function Reference Section LOADR Load From ER LOADR 33.1 Section...
  • Page 710: Fnc290 - Loadr / Load From Er

    Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.1 FNC290 – LOADR / Load From ER 33.1 FNC290 – LOADR / Load From ER Outline This instruction reads the current values of extension file registers (ER) stored in a memory cassette (flash memory), and transfers them to extension registers (R) stored in the PLC's built-in RAM.
  • Page 711 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.1 FNC290 – LOADR / Load From ER Errors An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
  • Page 712: Fnc291 - Saver / Save To Er

    Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.2 FNC291 – SAVER / Save to ER 33.2 FNC291 – SAVER / Save to ER Outline This instruction writes the current values of extension registers (R) stored in the PLC's built-in RAM to extension file registers (ER) stored in a memory cassette (flash memory) in units of sector (2048 points).
  • Page 713 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.2 FNC291 – SAVER / Save to ER Extension registers (R) Extension file registers (ER) inside built-in RAM memory inside memory cassette Write (transfer) +2047...
  • Page 714 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.2 FNC291 – SAVER / Save to ER • Do not abort execution of this instruction in the middle of operation. If execution is aborted, unexpected data may be written to extension file registers.
  • Page 715 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.2 FNC291 – SAVER / Save to ER Errors An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
  • Page 716 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.2 FNC291 – SAVER / Save to ER Program examples 1) In the case of FX PLCs Ver. 1.30 or later and FX PLCs Ver.
  • Page 717 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.2 FNC291 – SAVER / Save to ER Setting data Setting backup data Extension file registers Extension registers (R) Number of (ER) already written Current...
  • Page 718 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.2 FNC291 – SAVER / Save to ER 2) In the case of FX PLCs former than Ver.1.30 In the program example shown below, the changed content settings of the extension registers R10 to R19 (sector 0) are reflected on extension file registers (ER) when X000 is set to ON.
  • Page 719 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.2 FNC291 – SAVER / Save to ER Setting data Setting backup data Setting data Extension file registers Extension registers (R) Unused extension registers (ER) Device number Current...
  • Page 720: Fnc292 - Initr / Initialize R And Er

    Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.3 FNC292 – INITR / Initialize R and ER 33.3 FNC292 – INITR / Initialize R and ER Outline This instruction initializes (to “HFFFF” <K-1>) extension registers (R) in the RAM built in a PLC and extension file registers in a memory cassette (flash memory) before data logging by LOGR (FNC293) instruction.
  • Page 721 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.3 FNC292 – INITR / Initialize R and ER The table below shows the head device number in each sector: Sector Head device Sector...
  • Page 722 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.3 FNC292 – INITR / Initialize R and ER Guideline of the watchdog timer set value A value acquired by the following procedure can be regarded as the guideline of the watchdog timer set value.
  • Page 723: Fnc293 - Logr / Logging R And Er

    Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.4 FNC293 – LOGR / Logging R and ER 33.4 FNC293 – LOGR / Logging R and ER Outline This instruction logs specified devices, and stores the logged data to extension registers in the RAM and extension file registers in a memory cassette.
  • Page 724 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.4 FNC293 – LOGR / Logging R and ER Logging data format Number of stored data Destination storing 1st logging data →...
  • Page 725 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.4 FNC293 – LOGR / Logging R and ER Cautions • LOGR instruction executes logging in each operation in the continuous operation type. When logging should be executed only once by one input, use the pulse operation type.
  • Page 726 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.4 FNC293 – LOGR / Logging R and ER 4) Change the current program inside the PLC to the program shown in “1. Cautions on writing data to a memory cassette”...
  • Page 727 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.4 FNC293 – LOGR / Logging R and ER Program example In the program example shown below, D1 and D2 are logged to the area from R2048 to R4095 every time X001 turns ON.
  • Page 728: Fnc294 - Rwer / Rewrite To Er

    Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.5 FNC294 – RWER / Rewrite to ER 33.5 FNC294 – RWER / Rewrite to ER Outline This instruction writes the current values of an arbitrary number of extension registers (R) in the PLC’s built-in RAM to extension file registers (ER) in a memory cassette (flash memory).
  • Page 729 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.5 FNC294 – RWER / Rewrite to ER Cautions 1. Cautions on writing data to a memory cassette Memory cassettes adopt flash memory. Note the following contents when writing data to extension file registers in a memory cassette with the FNC294 instruction.
  • Page 730 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.5 FNC294 – RWER / Rewrite to ER Data backup method When the contents of extension file registers (ER) and extension registers (R) should not be lost, back up the current values (data) of extension file registers (ER) and extension registers (R) in advance using the following procedure: 1) Set the PLC mode to STOP.
  • Page 731 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.5 FNC294 – RWER / Rewrite to ER Program example In the program example shown below, the contents of extension registers R10 to R19 (sector 0) used for setting data are reflected on extension file registers (ER) when X000 turns ON.
  • Page 732: Fnc295 - Initer / Initialize Er

    Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.6 FNC295 – INITER / Initialize ER 33.6 FNC295 – INITER / Initialize ER Outline This instruction initializes (to “HFFFF” <K-1>) extension file registers (ER) in a memory cassette (flash memory) before executing SAVER (FNC291) instruction.
  • Page 733 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.6 FNC295 – INITER / Initialize ER Operation • Extension file registers (ER) [inside the memory cassette] Current value Device number Before execution After execution H1234...
  • Page 734 Series Programmable Controllers 33 Extension File Register Control – FNC290 to FNC299 Programming Manual - Basic & Applied Instruction Edition 33.6 FNC295 – INITER / Initialize ER Errors An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in D8067.
  • Page 735: Sfc Program And Step Ladder

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 34. SFC Program and Step Ladder This chapter explains the programming procedures and sequence operations for the “SFC” and “step ladder” programming methods in GX Developer.
  • Page 736: Sfc Program Creating Procedure

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program State relay number Internal circuit When X001 turns ON Y030 Y030 Activated Y31 programmed in SET instruction X001 X001 remains ON even TRAN TRAN if S31 turns OFF.
  • Page 737 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 2. Creating a process drawing Create the process drawing shown on the right using Initial the following procedure: process 1) Divide the operation described in the above Start switch example into each process, and express each Truck moves forward.
  • Page 738 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 3. Assigning devices Assign devices of a PLC in the created process drawing. 1) Assign a state relay to a rectangle indicating a process.
  • Page 739 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 4. Inputting and indicating a program using GX Developer • Input a circuit for setting the initial state relay to ON using the relay ladder. In this example, the initial state relay S0 is set to ON in a ladder block using the special auxiliary relay M8002 which turns ON instantaneously when the PLC mode is changed from STOP to RUN.
  • Page 740: Handling And Role Of Initial State Relay

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 34.1.4 Handling and role of initial state relay Handling of the initial state relay • A state relay located at the head of an SFC program is the initial state relay, and state relays S0 to S9 are available.
  • Page 741: Latched (Battery Backed) Type State Relays

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 34.1.5 Latched (battery backed) type state relays In the latched (battery backed) type state relays , the ON/OFF status is backed up by the battery against power failure.
  • Page 742 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Special auxiliary relays For efficiently creating SFC programs, it is necessary to use some special auxiliary relays. The table below shows major ones.
  • Page 743 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Use of a timer twice or more • In the same way as an output coil, a timer coil can be programmed in different state relays.
  • Page 744 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Operations of “ ” and “ ” Use “ ” to express transfer to a state relay in an upper position (repeat), transfer to a state relay in a lower position (jump), or transfer to a state relay in another separate flow.
  • Page 745 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Reset of state relays at one time and output disability For output disability corresponding to emergency stop, follow “Cautions on safety” described in the PLC manual.
  • Page 746 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Program of complicated transfer condition In a transfer condition circuit, ANB, ORB, MPS, MRD and MPP instructions are not available. Program such a circuit as shown below: X004 X004...
  • Page 747 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Transfer of state relay ON status by a same signal In some cases, it is necessary to transfer the state relay ON status by the ON/OFF operation of one pushbutton switch.
  • Page 748 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Caution on using a rising/falling edge detection contact When a rising/falling detection contact in LDP, LDF, ANDP, ANDF, ORP or ORF instruction is used in a state relay, the contact whose status was changed while the state relay was OFF is detected when the state relay turns ON the next time.
  • Page 749: Sfc Flow Formats

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 34.1.8 SFC flow formats This paragraph shows operation patterns of single flows and operation patterns when selective branches and parallel branches are combined in SFC programs. 1.
  • Page 750 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Separation of flow When creating an SFC program having two or more initial state relays, separate the blocks for each initial state relay.
  • Page 751 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Composite flows with branches and recombination The single flow format is the fundamental style in process transfer control. Only single flow is sufficient in sequence control for simple operations.
  • Page 752: Program Of Branch/Recombination State Relays

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 34.1.9 Program of branch/recombination state relays Selective branch After making a branch, create a transfer condition. X000 X001 X002 TRAN TRAN TRAN Selective recombination...
  • Page 753: Rule For Creating Branch Circuit

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 34.1.10 Rule for creating branch circuit Limitation in the number of branch circuits In one parallel branch or selective branch, up to eight circuits can be provided. When there are many parallel branches and selective branches, however, the total number of circuits per initial state is limited to 16 or less.
  • Page 754 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Composition of branches/recombination and dummy state 1. When a recombination line is directly connected to a branch line without a state relay When a recombination line is directly connected to a branch line without a state relay as shown below, it is recommended to provide a dummy state relay between the lines.
  • Page 755 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 2. When there are selective branches continuously, reduce the number of branches. X000 X010 TRAN TRAN X014 X001 X004 X011 TRAN TRAN TRAN...
  • Page 756 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 3. It is not permitted to provide a selective transfer condition * after parallel branches or to recombine parallel branches after a transfer condition < * >. <*>...
  • Page 757 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 5. The following flows are allowed. Flow B is alright. In flow A, however, note that an operation is paused at a point where parallel branches are recombined.
  • Page 758: Program Examples

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 34.1.11 Program examples Examples of single flows 1. Example of flicker circuit 1) When the PLC mode is changed from STOP to RUN, the state relay S3 is driven by the initial pulse (M8002).
  • Page 759 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 2. Example of fountain control 1) Cyclic operation (X001 = OFF, X002 = OFF) When the start button X000 is pressed, the outputs turn ON in the order “Y000 (wait indication) → Y001 (center lamp) →...
  • Page 760 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 3. Example of cam shaft turning control The limit switches X013 and X011 are provided in X000 two positions, large forward rotation angle and small Start Small backward forward rotation angle.
  • Page 761 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program 4. Example of sequential start and stop The motors M1 to M4 are started in turn by a timer, and stopped in turn in the reverse order. This SFC flow is based on a single flow, and has jumps of state relays.
  • Page 762 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program The partial skip flow shown on the previous page can be expressed in a flow of selective branches and recombination as shown below. Make sure that a flow proceeds from top to bottom, and that a flow does not cross except branch lines and recombination lines.
  • Page 763 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Examples of flows having selective branches and recombination 1. Operation of selective branch • When two or more flows are provided and either one is selected and executed, it is called a selective branch.
  • Page 764 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program In an SFC program for selecting large and small products or judging products as accepted or rejected, selective branches and recombination are adopted as shown in the figure below. Ladder block M8002 Initial pulse...
  • Page 765 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Example of flows having parallel branches and recombination 1. Operation of parallel branch • Branches in which all flows proceed at the same time are called parallel branches.
  • Page 766 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.1 SFC Program Ladder block M8002 Initial pulse SFC block Y003 Road: Green Y005 Sidewalk: Red X000 TRAN X001 Crossing button Road: Y003 Y005 Sidewalk: Red Green...
  • Page 767: Step Ladder

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder 34.2 Step Ladder 34.2.1 Outline In programs using step ladder instructions, a state relay State S is assigned to each process based on machine operations, and sequences of input condition and output control are programmed as circuits connected to contacts (STL contacts) of state relays in the same way as SFC programs.
  • Page 768: Expression Of Step Ladder

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder 34.2.3 Expression of step ladder Step ladder programs and SFC programs are substantially the same as described above, but actual programs are expressed as shown below.
  • Page 769: Creation Of Step Ladder Program (Sfc Program → Stl Program)

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder 34.2.4 Creation of step ladder program (SFC program → STL program) The figure on the left shows one state relay extracted as an example from an SFC program. Each state relay has three functions, driving a load, specifying a transfer destination and specifying a transfer condition.
  • Page 770: Preliminary Knowledge For Creating Step Ladder Programs

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder Program with jump/repeated flows 1. Program for the transfer source Use OUT instruction in the jump/repeated part. <SFC program> <Step ladder> <List program>...
  • Page 771 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder Special auxiliary relays For efficiently creating step ladder programs, it is necessary to use some special auxiliary relays. The table below shows major ones.
  • Page 772 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder Output driving method It is required to include a LD or LDI instruction before the last OUT instruction in a state relay. Change such a circuit as shown below.
  • Page 773: Program With State Relays In Branches And Recombination

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder 34.2.6 Program with state relays in branches and recombination 1. Example of selective branch Do not use MPS, MRD, MPP, ANB and ORB instructions in a transfer processing program with branches and recombination.
  • Page 774 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder 2. Example of selective recombination Do not use MPS, MRD, MPP, ANB and ORB instructions in a transfer processing program with branches and recombination.
  • Page 775 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder 3. Example of parallel branch Do not use MPS, MRD, MPP, ANB and ORB instructions in a program with branches and recombination. Even in a load driving circuit, MPS instructions cannot be used immediately after STL instructions.
  • Page 776 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder 5. Composition of branches and recombination When a recombination line is directly connected to a branch line (not by way of a state relay as shown below), it is recommended to provide a dummy state relay between the lines.
  • Page 777: Program Examples

    Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder 4) Parallel recombination and selective branch <SFC program> <Step ladder> <List program> X000 X000 S103 X000 TRAN S103 S103 X001 Dummy state S103 X001...
  • Page 778 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder 2. Example of fountain control 1) Cyclic operation (X001 = OFF, X002 = OFF) When the start button X000 is pressed, the outputs turn ON in the order “Y000 (wait indication) → Y001 (center lamp) →...
  • Page 779 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder Examples of flows with selective branches and recombination 1. Example of selecting and carrying large and small balls The figure below shows a mechanism which selects and carries large and small balls using conveyors. The upper left position is regarded as the origin, and the mechanism performs in the order “moving down →...
  • Page 780 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder The figure below shows a step ladder program for selecting the ball size and judging balls as accepted or rejected. <Step ladder>...
  • Page 781 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder Example of flows with parallel branches and recombination When the parts A, B and C are processed in parallel and then assembled, flows having parallel branches and recombination are used.
  • Page 782 Series Programmable Controllers 34 SFC Program and Step Ladder Programming Manual - Basic & Applied Instruction Edition 34.2 Step Ladder <Step ladder> M8002 Initial pulse Road: Y003 Green Sidewalk: Sidewalk: Y005 Y005 X000 X001 Crossing button Road: Y003 Green K300 Sidewalk: Y005 <List program>...
  • Page 783: Interrupt Function And Pulse Catch Function

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.1 Outline 35. Interrupt Function and Pulse Catch Function This chapter explains the built-in interrupt function and pulse catch function in FX PLCs. 35.1 Outline This section explains the function to immediately execute an interrupt program (interrupt routine) without...
  • Page 784: Common Items

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.2 Common Items 35.2 Common Items 35.2.1 How to disable interrupt function and pulse catch function This paragraph describes how to disable the interrupt function and pulse catch function. 1.
  • Page 785: Related Items

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.2 Common Items 2. Disabling interrupt pointers (for each interrupt routine) [interrupt function] 1) Programming method The special auxiliary relays M8050 to M8059 for disabling interrupt are provided. While an interrupt disable flag (M8050 to M8059) is ON, a corresponding interrupt program is not executed even if the interrupt disable flag is set to OFF after a corresponding interrupt is generated.
  • Page 786: Cautions On Use (Common)

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.2 Common Items 35.2.3 Cautions on use (common) This paragraph explains common cautions on using the interrupt function or pulse catch function. Specific cautions on each interrupt function are explained in the description of each interrupt function.
  • Page 787 Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.2 Common Items 2) Timing chart Interrupt program Execution of interrupt program I001 triggered by X000 X001 Because the C0 reset Counter is instruction is valid, the current reset value of C0 remains unchanged...
  • Page 788: Input Interrupt (Interrupt Triggered By External Signal) [Without Delay Function]

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function] 35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function] 35.3.1 Input interrupt (interrupt triggered by external signal) [without delay function] 1.
  • Page 789 Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function] 4. Number and operation of (six) interrupt pointers 0: Interrupt at falling edge, 1: Interrupt at rising edge 0 to 5 according to the inputs X000 to X005 Pointer number Input number...
  • Page 790 Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function] 7. Program examples 1) When using both an external input interrupt at the rising edge and the output refresh (REF instruction) In the program example shown below, the output Y000 immediately turns ON when the rising edge of the external input X000 is detected.
  • Page 791 Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function] 3) When counting the number of times of input generation (in the same way as 1-phase high speed counter) In the program example shown below, external inputs are counted.
  • Page 792: Examples Of Practical Programs (Programs To Measure Short Pulse Width)

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function] 35.3.2 Examples of practical programs (programs to measure short pulse width) 1.
  • Page 793 Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.3 Input Interrupt (Interrupt Triggered by External Signal) [Without Delay Function] 2. Example of program to measure the short pulse width using a high speed ring counter Step Interrupts are enabled by EI instruction.
  • Page 794: Input Interrupt (Interrupt By External Signal) [With Delay Function]

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.4 Input interrupt (Interrupt by External Signal) [With Delay Function] 35.4 Input interrupt (Interrupt by External Signal) [With Delay Function] 1. Outline An input interrupt has the function to delay execution of an interrupt routine in units of 1 ms.
  • Page 795: Timer Interrupt (Interrupt In Constant Cycle)

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.5 Timer Interrupt (Interrupt in Constant Cycle) 35.5 Timer Interrupt (Interrupt in Constant Cycle) 35.5.1 Timer interrupt (interrupt in constant cycle) 1. Outline An interrupt routine is executed at every 1 to 99 ms without being affected by the operation cycle of a PLC.
  • Page 796: Examples Of Practical Program (Timer Interrupt Programs Using Applied Instruction)

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.5 Timer Interrupt (Interrupt in Constant Cycle) 5. Cautions • Each pointer number (I6, I7 or I8) can be used only once. •...
  • Page 797 Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.5 Timer Interrupt (Interrupt in Constant Cycle) 1. Timer interrupt processing of HKY (FNC 71) instruction → For HKY (FNC 71) instruction, refer to Section 15.2. Step Interrupts are enabled by EI instruction.
  • Page 798 Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.5 Timer Interrupt (Interrupt in Constant Cycle) 2. Timer interrupt processing of RAMP (FNC 67) instruction The ramp signal output circuit shown below is programmed using the timer interrupt function executed at every 10 ms.
  • Page 799: Counter Interrupt - Interrupt Triggered By Counting Up Of High Speed Counter

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.6 Counter Interrupt - Interrupt Triggered by Counting Up of High Speed Counter 35.6 Counter Interrupt - Interrupt Triggered by Counting Up of High Speed Counter 1.
  • Page 800: Pulse Catch Function [M8170 To M8177]

    Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.7 Pulse Catch Function [M8170 to M8177] 6. Cautions 1) Pointer number Pointer numbers cannot overlap with each other. 2) Disabling interrupts When the special auxiliary relay M8059 is set to ON in a program, all counter interrupts are disabled.
  • Page 801 Series Programmable Controllers 35 Interrupt Function and Pulse Catch Function Programming Manual - Basic & Applied Instruction Edition 35.7 Pulse Catch Function [M8170 to M8177] 3. Cautions on use 1) When receiving an input again, it is necessary to reset, using a program, a device which was once set. Accordingly, until a device is reset, a new input cannot be received.
  • Page 802: Operation Of Special Devices (M8000 -, D8000 -)

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) 36. Operation of Special Devices (M8000 -, D8000 -) 36.1 Special Device List (M8000 -, D8000 -) The device numbers and functions of the special auxiliary relays (indicated as "special M"...
  • Page 803 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device Clock [M]8010 Not used...
  • Page 804 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device PLC Mode When M8030 set to ON, LED on PLC is not lit even if M 8030...
  • Page 805 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device Step Ladder and Annunciator (Refer to ANS (FNC 46), ANR (FNC 47), IST (FNC 60), and Chapter 34 for details.) M 8040 While M8040 is turned ON, transfer between states is...
  • Page 806 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device Error Detection (Refer to Chapter 37 for details.) [M]8060 I/O configuration error...
  • Page 807 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device Flag BKCMP (FNC194 to FNC199) instructions - Block [M]8090...
  • Page 808 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device RS (FNC 80) and Computer Link [ch1] (Refer to Data Communication Edition for details.) [M]8120 Not used...
  • Page 809 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device Inverter Communication Function (Refer to Data Communication Edition for details.) [M]8150 Not used...
  • Page 810 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device Pulse Catch (Refer to Section 35.7 for details.) Input X000 pulse catch –...
  • Page 811 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device Counter Up/down Counter Counting Direction (Refer to Section 4.6 for details.) M 8200 C200...
  • Page 812 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device High Speed Counter Up/down Counter Counting Direction (Refer to Section 4.7 for details.) M 8235 C235...
  • Page 813 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device Timing Clock (Refer to Section 24.3 for details.) and Positioning [FX and FX PLCs] (Refer to Positioning Control Edition for details.)
  • Page 814 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device Positioning [FX PLCs] (Refer to Positioning Control Manual for details.) [M]8370...
  • Page 815 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Operation and function ing special device RS2 (FNC 87) [ch1] (Refer to Data Communication Edition for details.) [M]8400 Not used...
  • Page 816: Special Data Register (D8000 To D8511)

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) 36.1.2 Special Data Register (D8000 to D8511) Applicable model Correspond- Number and name Content of register ing special device...
  • Page 817 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device PLC Status [D]8007 Operation frequency of M8007 is stored.
  • Page 818 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Input Filter Input filter value of X000 to X017 (X000 to X007 in D 8020...
  • Page 819 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Stepladder and Annunciator [D]8040 ON state number 1...
  • Page 820 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Parallel Link (Refer to Data Communication Edition for details.) [D]8070 Parallel link error time-out check time: 500 ms...
  • Page 821 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Memory Information [D]8101 1 0 0...
  • Page 822 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device High Speed Counter Comparison, High Speed Table, and Positioning [Positioning is supported in FX , FX , and FX...
  • Page 823 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Inverter Communication Function (Refer to Data Communication Edition for details.) D 8150 Response wait time of inverter communication [ch1]...
  • Page 824 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Advanced Function [D]8160 –...
  • Page 825 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Index Register Z1 to Z7 and V1 to V7 [D]8182 Value of Z1 register...
  • Page 826 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Analog Special Adapter (Refer to Subsection 36.2.17 for applicability of each analog special adapter.) 1st special adapter –...
  • Page 827 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Timing Clock (Refer to Section 24.3 for details.) and Positioning [FX and FX PLCs] (Refer to Positioning Control Edition for details.)
  • Page 828 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Timing Clock (Refer to Section 24.3 for details.) and Positioning [FX and FX PLCs] (Refer to Positioning Control Edition for details.)
  • Page 829 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device RS2 (FNC 87) [ch1] (Refer to Data Communication Edition for details.) D 8400 RS2 (FNC 87) [ch1] Communication format setting...
  • Page 830 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.1 Special Device List (M8000 -, D8000 -) Applicable model Correspond- Number and name Content of register ing special device Error Detection (Refer to Chapter 37 for details.) [D]8438 Error code for serial communication error 2 [ch2]...
  • Page 831: Supplement Of Special Devices (M8000 - And D8000 -)

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 36.2 Supplement of Special Devices (M8000 - and D8000 -) This section explains how to use the provided special devices to activate built-in PLC functions for additional program control.
  • Page 832: Watchdog Timer [D8000]

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 36.2.2 Watchdog timer [D8000] The watchdog timer monitors the operation (scan) time of the PLC. When the operation is not completed within the specified time, ERROR (ERR) LED light turns on and all outputs are turned OFF.
  • Page 833: Battery Voltage Low Detection [M8005 And M8006]

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 36.2.3 Battery voltage low detection [M8005 and M8006] This special device detects low voltage in the lithium battery for memory backup. When the PLC detects low battery voltage, BATT (BAT) light turns on.
  • Page 834: Internal Clock [M8011 To M8014]

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 36.2.6 Internal clock [M8011 to M8014] The PLC has the following four types of internal clocks which are always oscillating while the PLC power is 10ms 100Hz Caution:...
  • Page 835 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 2. Changeover of the year display (to the four-digit mode) When changing the year data to the four-digit mode, add the following program.
  • Page 836: How To Set Real Time Clock

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 36.2.8 How to set real time clock The real time clock is set by the following method. 1.
  • Page 837 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 2. Method by program 1) Method using TWR (FNC167) instruction dedicated to time setting. →...
  • Page 838: Input Filter Adjustment [D8020]

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 36.2.9 Input filter adjustment [D8020] The inputs X000 to X017 have a digital filter circuit with a setting range of 0 to 60 ms.
  • Page 839: Battery [Batt (Bat)] Led Off Command [M8030]

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 36.2.10 Battery [BATT (BAT)] LED OFF command [M8030] 1. Batteryless operation When M8030 is set to ON, the battery LED does not turn ON even if the voltage in the battery for memory backup becomes low.
  • Page 840: Clear Command [M8031 And M8032]

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 5. Cautions for communication setting devices (D8120, D8121 and D8129) The special data register D8120 (communication format setting), D8121 (station number setting), and D8129 (time-out check time) are backed up by the battery.
  • Page 841: Individual Operation For Run/Stop Input [M8035 To M8037]

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 36.2.14 Individual operation for RUN/STOP input [M8035 to M8037] When using external push button switches to control the PLC's RUN/STOP mode, operate the switches using the following procedure.
  • Page 842: Constant Scan Mode [M8039 And D8039]

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 4. RUN/STOP command via the programming tool 1) Using the programming software for personal computer There is a remote RUN/STOP function in the programming software.
  • Page 843: Analog Special Adapters [M8260 To M8299 And D8260 To D8299]

    Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 36.2.17 Analog special adapters [M8260 to M8299 and D8260 to D8299] When analog special adapters are connected, operations and functions are assigned to the devices shown in the tables below in accordance with the number of connected analog special adapters.
  • Page 844 Series Programmable Controllers 36 Operation of Special Devices (M8000 -, D8000 -) Programming Manual - Basic & Applied Instruction Edition 36.2 Supplement of Special Devices (M8000 - and D8000 -) 2. Special data registers (D8260 to D8299) Operation and function Number -4AD-ADP -4DA-ADP...
  • Page 845: Error Check Method And Error Code List

    ON again, and check whether the status is Flickering supplied to the power terminal. changed. • The wiring is incorrect. If the status is not improved, consult a Mitsubishi Electric • There is fault inside the PLC. Distributor. The following status occurred: • The power is OFF.
  • Page 846: Batt Led [Lit Or Unlit]

    - Add a noise filter in the power line. 3) If the ERROR LED is not off even after the step 1) or 2), consult a Mitsubishi Electric Distributor. Either of the following errors occur in PLC: Execute the PLC diagnostics and program check by •...
  • Page 847: L Run Led [Fx 3Uc ]

    • Make sure that the power is correctly supplied to the PLC. Unlit (This LED is off • If the L RUN LED is not off even after the above check, while the self-loopback test consult a Mitsubishi Electric Distributor. is executing.) 37.1.6 L ERR LED [FX Mode LED status...
  • Page 848: Error Code Check Method And Indication

    Series Programmable Controllers 37 Error Check Method and Error Code List Programming Manual - Basic & Applied Instruction Edition 37.2 Error Code Check Method and Indication 37.2 Error Code Check Method and Indication 37.2.1 Error code check method by display module (FX -7DM) The error code can be checked by programming tool and FX -7DM (hereinafter called display module).
  • Page 849: Error Code Check Method By Gx Developer

    Series Programmable Controllers 37 Error Check Method and Error Code List Programming Manual - Basic & Applied Instruction Edition 37.2 Error Code Check Method and Indication 37.2.2 Error code check method by GX Developer Connect a personal computer to PLC. Execute PLC diagnostics.
  • Page 850: Error Indication

    Series Programmable Controllers 37 Error Check Method and Error Code List Programming Manual - Basic & Applied Instruction Edition 37.3 Supplementary Explanation of Devices for Error Detection 37.2.3 Error indication The table below shows the error expression in this manual, GX Developer, and display modules. GX Developer Display modules This manual...
  • Page 851: Operations Of Special Devices For Error Detection

    Series Programmable Controllers 37 Error Check Method and Error Code List Programming Manual - Basic & Applied Instruction Edition 37.3 Supplementary Explanation of Devices for Error Detection 37.3.2 Operations of special devices for error detection Special auxiliary relays for error detection and special data registers for error detection operate in the relationship shown below.
  • Page 852: Error Code List And Action

    Series Programmable Controllers 37 Error Check Method and Error Code List Programming Manual - Basic & Applied Instruction Edition 37.4 Error Code List and Action 37.4 Error Code List and Action When a program error occurs in the PLC, the error code is stored in special data registers D8060 - D8067 and D8438.
  • Page 853 Series Programmable Controllers 37 Error Check Method and Error Code List Programming Manual - Basic & Applied Instruction Edition 37.4 Error Code List and Action Error codes in shaded columns are added in FX and FX PLCs. Error PLC operation at Contents of error Action code...
  • Page 854 Series Programmable Controllers 37 Error Check Method and Error Code List Programming Manual - Basic & Applied Instruction Edition 37.4 Error Code List and Action Error codes in shaded columns are added in FX and FX PLCs. Error PLC operation at Contents of error Action code...
  • Page 855 Series Programmable Controllers 37 Error Check Method and Error Code List Programming Manual - Basic & Applied Instruction Edition 37.4 Error Code List and Action Error codes in shaded columns are added in FX and FX PLCs. Error PLC operation at Contents of error Action code...
  • Page 856 Series Programmable Controllers 37 Error Check Method and Error Code List Programming Manual - Basic & Applied Instruction Edition 37.4 Error Code List and Action Error codes in shaded columns are added in FX and FX PLCs. Error PLC operation at Contents of error Action code...
  • Page 857 Series Programmable Controllers 37 Error Check Method and Error Code List Programming Manual - Basic & Applied Instruction Edition 37.4 Error Code List and Action Error codes in shaded columns are added in FX and FX PLCs. Error PLC operation at Contents of error Action code...
  • Page 858: Appendix A: Programming Tool Applicability And Version Upgrade History

    Series Programmable Controllers A Programming Tool Applicability and Version Upgrade History Programming Manual - Basic & Applied Instruction Edition A-1 Programming Tool Applicability Appendix A: Programming Tool Applicability and Version Upgrade History Appendix A-1 Programming Tool Applicability Appendix A-1-1 Programming tool applicability 1.
  • Page 859: Appendix A-1-2 Cautions On Write During Run

    Series Programmable Controllers A Programming Tool Applicability and Version Upgrade History Programming Manual - Basic & Applied Instruction Edition A-1 Programming Tool Applicability 3. Program transfer speed and programming tool When either of the following interfaces is used for GX Developer (Ver.8.13P or later), writing and reading of programs and monitoring of devices can be executed at high speed (115.2 kbps) in FX and FX PLCs.
  • Page 860 Series Programmable Controllers A Programming Tool Applicability and Version Upgrade History Programming Manual - Basic & Applied Instruction Edition A-1 Programming Tool Applicability Item Caution Avoid write during RUN to a circuit block including the following instructions under execution. If write during RUN is executed to such a circuit block, the PLC decelerates and stops pulse output.
  • Page 861: Appendix A-1-3 Cautions On Using Transparent Function By Way Of Usb In Got1000 Series

    Series Programmable Controllers A Programming Tool Applicability and Version Upgrade History Programming Manual - Basic & Applied Instruction Edition A-1 Programming Tool Applicability Appendix A-1-3 Cautions on using transparent function by way of USB in GOT1000 Series When monitoring circuits, device registration, etc. or reading/writing programs in an FX or FX PLC from GX Developer Ver.8.22Y or later using the transparent function by way of USB in the GOT1000 Series, make...
  • Page 862: Appendix A-1-4 Cautions On Using Transparent (2-Port) Function Of Got-F900 Series

    Series Programmable Controllers A Programming Tool Applicability and Version Upgrade History Programming Manual - Basic & Applied Instruction Edition A-1 Programming Tool Applicability Appendix A-1-4 Cautions on using transparent (2-port) function of GOT-F900 Series When monitoring circuits, device registration, etc. in an FX or FX PLC from GX Developer Ver.
  • Page 863: Appendix A-2 Version Upgrade History

    100-240VAC 50/60Hz 40W OUT:30VDC/240VAC 2A(COSφ=1) SERIAL 570001 80M1 IND. CONT. EQ. MITSUBISHI ELECTRIC CORPORATION MADE IN JAPAN Control number Month (Example: July):(1 to 9 = January to September, X = October, Y = November, Z = December) Year (Example: 2005): Last digit of year Appendix A-2-3 Version upgrade history [FX Manufacturer’s...
  • Page 864: Appendix A-2-4 Version Upgrade History [Fx 3Uc ]

    Series Programmable Controllers A Programming Tool Applicability and Version Upgrade History Programming Manual - Basic & Applied Instruction Edition A-2 Version Upgrade History Appendix A-2-4 Version upgrade history [FX Manufacturer’s Version Contents of version upgrade serial number 41****** Ver.1.00 First product (January, 2004) Supports connection of following special analog adapters: 44******...
  • Page 865: Appendix B: Instruction Execution Time

    Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-1 Basic Instruction Execution Time Appendix B: Instruction Execution Time The instruction execution time in FX and FX PLCs is as shown below: Measurement condition •...
  • Page 866: Appendix B-2 Step Ladder Instruction Execution Time

    Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-2 Step Ladder Instruction Execution Time Execution time in ON status (µs) Execution time in OFF status (µs) Instruction Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction Output instructions T192 to T199, T246 to T511...
  • Page 867: Appendix B-3 Label (P/I) Execution Time

    Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-3 Label (P/I) Execution Time Appendix B-3 Label (P/I) Execution Time Execution time in ON status (µs) Execution time in OFF status (µs) Instruction Remarks 16-bit instruction 32-bit instruction 16-bit instruction...
  • Page 868 Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-4 Applied Instruction Execution Time Execution time in ON status (µs) Execution time in OFF status (µs) Instruction Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction Rotation and shift 10.5...
  • Page 869 Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-4 Applied Instruction Execution Time Execution time in ON status (µs) Execution time in OFF status (µs) Instruction Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction External FX I/O device 21.5...
  • Page 870 Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-4 Applied Instruction Execution Time Execution time in ON status (µs) Execution time in OFF status (µs) Instruction Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction Floating point ⎯...
  • Page 871 Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-4 Applied Instruction Execution Time Execution time in ON status (µs) Execution time in OFF status (µs) Instruction Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction Positioning control ⎯...
  • Page 872 Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-4 Applied Instruction Execution Time Execution time in ON status (µs) Execution time in OFF status (µs) Instruction Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction Block data operation ⎯...
  • Page 873 Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-4 Applied Instruction Execution Time Execution time in ON status (µs) Execution time in OFF status (µs) Instruction Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction Data comparison ⎯...
  • Page 874 Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-4 Applied Instruction Execution Time Execution time in ON status (µs) Execution time in OFF status (µs) Instruction Remarks 16-bit instruction 32-bit instruction 16-bit instruction 32-bit instruction Data table processing ⎯...
  • Page 875: Appendix B-5 Execution Time Of Pulse Generation Instruction P In Each Applied Instruction

    Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-5 Execution Time of Pulse Generation Instruction P in Each Applied Instruction Execution time in ON status (µs) Execution time in OFF status (µs) Instruction Remarks 16-bit instruction 32-bit instruction...
  • Page 876: Appendix B-6 Execution Time On Combination Of Applicable Devices And Indexing

    Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-6 Execution Time on Combination of Applicable Devices and Indexing Appendix B-6 Execution Time on Combination of Applicable Devices and Indexing In examples shown below for basic instructions, MOV instruction and data comparison instructions, the instruction execution time varies depending on the combination of target devices and absence/presence of indexing.
  • Page 877 Series Programmable Controllers B Instruction Execution Time Programming Manual - Basic & Applied Instruction Edition B-6 Execution Time on Combination of Applicable Devices and Indexing 2. Data comparison instruction execution time Data comparison instruction (16-bit operation) D (destination) Without indexing (µs) With indexing (µs) S (source) KnY,KnM,...
  • Page 878: Appendix C: Applied Instruction List [By Instruction Type/In Alphabetic Order]

    Series Programmable Controllers C Applied Instruction List [by Instruction Type/in Alphabetic Order] Programming Manual - Basic & Applied Instruction Edition C-1 Applied instructions [by instruction type] Appendix C: Applied Instruction List [by Instruction Type/in Alphabetic Order] Appendix C-1 Applied instructions [by instruction type] Applied instructions are classified into the following eighteen types: Data transfer instructions Character string operation instructions...
  • Page 879 Series Programmable Controllers C Applied Instruction List [by Instruction Type/in Alphabetic Order] Programming Manual - Basic & Applied Instruction Edition C-1 Applied instructions [by instruction type] 3. Comparison instructions 4. Arithmetic operation instructions Ref. Ref. Function Function Mnemonic Mnemonic Page Page OR Compare FNC 25 Decrement...
  • Page 880 Series Programmable Controllers C Applied Instruction List [by Instruction Type/in Alphabetic Order] Programming Manual - Basic & Applied Instruction Edition C-1 Applied instructions [by instruction type] 10.Character string operation instructions 9. Data operation instructions Ref. Ref. Mnemonic Function Mnemonic Function Page Page Extracting Character String...
  • Page 881 Series Programmable Controllers C Applied Instruction List [by Instruction Type/in Alphabetic Order] Programming Manual - Basic & Applied Instruction Edition C-1 Applied instructions [by instruction type] 14.Pulse output/positioning control 18.Other handy instructions instructions Ref. Function Mnemonic Page Ref. Function Mnemonic Page FNC 46 Timed Annunciator Set Batch Data Positioning...
  • Page 882: Appendix C-2 Applied Instructions [In Alphabetical Order]

    Series Programmable Controllers C Applied Instruction List [by Instruction Type/in Alphabetic Order] Programming Manual - Basic & Applied Instruction Edition C-2 Applied instructions [in alphabetical order] Appendix C-2 Applied instructions [in alphabetical order] Ref. Mnemonic Function Ref. Page Function Mnemonic Page Block Data Compare Symbol...
  • Page 883 Series Programmable Controllers C Applied Instruction List [by Instruction Type/in Alphabetic Order] Programming Manual - Basic & Applied Instruction Edition C-2 Applied instructions [in alphabetical order] Ref. Ref. Function Function Mnemonic Mnemonic Page Page EADD FNC120 Floating Point Addition FNC 24 Increment Floating Point to Scientific Incremental Drum EBCD...
  • Page 884 Series Programmable Controllers C Applied Instruction List [by Instruction Type/in Alphabetic Order] Programming Manual - Basic & Applied Instruction Edition C-2 Applied instructions [in alphabetical order] Ref. Ref. Mnemonic Function Mnemonic Function Page Page OR Compare SAVER FNC291 Save to ER OR<...
  • Page 885 Series Programmable Controllers C Applied Instruction List [by Instruction Type/in Alphabetic Order] Programming Manual - Basic & Applied Instruction Edition C-2 Applied instructions [in alphabetical order] Ref. Function Mnemonic Page WAND FNC 26 Logical Word AND WBFM FNC279 Divided BFM Write FNC 07 Watchdog Timer Refresh FNC 27 Logical Word OR Write to Dedicated Analog...
  • Page 886 Series Programmable Controllers C Applied Instruction List [by Instruction Type/in Alphabetic Order] Programming Manual - Basic & Applied Instruction Edition C-2 Applied instructions [in alphabetical order] MEMO...
  • Page 887: Warranty

    Any other failure found not to be the responsibility controller range of applications. of Mitsubishi or that admitted not to be so by the However, in certain cases, some applications may be user.
  • Page 888: Revised History

    Series Programmable Controllers Programming Manual - Basic & Applied Instruction Edition Revised History Revised History Date Revision Discription 7/2005 First Edition...
  • Page 890 PROGRAMMING MANUAL - Basic & Applied Instructions Edition SERIES PROGRAMMABLE CONTROLLERS HEAD OFFICE: MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100-8310 HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPAN FX-P3-E MODEL 09R517 MODEL CODE JY997D16601A Effective Jul. 2005 (MEE) Specifications are subject to change without notice.

This manual is also suitable for:

Fx3uc seriesMelsec-f

Table of Contents