Page 3
FX Series Programmable Controllers
FX Series Programmable Controllers
Programming Manual
Manual number : JY992D88101
Manual revision : A
Foreword
•This manual contains text, diagrams and explanations which will guide the reader in the correct programming and operation of the PLC.
•Before attempting to install or use the PLC this manual should be read and understood.
•If in doubt at any stage of the installation of the PLC always consult a professional electrical engineer who is qualified and trained to the local and national standards which apply to the installation site.
•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.
i
Contents
Programming Manual
Page
Foreword
FX Series Programmable Controllers
FX Series Programmable Controllers
FAX Back Combined Programming Manual J
FX Series Programmable Controllers
Software Warnings
Hardware Warnings
FX Series Programmable Controllers
Contents
STL Programming
Applied Instructions
Rotation And Shift Functions 30 to
External FX Serial Devices Functions 80 to
Execution Times And Instructional
10-1
Viii
FX Series Programmable Controllers
Chapter Contents
Overview
Introduction
What do You Need to Program a PLC?
What is a Programmable Controller?
Current Generation CPU all versions
Special considerations for programming equipment
Manual name Number FX Base Unit Hardware
Assocciated Manuals
Manual name Number FX DU, GOT and DM units
Memo
Basic Program Instructions
FX Series Programmable ControllersBasic Program Instructions
What is a Program?
Outline of Basic Devices Used in Programming
Detailed device information
Example
How to Read Ladder Logic
Load, Load Inverse
OUT instruction
Program example
Out
Timer and Counter Variations
Use of dual coils
Last coil effect
Double Coil Designation
Peripheral limitations
And, And Inverse
ORI
Or, Or Inverse
Single Operation flags M2800 to M3071
Load Pulse, Load Trailing Pulse
LDF ANF OUT
Pulse, And Trailing Pulse
ORF ORB
Or Pulse, Or Trailing Pulse
Or Block
Batch processing limitations
Sequential processing limitations
ANB
Block
MPS, MRD and MPP usage
13 MPS, MRD and MPP
Multiple program examples
MCR
Master Control and Reset
Nested MC program example
Resetting timers and counters
Set and Reset
Timer, Counter Out & Reset
Retentive timers
16.1Basic Timers, Retentive Timers And Counters
High Speed Counters
Bit counters
Availability of devices
Normal 32 bit Counters
Leading and Trailing Pulse
PLF
Usages for INV
Inverse
No Operation
No Operation
Program scan
20 End
Memo
STL Programming
FX Series Programmable ControllersSTL Programming
General note
What is STL, SFC And IEC1131 Part 3?
How STL Operates
Each step is a program
Look Inside an STL
Activating new states
How To Start And End An STL Program
Combined SFC Ladder representation
Embedded STL programs
Initial Steps
Terminating an STL Program
Returning to Standard Ladder
Moving Between STL Steps
Using SET to drive an STL coil
Using OUT to drive an STL coil
OUT is used for loops and jumps
Out is used for distant jumps
Basic Notes On The Behavior Of STL programs
Rules and Techniques For STL programs
T001 K20 K50
Single Signal Step Control
Method 1 Using locking devices
Method 2 Special Single Pulse Flags
Restrictions Of Some Instructions When Used With STL
Using ‘jump’ operations with STL
Restrictions on using applied instructions
STL OUT SET
Using STL To Select The Most Appropriate Program
Limits on the number of branches
Using STL To Activate Multiple Flows Simultaneously
Limits on the number of branches
Instruction Format
General Rules For Successful STL Branching
General Precautions When Using The FX-PCS/AT-EE Software
Simple STL Flow
Programming Examples
SET STL
Identification of normally closed contacts
Selective Branch/ First State Merge Example Program
Points to note
Full STL flow diagram/program
Advanced STL Use
Devices in Detail
FX Series Programmable ControllersDevices in Detail
Device Mnemonic
Configuration details
Inputs
Available devices
Outputs
Device Mnemonic Y
Alias O/P
Auxiliary Relays
Device Mnemonic M
General Stable State Auxiliary Relays
External loads
Battery Backed/ Latched Auxiliary Relays
Special Single Operation Pulse Relays
Special Diagnostic Auxiliary Relays
State Relays
Device Mnemonic S
General Stable State State Relays
PLC FX 1S FX 1N FX 2N
Battery Backed/ Latched State Relays
IST instruction
Assigned states
Monitoring STL programs
STL/SFC programming
Annunciator Flags
Device Mnemonic P
Pointers
Jumping to the end of the program
Device availability
Pointer position
Interrupt Pointers
Additional applied instructions
Nested levels
Timer Interrupts
Rules of use
Input Interrupts
Disabling Individual Interrupts
Driving special auxiliary relays
Disabling high speed counter interrupts
Additional notes
Example device usage N/A
Constant K
Constant H
Device Mnemonic K
Timers
Timer accuracy
Device Mnemonic T
General timer operation
Selectable Timers
Driving special auxiliary coils
Retentive Timers
Using timers in interrupt or ‘CALL’ subroutines
Condition
Internal timer accuracy
Timers Used in Interrupt and ‘CALL’ Subroutines
Timer Accuracy
Device Mnemonic C
Setting ranges for counters
Counters
High speed counters
General/ Latched 16bit UP Counters
Battery backed/latched counters
Battery backed/ latched counters
Selecting the counting direction
General/ Latched 32bit Bi-directional Counters
Further uses None
Basic high speed counter operation
Basic High Speed Counter Operation
Driving high speed counter coils
Input assignment
Counter Speeds
Availability of High Speed Counters
Calculating the maximum combined counting speed on FX1S
Using the SPD instruction
Device specification
Setting range
Direction setting
RST
Device size
11.5 2 Phase Bi-directional Counters C246 to C250
11.6 A/B Phase Counters C252 to C255
Data Registers
Device Mnemonic D
Example device usage None
Data register updates
Data retention
General Use Registers
Special Diagnostic Registers
Using the FX2-40AW/AP
Use of diagnostic registers
Battery Backed/ Latched Registers
Program memory registers
Special caution when using FX1S
Writing to file registers
File Registers
Uses
Externally Adjusted Registers
Available forms
Index Registers
Use of Modifiers with Applied Instruction Parameters
Device Mnemonic V,Z
Using Multiple Index Registers
Modifying a Constant
Misuse of the Modifiers
Bit Devices, Individual and Grouped
Bits, Words, BCD and Hexadecimal
Moving grouped bit devices
Assigning I/O
Assigning grouped bit devices
Interpreting Word Data
Word Devices
FX Series Programmable Controllers
Word Data Summary
Binary Coded Decimal value= Error
Inverted7 Additional1
14.4 Two’s Compliment
Some useful constants
Floating Point And Scientific Notation
Scientific Notation
Floating Point Format
FLT