Yaskawa manufactures component parts that can be used in a wide variety of
industrial applications. The selection and application of Yaskawa products
remains the responsibility of the equipment designer or end user. Yaskawa
accepts no responsibility for how its products may be incorporated into the
final design.
Under no circumstances should any Yaskawa product be incorporated into
any product or design as the exclusive or sole safety control. Without exception, all controls should be designed to dynamically fault detect and fail safe
under all circumstances. All products designed to incorporate a component
part manufactured by Yaskawa must be supplied to the end user with appropriate warnings and instructions as to the safe use and operation. Any warnings provided by Yaskawa must be passed through to the end user.
Yaskawa offers an express warranty only as to the quality of its products to
conform to the catalog specifications. No other warranty, express or implied,
is offered. Yaskawa assumes no liability for any personal injury, property damage, losses or claims arising out of the mis-application of its products.
1. Read this instruction manual in its entirety before using the MP940.
2. The following symbols are used to indicate precautions of which the user must be aware to
safely use this equipment.
CAUTION
The symbol above indicates a potentially hazardous situation which, if not avoided, may
result in minor or moderate injury.”
WARNING
The symbol above indicates a potentially hazardous situation which, if not avoided, could
result in death or serious injury.”
iii
MotionSuite™ MP940 Machine Controller Reference ManualOutline of the MP940
Chapter 1: General Functions
This chapter describes the general functions and characteristics of the MP940.
Outline of the MP940
This section provides a general outline of theMP940.
Exterior of the MP940 module
The MP940 is a single-axis controller with communication, local I/O,
external encoder, and motion functions bus connected with an SGDH servo
amplifier.
MP940
TX
BAT
R
X
RDY
RUN
ALM
1
BAT
L1
L2
L1C
L2C
B1
B2
PRT1
PRT2
RUN
654321
INIT
TEST
FLASH
PP
COPY
NO
・¨
PORT1
PORT2
POWER
+24V
GND
FG
M
E
C
H
A
T
R
2
O
L
I
N
K
I/O
LED
Figure 1.1: MP940 Machine Control and SGDH Servo Amplifier
1-1
Outline of the MP940MotionSuite™ MP940 Machine Controller Reference Manual
Features of the MP940
The MP940 machine controller functions in a variety of machine control
modes, from simple positioning to high-speed/high-precision synchronous
control.
A single controller
The MP940 is composed of the following modules.
Function ModuleContent
MP940CPU
SERIALSerial communication RS-232C, RS-422/485
LIOControl I/O, DI 8points, DO 8points, AO 1CH
SVAMotion function
CNTRCounter function
MLINK or DeviceNetMechatrolink I/F function or DeviceNet I/F function
M
PG
AI
SGDHMP940
Current Control
Counter
Speed Control
A/D
DPRAM or Global Memory
Programming Device
Figure 1.2: MP940 Functions
SVA
RS-232C
.
SERIAL
RS-422/485
MP940
CPU
MLINK
or
DeviceNet
MLINK
Device 1
DeviceNet
Local
I/O
or
DI
DO
AO
AI
CNTR
MLINK
Device 2
1-2
MotionSuite™ MP940 Machine Controller Reference ManualOutline of the MP940
Synchronized controller and servo amplifier
High-speed/high-prescision control is possible because the controller and
SGDH servo amplifier are bus connected. There is no lag in startup or
monitor time, and execution is accomplished in perfect synchronization.
The control period settings can be set to the following periods:
500 µs,1 ms,2 ms4 ms
Reduced wiring/Smaller size
The combination controller/servo amplifier result in wiring reduction and
space savings.
Variety of motion control modes, including:
•Positioning, linear interpolation motion program commands
•High-speed processing position/synchronous phase/speed control/torque
control
•Excellent for electronic shaft and electronic gear applications
The four control modes (speed, synchronous phase, torque, and position) are
illustrated below..
V
Synchronous
Speed
Phase
Torque
Position
T
Figure 1.3 Four Control Modes
1-3
Outline of the MP940MotionSuite™ MP940 Machine Controller Reference Manual
The following figure provides an example of a synchronous phase control
application.
MP920
Servo
Motor
X
Į
Servo
Amp.
Ball Screw
Figure 1.4: Electronic Camming
High-precision synchronous control
User parameter change is executed at high speed for monitor and servo
amplifier data. High-precision synchronous control is possible through the
READ/WRITE function of this data in both ladder and motion programs.
•Mode switching during operation
Switching between position control, torque control, speed control, and
synchronous phase control is possible during operation.
1-4
MotionSuite™ MP940 Machine Controller Reference ManualOutline of the MP940
•Run commands
P/PI switching, external torque limit, and speed limit during torque control can be commanded from the MP940 during operation.
•READ/WRITE function of servo amplifier user parameters
User parameters such as Servo Amplifier Position Loop Gain, Speed
Loop Gain, Speed Loop Integral Time Constant, etc. may be modified
during operation.
•Position data monitor
The various position data, reference speed, speed monitor, and external
encoder data can be referenced at high speed within the program, as
depicted below.
SGDHMP940
Global Memory or DPRAM
Speed Torq ue
Speed reference
Torque reference
Tor q ue li m it
Speed P/PI
Switching
User parameter
Various monitor data
• Position
• Speed
• Torque
Figure 1.5: Position data monitor
Mode switching command
Various run commands
User parameter
READ/WRITE
Monitor data reference
1-5
MotionSuite™ MP940 Machine Controller Reference ManualSpecifications and Functions
Chapter 2: Specifications
This chapter describes the general specifications and functions of the MP940.
Specifications and Functions
This section describes the general specifications and functions of the MP940.
MotionSuite™ MP940 Machine Controller Reference ManualSpecifications and Functions
Hardware Specifications (Continued)
ItemSpecification
DeviceNet Setting Switch —DR0.DR1: Baud rate
DR0DR1
OFFOFF125Kbps
OFFON250Kbps
ONOFF500Kbps
ONONDo not use
X1: Slave/Master
X2: Reserved
Input SignalsNumber of Inputs: 8/Common
Input Type: Combined sink/source
Input Type: Type 1 (JIS-B3501)
Insulation Type: Photocoupler Insulation
Base Voltage: 17.4VDC ~ 28.8VDC
35VDC (at peak)
Rated Current: 5.3mA
Input Impedance: approximately 4.4kΩ
Operating Voltage: ON Voltage 15VDC or higher
OFF Voltage 5VDC or less
OFF Current: 0.9mA or less
Response Time: OFF
ON
These commands are issued
when motion is desired based
on the machine coordinate.The
coordinates automatically set at
zero-point return completion are
called the machine coordinates.These coordinates are not
affected by POS commands.
a program shifted by manual
feed, etc.
linear acceleration
linear acceleration
average accel/decel.
accel/decel during interpolation
motion.
accel/decel during interpolation
motion.
during interpolation feed in % of
maximum speed.
interpolation feed.
This is the time taken in interpolation acceleration to go from
zero to this speed.
2-10
MotionSuite™ MP940 Machine Controller Reference ManualSpecifications and Functions
TypeCommandNameCommand FormatFunction/Meaning
/DivisionMW = MW / MW;
MW = MW / 123456;
MW = 123456 / MW;
MODModulusMW = MW / MW;
MW = MOD;
|OR (Logical OR)MB = MB | MB;
MB = MB | 1;
MW = MW | MW;
MW = MW | H00FF;
^XOR
(Exclusive Logical
OR)
&AND (Logical AND)MB = MB & MB;
!NOT (Inversion)MB = !MB;
()ParenthesesMW = MW— &
S{}Designated bit ONS{MB} = MB & MB;The designated bit goes ON if
Sequence Commands
R{}Designated bit OFFR{MB} = MB & MB;The designated bit goes OFF if
SINSineSIN(MW)
COSCosineCOS(MW)
TANTangentTAN(MF)
ASNArc SineASN(MF)
MW = MW ^ MW;
MW = MW ^ H00FF;
MB = MB & 1;
MW = MW & MW;
MW = MW & H00FF;
MB = !1;
MW = !MW;
MW = !H00FF;
(MW— | MW—);
;SIN(90);
;COS(90);
;TAN(45.0);
;ASN(90.0);
Executes integer/real number
division.Operates as real numbers when integers and real
numbers are intermixed.
MOD is stored as a modulus
into a designated register when
designated in the next block of
the modulus.
Creates a logical OR in bits or
integers.
Creates an exclusive logical OR
in integers.
Creates a logical AND in bits or
integers.
Creates an inverse value in bits.
Logical operations within parentheses have priority.
the logical operation result is
“Valid”.The designated bit goes
OFF when the result of a logical
operation is “Invalid”.
the logical operation result is
“Valid”.The designated bit goes
ON when the result of a logical
operation is “Invalid”.
Obtains the sine in integers/real
numbers (deg), and returns a
real number value.
Obtains the cosine in integers/
real numbers (deg), and returns
a real number value.
Obtains the tangent in real numbers (deg), and returns a real
number value.
Obtains the arc sine in real numbers, and returns a real number
value.
2-11
Specifications and FunctionsMotionSuite™ MP940 Machine Controller Reference Manual
TypeCommandNameCommand FormatFunction/Meaning
ACSArc CosineACS(MF)
;ACSi_90.0);
ATNArc TangentATN(MW)
;ATNi_45j_;
SQTSquare RootSQT(MW)
;SQT(100);
BINBCD¨_BINBIN (MW);Converts BCD data to BIN data.
BCDBIN¨_BCDBCD (MW);Converts BIN data to BCD data.
==CoincidenceIF MW == MW;
WHILE MW == MW ;
<>Non-coincidenceIF MW <> MW;
WHILE MW <> MW;
>Larger thanIF MW > MW;
WHILE MW > MW;
<Smaller thanIF MW < MW;
WHILE MW < MW;
Sequence Commands
>=Equal to or greater
than
<=Equal to or less thanIF MW <= MW;
SFRRight ShiftSFR MB N W;Shifts the word variables to the
SFLLeft ShiftSFL MB N W;Shifts the word variables to the
BLKBlock TransferBLK MW MW W;Treats a designated bit (word)
IF MW >= MW;
WHILE MW >= MW;
WHILE MW <= MW;
Obtains the arc cosine in real
numbers, and returns a real
number value.
Obtains the arc tangent in integers/real numbers, and returns
a real number value (deg).
Obtains the square root in integers/real numbers (deg), and
returns a real number value.
Used in the IF or WHILE condition formula.The formula is
assumed to be “Valid” if the left
and right sides coincide.
Used in the IF or WHILE condition formula.The formula is
assumed to be “Valid” if the left
and right sides do not coincide.
Used in the IF or WHILE condition formula.The formula is
assumed to be “Valid” if the left
side is larger than the right side.
Used in the IF or WHILE condition formula.The formula is
assumed to be “Valid” if the left
side is smaller than the right
side.
Used in the IF or WHILE condition formula.The formula is
assumed to be “Valid” if the left
side equal to or greater than the
right side.
Used in the IF or WHILE condition formula.The formula is
assumed to be “Valid” if the left
side equal to or less than the
right side.
right by an exponent.
left by an exponent.
variable as opened, and executes transfer by block (parameter designation) unit.
2-12
MotionSuite™ MP940 Machine Controller Reference ManualSpecifications and Functions
TypeCommandNameCommand FormatFunction/Meaning
CLRClearCLR MB W;The parameter designator num-
ber goes OFF (0) for a variable
group in which the designated
bit (word) variables are
assumed to be started.
MSEESub-program Call-out MSEE MPS ;Executes MPS sub-program.
TIMTimed WaitTIM T;Waits for the time designated in
“T”, and proceeds to the next
block.
IOWI/O Variable WaitIOW MB == ∗∗∗;Stops motion control program
execution until the conditional
formula is satisfied.
ENDProgram CloseEND;Closes the motion program.
RETSub-program CloseRET;Closes the sub-program.
EOX1 scan WAIT com-
mand
EOX;This command is for cutting into
a continuing sequence com-
mand during operation, and
forcing a single scan wait.
(Process 1) is performed if the
conditional formula is satisfied,
and (process 2) if it is not.
Control Commands
IF
ELSE
IEND
Branching Commands
IF (conditional formula);
(process 1)
ELSE;
(process 2)
IEND;
WHILE
WEND
SFORK
JOINTO
SJOINT
Repetition Commands
Selection Execution
Commands
WHILE (conditional
formula);
•••
WEND;
SFORK conditional formula 1? label 1,
conditional formula 2?
label 2, •••;
label 1: Process 1
JOINTO label
xlabel 2: Process 2
JOINTO label
xlabel •
•label x: SJOINT;
Repeats execution of
WHILE~WEND processing the
conditional formula is satisfied
and continues operating.
(Process 1) is performed if the
conditional formula 1 is satis-
fied, and (process 2) if condi-
tional formula 2 is satisfied.
The “—” symbol in MOV [axis1]— •••; signifies where the numerical data for [axis1] is recorded.
2-13
Specifications and FunctionsMotionSuite™ MP940 Machine Controller Reference Manual
Ladder Command List
Command Language TypesSymbol
Program Control CommandSEE, FOR FEND, WHILE ON/OFF WEND
QTBLCL
System FunctionsCOUNTER, FINFOUT, TRACE, DTRC-RD, MSG-SND, MSG-
RCV
2-14
MotionSuite™ MP940 Machine Controller Reference ManualSpecifications and Functions
Ladder Command List
TypeNameSymbolContent
Program Control Commands
Direct I/O
Commands
Sub-program
Reference
SEEAfter “SEE”, designate the sub-program, or sub-sub-program
number to be referenced.
SEE H01
Motion Drawing
Reference
MSEEAfter “MSEE”, designate the motion program number or status
work address to be referenced.
MSEE MPM001 DA00000
FOR expressionFOR
:
:
FEND
Repeat Execution Expression 1
FOR V = a to b by c
V : Either integer register I or J may be designated as desired.
a, b, c :Any desired integer value can be designated (b>a>0,
c>0)
FEND:END of FOR command
WHILE
expression
WHILE
:
Repeat Execution Expression 2
WEND:END of WHILE-ON/OFF command
ON/OFF
:
WEND
IF expressionIFON/
IFOFF
Execution expression with conditions
IEND:END of IFON/IFOFF command
:
ELSE
:
IEND
Drawing ENDDENDEND of drawing (DWG)
Comments
“nnnnnnn” Characters surrounded by quotation marks (“ “) are treated as
Saves input data from a designated input register to the function
input register.
FOUTFunction Output Command
Saves output data from a designated output register to the func-
tion output register.
XCALLExtended Program Reference Command
Input Commands INS INS MA00100 ————————|
Executes data input and storage by interrupt prohibit.
Output Commands
OUTS
OUTS MA00100 ————————|
Executes data setting and output by interrupt prohibit.
2-15
Specifications and FunctionsMotionSuite™ MP940 Machine Controller Reference Manual
TypeNameSymbolContent
A ContactNo limit on series circuits
All register bit types can be designated as relay numbers.
B ContactNo limit on series circuits
All register bit types can be designated as relay numbers.
Rising Edge
Pulse
Falling Edge
Pulse
No limit on series circuits
All register bit types can be designated as relay numbers.
No limit on series circuits
All register bit types can be designated as relay numbers.
Relay Circuit Commands
ON Delay Timer
(10ms)
Setting count register
Setting = all registers, parameters (setting unit: 10ms)
Count register = registers M,D
OFF Delay Timer
(10ms)
ON Delay Timer
(1s)
OFF Delay Timer
(1s)
Coil
Setting Coil
Relay Circuit Commands
Reset Coil
Setting count register
Ts
Ts
Setting = all registers, parameters (setting unit: 1s)
Count register = registers M,D
MB000000
MW0200 = 0001
MB000000
IFON
MB000010MB000000
MB000010 is ON when MB000000 is ON. Subsequently, ON is
obtained even if MB000000 goes OFF.
MB000010MB000020
Branching/
Joining
MB000020 is ON when MB000010 is OFF. Subsequently, OFF
is obtained even if MB000020 goes OFF.
All of the above relay commands can be connected to branching/
joining symbols.
2-16
MotionSuite™ MP940 Machine Controller Reference ManualSpecifications and Functions
TypeNameSymbolContent
Logical AND∧All registers and parameters can be designated in integer form.
Logical OR∨All registers and parameters can be designated in integer form.
Exclusive
All registers and parameters can be designated in integer form.
Logical OR
Addition+
Normal numerical addition (with operation error generation)