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
Page 6
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
Page 7
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
Page 8
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
Page 9
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
Page 10
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
Page 11
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
Page 21
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
Page 22
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
Page 23
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
Page 24
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
Page 25
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
Page 26
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
Page 27
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)
Only SGMAH and SGMPH servo motors of 0.2kW or less can be used with
100V.
Servo Motor and Amplifier Combination
Combinations of servo motors and amplifiers, as well as MCCB and phase
capacity with regard to power source capacity are shown below.
Servo
Capacity
(kW)
0.03A3ADSGMAH–
0.05A5ADSGMAH–
0.1001ADSGMAH–
0.2002ADSGMAH–
0.4004ADSGMAH–
Amplifier
Mode 1
SGDH-
Applicable
Motor
Model
A3A
A5A
01A
SGMPH–
01A
02A
SGMPH–
02A
04A
SGMPH–
04A
Capacity (kW)
Power
Capacity
per Servo
Amplifier
(kVA)*
0.204LF-205ASingle-phase
0.25
0.40
0.75
1.28LF-210ASingle-phase
Maximum applicable
motor capacity
Current
Capacity of
Wiring
Breaker or
Fuse
)*†
(A
rms
Recommended Noise
ModelSpecification
Capacity (kW)
Filter†
current
200V
-class 5A
current
200V class
10A
Open/Close
Type
HI–15E5
(30A)
Compatible
device
2-25
Page 36
Specifications and FunctionsMotionSuite™ MP940 Machine Controller Reference Manual
Main
Power
200V
Threephase
Servo
Capacity
(kW)
0.5005ADSGMGH–
0.7508ADSGMAH–
1.010ADSGMGH–
1.515ADSGMPH–
2.020ADSGMGH–
3.030ADSGMGH–
5.050ADASGMDH–
Amplifier
Mode 1
SGDH-
Applicable
Motor
Model
05A _A
SGMGH–
03A _B
08A
SGMPH–
08A
SGMGH–
06A _B
09A _A
SGMGH–
09A _B
SGMSH–
10A
15A
SGMGH–
13A _A
SGMGH–
12A _B
SGMSH–
15A
20A _A
SGMGH–
20A _B
SGMSH–
20A
30A _A
SGMGH–
30A _B
SGMSH–
30A
32A
SGMDH–
40A
SGMSH–
40A
SGMGH–
44A _A
Power
Capacity
per Servo
Amplifier
(kVA)*
1.44LF-310Three-phase
1.97LF-315Three-phase
2.3
3.210
4.313LF-320Three-phase
5.917LF-330Three-phase
7.528LF-340Three-phase
Current
Capacity of
Wiring
Breaker or
Fuse
)*†
(A
rms
Recommended Noise
Filter†
ModelSpecification
current
200V-class
10A
current
200V-class
15A
current
200V-class
20A
current
200V-class
30A
current
200V-class
40A
Open/Close
Type
HI–15E5
(30A)
Compatible
device
HI–18E
(35A)
Compatible
device
2-26
Page 37
MotionSuite™ MP940 Machine Controller Reference ManualSpecifications and Functions
Main
Power
200V
Three-
phase
100V
Singlephase
Servo
Capacity
(kW)
5.050ADASGMDH–
6.060ADASGMGH–
7.575ADASGMGH–
0.03A3BDSGMAH–
0.05A5BDSGMAH–
0.1001BDSGMAH–
0.2002BDSGMAH–
Amplifier
Mode 1
SGDH-
Applicable
Motor
Model
44A _B
SGMSH–
50A
55A _A
SGMGH–
60A _B
75A _A
SGMSH–
15A
A3B
A5B
01B
SGMPH–
01B
02B
SGMPH–
02B
Power
Capacity
per Servo
Amplifier
(kVA)*
7.528LF-340Three-phase
12.532LF-35050A
15.541LF-36060A
0.154LF-205FSingle-phase
0.25
0.40
0.606LF-210Single-phase
Current
Capacity of
Wiring
Breaker or
Fuse
)*†
(A
rms
Recommended Noise
Filter†
ModelSpecification
current
200V-class
40A
current
200V-class
5A
current
200V-class
10A
Open/Close
Type
HI–18E
(35A)
Compatible
device
HI–25E
(50A)
Compatible
device
Hi-30E
HI–15E5
(30A)
Compatible
device
All values are given at rated load.When selecting the actual fuse, determine the capacity after performing the
proper derating.
Breaker Characteristics (25ºC):200“_ 2s or more, 700“_ 0.01s or more
High-speed fuses cannot be used.Because the servo amplifiers power supplies are of a capacitor input-type,
high-speed fuses may fuse upon power input.
SGDH servo amplifiers are equipped with a ground fault protection circuit.To create a safer system, connect a
ground fault protection-dedicated leak current breaker in combination with a combined overload/short
protection leak current breaker or a wiring breaker.
2-27
Page 38
Specifications and FunctionsMotionSuite™ MP940 Machine Controller Reference Manual
Servo Motors
Example of External Appearence and Nameplate
kW requirement
定格出力
Model type
モータ形式
∑-Ⅱシリーズサーボモータ
Serial Number
製造番号
rpm rating
定格回転速度
製造年月
Interpretation of Model
Standard Servo Motors
SGMPH - 01 A A A 2 S
Sigma-II
Series Servo
Motor Name
SGMAH
SGMPH
SGMGH
SGMSH
SGMDH
Servo Motor Capacity
(See table 1.1)
Voltage
A : 200V
B : 100V
∗
* 100V is for SGMAH and SGMPH
servo motors or 0.2kW or less.
Serial Encoder Specification
Brake, Oil Seal Specifications
1: No brake or oil seal
S: With oil seal
B: With DC90V brake
C: With DC24V brake
D: S + B
E: S + C
Shaft Specifications
(See Table 1.3)
Design Hierarchy
A : SGMAH
SGMPH
SGMGH(1500 r/min)
SGMSH
SGMDH
B: SGMGH(1000 r/min)
2-28
Page 39
MotionSuite™ MP940 Machine Controller Reference ManualSpecifications and Functions
The number of bits displaying the resolution of the applied encoder is not the
same as the number of pulses of the encoder signal output (phases A, B)
from the servo amplifier. In the MP940, the number of encoder pulses is
quadrated (×4).
2-31
Page 42
Specifications and FunctionsMotionSuite™ MP940 Machine Controller Reference Manual
An explanation of the basic system operation of the MP940 is given in this chapter.
Operation Mode
This section describes both of the MP940 operation modes: the run mode and the stop
mode.
Operation Mode Run Mode
• RDY, RUN LEDs ON
• User program, I/O operation functions
Stop Mode
• RUN LED OFF
• User programs stopped
Figure 3.1: MP940 Operation Mode Classifications
Run Mode
When power is fed into the MP940, the READY (RDY) and RUN (RUN)
LEDs light up (the ALARM (ALM) LED is off), and the unit is in the run
mode. This means that there are no errors or failures in the MP940, and that
user programs and I/O operations can be executed. The run mode also
continues when an I/O conversion error, user operation error, or when a user
program is stopped; however, the ALARM (ALM) LED lights. See Chapter
10 "Troubleshooting" for error contents and countermeasures.
Stop Mode
During the stop mode, user program execution is halted, and all outputs are
reset (the digital output = 0).This state is displayed by the RUN LED being
OFF. Drawing programs (DWG.H or DWG.L) are not executed in this state.
The stop mode results in the following four situations:
1. When the program memory is not initialized.
2. When a major fault such as watchdog time-out occurs.
3. When a STOP operation is executed from the MotionWorks
TM
.
4. When power is fed with the RUN/STOP switch set to OFF (STOP).
Note:1 ~ 2 are user program errors or MP940 errors or fail-
ures. (See Chapter 10 Troubleshooting for error contents and countermeasures.)
In 3, the run mode can be entered by executing the
RUN operation.
In 4, the run mode can be entered by turning the RUN/
STOP switch to ON (RUN).
Start, Stop Sequence
This section describes the starting and stopping sequences of the MP940, the attendant
dip switch setting method, as well as the types of self-diagnosis and display light
(LED) patterns.
The DIP switches on the CPU are used for start/stop sequence operation
control. The CPU module has six switches as shown in the figure below. The
function of each switch is shown in the following table.
654321
RUN
INIT
TEST
Default
Setting
OFF
NO
ONOFF
FLASH
P.P
COPY
NumberNameSettingOperation at Setting
6RUNONUser Program RunON
OFFUser Program Stop
5INITIALONWhen SW4 is ON: Clear MemoryOFF
OFFWhen SW4 is ON: Terminal mode
4TESTONTerminal Mode/Initialization ModeOFF
OFFOnline
3FLASHONProgram copy from FLASH to RAMOFF
OFFNo program copy from FLASH to RAM
2P.P
Default
ONDefault Port 1 onlyOFF
OFFSerial port setting
1COPYONM Register Copy when SW3 is ON
Turn the power ON when only SW1 is ON.
SGDH servo parameter in the controller is
transferred to SGDH .
→ to replace
SGDH.
OFFNo M Register Copy when SW3 is ON.
M Register has a battery backup.
Although “NO” is displayed on the arrow at the lower right side of the DIP
switches, flipping the switches to the right turns them ON, and left turns them
OFF.
The memory as initialized, and the user programs and configuration data are
deleted upon setting the DIP switches in the following order, and cycling the
power OFF/ON.
12 3 4 5
Turn MP940
power OFF
Turn DIP
switches INITIAL
and TEST ON.
RUN
56
INITIAL
TEST
FLASH
P.P
1234
COPY
←←←←
NO
Check that the
RDY and RUN
LEDs blink when
power is fed
(approximately
3 seconds).
Return the RUN
DIP switch to the
ON setting
RUN
56
INITIAL
TEST
FLASH
P.P
1234
COPY
←←←←
NO
Turn the power
ON again
Note: The memory is cleared if the battery is removed with the module
power OFF.
Start Sequence
The MP940 makes various determinations at start-up, and upon recognizing
an error, flashes the ERR LED, showing the content of the error by the
number of flashes. MotionWorksTM cannot be operated while the LEDs are
flashing. The following table shows a partial list of the MP940 display LEDs.
The starting sequence and basic operation of the MP940 are as follows:
1. Self-diagnosis at start-up
The following menu is displayed in self-diagnosis at start-up.
• Memory (RAM) Read/Write Determination
• System Program (ROM ) Diagnosis
• Main Processor (CPU) Function Diagnosis
• Numerical Operation Processor (FCPU) Function Diagnosis
The RDY LED flashes the designated number of times when there is an
error in the diagnostic results.
2. Online Self-diagnosis
The following menu is displayed in online self-diagnosis
• System Program (ROM ) Diagnosis
• Main Processor (CPU) Function Diagnosis
• Numerical Operation Processor (FCPU) Function Diagnosis
The RDY LED flashes the designated number of times when there is an
error in the diagnostic results.
3. Start New Run
Sets the run format to New Run in the CP717 system definition screen.
A new run starts. Unlike the start of a continuous run, self-diagnostic
processing occurs prior to DWG.A execution.
4. Operation Stop
The MP940 stops operation in the following situations:
• When power is interrupted
• When power loss occurs
• When a fatal error is generated
• When a STOP operation is executed from MotionWorksTM.
Note:Restart is not possible in the first and second items
above without restarting the power.
Restart is possible in the third item above by turning
off the power.The cause of the error can be deduced by
checking the LED display.
Restart is possible in the fourth item above by executing the RUN operation in CP717.
There are three types of MP940 scan processing: S (system) scans, H (Highspeed) scans, and L (Low-speed) scans. Scan processing segments all S scan
periods into descrete time elements and then executes the S scan as a base
period.
When setting the proportion of assignments into the background within the S
scan period, ensure the "Background Processing Time" for PP processing.
Scan Types
TypeContent
S Scan
(System Scan)
H Scan
(High-speed Scan)
L Scan
(Low-speed Scan)
Select a base period for scan processing: 0.5, 1.0, 2.0, 4.0ms.
S, H and L scan processing segments all S scan periods into discrete time
elements and then executes the S scan as a base period.
Set the S scan period in integer multiples.
The scan is broken into discrete time elements and executed within the S
scan period.
Set the S scan period in integer multiples.
The scan is broken into discrete time elements and executed within the S
scan period.
The MP940 has three scan time levels (System/High-speed/Low-speed),
which determine the flow of the program execution format. Among these,
the system scan time must be set first. The high-speed/low-speed scans are
then set based upon the system scan.
The following relationship exists in the setting criteria for the various scan
times. For details, see the MotionSuite™ MP940 Machine Controller
Hardware Manual.
Scan Time LevelSetting Criteria
System ScanSelect from 0.5, 1, 2, and 4ms.
High-speed scan0.5 ~ 32ms (system scan integer multiple)
Low-speed Scan2.0 ~ 100ms (system scan integer multiple)
Opening the Setup Window
Select Setup (S), > Base Control Synchronization (B).
Setting ItemContent
Set TimeSets the system scan time. The value of the previous step is the current
setting value.
Maximum TimeSets the maximum system scan time. The previous value is the
maximum time measured by the system to this point.
Current TimeDisplays the current value of the system scan time.
StepsDisplays the number of steps of the system scan time.
Background TimeShows the percentage of the total system which is consumed by the
background.
Watch Dog SetSets the watchdog time which provides system scan time limits.
Restart the power if the base control synchronization has been changed.
The base control synchronization continues to be applied at its current value
and does not return to defaults even if the memory is cleared. Restart power
to return to defaults.
The machine controller high-speed scan time is displayed in the online mode.
The scan time data stored on the hard drive is displayed in the offline mode.
Setting ItemContent
High-speed scan settingSetting: Input the scan setting
Max: Displays the maximum value of the scan. Input “0” here to reset the
maximum scan time value. “0” is displayed in the offline mode.
Current Value: Displays the current value of the scan. “0” is displayed in the
offline mode.
The total number of steps in the scan processing drawing is displayed in
the Number of Steps box.
Low-speed scan settingSets the low-speed scan time. See the content of the high-speed scan time
box for the meaning of the various data.
Startup DWG stepsDisplays the total number of steps in the start scan drawing.
Interrupt DWG stepsDisplays the total number of steps in the interrupt scan drawing.
User function stepsDisplays the total number of user function steps.
Total stepsDisplays the total number of steps for all drawings.
Program memory total
(bytes)
Available (bytes)Displays the amount of free space in the program memory. “0” is displayed
Displays the amount of the total program memory (total of drawings, func-
tions, and motion programs) used. “0” is displayed in the offline mode.
In the online mode, the maximum value may be cleared to "0" by inputting
"0" to the maximum scan time box, and executing the save operation.
Adoption of a new maximum value begins after being cleared.
Saving Scan Time Definitions
The procedure for saving the scan time definitions is shown below.
1. Select File (F) > Save (S).
2. Click the Yes ( Y ) button in the Scan Time message box.
3. Click OK in the message box.
Completion of Scan Time Definition
Complete scan time setting by closing the scan time window. Close the
window by selecting File (F) > Close (C) from the menu.
User Programs
This section describes user program types, priority, processing formats, etc. for basic
operation of the MP940.
DWG (drawing)
User programs are controlled in drawing units classified by drawing number
(DWG number). These drawings form the basis of the user program.
Drawings consist of source drawings, sub-drawings, and sub-sub-drawings.
Drawings can be either functions which seperately and freely reference
individual drawings, or motion programs which reference an H drawing only.
• Source Drawing
This is automatically executed by the system program at establishment of the
execution conditions in the following table.
• Sub-drawing
These are executed by reference from a source drawing using the SEE command.
3-15
Page 58
User ProgramsMotionSuite™ MP940 Machine Controller Reference Manual
• Sub-sub-drawing
These are executed by reference from a sub-drawing using the SEE command.
• Operation Error Processing Drawing
These are automatically executed by the system program at operation error
generation.
• Functions
These are executed by referencing a source drawing, sub-drawing, or subsub-drawing using an FSTART command.
• Motion Programs
These can only reference H drawings. They are executed by referencing a
source drawing, sub-drawing, or sub-sub-drawing using an MSEE command.
Types and Priority of Source Drawings
Source drawings are classified by their first letters (A, I, S, H, L) in
accordance with their processing objective. Priority and execution
conditions are determined as follows.
Types and Priority of Source Drawings
Type of
Source
Drawing
DWG.AStart Processing1Power Feed (executed once at
DWG.IInterrupt Processing2Generated by DI interrupt and
DWG.SSystem Scan3Set Interval Start (executed at each
DWG.HHigh-speed Scan
DWG.LLow-speed Scan
Drawing RolePriorityExecution Conditions
power ON)
counter coincidence interrupt for
option modules executed by
external interrupt
servo control scan time)
4Divides the servo control scan (S
Processing
Processing
scan) period into discrete time elements to execute the scan.
5Divides the servo control scan (S
scan) period into discrete time elements to execute the scan.
Each drawing is displayed as shown below based on its priority.
Power ON
電源投入
電源投入
Power ON
DWG,A
DWG,A
Start processing
Start processing
始動処理図面
始動処理図面
drawing
drawing
S-scan synchronization
S
スキャン周期
S
スキャン周期
DWG,S
DWG,S
Sスキャン処理
Sスキャン処理
S-scan processing
S-scan processing
S-scan processing
DWG,H
DWG,H
Hスキャン処理
Hスキャン処理
H-scan processing
DWG,L
DWG,L
Lスキャン処理
Lスキャン処理
L-scan processing
演算エラー
演算エラー
Operation error
DWG,X00
DWG,X00
Operation error
演算エラー処理図面
演算エラー処理図面
processing drawing
X,A,I,S,H,L
X,A,I,S,H,L
もとの続き
もとの続き
Continuation
Executed in
タイムスライス
タイムスライス
discrete time
で実行
で実行
units
割り込み信号
割り込み信号
Interrupt signal
DWG,I
DWG,I
Interrupt processing
割り込み処理図面
割り込み処理図面
drawing
もとの続き
もとの続き
Continuation
3-17
Page 60
User ProgramsMotionSuite™ MP940 Machine Controller Reference Manual
Layer Structure of Drawings
Each drawing comprises source, sub-, and sub-sub-drawings. It is not
possible to reference sub-drawings of a different type from the source
drawing, nor is it possible to reference sub-sub-drawings of a different type
from the sub-drawing. It is also impossible to reference sub-sub-drawings
directly from source drawings. A structure wherein sub-drawings are
referenced from source drawings, and sub-sub-drawings from sub-drawings
is neccessary. This is called the layer structure of the drawing.
Drawing Execution
Create user programs as shown below by layering processing programs into
source drawings, sub-drawings, and sub-sub-drawings.
親図面子図面孫図面
Source drawing Sub-drawing
DWG.XDWG.X01.01
Note: “x” substitutes for A, I, H, and L.
(注) Xは,A,I,H,Lに置き換えてください。
DWG.X01
DWG.Xnn
Sub-subdrawing
DWG.X01.02
DWG.X01.03
Note:The system automatically executes the source drawing
since the execution conditions for each function have
been decided according to Table XXX. This means
that source drawings are automatically called by the
system.It is therefore possible for the customer to execute various sub-drawings and sub-sub-drawings by
programming drawing reference commands (SEE
commands) in the source and sub-drawings.
・
・
モーションプログラム
Motion ProgramUser Functions
MPM001
・
・
・
ユーザ関数
FUNC-001
・
・
MPM002
・
・
・
MPM015
FUNC-006
・
・
FUNC-032
・
・
FUNC-064
Functions can be referenced from any drawing.Functions can also be referenced from any function.
An operation error drawing starts, corresponding to a
given drawing when an operation error occurs within
that drawing.
Reference motion programs from the H drawing with
an MSEE command. Source drawings, sub-drawings,
or sub-sub-drawings can be referenced in an H drawing.
Source drawings are automatically called by the system. Sub-drawings are referenced from a source drawing using the SEE command. Therefore, user programs
cannot be executed using only sub-drawings and subsub-drawings.
Drawing Execution Processing Format
The execution processing of each layered drawing is processed in a format
which references from the upper-level drawings to the lower-level
drawings.The DWG (drawing) layer structure is shown in the following
diagram using DWG.A as an example.
System Program
システムプログラムが
start and execution conditions
実行条件で起動
親図面子図面孫図面
Source DrawingSub-drawingSub-sub-drawing
DEND
DWG.A
SEE A01
SEE A02
DWG
DWG.A01
SEE A01.01
SEE A01.02
DEND
DWG.A02
演算エラー
Operation
error
note:
記述:
DWG.X YY . ZZ
発生
システムが
system starts
自動的に起動
automatically
DWG.A01.01
FUNC-001
DEND
DWG.A01.02
FUNC-001
DEND
DWG.A00
DENDDEND
孫図面番号
Sub-sub-drawing number (01 ~ 99)
子図面番号
Sub-drawing number (01 ~ 99)
親図面の種類
Source drawing tType A, I, S, H, L
~
99)
(01
~
99)
(01
(A, I,S, H, L)
Function
FUNC-001
DEND
関数
:DWG. X 00
3-19
Operation error drawing
演算エラー図面
(A, I, S,H, L)
Page 62
User ProgramsMotionSuite™ MP940 Machine Controller Reference Manual
Motion Programs
Outline of Motion Programs
1. A motion program is a program written in a text format motion language. Unlike ladder programs, up to 256 motion programs can be created.
2. There are two types of motion programs: main programs that can be
called from DWG.H (MPMooo), and sub-programs that can be called
from the main program (MPSooo).
Classification
Designation
Method
Main Program MPMooo
1 ~ 32
Sub-program MPSooo
1 ~ 32
Ensure that the program numbers for MPMooo and MPSooo are different.
3. There are two methods of motion program designation, direct designation (in which the program number is designated), and indirect designation (in which a register number containing the program number is
stored is designated). Examples of direct designation and indirect designation (respectively) appear below.
Reference motion programs from the H drawing with an MSEE command.
Source drawings, sub-drawings, or sub-sub-drawings can be referenced in an
H drawing.
Start of system program
システムプログラムが
with operating conditions
実行条件で起動
Source drawingSub-drawingSub-sub-drawingMotion Program
User ProgramsMotionSuite™ MP940 Machine Controller Reference Manual
1. The ladder commands of the H drawing are executed at each highspeed scan period in the order of source drawing/sub-drawing/sub-subdrawing.
2. Although motion programs are referenced in the scan period, they cannot be referenced in a single scan. Motion programs execute an execution control dedicated to motion programs through the motion control
functions of the system.
3. Although motion programs are referenced in the scan period, they cannot be executed simply by reference. A control signal set in the group
definition screen must be set.
Ensure the following restrictions are observed in referencing motion
programs.
1. Multiple reference of motion programs with the same number is not
possible with the MSEE command.
2. Subroutines (MPSxxx) cannot be referenced from ladder MSEE commands. These can only be referenced from within the motion program
(MPMxxx, MPSxxx).
3. The same subroutine cannot be simultaneously referenced.
Motion Program Execution
Input program control signals (program run start requests, program stop
requests, etc.) in order to execute the motion programs called from DWG.H
by the MSEE command. Operation is possible by inputting the external
control signal defined in the group definition screen into the program control
signal.
1. The following signal types are for motion program control.
2. Control of motion program run/stop/hold, etc., is possible by inputting
these signals in a ladder program into a work register +1 designated by
the MSEE command. Convert the ladder program input to a signal in
accordance with the signal types in step 1, above.
The program restarts after program close if the start signal is input to
the A contact.The program does not operate with the start signal on an
ON state at power ON.
3. The motion program execution processing method is shown below.
Motion Control Functions
External Control Signal
Run Status
Hold
Stop etc.
DWG.H
Motion
Program
Control Ladder
MSEE MPM001
DA00000
Motion
Program
Number
DEND
Program RUN Status
Program HOLD
Program STOP etc.
Program
Control
Signal
MSEE
Work
Register
Address
MSEE Work Register
Status
Control Signal
MPM001
VEL [a1]5000
FMX T10000000;
IAC T25;
IDC T30;
MOV [a1]300.
MVS [a1]200.
.
.
.
.
END
Ladder ProgramMotion Program
3-23
Page 66
User ProgramsMotionSuite™ MP940 Machine Controller Reference Manual
Motion Program Status Flags
The first word of the MSEE work register is a motion program status flag
which tells the user the execution status of the motion program. The detailed
contents of the status flag are shown below.
bitStatus
b0:Program Running
b1:Program Hold
b2:(used by system)
b3:(used by system)
b4:Program Debug Running
b8:Program Alarm Generated
bB:In Debug Mode (EWS debug run)
bE:Main Program Duplication Error
bF:Excessive Main Program Number Error
Example of Motion Program Control Ladder
1. The minimum necessary ladder program to control a motion program is
shown below.
2. The content of the above ladder program is as follows:
Step
Number
1 ~ 7Stores the signal connected to the external input signal of the MP940 into the
motion program control signal.
IW0000 (External Input Signal) ¨_ DW00001 (27th word of MSEE work register)
Program Run Start
Program Hold
Program Stop
Alarm Reset
9Call-out of motion program MPM001
MSEE MPM001 DA00000
(1) (2)
(1) Motion Program Number
(2) MSEE Work Register Address
11 ~ 15Reset the run mode setting alarm reset (B6 of OWxx00) for each axis setting
parameter and clear the alarms on each axis by the alarm reset signal (IB00005).
Program Content
3. Motion program run/hold/stop, etc., operation by the system motion
control function is possible when the external I/O signals (IB00000 ~
IB00007) connected in the MP940 by the above ladder program are
input as motion program control signals (word 27 of the MSEE work
register).
The following table provides an example of the external input signals
required to create the minimum neccessary in order to operate a motion
program in the MP940.
External
Signal
Address
IB00000:Program Run StartB0:Program Run Start Request
IB00001:Program Holdb1:Program Hold Request
IB00002:Program Stopb2:Program Stop Request
IB00003:Program Debug Modeb3:Program Debug Mode Selection
IB00004:Program Debug Startb4:Program Debug Start Request
IB00005:Alarm Resetb5:Alarm Reset Request
External Signal NameBIT
Motion Programs
Control Signal
Motion Control Ladder Autotmatic Generation Function
An automatic generation function for motion control ladders is standard
equipment in the MP940. Using this function, both jog operations and
programmed runs may be performed without having to create a dedicated
ladder program. Additionally, the system boot-up time is greatly reduced.
3-25
Page 68
User ProgramsMotionSuite™ MP940 Machine Controller Reference Manual
Number of motion programs that can
be simultaneously started in the H drawing
Input
signal
by group
Automatic generation of motion
control ladder program
Input
signals
by axis
The motion control ladders are automatically generated according to external
input signals assigned in the group definition screen. They can be used as;
however, use of this ladder as a template is recommended (but only after
optimization/modification to match the system).
This section describes the usage method, characteristics, etc. of the MP940 functions.
Functions are executed by referencing a source drawing, sub-drawing, or sub-subdrawing using an FSTART command. Unlike sub-drawings and sub-sub-drawings,
function references can be freely executed from the various drawings. The same function can also be referenced simultaneously from different drawing types and layers.
Functions created from other functions can also be referenced. The following advantages are derived from using functions.
• Program componentization can be easily achieved.
• Program creation/saving is easy.
There are two types of functions: standard system functions provided with the system, and user functions defined by the user.
Standard System Functions
Nine functions are installed as standard system functions.The user cannot
modify the standard system functions, listed below.
TypeNameSymbolContent
System
Functions
CounterCOUNTER Up/Down Counter
First-in/First-outFINFOUTFirst-in/First-out
Trace FunctionTRACEData Trace Execution Control
Data Trace Read-outDTRC-RDData read from data trace memory into the
user memory.
Message SentMSG-SND Send message from controller.
Message ReceiveMSG-RCV Receive message to controller.
User Functions
The function itself (program) can be freely defined (programed) by the user.
Up to 32 user program definitions can be created. The technique for creating
user programsby using the user function creation procedure is described
below.
Created in the same manner as a drawing. However the
registers used differ. Pay attention to the correspondence of
the I/O data at function reference with the register numbers
used in the function program.
Input in the following order:
(1) Input the function name with the FSTART command
(2) Connect the input data using the FIN command.
(3) Connect the output data using the FOUT command.
1. See the following manual for details on MotionWorksTM operating
methods. MP9xx Programming Unit Software Manual (volumes 1 and
2) (SIZA-C887-2.2-1/2.2-2).
2. See the following manual for details on the FSTART command and
other commands.
MP9xx Programming Manual (SI-C887-1.2C)
Note:After the graphical display format of the function has
been created, define the data types of the function
inputs, outputs, and address inputs.
There are three types of definable data types: bit, integer, and double-length integer.
Upon defining the data types, these are automatically
assigned according to the system where input = X register, output = Y register, address input = A register.
2. An example of the function input definitions is given below:
TEST
Bit-type
Numerical Input
Bit-type
Numerical Input
Real Number
Numerical Input
Integer
Numerical Input
===>
===>
IN_01
BIT1
IN_02
BIT2
IN-03
FLT1
IN-04
INT1INT2
IN_05
ADR
OUT_01
OUT_02
OUT_03
OUT_04
BIT3
BIT4
LNG1
Bit-type
Numerical Output
Bit-type
Numerical Output
Double-length
Integer Numerical
===>
Integer
Numerical Output
===>
3. The I/O signal addresses are automatically assigned from the signals on
the graphical expression. Each of the I/O address assignments in the
example above are as follows:
4. The function input register is automatically assigned for “Graphical
Function Display Format 2”. The general structure of the function is
created at this stage.
Creation of the Function Program
The creation method is the same as for a drawing. However, the register type
used differs. For details on the registers, see the Register Types section.
Creation of the Function Reference Program
The user function is complete upon creation of the graphical function display
format and program. Referencing is possible, just as in standard system
functions, from source drawings, sub-drawings, and sub-sub-drawings, in
addition to other functions. Functions may be called-out within both drawing
and user function programs by the following procedure. For details on the
operation method, see “MP9xx Ladder Programming Manual” (SI-C887-
1.2C).
1. Input the function name with the FSTART command.
For example, input FSTART, press the Enter key, input TEST, and
press the Enter key. Already defined graphical function display formats are then displayed.
2. Use the FIN command to create the input data program. This imparts
the input data to both the function inputs and address inputs.
The address input register AW00000 in the above table is assigned to
MW00300. AW00000, AW00001... used within the function test, cor-
respond to the external registers MW00300, MW00301.... Therefore,
if a value in AW00000 is stored in a function, that value is stored in
MW00300, as shown below.
Internal
Function
AW00000
AW00001
AW00002
AW00003
Pointer
External
Register
MW00300
MW00301
MW00302
MW00303
MA00300
Creation of function reference programs from motion programs
User functions can be called out from motion programs. For example, the
following results when the user function on the previous page is called out
from the motion program.
UFC TEST DB000000 DB000001 DF00001 DW00003,MA00300,
DB000020 DB000021 DL00010 DW00012;
User program conditions referenced in motion programs
The first bit of the I/O data is always in bit form. This output data is assumed
to be the “completion” signal for shifting the following motion commands.
This section describes register types and usage formats used in MP940 user programs.
Register Designation Method
There are two methods for register designation: direct designation of register
numbers, and symbol designation. These methods may be used together in a
user program. When symbol deignation is used, the relationship between
symbols and register numbers is defined in the symbol table given later. The
register designation method is shown below.
Designation MethodDesignation Method
Direct Register
Number Designation
Symbol Designation Bit type Register Designation: RESET1-A.X
Bit type Register Designation: MB00100AX
Integer Type Register Designation: MW00100X
Double-length Integer Type Register Designation: ML00100X
Real Number Type Register Designation: MF00100X
Address Type Register Designation: MA00100X
X: In suffix designation, attach a suffix or a J after the register number.
Integer Type Register Designation: STIME-H.X
Double-length Integer Type Register Designation: POS-REF.X
Real Number Type Register Designation: IN-DEF.X
Address Type Register Designation: PID-DATA
Up to 8 alphanumeric characters
X: In suffix designation, attach a period “.” after the symbol up to 8
alphanumeric characters, then add a suffix or a J.
Register Number Direct Designation
.X
Register#:V T No.(Bit No.) (suffix)
T=B (bit type) when (Hex: 0~F)
Register number communicated by V (DEC/
HEX)
Data type communicated in V (T:B|W|L|F|A)
Register Types
DWG (V:S|M|I|O|C|#|D)
Function (V:S|M|I|O|C|#|D|X|Y|Z|A)
Needed when using a suffix (symbol
name and suffix classification)
Register name up to 8 characters
X X X X X X X X
Data Types
There are five data types used according to purpose: bit, integer, double-byte
integer, real number, and address. Address type data is only used for bottom
designation within a function. For details, see MP9xx Ladder Programming
Manual (SI-C887-1.2C). The data types are shown below.
Data
Type
Numerical RangeNotes
i or j can be designated
as a suffix
English Alphanumerics/Symbols
Roman Letters or symbols (a number cannot
be designated at the head of a symbol name)
BBitON, OFFUsed in relay circuits.
WInteger-32768 ~ +32767
(8000H) (7FFFH)
Used in numerical calculations. Data
in parentheses “( )” indicates use in
logical calculations.
LDouble-
length
integers
FReal
-2147483648 ~ +2147483647
(80000000H) (7FFFFFFFH)
Used in numerical calculations. Data
in parentheses “( )” indicates use in
logical calculations.
±(1.175E -38 ~ 3.402E +38), 0Used in numerical calculations.
numbers
AAddress0 ~ 32767Used only in pointer designations.
The 11 types of registers shown below can be used in each function.
Function Registers
TypeName
XFunction
Input
Register
YFunction
Output
Register
ZInternal
Function
Register
AExternal
Function
Register
## Register#B, #W, #L,
DD Register DB, DW, DL,
Designation
Method
XB, XW, XL,
XFnnnnn
YB, YW, YL,
YFnnnnn
ZB, ZW, ZL,
ZFnnnnn
AB, AW, AL,
AFhhhh
#Fnnnnn
(Annnnn)
DFnnnnn
(DAnnnnn)
RangeContentCharacteristics
XW00000 ~
XW00016
YW00000 ~
YW00016
ZW0000 ~
ZW00063
AW0000 ~
AW32767
#W00000 ~
#W16383
DW00000 ~
DW16383
Input to Function
Bit Input: XB000000 ~ XB00000F
Integer Input: XW00001 ~ XW00016
Double-length Integer Input: XL00001 ~
XL00015
Register number nnnnn is displayed in
decimal format.
Output from function
Bit Output: YB000000 ~ YB00000F
Integer Output: YW00001 ~ YW00016
Double-length Integer Output: YL00001
~ YL00015
Register number nnnnn is displayed in
decimal format.
This is an internal register intrinsic to
each function. These can be used as
internal function processes. Register
number nnnnn is displayed in decimal format.
This external address assumes the value
of the address input to be the base
address.
For linking with (S, M, I, O, #, DAnnnnn).
Register number nnnnn is displayed in
decimal format.
This register can only be referenced in
functions. Only given functions can be
registered. The actual usage range is
designated by the user in
MotionWorks
is displayed in decimal format.
This is an internal register intrinsic to
each function. Only given functions can
be registered. The actual usage range is
designated by the user in
Same as DWG register
Because this register is common to drawings and functions, use this register carefully when referencing identical
functions from drawings of different priority levels.
SA, MA, IA, OA, DA, A, and CA can be used within functions as well.
Usage Method for Suffixes I and J
By function
Two types of dedicated register, I and J, have been provided for modification
of relay numbers and register numbers. The functions of I and J are exactly
the same. Examples of each register data type follow below.
If the suffix is in bit form
The value of I is the same as the value of J when added to a relay number.
For example, when I = 2 MB000000l is the same as MB000002. When J = 27
MB000000J is the same as MB00001B.
2I
MB000000i
Equal
MB0000002
If the suffix is in integer form
The value of I is the same as the value of J when added to a register number.
For example, when I = 3 MW000010l is the same as MW00013. When J = 30
MW00001J is the same as MW00031.
The value of I is the same as the value of J when added to a register number.
For example, when I = 1 ML00000l is the same as ML0000I. Be aware that
ML0000J is as follows when J = 0 and when J = 1.
When J=0 ML00000J: ML00000
When J=1 ML00000J
:
ML00001
Upper-level
Word
MW00001
MW00002
Lower-level
Word
MW00000
MW00001
If the suffix is in real number form
The value of I is the same as the value of J when added to a register number.
For example, when I = 1 MF00000l is the same as MF0000I. Be aware that
MF0000J is as follows when J = 0 and when J = 1.
When J=0 MF00000J: MF00000
When J=1
MF00000J
:
MF00001
Upper-level
Word
MW00001
MW00002
Lower-level
Word
MW00000
MW00001
Example of Program Using Suffixes
Using suffix J, this program requests a total of 100 registers from MW00100
to MW0199 into MW00200.
Individual Data Max.16384
Words (DB,DW,DL,DFnnnnn)
FUNC-000(関数)
FUNC-000 (Function)
Program
Max. 500 Steps
3
Registers, by
function
Function Input Register 17
Words (XB,XW,XL,XFnnnnn)
Function Output Register 17
Words (YB,YW,YL,YFnnnnn)
Function Internal Register 64
Words (ZB,ZW,ZL,ZFnnnnn)
Parameter Data Max.16384
Words (#B,#W,#L,#Fnnnnn)
Individual Data Max.16384
Words (DB,DW,DL,DFnnnnn)
1
4
Function External Register
(AB,AW,AL,AFnnnnn)
①
System Register
(SB,SW,SL,SFnnnnn)
Data Register
(MB,MW,ML,MFnnnnn)
Input Register
(IB,IW,IL,IFnnnnn)
External Register
(OB,OW,OL,OFnnnnn)
Parameter Register
(CB,CW,CL,CFnnnnn)
(1): The common drawing register can be referenced from any drawing or function.
(2): The common drawing register can only be accessed with in the drawing.
(3): The individual function register can only be accessed within the function.
(4): The common drawing register and indivdual drawing register can be accessed from a function by
using the function external register.
•Define the size used in the data structure when a program is created using data structures such as
arrays, index process data, etc.
For example, in PIDDATA_I, the size is 10 if the referenced data varies within a range of 0 ~ 9.
Register
Number
————
SymbolSize*Notes
hexadecimal format.
hexadecimal format.
3-47
Page 90
Symbol ManagementMotionSuite™ MP940 Machine Controller Reference Manual
Symbol Management in Functions
Manage all symbols used in functions according to the function symbol table
shown below. For details, see MP9xx Ladder Programming Manual (SIC887-1.2C).
Number
0
1
2AW000011
3AB00000F1
4YB0000001
5YW000011
6ZB0000004
8ZW000011
9ZW000021
:
:
N
•Define the size used in the data structure when a program is created using data structures such as
arrays, index process data, etc.
For example, in PIDDATA_I, the size is 10 if the referenced data varies within a range of 0~9.
Register
Number
XB0000001
XW000011
———
———
SymbolSize*
Upper-level Symbol Link
The following table is a table for linkable symbols and symbol link objects.
For details on the upper-level symbol link, see the MP9xx Ladder
Programming Manual (SI-C887-1.2C) and the MP9xx Software Manual
(Vol. 1 & 2) (SIZ-C887-2.2-1/2.2-2).
The following table shows where register autonumbering is possible and not
possible.For details on register autonumbering, see the MP9xx Ladder
Programming Manual (SI-C887-1.2C) and the MP9xx Software Manual
(Vol. 1 & 2) (SIZ-C887-2.2-1/2.2-2).
Drawing Symbol TableAutonumbering Function Symbol TableAutonumbering
—
System RegisterS
Input RegisterI
Output RegisterO
Data RegisterM
# Register#
C RegisterC
D RegisterD
——
——
——
——
MotionWorks
O
O
O
O
O
O
O
System RegisterS
Input RegisterI
Output RegisterO
Data RegisterM
# Register#
C RegisterC
D RegisterD
Function Input RegisterX
Function Output RegisterY
Internal Function RegisterZ
External Function RegisterA
—
MotionWorks
O
O
O
O
O
O
O
X
X
O
X
O: Autonumbering Possible X: Autonumbering not possible
3-49
Page 92
MotionSuite™ MP940 Machine Controller Reference ManualOutline of MP940 Functions
Chapter 4: MP940 Functions
An explanation of the various MP940 functions is given in this chapter.
Outline of MP940 Functions
Module Structure
The MP940 is a single-axis controller bus-connected to an SGDH servo
amplifier with function unit modules such as local I/O built into a single box.
The MP940 consists of the following function modules, centering around
servo control. Each of these modules must be initially set-up according to
the module definition described in this chapter.
MP940 Function Module List
The MP940 Function Module List is shown below:
Function
Modules
MP940CPU Unit
SERIALSerial Communication RS-232C, RS-422/485
LIOLocal I/O DI 8-points DO 8-points AO 1CH
SVAMotion Functions
CNTRCounter Function
MLINKMechatrolink I/F Function
Content
4-1
Page 93
Outline of MP940 FunctionsMotionSuite™ MP940 Machine Controller Reference Manual
Block Diagram of MP940 Functions
A block diagram of the MP940 functions is shown in the figure below:
SGDH
Speed Control
Current
M
PG
AI
Control
Counter
A/D
Programming
MP940
SVAMP940
DPR
RS-232C
Motion
CP-717
TM
Works
SERIAL
RS-422/485
CPU
MLINK
or
DeviceNet
Local
I/O
MLINK
Device
1
DI
DO
AO
CNTR
MLINK
Device
1
MP940 Virtual Building Block Structure
The MP940 is an all-in-one machine controller wherein function unit
hardware modules have been miniatureized and placed in a single case.
The parameter setting of each function module realizes an operating
environment identical to a building block type machine controller. For this
reason, definitions are easy when you think of deploying an all-in-one
structure in virtual building blocks. The MP940 is deployed in virtual
building blocks as shown below.
4-2
Page 94
MotionSuite™ MP940 Machine Controller Reference ManualOutline of MP940 Functions
MP940
MP940
TX
BAT
RX
RDY
RUN
ALM
1
BAT
PRT1
M
PRT2
E
C
RUN
654321
H
INIT
A
TEST
T
FLASH
R
2
O
PP
L
COPY
I
NO
→
N
K
PORT1
I/
O
PORT2
POWER
+24V
LED
GND
FG
MP940
仮想ビルディングブロック構造
SERIALLIOSVACNTRMLINK
Main Module Structure Definiton Window
Set slots 00 through 06 in rack 1. Slot 1 however, is reserved for the system.
4-3
Page 95
Serial Transmission FunctionMotionSuite™ MP940 Machine Controller Reference Manual
Serial Transmission Function
Outline of Serial Transmission Function
The MP940 is equipped with a serial transmission interface containing (1)
RS-232C and (1) RS-422/485.1. This arrangement is compatible with
several transmission protocols, starting with Yaskawa's proprietary Memobus
protocol, as well as with various interfaces. The PORT1RS-232 can be used
as an engineering port. MP940 engineering is possible by connection to
MotionWorks™.
MP940works as either a master or slave in a set program according to the
serial transmission setting.
Serial Transmission executes data send/receive by using the MSG-SND and
MSG-RCV functions within the DWG/ function program.
Port 1 RS-232C
Port 2 RS-422/485
Standard System Configuration
MP940
TX
BAT
R
X
RDY
RUN
ALM
1
BAT
PRT1
M
PRT2
E
C
RUN
654321
H
INIT
A
TEST
T
R
FLASH
2
O
PP
L
COPY
I
NO
→
N
K
PORT1
I/O
PORT2
POWER
+24V
LED
GND
FG
Comm.
CPU
Transmission
Processor-1
Transmission
Processor-2
RS-232C
RS-422/
485
PORT1
PORT2
System Configuration
The following is an example of connecting the MotionWorks™
4-4
Page 96
MotionSuite™ MP940 Machine Controller Reference ManualSerial Transmission Function
programming device and the display panel in a serial MP940.
MP940
Motion
TM
CP-717
Works
RS-232C
RS-422
Display
Panel
Notebook PC
Below is an example of connection of the MotionWorks™ programming
device to the RS-232C port and branched connection of peripheral devices
from the RS-485 port.
MP940
RS-232C
RS-485
Motion
TM
CP-717
Works
Notebook PC
External
Device
External
Device
External
Device
External
Device
4-5
Page 97
Serial Transmission FunctionMotionSuite™ MP940 Machine Controller Reference Manual
Communication Specifications
A description of the serial communication function specification follows.
The table below shows the MP940 module transmission specifications.
Serial Transmission FunctionMotionSuite™ MP940 Machine Controller Reference Manual
Connection of Serial Port 1 (RS-232C)
The following is an example of connecting serial port (RS-232C):
MP940
TxD 1
RxD 3
CTS 6
RTS 12
PC
2 RxD
3 TxD
8 CTS
7 RTS
4 DTR
6 DSR
GND 14
5 GND
Shield to case
Serial Port 2
This is the port used in RS-422/485 connection.
An example is given of branch connection of peripheral devices with serial
port 2.
MP940
TX
BAT
R
X
RDY
RUN
ALM
1
BAT
PRT1
M
PRT2
E
C
RUN
654321
H
INIT
A
TEST
T
FLASH
R
2
O
PP
L
COPY
NO
→
I
N
K
PORT1
I/O
PORT2
POWER
+24V
LED
GND
FG
RS-485
External
Device
External
Device
External
Device
External
Device
4-8
Page 100
MotionSuite™ MP940 Machine Controller Reference ManualSerial Transmission Function
Connector pin array and signal name
The table below shows details of programming device connection to serial
port 2.
PORT2
No.
Signal
Name
ReferenceNo.
1TX++ side of transmission
data
2TX-- side of transmission
data
3RX++ side of received
data
4RX-- side of received
data
8TX++ side of transmission
9TX-- side of transmission
10RX++ side of received
11TXRTransmission data
Signal
Name
Reference
data
data
data
terminal resistor
5— —12— —
6RX-- side of received
13VCCPower+5V
data
7RXRReception data termi-
14GNDGround
nal resistance
Insert the terminal resistor to the (+) pole.
Terminal Resistor
RXR (+)
RX (+)
RX (-)
TXR(+
)
TX(+
)
TX(-
)
If inserting the terminal resistor, connect to the RXR(+) and RX(-), as well
as TXR(+) and TX(-) signals.
If not inserting the terminal resistor, connect to the RX(+) and RX(-) as well
as TX(+) signals.
• Module Connector: 10214-52A2JL (3M)
• Cable Connector Unit: 10114-3000VE (3M)
• Shell: 10314-52A0-008 (3M)
4-9
Loading...
+ 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.