Mitsubishi Electric MELSEC-F Series Programming Manual
Mitsubishi Electric MELSEC-F Series Programming Manual

Mitsubishi Electric MELSEC-F Series Programming Manual

Hide thumbs Also See for MELSEC-F Series:
Table of Contents

Advertisement

Quick Links

PROGRAMMING MANUAL
TH E FX SER IES O F PR O G R AM M ABLE C O N TR O LLER
(FX
, FX
, FX
, FX, FX
FX
FX
)
0
0S
0N
2C,
2N,
2NC

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MELSEC-F Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Mitsubishi Electric MELSEC-F Series

  • Page 1 PROGRAMMING MANUAL TH E FX SER IES O F PR O G R AM M ABLE C O N TR O LLER , FX , FX , FX, FX...
  • Page 3: Fx Series Programmable Controllers

    • If in doubt about the operation or use of the PLC please consult the nearest Mitsubishi Electric distributor. • This manual is subject to change without notice.
  • Page 4 FX Series Programmable Controllers...
  • Page 5 We look for- ward to hearing from you. Please tick the box of your choice; Fax numbers: Your name............ Mitsubishi Electric................. America (01) 847-478-2253 Your company ..........
  • Page 6 FX Series Programmable Controllers...
  • Page 7 FX Series Programmable Controllers Guidelines for the Safety of the User and Protection of the Programmable Controller (PLC) This manual provides information for the use of the FX family of PLC’s. The manual has been written to be used by trained and competent personnel. The definition of such a person or persons is as follows;...
  • Page 8 FX Series Programmable Controllers...
  • Page 9: Table Of Contents

    FX Series Programmable Controllers Contents 1. Introduction....................1-1 1.1 Overview......................1-1 1.2 What is a Programmable Controller? ..............1-2 1.3 What do You Need to Program a PLC? .............. 1-2 1.4 CPU version numbers ..................1-3 1.4.1 FX CPU versions....................1-3 1.4.2 FX and FX CPU versions..................
  • Page 10 FX Series Programmable Controllers 3. STL Programming .................3-1 3.1 What is STL, SFC And IEC1131 Part 3? ............. 3-1 3.2 How STL Operates ....................3-2 3.2.1 Each step is a program ..................... 3-2 3.3 How To Start And End An STL Program ............. 3-3 3.3.1 Embedded STL programs ..................
  • Page 11 FX Series Programmable Controllers 4.11 High Speed Counters ..................4-22 4.11.1 Basic High Speed Counter Operation ..............4-23 4.11.2 Availability of High Speed Counters on FX , FX and FX PLC’s...... 4-24 4.11.3 Availability of High Speed Counters on FX, FX PLC’s ........
  • Page 12 FX Series Programmable Controllers 5. Applied Instructions ................5-1 5.1 Program Flow-Functions00 to 09 ................ 5-4 5.1.1 CJ (FNC 00) ......................5-5 5.1.2 CALL (FNC 01)......................5-7 5.1.3 SRET (FNC 02) ......................5-8 5.1.4 IRET, EI, DI (FNC 03, 04, 05) ................... 5-9 5.1.5 FEND (FNC 06) .......................
  • Page 13 FX Series Programmable Controllers 5.6 High Speed Processing - Functions 50 to 59 ............ 5-52 5.6.1 REF (FNC 50) ......................5-53 5.6.2 REFF (FNC 51) ....................... 5-53 5.6.3 MTR (FNC 52) ......................5-54 5.6.4 HSCS (FNC 53)....................... 5-55 5.6.5 HSCR (FNC 54) ...................... 5-56 5.6.6 HSZ (FNC 55) ......................
  • Page 14 FX Series Programmable Controllers 5.11 Floating Point 1 & 2 - Functions 110 to 129 ............ 5-119 5.11.1 ECMP (FNC 110) ....................5-121 5.11.2 EZCP (FNC 111) ....................5-121 5.11.3 EBCD (FNC 118)....................5-122 5.11.4 EBIN (FNC 119) ....................5-122 5.11.5 EADD (FNC 120)....................
  • Page 15 FX Series Programmable Controllers 7. Execution Times And Instructional Hierarchy........7-1 7.1 Basic Instructions ....................7-1 7.2 Applied Instructions .................... 7-3 7.3 Hierarchical Relationships Of Basic Program Instructions ........ 7-12 7.4 Batch Processing....................7-14 7.5 Summary of Device Memory Allocations ............7-14 7.6 Limits Of Instruction Usage ................
  • Page 16 FX Series Programmable Controllers 10.15PID Programming Techniques ................ 10-24 10.15.1Keeping MV within a set range ................10-24 10.15.2Manual/Automatic change over ................10-24 10.15.3Using the PID alarm signals ................. 10-25 10.15.4Other tips for PID programming................10-25 10.16Additional PID functions .................. 10-26 10.16.1Output Value range control (S3+1 b5)..............
  • Page 17: Introduction

    FX Series Programmable Controllers Introduction 1 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 18 FX Series Programmable Controllers Introduction 1 Chapter Contents 1. Introduction....................1-1 1.1 Overview......................1-1 1.2 What is a ProgrammableController? ..............1-2 1.3 What do You Need to Program a PC? ..............1-2 1.4 CPU version numbers ..................1-3 1.4.1 FX CPU versions....................1-3 1.4.2 FX and FX CPU versions..................
  • Page 19: Overview

    Introduction 1 Introduction Overview 1) Scope of this manual This manual gives details on all aspects of operation and programming for FX, FX , FX , FX and FX programmable controllers (PLCs). For all information relating to the PLC hardware and installation, refer to the appropriate manual supplied with the unit. 2) How to use this manual This manual covers all the functions of the highest specification Programmable (Logic) Controller (PLC).
  • Page 20: What Is A Programmable Controller

    Introduction 1 What is a Programmable Controller? A Programmable Logic Controller (PLC or programmable controller) is a device that a user can program to perform a series or sequence of events. These events are triggered by stimuli (usually called inputs) received at the PLC or through delayed actions such as time delays or counted occur-rences.
  • Page 21: Cpu Version Numbers

    Introduction 1 CPU version numbers Over time Mitsubishi adds newer and better features to develop and enhance the products. Because of the nature of PLCs, that can be likened to ‘industrial computers’, changes sometimes occur within the units main CPU (Central Processing Unit). These changes are similar to those experienced by office and home computer users, that is, going to a version up processor.
  • Page 22: Special Considerations For Programming Equipment

    Introduction 1 Special considerations for programming equipment 1.5.1 FX CPU version 3.07 or later and FX Programming tools operating old system software can not access the new features added to the FX CPU from version 3.07 (and available on all FX units).
  • Page 23 Introduction 1 Using the new Interrupt Pointers: Existing Instruction And Special M Coil Combination To Mimic The Operation To program new Interrupt Pointers I010 Of The Identified Interrupt pointer through I060 in to the HSCS (FNC 53) instruction with older programming Existing Auxiliary Coil equipment, substitute the following used to replace the identi-...
  • Page 24 Introduction 1 MEMO...
  • Page 25: Basic Program Instructions

    FX Series Programmable Controllers Basic Program Instructions 2 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 26 FX Series Programmable Controllers Basic Program Instructions 2 Chapter Contents 2. Basic Program Instructions ..............2-1 2.1 What is a Program? ..................... 2-1 2.2 Outline of Basic Devices Used in Programming ..........2-1 2.3 How to Read Ladder Logic .................. 2-2 2.4 Load, Load Inverse ....................
  • Page 27: What Is A Program

    FX Series Programmable Controllers Basic Program Instructions 2 Basic Program Instructions What is a Program? A program is a connected series of instructions written in a language that the PLC can understand. There are three forms of program format; instruction, ladder and SFC/STL. Not all programming tools can work in all programming forms.
  • Page 28: How To Read Ladder Logic

    FX Series Programmable Controllers Basic Program Instructions 2 How to Read Ladder Logic Ladder logic is very closely associated to basic relay logic. There are both contacts and coils that can be loaded and driven in different configurations. However, the basic principle remains the same.
  • Page 29: Load, Load Inverse

    FX Series Programmable Controllers Basic Program Instructions 2 Load, Load Inverse Mnemonic Function Format Devices Program steps Initial logical operation contact X, Y, M, S, T, C (LoaD) type NO (normally open) Initial logical operation contact X, Y, M, S, T, C (LoaD Inverse) type NC (normally closed)
  • Page 30: Out

    FX Series Programmable Controllers Basic Program Instructions 2 Mnemonic Function Format Devices Program steps Y, M:1 S, special M Final logical coils: 2 operation type coil Y, M, S, T, C (OUT) drive C (16 bit): 3 C (32 bit): 5 Basic points to remember: - Connect the OUT instruction directly to the right hand bus bar.
  • Page 31: Double Coil Designation

    FX Series Programmable Controllers Basic Program Instructions 2 2.5.2 Double Coil Designation Double or dual coiling is not a recommended practice. Using multiple output coils of the s a m e d e v i c e c a n c a u s e t h e p r o g r a m operation to become unreliable.
  • Page 32: And, And Inverse

    FX Series Programmable Controllers Basic Program Instructions 2 And, And Inverse Mnemonic Function Format Devices Program steps Serial connection of NO (normally X, Y, M, S, T, C (AND) open) contacts Serial connection of NC (normally X, Y, M, S, T, C (AND Inverse) closed) contacts Program example:...
  • Page 33: Or, Or Inverse

    FX Series Programmable Controllers Basic Program Instructions 2 Or, Or Inverse Mnemonic Function Format Devices Program steps Parallel connection of NO X, Y, M, S, T, C (OR) (normally open) contacts Parallel connection of NC X, Y, M, S, T, C (OR Inverse) (normally closed) contacts...
  • Page 34: Load Pulse, Load Trailing Pulse

    FX Series Programmable Controllers Basic Program Instructions 2 Load Pulse, Load Trailing Pulse Mnemonic Function Format Devices Program steps Initial logical operation - X, Y, M, S, T, C (LoaDPulse) Rising edge pulse Initial logical operation Falling (LoaD Falling X, Y, M, S, T, C / trailing edge pulse) pulse...
  • Page 35: And Pulse, And Trailing Pulse

    FX Series Programmable Controllers Basic Program Instructions 2 And Pulse, And Trailing Pulse Mnemonic Function Format Devices Program steps Serial connection of Rising edge X, Y, M, S, T, C (ANd Pulse) pulse Serial connection of Falling / (ANd Falling X, Y, M, S, T, C trailing edge pulse)
  • Page 36: Or Pulse, Or Trailing Pulse

    FX Series Programmable Controllers Basic Program Instructions 2 2.10 Or Pulse, Or Trailing Pulse Mnemonic Function Format Devices Program steps Parallel connection of X, Y, M, S, T, C (OR Pulse) Rising edge pulse Parallel connection of (OR Falling X, Y, M, S, T, C Falling / trailing pulse) edge pulse...
  • Page 37: Or Block

    FX Series Programmable Controllers Basic Program Instructions 2 2.11 Or Block Mnemonic Function Format Devices Program steps Parallel connection of multiple contact (OR Block) circuits Program example: Non-preferred batch Recommended sequential programming method programming method Basic points to remember: - An ORB instruction is an independent instruction and is not associated with any device number.
  • Page 38: And Block

    FX Series Programmable Controllers Basic Program Instructions 2 2.12 And Block Mnemonic Function Format Devices Program steps Serial connection of multiple (ANd Block) parallel circuits Program example: Recommended sequential programming method Basic points to remember: - An ANB instruction is an independent instruction and is not associated with any device number - Use the ANB instruction to connect multi-contact circuits (usually parallel circuit blocks) to the preceding circuit in series.
  • Page 39: Mps, Mrd And Mpp

    FX Series Programmable Controllers Basic Program Instructions 2 2.13 MPS, MRD and MPP Mnemonic Function Format Devices Program steps Stores the current result of the (Point Store) internal PLC operations Reads the current result of the (Read) internal PLC operations Pops (recalls and removes) the (PoP)
  • Page 40 FX Series Programmable Controllers Basic Program Instructions 2 Multiple program examples: X0 X1 X2 X3 X4 2-14...
  • Page 41: Master Control And Reset

    FX Series Programmable Controllers Basic Program Instructions 2 2.14 Master Control and Reset Mnemonic Function Format Devices Program steps Y, M (no special M coils allowed) Denotes the start (Master MC N N denotes the of a master control Control) block nest level (N0 to N denotes the...
  • Page 42 FX Series Programmable Controllers Basic Program Instructions 2 Nested MC program example: M100 Level N0: Bus line (B) active when X0 M100 is ON. M101 Level N1: Bus line (C) active when both X0 and X2 are ON. M101 M102 Level N2: Bus line (D) active when M102 X0,X2 and X4 are ON.
  • Page 43: Set And Reset

    FX Series Programmable Controllers Basic Program Instructions 2 2.15 Set and Reset Mnemonic Function Format Devices Program steps Y,M:1 Sets a bit device Y, M, S S, special M (SET) permanently ON coils:2 Y, M, S, D, V, Z Resets a bit (see section D, special D device...
  • Page 44: Timer, Counter (Out & Reset)

    FX Series Programmable Controllers Basic Program Instructions 2 2.16 Timer, Counter (Out & Reset) Mnemonic Function Format Devices Program steps 32 bit Driving timer or counters:5 T, C (OUT) counter coils Others: 3 T, C Resets timer and (see section counter, coils 2.15 for other T, C:2...
  • Page 45: Normal 32 Bit Counters

    FX Series Programmable Controllers Basic Program Instructions 2 2.16.2 Normal 32 bit Counters The 32 bit counter C200 counts (up-count, down-count) according to the ON/OFF state of M8200. In the example program shown on the previous page C200 is being used to count the number of OFF ~ ON cycles of input X4.
  • Page 46: Leading And Trailing Pulse

    FX Series Programmable Controllers Basic Program Instructions 2 2.17 Leading and Trailing Pulse Mnemonic Function Format Devices Program steps Y, M Rising edge (no special M (PuLSe) pulse coils allowed) Y, M Falling / trailing (no special M (PuLse Falling) edge pulse coils allowed) Program example:...
  • Page 47: Inverse

    FX Series Programmable Controllers Basic Program Instructions 2 2.18 Inverse Mnemonic Function Format Devices Program steps Invert the current result of the (Inverse) internal PLC operations Program example: Basic points to remember: - The INV instruction is used to change (invert) the logical state of the current ladder network at the inserted position.
  • Page 48: No Operation

    FX Series Programmable Controllers Basic Program Instructions 2 2.19 No Operation Mnemonic Function Format Devices Program steps No operation or (No Operation) null step Basic points to remember: - Writing NOP instructions in the middle of a program minimizes step number changes when changing or editing a program.
  • Page 49: End

    FX Series Programmable Controllers Basic Program Instructions 2 2.20 Mnemonic Function Format Devices Program steps Forces the current program scan to (END) Basic points to remember: - Placing an END instruction in a program forces that program to end the current scan and carry out the updating processes for both inputs and outputs.
  • Page 50 FX Series Programmable Controllers Basic Program Instructions 2 MEMO 2-24...
  • Page 51: Stl Programming

    FX Series Programmable Controllers STL Programming 3 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 52 FX Series Programmable Controllers STL Programming 3 Chapter Contents 3. STL Programming .................3-1 3.1 What is STL, SFC And IEC1131 Part 3? ............. 3-1 3.2 How STL Operates ....................3-2 3.2.1 Each step is a program ..................... 3-2 3.3 How To Start And End An STL Program ............. 3-3 3.3.1 Embedded STL programs ..................
  • Page 53: Stl Programming

    FX Series Programmable Controllers STL Programming 3 STL Programming This chapter differs from the rest of the contents in this manual as it has been written with a training aspect in mind. STL/SFC programming, although having been available for many years, is still misunderstood and misrepresented.
  • Page 54: How Stl Operates

    FX Series Programmable Controllers STL Programming 3 How STL Operates As previously mentioned, STL is a system which allows the user to write a program which functions M8002 in much the same way as a flow chart, this can be seen in the diagram opposite.
  • Page 55: How To Start And End An Stl Program

    FX Series Programmable Controllers STL Programming 3 Combined SFC Ladder representation Sometimes STL programs will be written in hard copy as a combination of both flow diagram and internal sub-program. (example shown below). Identification of contact states • Please note the following convention M8002 is used: Normally Open contact...
  • Page 56: Terminating An Stl Program

    FX Series Programmable Controllers STL Programming 3 Initial Steps For an STL program which is to be activated M8002 on the initial power up of the PLC, a trigger SET S005 similar to that shown opposite could be used, X001 i.e.
  • Page 57: Moving Between Stl Steps

    FX Series Programmable Controllers STL Programming 3 Moving Between STL Steps To activate an STL step the user must first drive the state coil. Setting the coil has already been identified as a way to start an STL program, i.e. drive an initial state. It was also noted that using an OUT statement to driving a state coil has a different meaning to the SET instruction.
  • Page 58: Using Out To Drive An Stl Coil

    FX Series Programmable Controllers STL Programming 3 3.4.2 Using OUT to drive an STL coil This has the same operational features as using SET. However, there is one major function which SET is not used. This is to make what is termed ‘distant jumps’. OUT is used for loops and jumps If a user wishes to ‘jump’...
  • Page 59: Rules And Techniques For Stl Programs

    FX Series Programmable Controllers STL Programming 3 Rules and Techniques For STL programs It can be seen that there are a lot of advantages to using STL style programming but there are a few points a user must be aware of when writing the STL sub-programs. These are highlighted in this section.
  • Page 60 FX Series Programmable Controllers STL Programming 3 • When an STL step transfers control to the next STL step there is a period (one scan) while both steps are active. This can cause problems with dual coils; particularly timers. S 30 T001 If timers are dual coiled care must be taken to T001...
  • Page 61: Single Signal Step Control

    FX Series Programmable Controllers STL Programming 3 3.5.2 Single Signal Step Control Transferring between active STL steps can be controlled by a single signal. There are two methods the user can program to achieve this result. Method 1 - Using locking devices In this example it is necessary to program separate locking devices, and the controlling signal must only pulse ON.
  • Page 62: Restrictions Of Some Instructions When Used With Stl

    FX Series Programmable Controllers STL Programming 3 Restrictions Of Some Instructions When Used With STL Although STL can operate with most basic and applied instructions there are a few exceptions. As a general rule STL and MC-MCR programming formats should not be combined. Other instruction restrictions are listed in the table below.
  • Page 63: Using Stl To Select The Most Appropriate Program

    FX Series Programmable Controllers STL Programming 3 Using STL To Select The Most Appropriate Program So far STL has been considered as a simple flow charting programming language. One of STL’s exceptional features is the ability to create programs which can have several operating modes.
  • Page 64: Using Stl To Activate Multiple Flows Simultaneously

    FX Series Programmable Controllers STL Programming 3 Limits on the number of branches • Please see page 3-14 for general notes on programming STL branches. Notes on using the FX-PCS/AT-EE software • Please see page 3-15 for precautions when using the FX-PCS-AT/EE software. Using STL To Activate Multiple Flows Simultaneously In the previous branching technique, it was seen how a single flow could be selected from a...
  • Page 65 FX Series Programmable Controllers STL Programming 3 When a group of branch flows are activated, the user will often either; a) ‘Race’ each flow against its counter parts. The flow which completes fastest would then activate a joining function (“First State Merge” described in the previous section) OR b) The STL flow will not continue until ALL branch flows have completed there tasks.
  • Page 66: General Rules For Successful Stl Branching

    FX Series Programmable Controllers STL Programming 3 General Rules For Successful STL Branching For each branch point 8 further branches may be programmed. There are no limits to the num- ber of states contained in a single STL flow. Hence, the possibility exists for a single initial state to branch to 8 branch flows which in turn could each branch to a further 8 branch flows etc.
  • Page 67: General Precautions When Using The Fx-Pcs/At-Ee Software

    FX Series Programmable Controllers STL Programming 3 Further recommended program changes: S 20 S 20 Rewrite as... S 21 S 23 S 25 S 27 S 21 S 23 S 25 S 27 S 22 S 24 S 26 S 28 S 22 S 24 S 26...
  • Page 68: Programming Examples

    FX Series Programmable Controllers STL Programming 3 3.11 Programming Examples 3.11.1 A Simple STL Flow Loading hopper Start button Ore truck Ore dischange point This simple example is an excerpt from a semi-automatic loading-unloading ore truck program. This example program has a built in, initialization routine which occurs only when the PLC is powered from OFF to ON.
  • Page 69 FX Series Programmable Controllers STL Programming 3 Once at the discharge point the truck opens its bottom doors (Y13). After a timed duration in which the truck empties its contents, the program checks to see if the repeat mode was selected on the last cycle, i.e.
  • Page 70: A Selective Branch/ First State Merge Example Program

    FX Series Programmable Controllers STL Programming 3 3.11.2 A Selective Branch/ First State Merge Example Program The following example depicts an automatic sorting robot. The robot sorts two sizes of ball bearings from a mixed ‘source pool’ into individual storage buckets containing only one type of ball bearing.
  • Page 71 FX Series Programmable Controllers STL Programming 3 Full STL flow diagram/program. This example uses the dot notation to identify normally open and normally closed contacts. Start Normally open contacts Zero-point arrival Normally closed contacts Lower pickup arm S 21 Lower limit = small ball Lower limit = large ball Collect ball S 22...
  • Page 72: Advanced Stl Use

    FX Series Programmable Controllers STL Programming 3 3.12 Advanced STL Use STL programming can be enhanced by using the Initial State Applied Instruction. This instruction has a mnemonic abbreviation of IST and a special function number of 60. When the IST instruction is used an automatic assignment of state relays, special auxiliary relays (M coils) is made.
  • Page 73: Devices In Detail

    FX Series Programmable Controllers Devices in Detail 4 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 74 FX Series Programmable Controllers Devices in Detail 4 Chapter Contents 4. Devices in Detail..................4-1 4.1 Inputs ........................4-1 4.2 Outputs ........................ 4-2 4.3 Auxiliary Relays ....................4-3 4.3.1 General Stable State Auxiliary Relays ..............4-3 4.3.2 Battery Backed/ Latched Auxiliary Relays..............4-4 4.3.3 Special Diagnostic Auxiliary Relays ................
  • Page 75: Devices In Detail

    FX Series Programmable Controllers Devices in Detail 4 Devices in Detail Inputs Device Mnemonic: X Purpose: Representation of physical inputs to the programmable controller (PLC) Alias: I/P (X) Input Input contact Available forms: NO ( ) and NC ( ) contacts only (see example device usage for references) Devices numbered in: Octal, i.e.
  • Page 76: Outputs

    FX Series Programmable Controllers Devices in Detail 4 Outputs Device Mnemonic: Y Purpose: Representation of physical outputs from the programmable controller Alias: O/P Out (Y) Output (Y) Output (coil/ relay/ contact) Available forms: NO ( ) and NC contacts and output coils ( ) (see example device usage for references) Devices numbered in: Octal, i.e.
  • Page 77: Auxiliary Relays

    FX Series Programmable Controllers Devices in Detail 4 Auxiliary Relays Device Mnemonic: M Purpose: Internal programmable controller status flag Alias: Auxiliary (coil/ relay/ contact/ flag) M (coil/ relay/ contact /flag) M (bit) device Available forms: NO ( ) and NC contacts and output coils ( ) (see example device usage for references) Devices numbered in: Decimal, i.e.
  • Page 78: Battery Backed/ Latched Auxiliary Relays

    FX Series Programmable Controllers Devices in Detail 4 4.3.2 Battery Backed/ Latched Auxiliary Relays There are a number of battery backed or latched relays whose status is retained in battery backed or EEPROM memory. If a power failure should occur all output and general purpose relays are switched off.
  • Page 79: Special Single Operation Pulse Relays

    FX Series Programmable Controllers Devices in Detail 4 4.3.3 Special Diagnostic Auxiliary Relays A PLC has a number of special auxiliary relays. These relays all have specific functions and are classified into the following two types. a) Using contacts of special auxiliary relays - Coils are driven automatically by the PLC.
  • Page 80: State Relays

    FX Series Programmable Controllers Devices in Detail 4 State Relays Device Mnemonic: S Purpose: Internal programmable controller status flag Alias: State (coil/ relay/ contact/ flag) S (coil/ relay/ contact /flag) STL step (coil/ relay/ contact /flag) Annunciator flag Available forms: NO ( ) and NC contacts and output coils ( (see example device usage for references) Devices numbered in: Decimal, i.e.
  • Page 81: Battery Backed/ Latched State Relays

    FX Series Programmable Controllers Devices in Detail 4 4.4.2 Battery Backed/ Latched State Relays There are a number of battery backed or latched relays whose status is retained in battery backed or EEPROM memory. If a power failure should occur all output and general purpose relays are switched off.
  • Page 82: Stl Step Relays

    FX Series Programmable Controllers Devices in Detail 4 4.4.3 STL Step Relays S t a t e s ( S ) a r e v e r y i m p o r t a n t d e v i c e s w h e n programming step by step process control.
  • Page 83: Annunciator Flags

    FX Series Programmable Controllers Devices in Detail 4 4.4.4 Annunciator Flags Some state flags can be used as outputs for external diagnosis (called annunciation) when certain applied instructions are used. These instructions are; ANS function 46: ANnunciator Set - see page 5-47 ANR function 47: ANnunciator Reset - see page 5-47 When the annunciator function is used the controlled state flags are in the range S900 to S999 (100 points).
  • Page 84: Pointers

    FX Series Programmable Controllers Devices in Detail 4 Pointers Device Mnemonic: P Purpose: Program flow control Alias: Pointer Program pointer Available forms: Label: appears on the left of the left hand bus bar when the program is viewed in ladder mode. Devices numbered in: Decimal, i.e.
  • Page 85: Interrupt Pointers

    FX Series Programmable Controllers Devices in Detail 4 Interrupt Pointers Device Mnemonic: I Purpose: Interrupt program marker Alias: Interrupt High speed interrupt Available forms: Label: appears on the left of the left hand bus bar when the program is viewed in ladder mode (see ¿...
  • Page 86: Input Interrupts

    FX Series Programmable Controllers Devices in Detail 4 4.6.1 Input Interrupts Identification of interrupt pointer number: 0: interrupt triggered on trailing/ falling edge of input signal 1: interrupt triggered on leading/ rising edge of input signal Input number; each input number can only be used once. and FX have 4 points (0 to 3 which map to X0 to X3) 0(S)
  • Page 87: Disabling Individual Interrupts

    FX Series Programmable Controllers Devices in Detail 4 4.6.3 Disabling Individual Interrupts Individual interrupt devices can be temporarily or permanently disabled by driving an associated special auxiliary relay. The relevant coils are identified in the tables of devices in chapter 6. However for all PLC types the head address is M8050, this will disable interrupt Driving special auxiliary relays: •...
  • Page 88: Constant K

    FX Series Programmable Controllers Devices in Detail 4 Constant K Device Mnemonic: K Purpose: Identification of constant decimal values Alias: Constant K (value/ constant) Available forms: Numeric data value, when used for 16bit data, values can be selected from the range -32,768 to +32,767 For 32bit data, values from the range -2,147,483,648 to + 2,147,483,647 can be used.
  • Page 89: Timers

    FX Series Programmable Controllers Devices in Detail 4 Timers Device Mnemonic: T Purpose: Timed durations Alias: Timer(s) Available forms: A driven coil sets internal PLC contacts (NO and NC contacts available). Various timer resolutions are possible, from 1 to 100 msec, but availability and quantity vary from PLC to PLC.
  • Page 90: General Timer Operation

    FX Series Programmable Controllers Devices in Detail 4 4.9.1 General timer operation Timers operate by counting clock pulses (1, 10 and 100 msec). The timer output contact is activated when the count data reaches the value set by the constant K. The overall duration or elapsed time, for a timers operation cycle, is calculated by multiplying the present value by the timer resolution, i.e.
  • Page 91: Retentive Timers

    FX Series Programmable Controllers Devices in Detail 4 4.9.3 Retentive Timers A retentive timer has the ability to retain the currently reached present value even after the drive contact has been removed. This means that when the drive contact is re-established a retentive timer will continue from where it last reached.
  • Page 92: Timers Used In Interrupt And 'Call' Subroutines

    FX Series Programmable Controllers Devices in Detail 4 4.9.4 Timers Used in Interrupt and ‘CALL’ Subroutines If timers T192 to T199 and T246 to T249 are used in a CALL subroutine or an interruption routine, the timing action is updated at the point when an END instruction is executed. The output contact is activated when a coil instruction or an END instruction is processed once the timers current value has reached the preset (maximum duration) value.
  • Page 93: Counters

    FX Series Programmable Controllers Devices in Detail 4 4.10 Counters Device Mnemonic: C Purpose: Event driven delays Alias: Counter(s) Available forms: A driven coil sets internal PLC contacts (NO and NC contacts available). Various counter resolutions are possible including; General/latched 16bit up counters - see page 4-20 General/latched 32bit bi-directional counters - see page 4-21 (The availability and use of all these counters is PLC specific - please check availability before use)
  • Page 94 FX Series Programmable Controllers Devices in Detail 4 4.10.1 General/ Latched 16bit UP Counters The current value of the counter increases each time coil C0 is turned ON by X11. The output contact is activated when the coil is turned ON for the tenth time (see diagram). After this, the counter data remains unchanged when X11 is turned ON.
  • Page 95: General/ Latched 32Bit Bi-Directional Counters

    FX Series Programmable Controllers Devices in Detail 4 4.10.2 General/ Latched 32bit Bi-directional Counters The counter shown in the example below, activates when its coil is driven, i.e. the C200 coil is driven. On every occasion the input X14 is turned from OFF to ON the current value or current count of C200 is incremented.
  • Page 96: High Speed Counters

    FX Series Programmable Controllers Devices in Detail 4 4.11 High Speed Counters Device Mnemonic: C Purpose: High speed event driven delays Alias: Counter (s) High speed counter (s) Phase counters Available forms: A driven coil sets internal PLC contacts (NO and NC contacts available). There are various types of high speed counter available but the quantity and function vary from PLC to PLC.
  • Page 97 FX Series Programmable Controllers Devices in Detail 4 4.11.1 Basic High Speed Counter Operation Although counters C235 to C255 (21 points) are all high speed counters, they share the same range of high speed inputs. Therefore, if an input is already being used by a high speed counter, it cannot be used for any other high speed counters or for any other purpose, i.e as an interrupt input.
  • Page 98: Availability Of High Speed Counters On Fx , Fx 0S And Fx 0N Pcs

    FX Series Programmable Controllers Devices in Detail 4 4.11.2 Availability of High Speed Counters on , FX and FX PLC’s The following device table outlines the range of available high speed counters on both the FX and the FX 1 Phase counter 1 Phase counter 2 Phase counter assigned...
  • Page 99: Availability Of High Speed Counters On Fx, Fx 2C Plc's

    FX Series Programmable Controllers Devices in Detail 4 4.11.3 Availability of High Speed Counters on FX, FX PLC’s The following device table outlines the range of available high speed counters on both the FX, 1 Phase counter 1 Phase counter 2 Phase counter assigned A/B Phase counter...
  • Page 100 FX Series Programmable Controllers Devices in Detail 4 Counter speeds: • The maximum counting speed is dependent on the type, quantity of counters and on how many high speed counter instructions are being used. The following tables give the approximate maximum counting speed for each identified case. •...
  • Page 101 FX Series Programmable Controllers Devices in Detail 4 Note: Bi-directional counters are designed such that the up count signal and the down count signal never operate at the same time. Therefore it is really using only one phase at one time. Thus, they can be treated in the same way as the 1 phase counters when calculating the combined frequency.
  • Page 102: Availability Of High Speed Counters On Fx 2N(C) Plc's

    FX Series Programmable Controllers Devices in Detail 4 4.11.4 Availability of High Speed Counters on FX PLC’s 2N(C) The following device table outlines the range of available high speed counters on FX 2N(C) 1 Phase counter 1 Phase counter 2 Phase counter assigned A/B Phase counter user start/reset...
  • Page 103: Phase Counters - User Start And Reset (C235 - C240)

    FX Series Programmable Controllers Devices in Detail 4 4.11.5 1 Phase Counters - User Start and Reset (C235 - C240) These counters only use one input each. When direction flag M8235 is ON, counter C235 counts down. When it is OFF, C235 M8235 counts up.
  • Page 104: Phase Counters - Assigned Start And Reset (C241 To C245)

    FX Series Programmable Controllers Devices in Detail 4 4.11.6 1 Phase Counters - Assigned Start and Reset (C241 to C245) These counters have one countable input and 1 reset input each. Counters C244 and C245 also have a start input. M8245 When the direction flag M8245 is ON, C245 counts down.
  • Page 105: Phase Bi-Directional Counters (C246 To C250)

    FX Series Programmable Controllers Devices in Detail 4 4.11.7 2 Phase Bi-directional Counters (C246 to C250) These counters have one input for counting up and one input for counting down. Certain counters also have reset and start inputs as well. When X10 is ON, C246 resets in the same way as standard 32bit counters.
  • Page 106: A/B Phase Counters (C252 To C255)

    FX Series Programmable Controllers Devices in Detail 4 4.11.8 A/B Phase Counters (C252 to C255) With these counters only the input identified in the previous high speed counter tables can be used for counting. The counting performed by these devices is independent of the program cycle (scan) time.
  • Page 107: Data Registers

    FX Series Programmable Controllers Devices in Detail 4 4.12 Data Registers Device Mnemonic: D Purpose: A storage device capable of storing numeric data or 16/32bit patterns Alias: Data (register/ device/ word) D (register) Word Available forms: General use registers - see page 4-34 Battery backed/latched registers - see page 4-35 Special diagnostic registers - see page 4-35 File registers - see page 4-36...
  • Page 108: General Use Registers

    FX Series Programmable Controllers Devices in Detail 4 4.12.1 General Use Registers Data registers, as the name suggests, store data. The stored data can be interpreted as a numerical value or as a series of bits, being either ON or OFF. A single data register contains 16bits or one word.
  • Page 109: Battery Backed/ Latched Registers

    FX Series Programmable Controllers Devices in Detail 4 4.12.2 Battery Backed/ Latched Registers Once data is written to a battery backed register, it remains unchanged until it is overwritten. When the PLC’s status is changed from RUN to STOP, the data in these registers is retained. The range of devices that is battery backed can be changed by adjusting the parameters of the PLC.
  • Page 110: File Registers

    FX Series Programmable Controllers Devices in Detail 4 4.12.4 File Registers File registers are available in two forms: - Program memory registers - these occupy program steps in blocks of 500 and are avail- able on FX , FX, FX and FX products 2N(C)
  • Page 111: Externally Adjusted Registers

    FX Series Programmable Controllers Devices in Detail 4 4.12.5 Externally Adjusted Registers The FX and FX have built in “setting po ts ” w h ich ar e u s ed to a d ju st t he co n te nt s o f ce rta in de d ica te d da ta registers.
  • Page 112: Index Registers

    FX Series Programmable Controllers Devices in Detail 4 4.13 Index Registers Device Mnemonic: V,Z Purpose: To modify a specified device by stating an offset. Alias: (V/ Z) Register Index (register/ addressing/ modifier) Offset(s) (register/ addressing/ modifier) Indices Modifier Available forms: For 16bit data V or Z 16 Bit 16 Bit...
  • Page 113: Modifying A Constant

    FX Series Programmable Controllers Devices in Detail 4 4.13.1 Modifying a Constant Constants can be modified just as easily as data registers or bit devices. If, for example, the constant K20 was actually written K20V the final result would equal: K20 + the contents of V Example: (3276)
  • Page 114: Bits, Words, Bcd And Hexadecimal

    FX Series Programmable Controllers Devices in Detail 4 4.14 Bits, Words, BCD and Hexadecimal The following section details general topics relating to good device understanding. The section is split into several smaller parts with each covering one topic or small group of topics. Some of the covered topics are;...
  • Page 115 FX Series Programmable Controllers Devices in Detail 4 Assigning grouped bit devices: As already explained, bit devices can be grouped into 4 bit units. The “n” in KnM0 defines the number of groups of 4 bits to be combined for data operation. K1 to K4 are allowed for 16bit data operations but K1 to K8 are valid for 32bit operations.
  • Page 116: Word Devices

    FX Series Programmable Controllers Devices in Detail 4 4.14.2 Word Devices Word devices such as T, C, D, V and Z can store data about a particular event or action within the PLC. For the most part these devices are 16 bit registers. However, certain variations do have 32 bit capabilities, as can pairs of consecutive data registers or combined V and Z registers.
  • Page 117 FX Series Programmable Controllers Devices in Detail 4 The reason this is not -7797 is because a negative value is calculated using two’s compliment (described later) but can quickly be calculated in the following manner: Because this is a negative number, a base is set as -32768. This is the smallest number available with 16bit data.
  • Page 118 FX Series Programmable Controllers Devices in Detail 4 c) ABCD conversion Using the original bit pattern as a base but adding the following BCD headers allows the conversion of the binary data into a BCD format. Binary Coded Decimal value= ERROR!!!!! It will be noticed that this will produce an ERROR.
  • Page 119: Two's Compliment

    FX Series Programmable Controllers Devices in Detail 4 4.14.4 Two’s Compliment Programmable controllers, computers etc, use a format called 2’s compliment. This is a mathematical procedure which is more suited to the micro processors operational hardware requirements. It is used to represent negative numbers and to perform subtraction operations. The procedure is very simple, in the following example “15 - 7”...
  • Page 120: Floating Point And Scientific Notation

    FX Series Programmable Controllers Devices in Detail 4 4.15 Floating Point And Scientific Notation PLC’s can use many different systems and methods to store data. The most common have already been discussed in previous sections e.g. BCD, Binary, Decimal, Hex. These are what is known as ‘integer’ formats or ‘whole number formats’. As the titles suggest these formats use only whole numbers with no representation of fractional parts.
  • Page 121: Scientific Notation

    FX Series Programmable Controllers Devices in Detail 4 4.15.1 Scientific Notation This format could be called the step between the ‘integer’ formats and the full floating point formats. In basic terms Scientific Notation use two devices to store information about a number or value.
  • Page 122: Floating Point Format

    FX Series Programmable Controllers Devices in Detail 4 4.15.2 Floating Point Format Floating point format extends the abilities and ranges provided by Scientific Notation with the ability to represent fractional portions of whole numbers, for example; Performing and displaying the calculation of 22 divided by 7 would yield the following results: a) Normal FX operation using decimal (integers) numbers would equal 3 remainder 1 b) In floating point it would equal 3.14285 (approximately) c) In Scientific format this calculation would be equal to 3142...
  • Page 123: Summary Of The Scientific Notation And Floating Point Numbers

    FX Series Programmable Controllers Devices in Detail 4 4.15.3 Summary Of The Scientific Notation and Floating Point Numbers The instruction needed to convert between each number format are shown below in a diagrammatically format for quick and easy reference. FX, FX Use to view the View as either integer of mantissa and...
  • Page 124 FX Series Programmable Controllers Devices in Detail 4 MEMO 4-50...
  • Page 125 FX Series Programmable Controllers Applied Instructions 5 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 126 FX Series Programmable Controllers Applied Instructions 5 Chapter Contents 5. Applied Instructions ................5-1 Program Flow-Functions00 to 09 ..................5-4 5.1.1 CJ (FNC 00) ............5-5 5.1.2 CALL (FNC 01).......... 5-7 5.1.3 SRET (FNC 02)............5-8 5.1.4 IRET, EI, DI (FNC 03, 04, 05)....5-9 5.1.5 FEND (FNC 06)............
  • Page 127: Applied Instructions

    FX Series Programmable Controllers Applied Instructions 5 Applied Instructions Applied Instructions are the ‘specialist’ instructions of the FX family of PLC’s. They allow the user to perform complex data manipulations, mathematical operations while still being very easy to program and monitor. Each applied instruction has unique mnemonics and special function numbers.
  • Page 128 FX Series Programmable Controlers Applied Instructions 5 • For instructions that operate continuously, i.e. on every scan of the program the instruction will operate and provide a new, different result, the following identification symbol will be used ‘ ’ to represent a high speed changing state. Typical instructions covered by this situation have a strong incremental, indexable element to their operation.
  • Page 129 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 130: Program Flow-Functions00 To 09

    FX Series Programmable Controlers Applied Instructions 5 Program Flow-Functions00 to 09 Contents: Page CJ - Conditional jump FNC 00 CALL - Call Subroutine FNC 01 SRET - Subroutine Return FNC 02 IRET - Interrupt Return FNC 03 EI - Enable Interrupt FNC 04 DI - Disable Interrupt...
  • Page 131: Cj (Fnc 00)

    FX Series Programmable Controlers Applied Instructions 5 5.1.1 CJ (FNC 00) Operands Mnemonic Function Program steps Jumps to the Valid pointers from the range 0 to 63 CJ, CJP:3steps FNC 00 identified pointer Jump pointer PPP: 1 step (Conditional position Jump) Operation: When the CJ instruction is active it forces the program...
  • Page 132 FX Series Programmable Controlers Applied Instructions 5 e) A CJ instruction can be used to Jump forwards t h r o u g h a p r o g r a m , i . e . t o - w a r d s t h e E N D instruction OR it can jump backwards towards step 0.
  • Page 133: Call (Fnc 01)

    FX Series Programmable Controlers Applied Instructions 5 5.1.2 CALL (FNC 01) Operands Mnemonic Function Program steps CALL Executes the Valid pointers from the range 0 to 62 CALL, CALLP: FNC 01 subroutine 3 step all sub- program starting Nest levels: 5 including the initial CALL Subroutine pointer routine at the identified...
  • Page 134: Sret (Fnc 02)

    FX Series Programmable Controlers Applied Instructions 5 Special subroutine timers: • Because of the chance of intermittent use of the subroutines, if timed functions are required the timers used must be selected from the range T192 to T199 and T246 to T249.
  • Page 135: Iret, Ei, Di (Fnc 03, 04, 05)

    FX Series Programmable Controlers Applied Instructions 5 5.1.4 IRET, EI, DI (FNC 03, 04, 05) Operands Mnemonic Function Program steps IRET Forces the IRET: FNC 03 program to return Automatically returns to the main program step 1 step (Interrupt from the active which was being processed at the time of the return) interrupt routine...
  • Page 136 FX Series Programmable Controlers Applied Instructions 5 Controlling interrupt operations: The PLC has a default status of disabling interrupt operation. The EI instruction must be used to activate the interrupt facilities. All interrupts which physically occur during the program scan period from the EI instruction until the FEND or DI instructions will have their associated interrupt routines run.
  • Page 137: Fend (Fnc 06)

    FX Series Programmable Controlers Applied Instructions 5 5.1.5 FEND (FNC 06) Operands Mnemonic Function Program steps FEND Used to indicate FEND: FNC 06 the end of the Note: 1 step (First end) main program Can be used with CJ (FNC 00), CALL (FNC 01) block and interrupt routines Operation:...
  • Page 138: Wdt (Fnc 07)

    FX Series Programmable Controlers Applied Instructions 5 5.1.6 WDT (FNC 07) Operands Mnemonic Function Program steps Used to refresh WDT, WDTP: FNC 07 the watch dog Can be driven at any time within the main 1 step (Watch dog timer during a program body timer refresh) program scan...
  • Page 139: For, Next (Fnc 08, 09)

    FX Series Programmable Controlers Applied Instructions 5 5.1.7 FOR, NEXT (FNC 08, 09) Operands Mnemonic Function Program steps Identifies the start K, H, FOR: FNC 08 position and the KnX, KnY, KnM, KnS, 3 step (Start of a number of T, C, D, V, Z FOR-NEXT repeats for the...
  • Page 140 FX Series Programmable Controlers Applied Instructions 5 Nested FOR-NEXT loops: FOR-NEXT instructions can be nested for 5 levels. This means that 5 FOR-NEXT loops can be sequentially programmed within each other. In the example a 3 level nest has been programmed. As each new FOR-NEXT nest level is encountered the number of times that loop is repeated is increased by the multiplication of all of the surrounding/previous loops.
  • Page 141 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 142: Move And Compare - Functions 10 To 19

    FX Series Programmable Controlers Applied Instructions 5 Move And Compare - Functions 10 to 19 Contents: Page CMP - Compare FNC 10 5-17 ZCP - Zone Compare FNC 11 5-17 MOV - Move FNC 12 5-18 SMOV - Shift Move FNC 13 5-18 CML -...
  • Page 143: Cmp (Fnc 10)

    FX Series Programmable Controlers Applied Instructions 5 5.2.1 CMP (FNC 10) Operands Mnemonic Function Program steps Compares two K, H, Y, M, S CMP, CMPP: FNC 10 KnX, KnY, KnM, KnS, data values - 7 steps (Compare) results of <, = and T, C, D, V, Z Note: >...
  • Page 144: Mov (Fnc 12)

    FX Series Programmable Controlers Applied Instructions 5 5.2.3 MOV (FNC 12) Operands Mnemonic Function Program steps Moves data from K, H, KnY, KnM, KnS, MOV, MOVP: FNC 12 one storage area KnX, KnY, KnM, KnS, T, C, D, V, Z 5 steps (Move) to a new storage...
  • Page 145: Cml (Fnc 14)

    FX Series Programmable Controlers Applied Instructions 5 Operation 2: (Applicable units are FX units with CPU’s ver 3.07 or greater and FX ‘s). This modification of the SMOV operation allows BCD numbers to be manipulated in exactly the same way as the ‘normal’ SMOV manipulates decimal numbers, i.e. This instruction copies a specified number of digits from a 4 digit BCD source (S) and places them at a specified location within a destination (D) number (also a 4 digit BCD number).
  • Page 146: Bmov (Fnc 15)

    FX Series Programmable Controlers Applied Instructions 5 5.2.6 BMOV (FNC 15) Operands Mnemonic Function Program steps BMOV Copies a specified KnX, KnY, KnY, KnM, K, H BMOV, FNC 15 block of multiple KnM, KnS, KnS, D (FX2C, BMOVP: (Block move) data elements to a T,C,D, V, Z T, C, D, V, Z...
  • Page 147: Fmov (Fnc 16)

    FX Series Programmable Controlers Applied Instructions 5 5.2.7 FMOV (FNC 16) Operands Mnemonic Function Program steps FMOV Copies a single KnX, KnY, KnY, KnM, K, H FMOV,FMOVP:7 FNC 16 data device to a KnM, KnS, KnS, steps (Fill move) range of T, C, D, V, Z T, C, D, V, Z DFMOV,DFMOVP...
  • Page 148: Bcd (Fnc18)

    FX Series Programmable Controlers Applied Instructions 5 5.2.9 BCD (FNC18) Operands Mnemonic Function Program steps Converts binary KnX,KnY, KnM, KnS, KnY, KnM, KnS, BCD, BCDP: FNC 18 numbers to BCD T, C, D, V, Z T, C, D, V, Z 5 steps coded equivalents /...
  • Page 149 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 150: Arithmetic And Logical Operations -Functions 20 To 29

    FX Series Programmable Controlers Applied Instructions 5 Arithmetic And Logical Operations - Functions 20 to 29 Contents: Page ADD - Addition FNC 20 5-25 SUB - Subtraction FNC 21 5-26 MUL - Multiplication FNC 22 5-27 DIV - Division FNC 23 5-28 INC - Increment...
  • Page 151: Add (Fnc 20)

    FX Series Programmable Controlers Applied Instructions 5 5.3.1 ADD (FNC 20) Operands Mnemonic Function Program steps The value of the K, H, KnX, KnY, KnM, KnS, KnY, KnM, KnS, ADD, ADDP: FNC 20 two source T, C, D, V, Z T, C, D, V, Z 7 steps devices is added...
  • Page 152: Sub (Fnc 21)

    FX Series Programmable Controlers Applied Instructions 5 Operation 2: (Applicable units: FX (2C) This function is equivalent to FNC 120 EADD. When ‘floating point mode flag’ M8023 is active, i.e. M8023 [ S1 ] [ S2 ] [ D ] ON, DADD and DADDP instructions can be used to perform floating point additions.
  • Page 153: Mul (Fnc 22)

    FX Series Programmable Controlers Applied Instructions 5 5.3.3 MUL (FNC 22) Operands Mnemonic Function Program steps Multiplies the two K, H, KnX, KnY, KnM, KnS, KnY,KnM,KnS, MUL, MULP: FNC 22 source devices T, C, D, V, Z T, C, D, Z(V) 7steps (Multiplica together the result...
  • Page 154: Div (Fnc 23)

    FX Series Programmable Controlers Applied Instructions 5 5.3.4 DIV (FNC 23) Operands Mnemonic Function Program steps Divides one K, H, KnX, KnY, KnM, KnS,T, KnY, KnM, KnS, DIV,DIVP: FNC 23 source value by C, D, V, Z T, C, D, Z(V) 7steps (Division) another the result...
  • Page 155: Inc (Fnc 24)

    FX Series Programmable Controlers Applied Instructions 5 5.3.5 INC (FNC 24) Operands Mnemonic Function Program steps The designated KnY, KnM, KnS, INC,INCP: FNC 24 device is T, C, D, V, Z 3 steps incremented by 1 Standard V,Z rules apply for 32 bit operation Increment) on every DINC,...
  • Page 156: Wand (Fnc 26)

    FX Series Programmable Controlers Applied Instructions 5 5.3.7 WAND (FNC 26) Operands Mnemonic Function Program steps WAND A logical AND is K, H, KnY, KnM, KnS, WAND,WANDP: FNC 26 performed on the KnX, KnY, T, C, D, V, Z 7 steps source devices - KnM, KnS, DAND,...
  • Page 157: Wxor (Fnc 28)

    FX Series Programmable Controlers Applied Instructions 5 5.3.9 WXOR (FNC 28) Operands Mnemonic Function Program steps WXOR A logical XOR is K, H KnY, KnM, KnS, WXOR, FNC 28 performed on the KnX, KnY, KnM, KnS, T, C, D, V, Z WXORP: (Logical source devices -...
  • Page 158 FX Series Programmable Controlers Applied Instructions 5 MEMO 5-32...
  • Page 159 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 160: Rotation And Shift - Functions 30 To 39

    FX Series Programmable Controlers Applied Instructions 5 Rotation And Shift - Functions 30 to 39 Contents: Page ROR - Rotation Right FNC 30 5-35 ROL - Rotation Left FNC 31 5-35 RCR - Rotation Right with Carry FNC 32 5-36 RCL - Rotation Left with Carry FNC 33...
  • Page 161: Ror (Fnc 30)

    FX Series Programmable Controlers Applied Instructions 5 5.4.1 ROR (FNC 30) Operands Mnemonic Function Program steps The bit pattern of KnY, KnM, KnS, K, H, ROR, RORP: FNC 30 the destination T, C, D, V, Z 5 steps (Rotation device is rotated Note: right) ‘n’...
  • Page 162: Rcr (Fnc 32)

    FX Series Programmable Controlers Applied Instructions 5 5.4.3 RCR (FNC 32) Operands Mnemonic Function Program steps The contents of KnY, KnM, KnS, K, H, RCR,RCRP: FNC 32 the destination T, C, D, V, Z 5 steps device are rotated Note: Rotation right with right with 1 bit...
  • Page 163: Sftr (Fnc 34)

    FX Series Programmable Controlers Applied Instructions 5 5.4.5 SFTR (FNC 34) Operands Mnemonic Function Program steps SFTR The status of the X, Y, M, S Y, M, S K,H, SFTR,SFTRP: FNC 34 source devices are 9 steps right) copied to a Bit shift Note: controlled bit stack...
  • Page 164: Wsfr (Fnc 36)

    FX Series Programmable Controlers Applied Instructions 5 5.4.7 WSFR (FNC 36) Operands Mnemonic Function Program steps WSFR The value of the KnX, KnY, KnY,KnM, K,H, WSFR, FNC 36 source devices are KnM,KnS, KnS, WSFRP: copied to a T, C, D T, C, D 9 steps Word...
  • Page 165: Sfwr (Fnc 38)

    FX Series Programmable Controlers Applied Instructions 5 5.4.9 SFWR (FNC 38) Operands Mnemonic Function Program steps SFWR This instruction K, H, KnY, KnM, K, H, SFWR, FNC 38 creates and builds KnX, KnY, KnS, SFWRP: register a FIFO stack n KnM,KnS, T, C, D, 7 steps...
  • Page 166: Sfrd (Fnc 39)

    FX Series Programmable Controlers Applied Instructions 5 5.4.10 SFRD (FNC 39) Operands Mnemonic Function Program steps SFRD This instruction KnY, KnM, KnY, KnM, K,H, SFRD, FNC 39 reads and KnS, KnS, SFRDP: (Shift reduces FIFO T, C, D, T, C, D, 7 steps Note: register read)
  • Page 167 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 168: Data Operation - Functions 40 To 49

    FX Series Programmable Controlers Applied Instructions 5 Data Operation - Functions 40 to 49 Contents: Page ZRST - Zone Reset FNC 40 5-43 DECO - Decode FNC 41 5-43 ENCO - Encode FNC 42 5-44 SUM - The Sum Of Active Bits FNC 43 5-45 BON -...
  • Page 169: Zrst (Fnc 40)

    FX Series Programmable Controlers Applied Instructions 5 5.5.1 ZRST (FNC 40) Operands Mnemonic Function Program steps ZRST Used to reset a Y, M,S, ZRST, T, C, D FNC 40 range of like ZRSTP: Note: devices in one 5 steps Zone must be less than or equal ( ≤...
  • Page 170: Enco (Fnc 42)

    FX Series Programmable Controlers Applied Instructions 5 5.5.3 ENCO (FNC 42) Operands Mnemonic Function Program steps ENCO Then location of X, Y, M, S, T, C, D, V, K, H, ENCO, FNC 42 the highest active T, C, D, V, ENCOP: (Encode) bit is stored as a...
  • Page 171: Sum (Fnc 43)

    FX Series Programmable Controlers Applied Instructions 5 5.5.4 SUM (FNC 43) Operands Mnemonic Function Program steps The number K, H, KnY, KnM, KnS, SUM,SUMP: FNC 43 (quantity) of KnX, KnY, KnM, KnS, T, C, D, V, Z 7 steps active bits in the T, C, D, V, Z Sum of active bits)
  • Page 172: Mean (Fnc 45)

    FX Series Programmable Controlers Applied Instructions 5 5.5.6 MEAN (FNC 45) Operands Mnemonic Function Program steps MEAN Calculates the KnX, KnY, KnY, KnM, K,H, MEAN, FNC 45 mean of a range KnM, KnS, KnS, MEANP: (Mean) of devices T, C, D T, C, D, V, Z 7 steps Note:...
  • Page 173: Ans (Fnc 46)

    FX Series Programmable Controlers Applied Instructions 5 5.5.7 ANS (FNC 46) Operands Mnemonic Function Program steps This instruction ANS: FNC 46 starts a timer. Note: Note: 7 steps (Timed Once timed out available annunciator Note: annunciator the selected range range S900 to n range 1 to set) annunciator flag is...
  • Page 174: Sqr (Fnc 48)

    FX Series Programmable Controlers Applied Instructions 5 5.5.9 SQR (FNC 48) Operands Mnemonic Function Program steps Performs a K,H,D SQR, SQRP: FNC 48 mathematical 5 steps When using M8023 in float mode, only (Square square root e.g.: DSQR, double word (32bit) data can be processed. root) DSQRP: See page 4- 46 for more details regarding float-...
  • Page 175: Flt (Fnc 49)

    FX Series Programmable Controlers Applied Instructions 5 5.5.10 FLT (FNC 49) Operands Mnemonic Function Program steps Used to convert FLT, FLTP: FNC 49 data to and from 5 steps M8023 = OFF data is converted from decimal floating point DFLT, Floating to floating point format point)
  • Page 176 FX Series Programmable Controlers Applied Instructions 5 Points to Note: a) When floating point numbers are used the zero, borrow and carry flags (M8020, M8021 and M8022 respectively) operate at the following times; M8020, Zero: is activated when the result is Zero. M8021, Borrow: is activated when the result is smaller than the smallest possible number.
  • Page 177 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 178: High Speed Processing - Functions 50 To 59

    FX Series Programmable Controlers Applied Instructions 5 High Speed Processing - Functions 50 to 59 Contents: Page REF - Refresh FNC 50 5-53 REFF - Refresh and filter adjust FNC 51 5-53 MTR - Input matrix FNC 52 5-54 HSCS - High speed counter set FNC 53 5-55...
  • Page 179: Ref (Fnc 50)

    FX Series Programmable Controlers Applied Instructions 5 5.6.1 REF (FNC 50) Operands Mnemonic Function Program steps Forces an X, Y K, H REF, REFP: FNC 50 immediate update 5 steps of inputs or Refresh) Note: Note: outputs as å D should always be a n should always be a specified multiple of 10, i.e.
  • Page 180: Mtr (Fnc 52)

    FX Series Programmable Controlers Applied Instructions 5 5.6.3 MTR (FNC 52) Operands Mnemonic Function Program steps Multiplexes a Y, M, S K, H, MTR: 9 steps FNC 52 bank of inputs (Input into a number of Note: Note: matrix) sets of devices. n=2 to 8 These operands should always be Can only be used...
  • Page 181: Hscs (Fnc 53)

    FX Series Programmable Controlers Applied Instructions 5 f) Because this instruction uses a series of multiplexed signals it requires a certain amount of Diode ‘hard wiring’ to operate. The example wiring 0,1 A 50 V diagram to the right depicts the circuit used if the previous example instruction was programmed.
  • Page 182: Hscr (Fnc 54)

    FX Series Programmable Controlers Applied Instructions 5 b) If more than one high speed counter function is used for a single counter the selected flag devices (D) should be kept within 1 group of 8 devices, i.e. Y0-7, M10-17. c) All high speed counter functions use an interrupt process, hence, all destination devices (D) are updated immediately.
  • Page 183: Hsz (Fnc 55)

    FX Series Programmable Controlers Applied Instructions 5 5.6.6 HSZ (FNC 55) Operands Mnemonic Function Program steps Operation 1: K, H, Y, M, S DHSZ: FNC 55 The current value KnX, KnY, Note: Note: 17 steps (High of a high speed KnM, KnS, C = 235 to 3 consecutive...
  • Page 184 FX Series Programmable Controlers Applied Instructions 5 The following points should be read while studying the example on the right of the page. Please note, all normal rules associated with high speed counters still apply. The data table is processed one ‘record Record Comparison Selected 'Y'...
  • Page 185 FX Series Programmable Controlers Applied Instructions 5 Operation 3 - Combined HSZ and PLSY Operation: (Applicable units: FX and FX (2C) 2N(C) Operation 3 allows the HSZ and PLSY instructions to be used together as a control loop. This operation is selected when the destination device (D) is assigned special M coil M8132. This then allows devices (S ) to be used to define a data table using (S ) as the head address...
  • Page 186: Spd (Fnc 56)

    FX Series Programmable Controlers Applied Instructions 5 5.6.7 SPD (FNC 56) Operands Mnemonic Function Program steps Detects the X0 to X5 K, H, T, C, D, Z (V) SPD: FNC 56 number of KnX, KnY, Note: 7 steps (Speed ‘encoder’ pulses KnM, KnS, 3 consecutive devices detection)
  • Page 187: Plsy (Fnc 57)

    FX Series Programmable Controlers Applied Instructions 5 5.6.8 PLSY (FNC 57) Operands Mnemonic Function Program steps PLSY Outputs a K, H, PLSY: FNC 57 specified number KnX, KnY, Note: 7 steps (Pulse Y of pulses at a set KnM, KnS, users: DPLSY: 0(S)
  • Page 188: Pwm (Fnc 58)

    FX Series Programmable Controlers Applied Instructions 5 g) FX and FX units can use the HSZ (FNC 55) instruction with the PLSY instruction (2C) 2N(C) when source device S is set to D8132. Please see page 5-59 for more details. h) FX units with CPU version 3.07 or greater and FX units can monitor the number of pulses which have been output as a double word using devices D8136 and D8137.
  • Page 189: Plsr (Fnc 59)

    FX Series Programmable Controlers Applied Instructions 5 5.6.10 PLSR (FNC 59) Operands Mnemonic Function Program steps PLSR Outputs a K, H, PLSR: FNC 59 specified number KnX, KnY, KnM, KnS, 9 steps ramp) of pulses, T, C, D, V, Z users: DPLSR: Pulse...
  • Page 190 FX Series Programmable Controlers Applied Instructions 5 d) The output device is limited to Y0 or Y1 only and should be transistor type. e) This instruction can only be used once within a program scan. Also, only one of either FNC 57 PLSY or FNC 59 PLSR can be in the active program at once.
  • Page 191: Applied Instructions

    FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 192: Handy Instructions - Functions 60 To 69

    FX Series Programmable Controlers Applied Instructions 5 Handy Instructions - Functions 60 to 69 Contents: Page IST - Initial State FNC 60 5-67 SER - Search FNC 61 5-69 ABSD - Absolute Drum FNC 62 5-70 INCD - Incremental Drum FNC 63 5-71 TTMR -...
  • Page 193: Ist (Fnc 60)

    FX Series Programmable Controlers Applied Instructions 5 5.7.1 IST (FNC 60) Operands Mnemonic Function Program steps Automatically sets X, Y, M, S, IST: FNC 60 up a multi-mode Note: Note: 7 steps state) STL operating uses 8 users S20 to S63 Initial system consecutive devices...
  • Page 194 FX Series Programmable Controlers Applied Instructions 5 e) The available operating modes are split into two main groups, manual and automatic. There are sub-modes to these groups. Their operation is defined as: Manual Manual (selected by device S+0)- Power supply to individual loads is turned ON and OFF by using a separately provided means, often additional push buttons.
  • Page 195: Ser (Fnc 61)

    FX Series Programmable Controlers Applied Instructions 5 5.7.2 SER (FNC 61) Operands Mnemonic Function Program steps Generates a list KnX, KnY, KnX, KnY, KnY, KnM, K,H, D SER, SERP: FNC 61 of statistics KnM, KnS, KnM, KnS, 9 steps (Search a about a single T, C, D T, C, D...
  • Page 196: Absd (Fnc 62)

    FX Series Programmable Controlers Applied Instructions 5 5.7.3 ABSD (FNC 62) Operands Mnemonic Function Program steps ABSD Generates KnX, KnY, Y,M,S ABSD: FNC 62 multiple output KnM, KnS, 9 steps (Absolute patterns in (in groups Note: drum response to of 8) n consec- DABSD: Note:...
  • Page 197: Incd (Fnc 63)

    FX Series Programmable Controlers Applied Instructions 5 5.7.4 INCD (FNC 63) Operands Mnemonic Function Program steps INCD Generates a KnX, KnY, Y, M, S INCD: FNC 63 single output KnM, KnS, Uses 2 9 steps (Incremental sequence in (in groups of consecu- Note: drum...
  • Page 198: Ttmr (Fnc 64)

    FX Series Programmable Controlers Applied Instructions 5 5.7.5 TTMR (FNC 64) Operands Mnemonic Function Program steps TTMR Monitors the K, H TTMR: FNC 64 duration of a 5 steps (Teaching signal and places Note: Note: timer) the timed data 2 devices 16 bit words n= 0: (D) = (D ) ×...
  • Page 199: Alt (Fnc 66)

    FX Series Programmable Controlers Applied Instructions 5 5.7.7 ALT (FNC 66) Operands Mnemonic Function Program steps Y, M, S ALT, ALTP: The status of the FNC 66 3 steps assigned device (Alternate is inverted on state) every operation of the instruction Operation: [ D ] The status o f th e d estin atio n de vic e (D) is...
  • Page 200 FX Series Programmable Controlers Applied Instructions 5 Points to note: a) FX users may set the operation mode of the RAMP instruction by controlling the state of special auxiliary relay M8026. When M8026 is OFF, the RAMP instruction will be in repeat [S2] mode.
  • Page 201: Rotc (Fnc 68)

    FX Series Programmable Controlers Applied Instructions 5 5.7.9 ROTC (FNC 68) Operands Mnemonic Function Program steps ROTC Controls a rotary K, H K, H Y, M, S ROTC: FNC 68 tables movement Note: 9 steps (Rotary is response to a uses 3 Note: Note:...
  • Page 202 FX Series Programmable Controlers Applied Instructions 5 d) When the ‘zero point’ input (D+2) is received the contents of device S+0is reset to ‘0’ (zero). Before starting any new operation it is advisable to ensure the rotary table is initialized by moving the ‘zero point’...
  • Page 203: Sort (Fnc 69)

    FX Series Programmable Controlers Applied Instructions 5 5.7.10 SORT (FNC 69) Operands Mnemonic Function Program steps SORT Data in a defined K, H K, H SORT: FNC 69 table can be 11 steps (SORT sorted on selected Note: Tabulated fields while m1= 1 to 32 Note: Data)
  • Page 204 FX Series Programmable Controlers Applied Instructions 5 MEMO 5-78...
  • Page 205: Applied Instructions

    FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 206: External Fx I/O Devices - Functions 70 To 79

    FX Series Programmable Controlers Applied Instructions 5 External FX I/O Devices - Functions 70 to 79 Contents: Page TKY - Ten Key Input FNC 70 5-81 HKY - Hexadecimal Input FNC 71 5-82 DSW - Digital Switch (Thumbwheel input) FNC 72 5-83 SEGD - Seven Segment Decoder...
  • Page 207: Tky (Fnc 70)

    FX Series Programmable Controlers Applied Instructions 5 5.8.1 TKY (FNC 70) Operands Mnemonic Function Program steps Reads 10 devices X, Y, M, S KnY, KnM, Y, M, S TKY: FNC 70 with associated Note: uses 10 KnS, Note: uses 11 7 steps decimal values consecutive...
  • Page 208: Hky (Fnc 71)

    FX Series Programmable Controlers Applied Instructions 5 5.8.2 HKY (FNC 71) Operands Mnemonic Function Program steps Multiplexes inputs T, C, D, V, Z Y, M, S HKY: FNC 71 and outputs to Note: Note: Note: uses 2 Note: 9 steps (Hexadeci- create a numeric uses 4...
  • Page 209: Dsw (Fnc 72)

    FX Series Programmable Controlers Applied Instructions 5 e) The HKY instruction may only be used ONCE. f) Normal operation requires 8 scans to read the key inputs. To achieve a steady and repeatable FEND performance, constant scan mode should be used, M8000 I 610 REF X 0...
  • Page 210: Segd (Fnc 73)

    FX Series Programmable Controlers Applied Instructions 5 b) When n= 2, two sets of switches are read. This configuration requires 8 consecutive inputs taken from the head address specified in operand S. The data from the first set of switches, i.e.
  • Page 211: Segl (Fnc 74)

    FX Series Programmable Controlers Applied Instructions 5 5.8.5 SEGL (FNC 74) Operands Mnemonic Function Program steps SEGL Writes data to K, H SEGL: K, H, FNC 74 multiplexed single KnX, KnY, Note: 7 steps Note: digit displays - 4 KnM, KnS n = 0 to 3, 8 Seven n= 0 to 3, 1 set...
  • Page 212 FX Series Programmable Controlers Applied Instructions 5 d) If the SEGL instruction is suspended during mid-operation, when it is restarted it will start from the beginning of its cycle and not from its last status achieved. e) The SEGL instruction may be used ONCE on FX controllers with CPU versions lower than 3.07.
  • Page 213: Arws (Fnc 75)

    FX Series Programmable Controlers Applied Instructions 5 5.8.6 ARWS (FNC 75) Operands Mnemonic Function Program steps ARWS Creates a user X, Y, M, S T, C, D, V, Z K, H ARWS: FNC 75 defined, (4 key) Note: Note: data Note: 9 steps (Arrow...
  • Page 214: Asc (Fnc 76)

    FX Series Programmable Controlers Applied Instructions 5 5.8.7 ASC (FNC 76) Operands Mnemonic Function Program steps An entered Alphanumeric data e.g. T, C, D FNC 76 alphanumeric 0-9, A - Z and a - z etc. Note: : 7 steps code string can be Note: Only one, 8...
  • Page 215: Pr (Fnc 77)

    FX Series Programmable Controlers Applied Instructions 5 5.8.8 PR (FNC 77) Operands Mnemonic Function Program steps Outputs ASCII T, C, D FNC 77 data to items Note: uses 5 steps Note: 8 byte mode (M8027=OFF) uses 4 consecutive devices (Print) such as display 16 byte mode (M8027= ON) uses 8 units...
  • Page 216: From (Fnc 78)

    FX Series Programmable Controlers Applied Instructions 5 5.8.9 FROM (FNC 78) Operands Mnemonic Function Program steps FROM Read data from KnY, KnM, FROM, K, H K, H K, H FNC 78 the buffer KnS, T, C, FROMP: Note: Note: Note: (FROM) memories of D, V, Z...
  • Page 217: To (Fnc 77)

    FX Series Programmable Controlers Applied Instructions 5 e) Users of FX PLC’s have the option of allowing interrupts to occur immediately, i.e. during the operation of the FROM/TO instructions or to wait until the completion of the current FROM/TO instruction. This is achieved by controlling the special auxiliary flag M8028. The following table identifies certain points associated with this control and operation.
  • Page 218 FX Series Programmable Controlers Applied Instructions 5 MEMO 5-92...
  • Page 219: Applied Instructions

    FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 220: External Fx Serial Devices - Functions 80 To 89

    FX Series Programmable Controlers Applied Instructions 5 External FX Serial Devices - Functions 80 to 89 Contents: Page RS - RS Communications FNC 80 5-95 PRUN - -40AP Parallel Run FNC 81 5-96 ASCI - Hexadecimal to ASCII FNC 82 5-98 HEX - ASCII to Hexadecimal...
  • Page 221: Rs (Fnc 80)

    FX Series Programmable Controlers Applied Instructions 5 5.9.1 RS (FNC 80) Operands Mnemonic Function Program steps Used to control K, H, K, H, RS: 9 steps FNC 80 serial (including (Serial Com- communications file munications from/to the registers) m = 1 to m = 1 to instruction) programmable...
  • Page 222: Run (Fnc 81)

    FX Series Programmable Controlers Applied Instructions 5 5.9.2 RUN (FNC 81) Operands Mnemonic Function Program steps PRUN Used to control KnX, KnM KnY, KnY PRUN, FNC 81 the FX parallel PRUNP: Note: (Parallel run) link adapters: 5 steps n = 1 to 8 FX2-40AW/AP DPRUN, For ease and convenience, the head address...
  • Page 223 FX Series Programmable Controlers Applied Instructions 5 c) The PRUN instruction enables data to be moved into the bit transmission area or out of the (bit) data received area. The PRUN instruction differs from the move statement in that it operates in octal.
  • Page 224: Asci (Fnc 82)

    FX Series Programmable Controlers Applied Instructions 5 5.9.3 ASCI (FNC 82) Operands Mnemonic Function Program steps ASCI Converts a data K, H, KnX, KnY, KnM, K, H ASCI, FNC 82 value from KnY, ASCIP: (Converts hexadecimal to KnM, KnS T, C, D Note: 7 steps HEX to...
  • Page 225: Hex (Fnc 83)

    FX Series Programmable Controlers Applied Instructions 5 5.9.4 HEX (FNC 83) Operands Mnemonic Function Program steps Converts a data K, H, KnX, KnY, KnY, KnM, KnS K, H HEX, FNC 83 value from ASCII KnM, KnS T, C, D, V, Z HEXP: (Converts in to a...
  • Page 226: Ccd (Fnc 84)

    FX Series Programmable Controlers Applied Instructions 5 5.9.5 CCD (FNC 84) Operands Mnemonic Function Program steps Checks the KnX, KnY, KnM, KnY, KnM, KnS K, H CCD, FNC 84 ‘vertical’ parity of T, C, D CCDP: (Check a data stack T, C, D Note: 7 steps...
  • Page 227: Vrrd (Fnc 85)

    FX Series Programmable Controlers Applied Instructions 5 5.9.6 VRRD (FNC 85) Operands Mnemonic Function Program steps VRRD Reads an analog K, H KnY, KnM, KnS VRRD, FNC 85 value from 1 of 8 Note: T, C, D, V, Z VRRDP: (Volume volume inputs on S= 0 to 7...
  • Page 228: Pid (Fnc 88)

    FX Series Programmable Controlers Applied Instructions 5 5.9.8 PID (FNC 88) Operands Mnemonic Function Program steps Receives a data PID: FNC 88 input and 9 steps (PID calculates a Note: S and S Note: S Note: D control loop) corrective action use a single uses 25 uses a single...
  • Page 229 FX Series Programmable Controlers Applied Instructions 5 PID Equations > SV Forward   ----- - EV ∆MV –   –   – ⋅ ------------------------------ - 2PV ------------------------------ - D – ⋅ nf 1 – nf 2 – –...
  • Page 230 FX Series Programmable Controlers Applied Instructions 5 PID setup parameters; S The PID setup parameters are contained in a 25 register data stack. Some of these devices require data input from the user, some are reserved for the internal operation and some return output data from the PID operation.
  • Page 231 FX Series Programmable Controlers Applied Instructions 5 Configuring the PID loop The PID loop can be configured to offer variations on PID control. These are as follows: Selection via setup registers Control Description method + 6 (T +3 (K + 4 (T User value Set to 0 (zero) Set to 0 (zero)
  • Page 232 FX Series Programmable Controlers Applied Instructions 5 α Effective use of the input filter To prevent the PID instruction from reacting immediately and wildly to any errors on the Current Value, there is a filtering mechanism which allows the PID instruction to observe and account for any significant fluctuations over three samples.
  • Page 233 FX Series Programmable Controlers Applied Instructions 5 Example PID Settings The partial program shown at below demonstrates which parameters must be set for the functioning of the FX2N. The first step sets the user values for S +0 to S +6.
  • Page 234 FX Series Programmable Controlers Applied Instructions 5 MEMO 5-108 5-108...
  • Page 235: Applied Instructions

    FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 236: External F2 Units - Functions 90 To 99

    FX Series Programmable Controlers Applied Instructions 5 5.10 External F2 Units - Functions 90 to 99 Contents: Page MNET - F-16NP, Melsec Net Mini FNC 90 5-111 ANRD - -6A, Analog Read FNC 91 5-111 ANWR - -6A, Analog Write FNC 92 5-112 RMST -...
  • Page 237: Mnet (Fnc 90)

    FX Series Programmable Controlers Applied Instructions 5 5.10.1 MNET (FNC 90) Operands Mnemonic Function Program steps MNET Used to control MNET, FNC 90 the F series net MNETP: mini module - use 5 steps F-16NT/NP Note: Note: Melsec net with an FX -24EI uses 8 consecutive uses 8 consecutive...
  • Page 238: Anwr (Fnc 92)

    FX Series Programmable Controlers Applied Instructions 5 5.10.3 ANWR (FNC 92) Operands Mnemonic Function Program steps ANWR Used to write to KnY, KnM, K, H ANWR, FNC 92 the F series KnS, T, C, ANWRP: Note: Note: analog module - D, V, Z 9 steps uses 8...
  • Page 239: Rmmr (Fnc 94)

    FX Series Programmable Controlers Applied Instructions 5 c) Operand D stores the F -32RM status information. Status of bit device D BANK 1 (program 1) selected BANK 0 (program 0) selected Normally OFF START STOP 1.0 degree steps 0.5 degree steps Normally ON Clockwise operation (CW) Counter-clockwise operation (CCW)
  • Page 240: Rmrd (Fnc 95)

    FX Series Programmable Controlers Applied Instructions 5 5.10.6 RMRD (FNC 95) Operands Mnemonic Function Program steps RMRD Reads output Y, M, S RMRD,RMRDP FNC 95 status of F series Note: 16 bit operation : 7 steps Note: Note: CAM module -use uses 16 devices, DRMRD, -32RM...
  • Page 241: Blk (Fnc 97)

    FX Series Programmable Controlers Applied Instructions 5 5.10.8 BLK (FNC 97) Operands Mnemonic Function Program steps Identifies a block K, H BLK, BLKP: FNC 97 number to the KnX, KnY, 7 steps Note: Note: -30GM - use KnM, -30GM uses 8 uses 8 Block) with an FX...
  • Page 242: Mcde (Fnc 98)

    FX Series Programmable Controlers Applied Instructions 5 5.10.9 MCDE (FNC 98) Operands Mnemonic Function Program steps MCDE Reads a set MCDE, Y, M, S FNC 98 codes from the MCDEP: Note: Note: Note: uses 64 F2-30GM - use 7 steps -30GM uses 8 uses 8...
  • Page 243 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 244: Floating Point 1 & 2 - Functions 110 To 129

    FX Series Programmable Controlers Applied Instructions 5 5.11 Floating Point 1 & 2 - Functions 110 to 129 Contents: Floating Point 1 Page ECMP - Float Compare FNC 110 5-119 EZCP - Float Zone Compare FNC 111 5-119 Not Available FNC 112 to 117 EBCD - Float to Scientific...
  • Page 245: Ecmp (Fnc 110)

    FX Series Programmable Controlers Applied Instructions 5 5.11.1 ECMP (FNC 110) Operands Mnemonic Function Program steps ECMP Compares two K, H - integer value automati- Y, M, S DECMP, FNC 110 floating point cally converted to floating point DECMPP: (Floating values - results of Note: 13 steps...
  • Page 246: Ebcd (Fnc 118)

    FX Series Programmable Controlers Applied Instructions 5 5.11.3 EBCD (FNC 118) Operands Mnemonic Function Program steps EBCD Converts floating D - must be in floating D - 2 consecutive DEBCD, FNC 118 point number point format (32 bits). devices are used DEBCDP: (Float to format to scientific...
  • Page 247: Eadd (Fnc 120)

    FX Series Programmable Controlers Applied Instructions 5 5.11.5 EADD (FNC 120) Operands Mnemonic Function Program steps EADD Adds two floating K, H - integer value automatically D - a floating DEADD, FNC 120 point numbers converted to floating point point value DEADDP: (Floating together...
  • Page 248: Eaub (Fnc 121)

    FX Series Programmable Controlers Applied Instructions 5 5.11.6 EAUB (FNC 121) Operands Mnemonic Function Program steps ESUB Subtracts one K, H - integer value automati- D - a floating DESUB, FNC 121 floating point cally point value DESUBP: (Floating number from converted to floating point (32 bits).
  • Page 249: Ediv (Fnc 123)

    FX Series Programmable Controlers Applied Instructions 5 5.11.8 EDIV (FNC 123) Operands Mnemonic Function Program steps EDIV Divides one K, H - integer value automati- D - a floating DEDIV, FNC 123 floating point cally point value DEDIVP: (Floating number by converted to floating point (32 bits).
  • Page 250 FX Series Programmable Controlers Applied Instructions 5 5.11.10 INT (FNC 129) Operands Mnemonic Function Program steps Converts a D - must be in floating D - decimal format INT, INTP: FNC 129 number from point number format 5 steps (Float to floating point (always 32 bits).
  • Page 251 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 252: Trigonometry - Fnc 130 To Fnc 139

    FX Series Programmable Controlers Applied Instructions 5 5.12 Trigonometry - FNC 130 to FNC 139 Contents: Floating point 3 Page SIN - Sine FNC 130 5-127 COS - Cosine FNC 131 5-128 TAN - Tangent FNC 132 5-128 Not Available FNC 133 to 139 Symbols list: D - Destination device.
  • Page 253: Sin (Fnc 130)

    FX Series Programmable Controlers Applied Instructions 5 5.12.1 SIN (FNC 130) Operands Mnemonic Function Program steps Calculates the D - must be in floating D - a floating point DSIN, FNC 130 sine of a floating point number format value DSINP: (Sine) point value...
  • Page 254: Cos (Fnc 131)

    FX Series Programmable Controlers Applied Instructions 5 5.12.2 COS (FNC 131) Operands Mnemonic Function Program steps Calculates the D - must be in floating D - a floating point DCOS, FNC 131 cosine of a point number format value DCOSP: (Cosine) floating point (32 bits).
  • Page 255 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 256: Data Operations 2 - Fnc 140 To Fnc 149

    FX Series Programmable Controlers Applied Instructions 5 5.13 Data Operations 2 - FNC 140 to FNC 149 Contents: Page Not Available FNC 140 to 146 SWAP - Float to Scientific FNC 147 5-131 Not Available FNC 148 to 149 Symbols list: D - Destination device.
  • Page 257: Swap (Fnc 147)

    FX Series Programmable Controlers Applied Instructions 5 5.13.1 SWAP (FNC 147) Operands Mnemonic Function Program steps SWAP The high and low KnY, KnM, KnS, T, C, D, V, Z SWAP,SWAPP FNC 147 byte of the : 5 steps (Byte designated DSWAP, Swap) devices are...
  • Page 258 FX Series Programmable Controlers Applied Instructions 5 MEMO 5-132 5-132...
  • Page 259 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 260: Real Time Clock Control - Fnc 160 To Fnc 169

    FX Series Programmable Controlers Applied Instructions 5 5.14 Real Time Clock Control - FNC 160 to FNC 169 Contents: Page TCMP - Time Compare FNC 160 5-135 TZCP - Time Zone Compare FNC 161 5-136 TADD - Time Add FNC 162 5-137 TSUB - Time Subtract...
  • Page 261: Tcmp (Fnc 160)

    FX Series Programmable Controlers Applied Instructions 5 5.14.1 TCMP (FNC 160) Operands Mnemonic Function Program steps TCMP Compares two K, H, T, C, D Y, M, S TCMP, FNC 160 times - results of KnX, KnY, KnM, KnS, TCMPP: Note: (Time <, = and >...
  • Page 262: Tzcp (Fnc 161)

    FX Series Programmable Controlers Applied Instructions 5 5.14.2 TZCP (FNC 161) Operands Mnemonic Function Program steps TZCP Compares a time T, C, D Y, M, S TZCP, FNC 161 to a specified time must be less than or equal to S TZCPP: (Time range - results of...
  • Page 263: Tadd (Fnc 162)

    FX Series Programmable Controlers Applied Instructions 5 5.14.3 TADD (FNC 162) Operands Mnemonic Function Program steps TADD Adds two time T, C, D TADD, FNC 162 values together to TADDP: (Time give a new time Note: 3 consecutive devices are used to represent 7 steps Addition) hours, minutes and seconds respectively.
  • Page 264: Tsub (Fnc 163)

    FX Series Programmable Controlers Applied Instructions 5 5.14.4 TSUB (FNC 163) Operands Mnemonic Function Program steps TSUB Subtracts one T, C, D TSUB, FNC 163 time value from TSUBP: (Time another to give a Note: 3 consecutive devices are used. 7 steps Subtrac- new time...
  • Page 265: Trd (Fnc 166)

    FX Series Programmable Controlers Applied Instructions 5 5.14.5 TRD (FNC 166) Operands Mnemonic Function Program steps Reads the current T, C, D TRD, TRDP: FNC 166 value of the real 5 steps (Time time clock to a Note: 7 consecutive devices are used. Read) group of registers Contents:...
  • Page 266: Twr (Fnc 167)

    FX Series Programmable Controlers Applied Instructions 5 5.14.6 TWR (FNC 167) Operands Mnemonic Function Program steps Sets the real time T, C, D TWR, TWRP: FNC 167 clock to the value 5 steps (Time stored in a group Note: 7 consecutive devices are used. Write) of registers Contents:...
  • Page 267 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 268: Gray Codes - Fnc 170 To Fnc 179

    FX Series Programmable Controlers Applied Instructions 5 5.15 Gray Codes - FNC 170 to FNC 179 Contents: Page GRY - Decimal to Gray Code FNC 170 5-143 GBIN - Gray Code to Decimal FNC 171 5-143 Not Available FNC 172 to 177 Symbols list: D - Destination device.
  • Page 269: Gry (Fnc 170)

    FX Series Programmable Controlers Applied Instructions 5 5.15.1 GRY (FNC 170) Operands Mnemonic Function Program steps Calculates the K, H, KnY, KnM, KnS, GRY,GRYP: FNC 170 gray code value KnX, KnY, KnM, KnS, T, C, D, V, Z 5 steps (Gray of an integer T, C, D, V, Z...
  • Page 270 FX Series Programmable Controlers Applied Instructions 5 MEMO 5-144 5-144...
  • Page 271 FX Series Programmable Controlers Applied Instructions 5 Applied Instructions: Program Flow FNC 00 - 09 Move And Compare 5-16 FNC 10 - 19 Arithmetic And Logical Operations (+, -, ×, ÷) FNC 20 - 29 5-24 Rotation And Shift 5-34 FNC 30 - 39 Data Operation 5-42...
  • Page 272: Inline Comparisons - Fnc 220 To Fnc 249

    FX Series Programmable Controlers Applied Instructions 5 5.16 Inline Comparisons - FNC 220 to FNC 249 Contents: Page LD - LoaD compare FNC 224 to 230 5-119 AND - AND compare FNC 232 to 238 5-120 OR - OR compare FNC 240 to 246 5-120 Symbols list:...
  • Page 273: Ld Compare (Fnc 224 To 230)

    FX Series Programmable Controlers Applied Instructions 5 5.16.1 LD compare (FNC 224 to 230) Operands Mnemonic Function Program steps Initial comparison K,H, KnX, KnY, KnM, K,H, KnX, KnY, KnM, LD : (LoaD contact. KnS, T, C, D, V, Z KnS, T, C, D, V, Z 5 steps compare) Active when the...
  • Page 274: And Compare (Fnc 232 To 238)

    FX Series Programmable Controlers Applied Instructions 5 5.16.2 AND compare (FNC 232 to 238) Operands Mnemonic Function Program steps Serial comparison K,H, KnX, KnY, KnM, K,H, KnX, KnY, KnM, AND : (AND contact. KnS, T, C, D, V, Z KnS, T, C, D, V, Z 5 steps compare) Active when the...
  • Page 275: Or Compare (Fnc 240 To 246)

    FX Series Programmable Controlers Applied Instructions 5 5.16.3 OR compare (FNC 240 to 246) Operands Mnemonic Function Program steps Parallel K,H, KnX, KnY, KnM, K,H, KnX, KnY, KnM, OR : comparison KnS, T, C, D, V, Z KnS, T, C, D, V, Z 5 steps compare) contact.
  • Page 276 FX Series Programmable Controlers Applied Instructions 5 MEMO 5-150 5-150...
  • Page 277: Diagnostic Devices

    FX Series Programmable Controllers Diagnostic Devices 6 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 278 FX Series Programmable Controllers Diagnostic Devices 6 Chapter Contents 6. Diagnostic Devices ................6-1 6.1 PC Status (M8000 to M8009 and D8000 to D8009) ..........6-2 6.2 Clock Devices (M8010 to M8019 and D8010 to D8019) ........6-3 6.3 Operation Flags ....................6-4 6.4 PC Operation Mode (M8030 to M8039 and D8030 to D8039) ......
  • Page 279: Diagnostic Devices

    FX Series Programmable Controller Diagnostic Devices 6 Diagnostic Devices The following special devices are used by the PLC to highlight the current operational status and identify any faults or errors that may be occurring. There are some variations in the application of these devices to members of the FX PLC family, these are noted where appropriate.
  • Page 280: Pc Status (M8000 To M8009 And D8000 To D8009)

    FX Series Programmable Controller Diagnostic Devices 6 PLC Status (M8000 to M8009 and D8000 to D8009) Diagnostic Diagnostic Operation Operation Device Device D8000 ( ) FX, FX : 100ms M8000 ( ) Watchdog , FX , FX , FX : 200ms RUN monitor timer See note 1...
  • Page 281: Clock Devices (M8010 To M8019 And D8010 To D8019)

    FX Series Programmable Controller Diagnostic Devices 6 Clock Devices (M8010 to M8019 and D8010 to D8019) Diagnostic Diagnostic Operation Operation Device Device D8010 ( ) Current operation cycle / scan Present scan M8010 Reserved time in units of 0.1 msec time M8011 ( ) D8011 ( )
  • Page 282: Operation Flags

    FX Series Programmable Controller Diagnostic Devices 6 Operation Flags Diagnostic Diagnostic Operation Operation Device Device Set when the result of an D8020 Input filter setting for devices M8020 ( ) ADD (FNC 20) or SUB (FNC X000 to X007 default is 10 Zero 21) is “0”...
  • Page 283: Plc Operation Mode (M8030 To M8039 And D8030 To D8039)

    FX Series Programmable Controller Diagnostic Devices 6 PLC Operation Mode (M8030 to M8039 and D8030 to D8039) Diagnostic Diagnostic Operation Operation Device Device M8030 ( ) Battery LED Battery voltage is low but D8030 ( ) Value read from first setting BATT.V LED not lit “pot”...
  • Page 284: Step Ladder (Stl) Flags (M8040 To M8049 And D8040 To D8049)

    FX Series Programmable Controller Diagnostic Devices 6 Step Ladder (STL) Flags (M8040 to M8049 and D8040 to D8049) Diagnostic Diagnostic Operation Operation Device Device M8040 ( ) D8040 ( ) When ON STL state trans- STL transfer Lowest active fer is disabled disable STL step When ON STL transfer from...
  • Page 285: Interrupt Control Flags (M8050 To M8059 And D8050 To D8059)

    FX Series Programmable Controller Diagnostic Devices 6 Interrupt Control Flags (M8050 to M8059 and D8050 to D8059) Diagnostic Diagnostic Operation Operation Device Device M8050 ( ) When the EI (FNC 04) I00 disable instruction is driven in the user program, all interrupts M8051 ( ) D8050 -D8059 Reserved are enabled unless the spe-...
  • Page 286: Error Detection Devices (M8060 To M8069 And D8060 To D6069)

    FX Series Programmable Controller Diagnostic Devices 6 Error Detection Devices (M8060 to M8069 and D8060 to D6069) Operation Diagnostic Diagnostic Operation PROG.E Device Device Detection STATUS M8060 ( ) I/O configura- D8060 ( ) The first I/O number of the unit tion (Not FX or block causing the error -...
  • Page 287: Link And Special Operation Devices (M8070 To M8099 And D8070 To D8099)

    FX Series Programmable Controller Diagnostic Devices 6 For symbol key see page 6-1. • Please see the following page for the notes referenced in this table. Note 3: Contents of D8060 • If the unit or block corresponding to a programmed = X 20 I / O number is not actually loaded, M8060 is set to Device number:...
  • Page 288: Miscellaneous Devices (M8100 To M8119 And D8100 To D8119)

    FX Series Programmable Controller Diagnostic Devices 6 Miscellaneous Devices (M8100 to M8119 and D8100 to D8119) Diagnostic Diagnostic Operation Operation Device Device 0002: 2K steps D8102 ( ) 0004: 4K steps Memory 0008: 8K steps Capacity 0016: 16K steps Output refresh error device M8109 ( ) Output refresh error D8109 ( )
  • Page 289: High Speed Zone Compare Table Comparison Flags

    FX Series Programmable Controller Diagnostic Devices 6 6.11 High Speed Zone Compare Table Comparison Flags (M8130 to M8139 and D8130 to D8139) Diagnostic Diagnostic Operation Operation Device Device Contains the number of the Selects comparison tables current record being pro- M8130 to be used with the HSZ D8130 ( )( )
  • Page 290: Miscellaneous Devices (M8160 To M8199)

    FX Series Programmable Controller Diagnostic Devices 6 6.12 Miscellaneous Devices (M8160 to M8199) Diagnostic Diagnostic Operation Operation Device Device Selection of XCH operation M8160 to swap bytes in a single M8180 Reserved data word Selection of 8 bit operations M8181 M8161 for applied instructions (I010)
  • Page 291: Index Registers (D8180 To D8199)

    FX Series Programmable Controller Diagnostic Devices 6 6.13 Index Registers (D8180 to D8199) Diagnostic Diagnostic Operation Operation Device Device Z5 index register D8180 ( ) D8190 ( ) Reserved V5 index register D8181 ( ) D8191 ( ) Z1 index register Z6 index register D8182 ( ) D8192 ( )
  • Page 292: Up/Down Counter Control (M8200 To M8234 And M8200 To D8234)

    FX Series Programmable Controller Diagnostic Devices 6 6.14 Up/Down Counter Control (M8200 to M8234 and M8200 to D8234) Diagnostic Diagnostic Operation Operation Device Device When M8 is operated, counter C functions as M8200 - a down counter. When D8200 -D8234 Reserved M8234 ( ) is not operated the associated counter oper-...
  • Page 293: Error Code Tables

    FX Series Programmable Controller Diagnostic Devices 6 6.16 Error Code Tables Error Detection Stored Error Associated Meaning Action Device Number 0000 No error Check the cable connec- 6101 RAM error tion between the pro- 6102 Operation circuit error gramming device and D8061 6103 I/O bus error (M8069 = ON)
  • Page 294 FX Series Programmable Controller Diagnostic Devices 6 Error Detection Stored Error Associated Meaning Action Device Number 0000 No error 6401 Program sum check error 6402 Memory capacity setting error D8064 STOP the PLC, select 6403 Latched device area setting error Parameter the parameter mode, set 6404...
  • Page 295 FX Series Programmable Controller Diagnostic Devices 6 Error Detection Stored Error Associated Meaning Action Device Number 0000 No error LD and LDI is used continuously 9 or 6601 more times in succession 1) No LD/ LDI instruction. Unauthorized use of the LD / LDI, AND / ANI instructions 2) The following instructions are not con- 6602...
  • Page 296 FX Series Programmable Controller Diagnostic Devices 6 Error Detection Stored Error Associated Meaning Action Device Number LD, LDI is used continuously 9 or more 6610 times in succession Number of LD/LDI instructions is fewer 6611 than ANB/ORB instructions Number of LD/LDI instructions is more 6612 than ANB/ORB instructions MPS is used continuously more than 12...
  • Page 297 FX Series Programmable Controller Diagnostic Devices 6 Error Detection Stored Error Associated Meaning Action Device Number 0000 No error 1) No jump destination for CJ or CALL instructions These error occur during 2) A label is designated in a block that the execution of an oper- 6701 comes after the END instruction...
  • Page 298 FX Series Programmable Controller Diagnostic Devices 6 MEMO 6-20...
  • Page 299: Instruction Execution Times

    FX Series Programmable Controllers Instruction Execution Times 7 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 300 FX Series Programmable Controllers Instruction Execution Times 7 Chapter Contents 7. Execution Times And Instructional Hierarchy........7-1 7.1 Basic Instructions ....................7-1 7.2 Applied Instructions .................... 7-3 7.3 Hierarchical Relationships Of Basic Program Instructions ........ 7-12 7.4 Batch Processing....................7-14 7.5 Summary of Device Memory Allocations ............7-14 7.6 Limits Of Instruction Usage ................
  • Page 301: Execution Times And Instructional Hierarchy

    FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Execution Times And Instructional Hierarchy Basic Instructions Execution Time in µsec Object Mnemonic Steps , FX (> Ver 3.07) 2N(C) Devices (< Ver 3.07) X,Y,M,S,T,C 0.74 0.48 0.08 and special M 43.2 X,Y,M,S,T,C Function Not Available...
  • Page 302 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Execution Time in µsec Object Mnemonic Steps , FX (> Ver 3.07) 2N(C) Devices (< Ver 3.07) Y, M 0.74 0.48 0.08 50.0 48.1 24.4 24.3 Special M 38.1 38.8 0.16 21.8 19.4...
  • Page 303: Applied Instructions

    FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Applied Instructions Execution Time in µsec , FX , FX (< Ver 3.07) (> Ver 3.07) 2N(C) Mne- 16/32 monic 19.4 20.0 10.0 46.6 27.4 29.0 49.5 27.4 32.2 CALL Function Not Available 34.0 21.2...
  • Page 304 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Execution Time in µsec , FX , FX (< Ver 3.07) (> Ver 3.07) 2N(C) Mne- 16/32 monic 69.4 70.8 21.6 115.5 33.3 27.6 81.2 82.8 31.8 114.5 39.9 12.2 28.9 69.8 71.6...
  • Page 305 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Execution Time in µsec , FX , FX (< Ver 3.07) (> Ver 3.07) 2N(C) Mne- 16/32 monic 218.6 147+ 126+ WSFR 33.3 11.7n 18.0n 218.6 147+ 125+ WSFL 33.3 11.7n 18.0n Function Not Available...
  • Page 306 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Execution Time in µsec , FX , FX (< Ver 3.07) (> Ver 3.07) 2N(C) Mne- 16/32 monic 56.0+ 4 65.3+ REFF 33.3 4.9n 3.5n 1.7n Function Not Available 87.3 39.3 39.1 23.6...
  • Page 307 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Execution Time in µsec , FX , FX (< Ver 3.07) (> Ver 3.07) 2N(C) Mne- 16/32 monic 245.7 33.3 97.2 22.2 229.1 39.9 98.7 22.2 318.8 39.9 92.2 27.4 338.0 45.5 65.0 Function Not Available...
  • Page 308 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Execution Time in µsec , FX , FX (< Ver 3.07) (> Ver 3.07) 2N(C) Mne- 16/32 monic Function Not Available 155.0 89.0 Function Not Available 643.9 25.5 MNET 1,137 33.3 Function Not Available ANRD 1.387 470.9...
  • Page 309 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Execution Time in µsec , FX , FX (< Ver 3.07) (> Ver 3.07) 2N(C) Mne- 16/32 monic 152.1 ESQR Function Not Function Not Available Available 67.5 70.4 199.5 Function Not Available 262.5 425.3 36.1...
  • Page 310 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 • These instructions require NO preliminary contact devices such as LD, AND, OR etc. • Where “n” is referred to this identifies the quantity of registers to be manipulated. “n” can be equal or less than 512. •...
  • Page 311 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 • Where "n" is referred to this identifies the number of elements in a stack, for 16 bit operation n has a maximum of 256. However, for 32 bit operation n has a maximum of 128. •...
  • Page 312: Hierarchical Relationships Of Basic Program Instructions

    FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Hierarchical Relationships Of Basic Program Instructions T h e fo l lo w in g t a b le i d e n t if ie s a n ' in c l u s iv e relationship'.
  • Page 313 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 The following table identifies an 'overlap-ping relationship'. This means the secondary program Primary construction starts within the complete operating program construction boundaries of the primary program construction but Secondary finishes outside of the primary construction, e.g.: program construction NEXT Secondary program construction...
  • Page 314: Batch Processing

    FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Batch Processing This is the system used by all members of the FX family of PLC’s. The basic concept is that there are three stages to any program scan. In other words, every time the program is processed form start to end the following sequence of events occurs: Input processing: All of the current input statuses are read in to a...
  • Page 315 FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 b) Data Memory This memory area contains, as the title suggests, all of the data values associated with: data registers (normal and special), Index registers, current timer values, retentive timer values (if available) and current counter values.
  • Page 316: Limits Of Instruction Usage

    FX Series Programmable Controllers Execution Times And Instructional Hierarchy 7 Limits Of Instruction Usage 7.6.1 Instructions Which Can Only Be Used Once In The Main Program Area The following instructions can only be used once in the main program area. For PLC applicability please check either the detailed explanations of the instructions or the instruction execution tables list earlier.
  • Page 317: Instruction Execution Times

    FX Series Programmable Controllers PLC Device Tables 8 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 318: Performance Specification Of The Fx And Fx 0S

    FX Series Programmable Controllers PLC Device Tables 8 Chapter Contents 8. PC Device Tables..................8-1 8.1 Performance Specification Of The FX And FX ..........8-1 8.2 Performance Specification Of The FX ............8-2 8.3 Performance Specification Of The FX (CPU versions 2.0 to 3.06) ..... 8-4 8.4 Performance Specification Of The FX (CPU versions from 3.07) And FX (all versions) ..................
  • Page 319: Plc Device Tables

    FX Series Programmable Controllers PLC Device Tables 8 PLC Device Tables Performance Specification Of The FX And FX Item Specification Remarks Operation control method Cyclic operation by stored program Batch processing method (when I/O control method I/O refresh instruction is available END instruction is executed) Basic instructions: 1.6 to 3.6 µs Operation processing time...
  • Page 320 FX Series Programmable Controllers PLC Device Tables 8 Item Specification Remarks D0 to D31 General 32 points Type:16 bit data storage register pair for 32 bit device D30 to D31 Latched 2 points (subset) Type:16 bit data storage register pair for 32 bit device Data D8013 registers (D)
  • Page 321 FX Series Programmable Controllers PLC Device Tables 8 Item Specification Remarks Latched 128 points S0 to S127 State relays (S coils) Initial 10 points (subset) S0 to S9 Range: 0 to 3,276.7 sec 100 msec T0 to T62 63 points Range: 0 to 327.67 sec T32 to T62 when special M coil Timers (T)
  • Page 322 FX Series Programmable Controllers PLC Device Tables 8 Performance Specification Of The FX (CPU versions 2.0 to 3.06) Item Specification Remarks Operation control method Cyclic operation by stored program Batch processing method (when I/O control method I/O refresh instruction is available END instruction is executed) Basic instructions: 0.74 µs Operation processing time...
  • Page 323 FX Series Programmable Controllers PLC Device Tables 8 Item Specification Remarks C235 to C240 1 phase 6 points Range: -2,147,483,648 to 1 phase C241 to C245 +2,147,483,647 counts c/w start 5 points High speed General rule: Select counter com- stop input counters (C) binations with a combined counting C246 to C250...
  • Page 324 FX Series Programmable Controllers PLC Device Tables 8 Performance Specification Of The FX (CPU versions from 3.07) And FX (all versions) Item Specification Remarks Operation control method Cyclic operation by stored program Batch processing method (when I/O control method I/O refresh instruction is available END instruction is executed) Basic instructions: 0.48 µs Operation processing time...
  • Page 325 FX Series Programmable Controllers PLC Device Tables 8 Item Specification Remarks C235 to C240 1 phase 6 points Range: -2,147,483,648 to 1 phase C241 to C245 +2,147,483,647 counts c/w start 5 points High speed General rule: Select counter com- stop input counters (C) binations with a combined counting C246 to C250...
  • Page 326 FX Series Programmable Controllers PLC Device Tables 8 Performance Specification Of The FX 2N(C) Item Specification Remarks Operation control method Cyclic operation by stored program Batch processing method (when I/O control method I/O refresh instruction is available END instruction is executed) Basic instructions: 0.08 µs Operation processing time Applied instructions: several 10's to 100 µs...
  • Page 327 FX Series Programmable Controllers PLC Device Tables 8 Item Specification Remarks C235 to C240 1 phase 6 points Range: -2,147,483,648 to 1 phase C241 to C245 +2,147,483,647 counts c/w start 5 points High speed General rule: Select counter com- stop input counters (C) binations with a combined counting C246 to C250...
  • Page 328 FX Series Programmable Controllers PLC Device Tables 8 8-10...
  • Page 329: Assigning System Devices

    FX Series Programmable Controllers Assigning System Devices 9 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 330 FX Series Programmable Controllers Assigning System Devices 9 Chapter Contents 9. Assigning System Devices ..............9-1 9.1 Addressing Extension Modules ................9-1 9.2 Using The FX -24EI With F Series Special Function Blocks....... 9-2 9.2.1 Using the FX -24EI With A F-16NP/NT..............9-3 9.2.2 Using the FX2-24EI With A F2-6A................
  • Page 331: Addressing Extension Modules

    FX Series Programmable Controllers Assigning System Devices 9 Assigning System Devices Addressing Extension Modules Most of the FX family of PLC’s have the ability to connect additional discreet I/O and/or special function modules. To benefit from these additional units the user must address each block independently.
  • Page 332: Using The Fx2-24Ei With F Series Special Function Blocks

    FX Series Programmable Controllers Assigning System Devices 9 Using The FX2-24EI With F Series Special Function Blocks The FX -24EI allows an FX base unit to be directly connected to an one of the following F series special function blocks: a) The F-16NT/NP, a Melsec Net Mini interface b) The F2-6A, a combine analog 4 input and 2 output unit c) The F2-32RM, a programmable CAM sequencer...
  • Page 333: Using The Fx2-24Ei With A F-16Np/Nt

    FX Series Programmable Controllers Assigning System Devices 9 9.2.1 Using the FX -24EI With A F-16NP/NT The F-16NP/NT’s operational I/O numbers (addresses) are based upon the position of the associated FX -24EI within the users FX system. The diagram below shows how moving the position of the FX -24EI used alters the addresses used by the F-16NP/NT, see EX.
  • Page 334 FX Series Programmable Controllers Assigning System Devices 9 9.2.2 Using the FX -24EI With A F The F -6A’s operational address is based upon the position of the associated FX -24EI within the users FX system. However, the I/O channel numbers are not affected by this operational address.
  • Page 335 FX Series Programmable Controllers Assigning System Devices 9 9.2.4 Using the FX -24EI With A F -30GM The F -30GM’s operational address is based upon the position of the associated FX -24EI within the users FX system. However, the I/O numbers are not directly affected by this operational address.
  • Page 336: Parallel Link Adapters

    FX Series Programmable Controllers Assigning System Devices 9 Parallel Link Adapters The FX parallel link adapters provide a means of direct communication between two FX PLC’s. There are two models of parallel link adapter providing two different communication mediums: a) Fiber-optic link - FX -40AP Transmission distance: 50m (164 ft) Fiber-optic: F-OFC-M10 - length 10m (32.8 ft)
  • Page 337: Real Time Clock Function

    FX Series Programmable Controllers Assigning System Devices 9 Real Time Clock Function When one of the real time clock (RTC) memory cassettes is used with either and FX or an FX0N, the real time clock function of that PLC is then automatically enabled. The time data of the RTC cassette is battery backed.
  • Page 338: Setting The Real Time Clock

    FX Series Programmable Controllers Assigning System Devices 9 9.4.1 Setting the real time clock The RTC can be set using the special data registers and control flags as follows: Device Device Function Range Comments Number Number D8013 Seconds 0 to 59 Set ON to stop the clock.
  • Page 339: Points Of Technique

    FX Series Programmable Controllers Points of Technique 10 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 340 FX Series Programmable Controllers Points of Technique 10 Chapter Contents 10.Points Of Technique................10-1 10.1 Advanced Programming Points ................. 10-1 10.2 Users of DC Powered FX Units ................. 10-1 10.3 Using The Forced RUN/STOP Flags..............10-2 10.3.1 A RUN/STOP push button configuration ..............10-2 10.3.2 Remote RUN/STOP control ..................
  • Page 341: Advanced Programming Points

    If some of these techniques are applied to user programs the user must ensure that they will perform the task or operation that they require. Mitsubishi Electric can take no responsibility for user programs containing any of the examples within this manual.
  • Page 342: Using The Forced Run/Stop Flags

    FX Series Programmable Controllers Points Of Technique 10 10.3 Using The Forced RUN/STOP Flags 10.3.1 A RUN/STOP push button configuration The FX programmable controller has a single RUN terminal. When power is applied to this terminal the PLC changes into a RUN state, i.e. the program contained is executed. Consequently when there is no power 'on' the RUN terminal the PLC is in a STOP state.
  • Page 343: Remote Run/Stop Control

    FX Series Programmable Controllers Points Of Technique 10 10.3.2 Remote RUN/STOP control The FX family of programmable controllers can be controlled, i.e. switched into RUN or STOP modes and have devices monitored by use of intelligent external control devices. These includes such items as computers, the Mitsubishi FX data access units and Graphic Operator Terminals.
  • Page 344: Constant Scan Mode

    FX Series Programmable Controllers Points Of Technique 10 10.4 Constant Scan Mode Some times the timing of operations can be a problem, especially if some co-ordination is being attempted with a second control system. In cases like this it is very useful to fix the PLC’s scan time.
  • Page 345: Using Battery Backed Devices For Maximum Advantage

    FX Series Programmable Controllers Points Of Technique 10 10.6 Using Battery Backed Devices For Maximum Advantage Battery backed devices retain their status during a PLC power down. These devices can be used for maximum advantage by allowing the PLC to continue from its last operation status just before the power failure.
  • Page 346: Reading And Manipulating Thumbwheel Data

    FX Series Programmable Controllers Points Of Technique 10 10.8 Reading And Manipulating Thumbwheel Data Data can be easily read into a programmable controller through the use of the BIN instruction. When data is read from multiple sources the data is often stored at different locations. It may be required that certain data values are combined or mixed to produce a new value.
  • Page 347: A 0.1 Msec Timer Pulse Measurement

    FX Series Programmable Controllers Points Of Technique 10 10.9.2 A 0.1 msec timer pulse measurement This is a very accurate measuring process for pulse inputs. The use of a standard timer is not accurate General wiring-pluse to be measured is enough in this case as the highest resolution is X 0 X 1 connected to both X0...
  • Page 348: Creating A User Defined Mtr Instruction

    FX Series Programmable Controllers Points Of Technique 10 10.11 Creating a User Defined MTR Instruction For users who want to have the benefits of the MTR M8000 instruction for FX users who want to specify more M100 Equivalent than one MTR area, this user defined MTR function MTR instruction will be very useful.
  • Page 349: System Parameters

    FX Series Programmable Controllers Points Of Technique 10 3) The grip, now holding the product, is raised to its upper limit - output Y2: ON, input X2: ON, output Y2: OFF. 4) The robot arm traverses to its right most position - output Y3: ON, input X3: ON, output Y3: OFF.
  • Page 350 FX Series Programmable Controllers Points Of Technique 10 This example uses the IST instruction (FNC 60) to When all conditions X4 X2 Y1 control the operation mode of the robot arm. The are met robot grip is M8044 at zero point - program shown opposite identifies how the IST M8044 = ON instruction is written into the main program.
  • Page 351: Automatic Mode

    FX Series Programmable Controllers Points Of Technique 10 Zero Return Mode This mode fulfills an initialization function by returning the robot arm to a known position. Once 'Z Return' has been selected from the mode selection screen the bit device M35 is ON.
  • Page 352 FX Series Programmable Controllers Points Of Technique 10 In this example these three modes are Automatic Mode selected by an external rotary switch. The Stepped Operation Automatic Operation rotary switch is not connected to the PLC but Menu Single Cycle Operation to the I/O bus on the rear of the DU unit.
  • Page 353 FX Series Programmable Controllers Points Of Technique 10 Points of interest: a) Users of the IST instruction will be aware that only one of the operation modes should be active at one time. In this example program the isolation of 'Manual' and 'Zero return' modes by the use of separate DU control screens, and the use of a rotary switch to isolate the three automatic modes achieves this objective.
  • Page 354 FX Series Programmable Controllers Points Of Technique 10 Full program listing: 8043 8044 8000 8044 8043 8043 (RET)* 8041 8043 8044 (RET)* ↑ This instruction returns the → program flow to STL step S2. *: Instructions in ( ) are not necessary necessary Program options:...
  • Page 355: 10.13 Using The Pwm Instruction For Motor Control

    FX Series Programmable Controllers Points Of Technique 10 10.13 Using The PWM Instruction For Motor Control The PWM instruction may be used directly with an inverter to drive a motor. If this configuration is used the following ripple circuit will be required between the PLC’s PWM output and the inverters input terminals.
  • Page 356 FX Series Programmable Controllers Points Of Technique 10 The maximum output voltage (to the inverter) including ripple voltage, can be found by using the following equation: ≈ E Where: = Maximum output voltage E = pulse (square wave) output voltage (see circuit on the previous page) t = PWM pulse duration (see previous page for reference) = PWM cycle time for pulse (see previous page for reference) The average output voltage (to the inverter) including ripple voltage, can be found by using the...
  • Page 357 FX Series Programmable Controllers Points Of Technique 10 12.0 Tested load impedance 10.0 (e.g. inverter impedance) L1 - 100 k e (volts) L2 - 10 k L3 - 4.7 k L4 - 2.2 k The duration of the T , time base also affects the ripple voltage. This can be clearly seen in the next set of test data: PWM parameter setting Measured ripple...
  • Page 358: Communication Format

    FX Series Programmable Controllers Points Of Technique 10 10.14 Communication Format 10.14.1 Specification of the communication parameters: Items such as baud rates, stop bits and parities must be identically set between the two communicating devices. The communication parameters are selected by a bit pattern which is stored in data register D8120.
  • Page 359 FX Series Programmable Controllers Points Of Technique 10 10.14.2 Header and Terminator Characters The header and terminator characters can be changed by the user to suit their requirements. The default setting for the header stored in D8124 is 'STX' (or 02H)and the terminator default setting stored in D8125 is 'ETX' (or 03H).
  • Page 360: Timing Diagrams For Communications

    FX Series Programmable Controllers Points Of Technique 10 10.14.3 Timing diagrams for communications: 1) No Handshaking D8120 (b12, b11, b10) = (0, 0, 0) below version 2.0 OFF ON instruction Send data Data 1 Data 4 SD (TXD) Send request M8122 Send wait flag M8121...
  • Page 361 FX Series Programmable Controllers Points Of Technique 10 3) Normal Mode 1 D8120 (b12, b11, b10) = (0, 1, 1) FX2N below V2.00. OFF ON instruction Send data SD Data 3 Data 1 (TXD) Send request M8122 Send wait flag M8121 ER(DTR) Receive data Data 2...
  • Page 362 FX Series Programmable Controllers Points Of Technique 10 FX2N (V2.00 or above) Communications In the FX2N V2.00 or above and FX2NC, full duplex communication is performed. 1) No Hardware Handshaking D8120 (B12, b11, b10) = (0,0,0) OFF ON instruction Send data Data 1 Data 3 Data 5...
  • Page 363: 10.14.4 8 Bit Or 16 Bit Communications

    FX Series Programmable Controllers Points Of Technique 10 4) Interlink Mode D8120 (b12, b11, b10) = (0, 1, 0) OFF ON instruction Send data Data 2 Data 4 Data 4 SD (TXD) Send request M8122 DR(DSR) Up to 30 characfers can be received *2 Receive data Data 3...
  • Page 364: 10.15 Pid Programming Techniques

    FX Series Programmable Controllers Points Of Technique 10 10.15 PID Programming Techniques 10.15.1 Keeping MV within a set range In the reserved registers of the PID data block S +18 and S +19 form a double word device that contains the previous MV x K100. The following program uses this to keep MV under control when it exceeds the operating limits.
  • Page 365 FX Series Programmable Controllers Points Of Technique 10 Method 2 During manual operations the PID instruction is kept running but the calculated MV is ignored; instead the operator controls MV. In order to prevent the PID instruction from running out of control the MV value set by the operator should be fed in to the MV registers of the PID data block in the same way as for MV range control earlier (i.e.
  • Page 366: 10.16 Additional Pid Functions

    FX Series Programmable Controllers Points Of Technique 10 10.16 Additional PID functions The following parameter table gives the additional parameters available with FX MPUs. 2N(C) These are: +1 bit 4: Pre-tuning operation flag. +1 bit 5: Output Value range limit flag. +22: Output Value upper limit.
  • Page 367: 10.17 Pre-Tuning Operation

    FX Series Programmable Controllers Points Of Technique 10 10.17 Pre-tuning operation 10.17.1 Variable Constants The Pre-tuning operation can be used to automatically set values for the following variables: - The direction of the process; Forward or Reverse (S +1, bit 0) - The proportional gain constant;...
  • Page 368: 10.18 Example Autotuning Program

    FX Series Programmable Controllers Points Of Technique 10 10.18 Example Autotuning Program The following programming code is an example of how to set up the Pre-Tuning function. • X010 D500: SV = 500 FNC 12 K500 D500 FNC 12 D502: MV = 1800, initial value K1800 D502 D510: T...
  • Page 369: Index

    FX Series Programmable Logic Controllers Index 11 Introduction Basic Program Instructions STL Programming Devices in Detail Applied Instructions Diagnostic Devices Instruction Execution Times PLC Device Tables Assigning System Devices Points of Technique Index...
  • Page 370 FX Series Programmable Logic Controllers Index 11 Chapter contents 11.Index....................11-1 11.1 Index ........................11-1 11.2 ASCII Character Codes ..................11-9 11.3 Applied Instruction List ..................11-10...
  • Page 371 FX Series Programmable Controllers Index 11 Index 11.1 Index Absolute drum sequence, ABSD instruction..............5-70 Addition of data values, ADD instruction ..............5-25 Addressing special function blocks ................9-1 Advanced programming points Examples and tips ....................10-1 Alternated state, ALT instruction .................. 5-73 Alternating states using ALT, example .................
  • Page 372 FX Series Programmable Controllers Index 11 C data devices See Counters Comparison of data to a range, ZCP instr' ..............5-17 Comparison of single data values, CMP instr' ............. 5-17 Compliment of a data value, CML instr' ..............5-19 Conditional Jump instruction (CJ) .................. 5-5 Constant scan mode - how to program, example ............
  • Page 373 FX Series Programmable Controllers Index 11 Encode data, ENCO instruction .................. 5-44 END ..........................2-23 End instruction ......................2-23 Error codes Circuit (D8066) ................... 6-17, 6-18 Communication (D8062 - D8063) ................. 6-15 Hardware (D8061) ....................6-15 Operation (D8067) ....................6-19 Parameter (D8064)....................
  • Page 374 FX Series Programmable Controllers Index 11 FX-8AV - externally adjustable data values ..............4-37 FX-8AV control instructions Volume read, VRRD instruction ................. 5-101 Volume scale, VRSC instruction................. 5-101 FX0 an FX0S performance specification ..............8-1 FX0N performance specification ................... 8-2 FX2-40AP/AW parallel run (PRUN) instruction ............
  • Page 375 FX Series Programmable Controllers Index 11 Using multiple index registers ................4-39 Indexing through display values, example ..............10-5 Initial state control, IST instruction ................5-67 Input, device details and example ................4-1 Instruction execution times Applied instructions ....................7-3 Basic instructions ....................
  • Page 376 FX Series Programmable Controllers Index 11 OUT ..........................2-4 Timer and counter variations .................. 2-4 Out instruction ....................... 2-4 Output, device details and example ................4-2 P program pointer See Pointer P Parallel link adapter, FX-40AP/AW ................9-6 PLC operation - batch processing ................7-14 PID control Applied instruction 88 - PID................
  • Page 377 FX Series Programmable Controllers Index 11 S bit device See State relays Scientific Notation - a numerical format ..............4-47 Search, data search utility - SER instruction .............. 5-69 Set and reset instructions ................... 2-17 See Also Zone reset, ZRST FNC 40 SET, RST ........................
  • Page 378 FX Series Programmable Controllers Index 11 Timers, Basic timers ......................2-18 Device details and examples................4-15 General accuracy ....................4-18 General timer operation..................4-16 Retentive timers ....................4-17 Selectable range timers..................4-16 Timers used in interrupt and CALL subroutines ..........4-18 Two's compliment - an explanation ................
  • Page 379: Ascii Character Codes

    FX Series Programmable Controllers Index 11 11.2 ASCII Character Codes Table 11.1: Higher bit ASCII code table (HEX) (SP) “ & ‘ Lower accessible < > (SP) Note: (SP) = Space, = Carriage Return 11-9...
  • Page 380: Applied Instruction List

    FX Series Programmable Controllers Index 11 11.3 Applied Instruction List 11-10 11-10...
  • Page 382: Programming Manual

    PROGRAMMING MANUAL TH E FX SER IES O F PR O G R AM M ABLE C O N TR O LLER , FX , FX , FX, FX HEAD OFFICE: MITSUBISHI DENKI BLDG MARUNOUCHI TOKYO 100-8310 TELEX: J24532 CABLE MELCO TOKYO HIMEJI WORKS: 840, CHIYODA CHO, HIMEJI, JAPAN Effective Nov.

Table of Contents