All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or
transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of Yaskawa. No patent liability is assumed with respect to
the use of the information contained herein. Moreover, because Yaskawa is constantly striving to
improve its high-quality products, the information contained in this manual is subject to change without
notice. Every precaution has been taken in the preparation of this manual. Nevertheless, Yaskawa
assumes no responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in this publication.
About this Manual
This manual provides comprehensive information on ladder programming for MP2000-series
Machine Controllers. It provides the following information on MP2000-series Machine Controllers.
• Introduction to Ladder Programming
• Specifications
• Program Development Flow
• Programming
• Instructions
• MPE720 Engineering Tool
• Troubleshooting
This manual provides information on MP2000-series Machine Controllers and MPE720 version 6.
For information on the MP900-series Machine Controllers and MPE720 version 5, refer to the
appropriate manuals for them.
Read this manual carefully to ensure the proper use of the MP2000-series Machine Controllers.
Keep this manual in a safe place so that it can be referred to whenever necessary.
Using this Manual
Intended Audience
This manual is intended for the following users.
• Those responsible for designing the MP2000-series Machine Controller system
• Those responsible for writing the MP2000-series Machine Controller ladder programs
MPE720 Engineering Tool Version Number
In this manual, the operation of the MPE720 is described using screen captures of MPE720 version 6.
For this reason, the screen captures and some descriptions may differ for MPE720 version 5.
Abbreviations
The following abbreviation is used in this manual.
• MP2000: A generic term for the MP2100, MP2100M, MP2101, MP2101M, MP2101T, MP2101TM, MP2200,
MP2300, MP2300S, MP2310, MP2400, MP2500/M/B/MB, and MPU-01.
MP2000-series Manuals
The MP2000 Series includes the MP2100, MP2100M, MP2101, MP2101M, MP2101T, MP2101TM,
MP2200, MP2300, MP2300S, MP2310, MP2400, MPU-01, MP2500/M/B/MB, and MPU-01.
There are many manuals available for one or more of these Machine Controllers. A list of the
related manuals is provided on the following page. Refer to these manuals as required.
iii
Related Manuals
The following manuals are related to the MP2000 Series. Refer to these manuals as required.
Manual NameManual NumberDescription
Machine Controller MP210/MP210M
User’s Manual, Design and Maintenance
Machine Controller MP2000 Series
Communication Module User’s Manual
Machine Controller MP2000 Series
262IF-01 FL-net Communication Module
User’s Manual
Machine Controller MP2000 Series
263IF-01 EtherNet/IP Communication
Module User’s Manual
Machine Controller MP2000 Series
I/O Module User’s Manual
Machine Controller MP2000 Series
Analog Input/Analog Output Module
AI-01/AO-01 User’s Manual
Machine Controller MP2000 Series
Counter Module CNTR-01 User’s Manual
Machine Controller MP2000 Series
MPU-01 Multiple-CPU Module
User’s Manual
Machine Controller MP2000 Series
User’s Manual for Motion Programming
Engineering Tool for MP2000 Series
Machine Controller MPE720 Version 6
User’s Manual
Machine Controller MP900/MP2000 Series
MPE720 Software for Programming Device
User’s Manual
Machine Controller MP2000 Series
Embedded C-Language Programming
Package Development Guide
Machine Controller MP900/MP2000 Series
New Ladder Editor User’s Manual
SIEP C880700 01
SIEP C880700 03
SIEP C880732 00
SIEP C880732 01
SIEP C880752 00
SIEP C880700 33
SIEP C880700 41
SIEP C880700 32
SIEP C880700 28
SIEP C880700 04
SIEP C880700 36
SIEP C880700 39
SIEP C880700 34
SIEP C880700 26
SIEP C880700 27
SIEP C880781 05
SIEP C880700 38
SIEP C880700 30
SIEP C880700 05
SIEP C880700 25
SIEZ-C887-13.2
Describes the functions, specifications, setup procedures, and
operating methods of the MP2100/MP2100M.
Describes the functions, specifications, setup procedures, and
operating methods of the MP2200.
Describes the functions, specifications, setup procedures, and
operating methods of the MP2300.
Describes the functions, specifications, setup procedures, and
operating methods of the MP2300S.
Describes the functions, specifications, setup procedures, and
operating methods of the MP2310.
Describes the functions, specifications, setup procedures, and
operating methods of the MP2400.
Describes how to use the MP2500, MP2500M, MP2500D, and
MP2500MD Machine Controllers.
Describes the SVB Module that is built into an MP2000-series
Machine Controller and the SVB-1 Optional Module.
Describes the SVC-01 SVA Motion Module for MP2000-series
Machine Controllers.
Describes the SVA-01 SVA Motion Module for MP2000-series
Machine Controllers.
Describes the PO-01 Pulse Output Motion Module for MP2000series Machine Controllers.
Describes the Communications Modules that can be connected to
MP2000-series Machine Controllers.
Describes the 262IF-01 FL-net Communications Module for
MP2000-series Machine Controllers.
Describes the 263IF-01 EtherNet/IP Communications Module for
MP2000-series Machine Controllers.
Describes the I/O Modules that can be connected to MP2000series Machine Controllers.
Describes the AI-01 Analog Input Module and AO-01 Analog
Output Module for MP2000-series Machine Controllers.
Describes the CNTR-01 Counter Module for MP2000-series
Machine Controllers.
Describes the MPU-01 Multiple-CPU Module for MP2000-series
Machine Controllers.
Describes the
MP2000-series Machine Controllers.
Describes how to install and operate the MPE720 version 6 Engineering Tool for MP2000-series Machine Controllers.
Describes how to install and operate the MPE720 programming
device software for MP900/MP2000-series Machine Controllers.
Describes how to develop, design, and maintain embedded C-language application programs for MP2000-series Machine Controllers.
Describes the operating methods of the New Ladder Editor, which
assists MP900/MP2000-series design and maintenance.
instructions that are used
in motion programming for
iv
Manual NameManual NumberDescription
Machine Controller MP900/MP2000 Series
Distributed I/O Module User’s Manual,
MECHATROLINK System
Machine Controller MP900/MP2000 Series
User’s Manual, For Linear Servomotors
AC Servo Drives Σ-V Series User’s Manual,
Setup, Rotational Motor
AC Servo Drives Σ-V Series User’s Manual,
Setup, Linear Motor
AC Servo Drives Σ-V Series User’s Manual,
Design and Maintenance, Analog-voltage,
Pulse-string Reference, Rotational Motor
AC Servo Drives Σ-V Series User’s Manual,
Design and Maintenance, Analog-voltage/
Pulse-string Reference, Linear Motor
AC Servo Drives Σ-V Series User’s Manual,
Design and Maintenance,
MECHATROLINK-II Communications
Reference, Rotational Motor
AC Servo Drives Σ-V Series User’s Manual,
Design and Maintenance,
MECHATROLINK-II Communications
Reference, Linear Motor
AC Servo Drives Σ-V Series User’s Manual,
MECHATROLINK-II Commands
AC Servo Drives Σ-V Series User’s Manual,
Operation of Digital Operator
SIE-C887-5.1
SIEP C880700 06
SIEP S800000 43
SIEP S800000 44
SIEP S800000 45
SIEP S800000 47
SIEP S800000 46
SIEP S800000 48
SIEP S800000 54
SIEPS 800000 55
Describes MECHATROLINK distributed I/O for MP900/
MP2000-series Machine Controllers.
Describes the connection methods, setting methods, and other
information for Linear Servomotors.
Describes the installation, wiring, connections, and trial operation
of the
Σ-V Series Servo Drives and Rotational Servomotors.
Describes the installation, wiring, connections, and trial operation
Σ-V Series Servo Drives and Linear Servomotors.
of the
Describes the design and maintenance of the
Servo Drives and Rotational Servomotors.
Describes the design and maintenance of the
Servo Drives and Linear Servomotors.
Describes the design and maintenance of the
TROLINK-II Communications-reference Servo Drives and Rotational Servomotors.
Describes the design and maintenance of the
TROLINK-II Communications-reference Servo Drives and Linear
Servomotors.
Describes the MECHATROLINK-II communications commands
Σ-V Series Servo Drives with MECHATROLINK-II com-
of the
munications references.
Describes operating procedures of the Digital Operator for
Series Servo Drives.
Σ-V Series Analog
Σ-V Series Analog
Σ-V Series MECHA-
Σ-V Series MECHA-
Σ-V
v
IMPORTANT
INFO
EXAMPLE
TERMS
WARNING
CAUTION
PROHIBITED
Visual Aids
The following visual aids are used to indicate certain types of information for easier reference. Use these to help you
understand the different types of information.
• Indicates information that must be remembered.
Also indicates alarm displays and other minor precautions that will not result in machine damage.
• Indicates supplemental information and convenient information to remember.
• Indicates concrete examples.
• Indicates definitions of difficult terms or terms that have not been previously explained in this manual.
Copyrights
• DeviceNet is a registered trademark of the ODVA (Open DeviceNet Venders Association).
• PROFIBUS is a trademark of the PROFIBUS User Organization.
• Ethernet is a registered trademark of the Xerox Corporation.
• MPLINK is a registered trademark of Yaskawa Electric Corporation.
• Microsoft, Windows, Windows NT, and Internet Explorer are trademarks or registered trademarks of the
Microsoft Corporation.
• Pentium is a registered trademark of the Intel Corporation.
• MECHATROLINK is a trademark of the MECHATROLINK Members Association.
• Other product names and company names are the trademarks or registered trademarks of the respective company. “TM” and the ® mark do not appear with product or company names in this manual.
Safety Information
The following signal words and marks are used to indicate safety precautions in this manual. Information marked as
shown below is important for safety. Always read this information and heed the precautions that are provided.
Indicates precautions that, if not heeded, could possibly result in loss of life or serious injury.
Indicates precautions that, if not heeded, could result in relatively serious or minor injury, or
property damage.
If not heeded, even precautions classified as cautions () can lead to serious results depending on
circumstances.
CAUTION
vi
MANDATORY
Indicates prohibited actions. For example, indicates prohibition of open flame.
Indicates mandatory actions. For example, indicates that grounding is required.
CAUTION
Safety Precautions
This section provides important precautions that must be observed in ladder programming. Before you start to program,
carefully read all of this manual and all other provided manuals and make sure that you program the MP2000-series
Machine Controller correctly. You must be completely familiar with the MP2000-series Machine Controllers, safety
information, and all safety precautions before you attempt to use the Machine Controller.
Storage and Transportation
If disinfectants or insecticides must be used to treat packing materials such as wooden frames, pallets, or
plywood, the packing materials must be treated before the product is packaged, and methods other than
fumigation must be used.
Example: Heat treatment, where materials are kiln-dried to a core temperature of 56°C for 30 minutes or
more.
If the electronic products, which include stand-alone products and products installed in machines, are packed with
fumigated wooden materials, the electrical components may be greatly damaged by the gases or fumes resulting from
the fumigation process. In particular, disinfectants containing halogen, which includes chlorine, fluorine, bromine, or
iodine can contribute to the erosion of the capacitors.
Other General Precautions
Observe the following general precautions to ensure safe application.
The MP2000-series Machine Controllers were not designed or manufactured for use in devices or systems
directly related to human life.
Users who intend to use products that are described in this manual for special purposes such as devices or systems relating to transportation, medical, space aviation, atomic power control, or underwater use must contact
Yaskawa Electric Corporation beforehand.
The MP2000-series Machine Controllers have been manufactured under strict quality control guidelines. However,
if an MP2000-series Machine Controller is to be installed in any location in which a failure of the MP2000-series
Machine Controllers could involve a life and death situation or in a facility where failure may cause a serious accident, safety devices MUST be installed to minimize the likelihood of any serious accident.
The products shown in illustrations in this manual are sometimes shown without covers or protective guards.
Always replace the cover or protective guard as specified first, and then operate the products in accordance with
the manual.
The drawings that are presented in this manual are typical examples and may not match the product you received.
If the manual must be ordered due to loss or damage, inform your nearest Yaskawa representative or one of the
offices listed on the back of this manual.
Contact your nearest Yaskawa representative or one of the offices listed on the back of this manual to order a new
nameplate whenever a nameplate becomes worn or damaged.
vii
Warranty
( 1 ) Details of Warranty
Warranty Period
The warranty period for a product that was purchased (hereinafter called “delivered product”) is one year from the time
of delivery to the location specified by the customer or 18 months from the time of shipment from the Yaskawa factory,
whichever is sooner.
Warranty Scope
Yaskawa shall replace or repair a defective product free of charge if a defect attributable to Yaskawa occurs during the
warranty period above. This warranty does not cover defects caused by the delivered product reaching the end of its
service life and replacement of parts that require replacement or that have a limited service life.
This warranty does not cover failures that result from any of the following causes.
1. Improper handling, abuse, or use in unsuitable conditions or in environments not described in product catalogs or
manuals, or in any separately agreed-upon specifications
2. Causes not attributable to the delivered product itself
3. Modifications or repairs not performed by Yaskawa
4. Abuse of the delivered product in a manner in which it was not originally intended
5. Causes that were not foreseeable with the scientific and technological understanding at the time of shipment from
Ya sk aw a
6. Events for which Yaskawa is not responsible, such as natural or human-made disasters
( 2 ) Limitations of Liability
1. Yaskawa shall in no event be responsible for any damage or loss of opportunity to the customer that arises due to
failure of the delivered product.
2. Yaskawa shall not be responsible for any programs (including parameter settings) or the results of program execution of the programs provided by the user or by a third party for use with programmable Yaskawa products.
3. The information described in product catalogs or manuals is provided for the purpose of the customer purchasing
the appropriate product for the intended application. The use thereof does not guarantee that there are no infringements of intellectual property rights or other proprietary rights of Yaskawa or third parties, nor does it construe a
license.
4. Yaskawa shall not be responsible for any damage arising from infringements of intellectual property rights or other
proprietary rights of third parties as a result of using the information described in catalogs or manuals.
viii
( 3 ) Suitability for Use
1. It is the customer’s responsibility to confirm conformity with any standards, codes, or regulations that apply if the
Yaskawa product is used in combination with any other products.
2. The customer must confirm that the Yaskawa product is suitable for the systems, machines, and equipment used by
the customer.
3. Consult with Yaskawa to determine whether use in the following applications is acceptable. If use in the application
is acceptable, use the product with extra allowance in ratings and specifications, and provide safety measures to
minimize hazards in the event of failure.
• Outdoor use, use involving potential chemical contamination or electrical interference, or use in conditions or
environments not described in product catalogs or manuals
• Nuclear energy control systems, combustion systems, railroad systems, aviation systems, vehicle systems,
medical equipment, amusement machines, and installations subject to separate industry or government regulations
• Systems, machines, and equipment that may present a risk to life or property
• Systems that require a high degree of reliability, such as systems that supply gas, water, or electricity, or systems that operate continuously 24 hours a day
• Other systems that require a similar high degree of safety
4. Never use the product for an application involving serious risk to life or property without first ensuring that the system is designed to secure the required level of safety with risk warnings and redundancy, and that the Yaskawa
product is properly rated and installed.
5. The circuit examples and other application examples described in product catalogs and manuals are for reference.
Check the functionality and safety of the actual devices and equipment to be used before using the product.
6. Read and understand all use prohibitions and precautions, and operate the Yaskawa product correctly to prevent
accidental harm to third parties.
( 4 ) Specifications Change
The names, specifications, appearance, and accessories of products in product catalogs and manuals may be changed at
any time based on improvements and other reasons. The next editions of the revised catalogs or manuals will be published with updated code numbers. Consult with your Yaskawa representative to confirm the actual specifications
before purchasing a product.
A ladder program uses ladder instructions and registers to symbolically represent electrical circuits that consist of
switches, timers, lamps, and other devices.
Ladder programming allows you to easily program large, complex circuits.
Each of the ladder programs that you create is executed in a single scan and then executed repeatedly at fixed
intervals.
1-2
1.2 Features of Ladder Programming for MP2000-series Machine Controllers
Introduction to Ladder Programming
1
Interrupt
signal
Power ON
High-speed
scan cycle
Low-speed scan cycle
Processed during
idle time of the
high-speed scan.
High-speed
scan cycle
High-speed
scan cycle
Interrupt signal
DWG.A
→ Executed only when power
is turned ON.
DWG.H
→ Executed in the high-speed
scan cycle.
DWG.L
→ Executed in the low-speed
scan cycle.
DWG.I
→ Executed only when an
interrupt signal is detected.
On standby while
drawings of higher
priority are processed.
:
↓
↓
1.2.1 Types of Ladder Drawings and Their Different Execution Timing
1.2 Features of Ladder Programming for MP2000-series Machine
Controllers
This section describes the features of ladder programming.
1.2.1 Types of Ladder Drawings and Their Different Execution Timing
Ladder programs are managed in units of drawings (DWG). These are called ladder drawings.
In the MP2000-series Machine Controllers, ladder drawings are executed at various times, as illustrated in the following figure.
Processing can be executed at the appropriate time by programming it in the appropriate ladder drawing.
Drawing Execution Timing
The drawings with lower numbers have higher execution priority.
This drawing is executed only once when the power supply is turned ON
(e.g., for data initialization).
This drawing is executed when an interrupt signal is detected (e.g., for
interrupt processing for external signals).
This drawing is executed every high-speed scan cycle (e.g., for motion
control).
This drawing is executed every low-speed scan cycle (e.g., for touch
panel display processing).
1-3
1.2 Features of Ladder Programming for MP2000-series Machine Controllers
1.2.2 Program Modules
1.2.2 Program Modules
The main program can be separated into modular units to suit different processing requirements, such as child drawings, grandchild drawings, and functions, to make the program easier to read.
H: Main program
# Automatic operation processing
H: Main program
SEE instruction
Automatic operation
processing drawing
# Manual operation processing
# Difference numeric processing
# Manual operation processing
# Difference numeric processing
END
Modularization
c
d
SEE instruction
SEE instruction
Manual operation
processing c drawing
Manual operation
processing d drawing
1.2.3 Programming Complicated Numeric Operations
Complicated calculations written over several lines can be written easily within a single EXPRESSION instruction.
Variables, structures, and basic functions, such as those for sine and cosine calculations, can be programmed using
familiar C-like expressions.
You can display the current value inside expressions in the same way as you can for other ladder language instructions.
FUNC
instruction
FUNC
instruction
Difference numeric
processing function
1-4
1.2 Features of Ladder Programming for MP2000-series Machine Controllers
Introduction to Ladder Programming
1
MP2000-series Machine Controller
• MSG-SND instruction
(Send Message)
• MSG-RCV instruction
(Receive Message)
Ladder Program
Touch Panel
PLC
Registers
External Device
INFO
1.2.4 Communications Control with External Devices
The MSG-SND and MSG-RCV ladder instructions support various protocols and can be used to control communications with many external devices, such as a touch panels or host PLCs. This allows external devices to access registers
in the Machine Controller.
1.2.4 Communications Control with External Devices
Instead of using a ladder program, the Machine Controller can also communicate with external devices by using I/O message
communications or automatic reception.
Refer to Chapter 6 Ethernet Communications in the Machine Controller MP2310 Basic Module User’s Manual (Manual No.:
SIEP C880732 01) for details.
1.2.5 Complete Synchronization with Motion Control
Ladder programs that are started in the high-speed scan are processed in complete synchronization with motion control
processing. This allows you to call and process a motion program that performs complicated motion control synchronously with a ladder program.
Sequence Control
Motion control is processed in
Ladder Program (High-speed Scan)
Start of a Motion
Program
complete synchronization with
the high-speed scan.
Motion Program
Setting
motion
parameters
Motion Control
(Motion Module)
Completely
synchronized
control
Position
control
Speed
Motion parameters
control
Torque
control
1-5
Specifications for Ladder Programs
2
2
Specifications for Ladder Programs
This chapter gives the specifications for ladder programs.
MP2101T, MP2101TM,
MP2200 with CPU-03,
MP2200 with CPU-04,
and MPU-01
Applicable Models
Number of
Programs
Number of Groups
Number of Tasks
Motion Programs
Number of Parallel
Forks per Task
Applicable Models
Number of
Programs
Number of Tasks
Sequence Programs
M Registers
S Registers
I Registers
O Registers
C Registers
D Registers
Accessible Registers
# Registers
Capacity of Table Data
Backed Up by a Battery
∗ 1. This is the total capacity for ladder programs and motion programs.
∗ 2. This is supported only for version 2.66 or higher.
∗ 3. The # registers can be used only when ladder programs are used.
Applicable
256 programs max. including motion programs and sequence programs
8 groups (Up to 16 axes can be set in one group.)
16 tasks max. (This is the number of simultaneously executable motion programs.)
8 (4 main program forks × 2 subprogram forks)
NAApplicable ApplicableNAApplicable NAApplicable
256 programs max. including motion programs and sequence programs
16 tasks max. (This is the number of simultaneously executable sequence programs.)
Applicable (65,535 words)
These registers are backed up with a battery.
Applicable (8,192 words)
These registers are backed up with a battery.
Applicable (32,768 words + motion monitor parameters)
Applicable (32,768 words + motion setting parameters)
Applicable (16,384 words)
Applicable (Can be specified to between 0 and 16,384 words.)
These registers are unique to each drawing (DWG). They can be used within each drawing.
Applicable (Can be specified to between 0 and 16,384 words.)
These are internal registers that are unique to each drawing (DWG). They can be referenced within each drawing.
None1 MB3 MB
*3
*3
2-3
2.2 Engineering Tool Specifications
INFO
2.2.1 Applicable Engineering Tool
2.2 Engineering Tool Specifications
This section gives the specifications for programs for the Engineering Tool.
2.2.1 Applicable Engineering Tool
You can create ladder programs with the following Engineering Tool.
• MPE720 version 5 for all MP2000-series Machine Controllers except for the MP2400
• MPE720 version 6 for all MP2000-series Machine Controllers
In addition to the Engineering Tool, you can also use the following Support Tools to monitor Machine Controller information
and transfer data.
• MPLOGGER (Control Information Monitoring Tool)
• MPLoader (Data Transfer Tool)
• MPLoadMaker (Automatic Transfer Data Creation Tool)
You can install the Engineering Tool and Support Tools in one PC to use them.
2.2.2 MPE720 Version 6 Engineering Tool Specifications
The following table shows the relationship between the Engineering Tool and the Machine Controller.
Machine Controller
MP2100Applicable
MP2100MApplicable
MP2101Applicable
MP2101MApplicable
MP2101TApplicable
MP2101TMApplicable
MP2200 with CPU-01Applicable
MP2200 with CPU-02Applicable
MP2200 with CPU-03Applicable
MP2200 with CPU-04Applicable
MP2300Applicable
MP2300SApplicable
MP2310Applicable
MPU-01Applicable
MPE720 Version 6
(CPMC-MPE770)
Remarks
–
–
Applicable with MPE720 version 6.24 or higher
Applicable with MPE720 version 6.24 or higher
Applicable with MPE720 version 6.24 or higher
Applicable with MPE720 version 6.24 or higher
–
–
Applicable with MPE720 version 6.20 or higher
Applicable with MPE720 version 6.22 or higher
–
Applicable with MPE720 version 6.04 or higher
Applicable with MPE720 version 6.04 or higher
Applicable with MPE720 version 6.23 or higher
The following table shows the relationship between the Engineering Tool and the programs.
Program
Ladder ProgramsApplicable
Motion ProgramsApplicable
Sequence ProgramsApplicable
MPE720 Version 6
(CPMC-MPE770)
Remarks
–
–
–
2-4
Specifications for Ladder Programs
2
2.3 Ladder Programming Instructions
The following table lists the ladder programming instructions.
Refer to the reference sections for details on individual instructions.
TypeSymbolFunctionReference
NOCNO Contact
NCCNC Contact
TON[10 ms]10-ms ON-Delay Timer
TOFF[10 ms]10-ms OFF-Delay Timer
TON[1 s]1-s ON-Delay Timer
TOFF[1 s]1-s OFF-Delay Timer
ON-PLSRising-edge Pulses
OFF-PLSFalling-edge Pulses
COILCoil
Relay Circuit Instructions
S-COILSet Coil
R-COILReset Coil
STOREStore
ADDAdd
ADDXExtended Add
SUBSubtract
SUBXExtended Subtract
MULMultiply
DIVDivide
MODInteger Remainder
REMReal Remainder
INCIncrement
DECDecrement
TMADDAdd Time
TMSUBSubtract Time
SPENDSpend Time
INVInvert Sign
COMOne’s Complement
Numeric Operation Instructions
ABSAbsolute Value
BINBinary Conversion
BCDBCD Conversion
PARITYParity Conversion
ASCIIASCII Conversion 1
BINASCASCII Conversion 2
ASCBINASCII Conversion 3
ANDInclusive AND
ORInclusive OR
XORExclusive OR
<Less Than
≤Less Than or Equal
=Equal
≠Not Equal
≥Greater Than or Equal
>Greater Than
Logic Operation Instructions
RCHKRange Check
2.3 Ladder Programming Instructions
5.2.1
5.2.2
5.2.3
5.2.4
5.2.5
5.2.6
5.2.7
5.2.8
5.2.9
5.2.10
5.2.11
5.3.1
5.3.2
5.3.3
5.3.4
5.3.5
5.3.6
5.3.7
5.3.8
5.3.9
5.3.10
5.3.11
5.3.12
5.3.13
5.3.14
5.3.15
5.3.16
5.3.17
5.3.18
5.3.19
5.3.20
5.3.21
5.3.22
5.3.23
5.4.1
5.4.2
5.4.3
5.4.4
5.4.5
5.4.6
5.4.7
5.4.8
5.4.9
5.4.10
2-5
2.3 Ladder Programming Instructions
TypeSymbolFunctionReference
SEECall Sequence Subprogram
MSEECall Motion Program
FUNCCall User Function
INSDirect Input String
OUTSDirect Output String
XCALLCall Extended Program
WHILE
END_WHILE
FOR
END_FOR
IF
END_IF
Program Control Instructions
IF
ELSE
END_IF
EXPRESSIONExpression
SQRTSquare Root
SINSine
COSCosine
TANTangent
ASINArc Sine
ACOSArc Cosine
ATANArc Tangent
EXPExponential
LNNatural Logarithm
Basic Function Instructions
LOGCommon Logarithm
ROTLBit Rotate Left
ROTRBit Rotate Right
MOVBMove Bit
MOVWMove Word
XCHGExchange
SETWTable Initialization
BEXTDByte-to-word Expansion
BPRESSWord-to-byte Compression
BSRCHBinary Search
SORTSort
SHFTLBit Shift Left
Data Manipulation Instructions
SHFTRBit Shift Right
COPYWCopy Word
BSWAPByte Swap
DZADead Zone A
DZBDead Zone B
LIMITUpper/Lower Limit
PIPI Control
PDPD Control
PIDPID Control
LAGFirst Order Lag
LLAGPhase Lead Lag
FGNFunction Generator
DDC Instructions
IFGNInverse Function Generator
LAULinear Accelerator/Decelerator 1
SLAULinear Accelerator/Decelerator 2
PWMPulse Width Modulation
WHILE construct
FOR construct
IF construct
IF ELSE construct
5.5.1
5.5.2
5.5.3
5.5.4
5.5.5
5.5.6
5.5.7
5.5.8
5.5.9
5.5.10
5.5.11
5.6.1
5.6.2
5.6.3
5.6.4
5.6.5
5.6.6
5.6.7
5.6.8
5.6.9
5.6.10
5.7.1
5.7.2
5.7.3
5.7.4
5.7.5
5.7.6
5.7.7
5.7.8
5.7.9
5.7.10
5.7.11
5.7.12
5.7.13
5.7.14
5.8.1
5.8.2
5.8.3
5.8.4
5.8.5
5.8.6
5.8.7
5.8.8
5.8.9
5.8.10
5.8.11
5.8.12
5.8.13
2-6
2.3 Ladder Programming Instructions
Specifications for Ladder Programs
2
TypeSymbolFunctionReference
TBLBRRead Table Block
TBLBWWrite Table Block
TBLSRLSearch Table Row
TBLSRCSearch Table Column
TBLCLClear Table Block
TBLMVMove Table Block
QTBLRRead Queue Table
QTBLRI
QTBLWWrite Queue Table
Table Manipulation Instructions
QTBLWI
QTBLCLClear Queue Table Pointer
COUNTERCounter
FINFOUTFirst-in First-out
TRACETrace
DTRC-RDRead Data Trace
ITRC-RDRead Inverter Trace
MSG-SNDSend Message
MSG-RCVReceive Message
ICNS-WRWrite Inverter Parameters
ICNS-RDRead Inverter Parameters
MLNK-SVWWrite SERVOPACK Parameters
MOTREG-WWrite Motion Register
Standard System Function Instructions
MOTREG-RRead Motion Register
Read Queue Table with Pointer Increment
Write Queue Table with Pointer Increment
5.9.1
5.9.2
5.9.3
5.9.4
5.9.5
5.9.6
5.9.7
5.9.7
5.9.8
5.9.8
5.9.9
5.10.1
5.10.2
5.10.3
5.10.4
5.10.5
5.10.6
5.10.7
5.10.8
5.10.9
5.10.10
5.10.11
5.10.12
C-FUNCCall User C-language Function
Instructions
TSK-CTRLControl User C-language Task
C-language Control
5.11.1
5.11.2
2-7
Ladder Program Development Flow
3
3
Ladder Program Development Flow
This chapter describes the development flow for ladder programs.
Create a project before you start ladder program
development.
c Preparation for Devices to Be Connected
Assemble and wire all devices to be connected.
Install MPE720 on a PC.
d
System Startup
Perform self configuration and start the system.
g
Transferring Ladder Programs
Transfer the ladder programs that you created to
the MP2000-series Machine Controllers.
h
Checking the Operation of the Ladder Programs
Check the operation of the ladder programs.
i
Saving the Ladder Programs to Flash Memory
Save the debugged ladder programs to flash memory.
f
Creating Ladder Programs
Enter the ladder programs in the Ladder Editor.
Refer to 3.1.1 Connecting the Hardware.
Refer to 3.1.2 Installing MPE720 Version 6.
Refer to 3.1.3 Communications Settings.
Refer to 3.1.4 System Startup.
Refer to 3.1.5 Creating a Project.
Refer to 3.1.6 Creating Ladder Programs.
Refer to 3.1.7 Transferring Ladder Programs.
Refer to 3.1.8 Checking the Operation of the Ladder Programs.
Refer to 3.1.9 Saving the Ladder Programs to Flash Memory.
3.1 Ladder Program Design Procedures
This section describes the design procedures for ladder programs as outlined below.
The above flowchart is an example of the ladder program design process. Settings to interface the external devices
must be completed to use programs on the actual system.
3-2
Ladder Program Development Flow
3
3.1.1 Connecting the Hardware
Virtual I/O Devices*
(Entered on MPE720.)
SW1
SW2SW3
MB00000 MB00001
Lamp 1Lamp 2
MB00010MB00011
Ethernet cable
PC running MPE720
24-VDC
power supply
Machine Controller
MB00002
DC24V
DC 0V
MP2300
YASKAWA
TEST
RDY
ALM
TX
RUN
ERR
BAT
MON
CNFG
INT
SUP
STOP
SW1
OFF ON
BATTERY
CPU I/O
M-I/II
218IF-01
ERR
COL
RX
RUN
STRX
TX
INIT
TEST
ONOFF
PORT
10Base-T
Optional Module
Optional Module
The flow of ladder program development that is described in this chapter is based on the following system configuration.
3.1 Ladder Program Design Procedures
3.1.1 Connecting the Hardware
∗ In this chapter, M registers in the Machine Controller are used to simulate virtual I/O devices in the example system.
In practice, the input and output signals would be connected to I/O Modules on the Machine Controller, and the ladder program
would be created using I and O registers.
3-3
Loading...
+ 385 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.