MP3300 Basic English
MP3300 Basic English
1
Chapter 1 Outline of the product
2
(1)Product type
3
(2)System configuration
Machine controller MP series is a controller is operated by scanning operation, as same as PLC.
There is an input-output module of "Motion module", "IO module", and "Communication
module" around "CPU module", and the module is selected according to customer's
specifications.
"CPU module" controls both IO control and motion control unlike general PLC.
Motion
Program
IO module Machine
(MPM)
Input-output register
(OW,IW)
4
(3)Modular framework example
Select base unit.
<MP3300> ・MBU-301 (AC100/200V, 8 slots)
Select CPU module ・MBU-302 (DC24V, 8 slots)
・CPU-301 ・MBU-303 (DC24V, 3 slots)
・CPU-302 ・MBU-304 (DC24V, one slot)
Optional slot
(Besides CPU, 8/3/1 slots available. )
・Motion module
・Communication module
・IO module
CPU module An optional module is common to all models.
CPU, SVC and
MP2300S
218IFD is built- Rack extension(maximum: four rack)
in. ・EXIOF
MP2200 base unit
・MBU-01
・MBU-02 ・Maximum 21 slaves can connect it once
・MBU-03 in the line.
Servos are maximum 16 axes.
MECHATROLINK-Ⅲ The IO module can be connected.
・The minimum communication cycle is
decided depending on the number of
Servo slaves.
Σ7
MECHATROLINK-Ⅲ Module
5
(4)Module list
< MP3300 exclusive use module > < optional module: MP2000/MP3000 commonness >
Abbreviation Max num Outline of specification Abbreviation Max num Outline of specification
CPU-301 1 CPU SVA-01 Analog servo IF:2 axis
MBU-304 1 Base unit, DC24V, and one slot SVB-01 Ⅰ/MECHATROLINK - Ⅱ: Line once
SVC-01 Total MECHATROLINK - Ⅲ: Line once
MBU-303 Base unit, DC24V, and three slots 16
MPU-01 MECHATROLINK ..sub-CPU.. - Ⅲ: Line once
EXIOIF 4 Enhancing rack IF
PO-01 Train of impulses: Four axes
217IF-01 General-purpose serial communications, RS-232C:1 port,
< MECHATROLINK-Ⅲ module > and RS-422/485:1 port
Abbreviation Max num Outline of specification 218IF-01 Ethernet(10BASE-T I/F): One port and RS-232C:1 port
MTD2310 DI:64 point DO:64 point (sink) 218IF-02 Ethernet(100BASE-T I/F): One port and RS-232C:1 port
MTA2900 Analog input: 8ch(+/-10V,0-20mA) 215AIF-01 MPLINK/CP-215:1 port and RS-232C:1 port
21
MTA2910 Analog output: 4ch(+/-10V) 260IF-01 DeviceNet communication: Line and RS-232C:1 port once
(Including
servo) Pulse input: 2ch 261IF-01 Total RS-232C:1 port communicated Profibus (DP slave)
MTP2900
262IF-01 8 FL-net communication
MTP2910 Pulse output:4ch, DI:5 point,DO:4 point 263IF-01 Ethernet/IP
264IF-01 EtherCat (slave)
< MECHATROLINK-Ⅱ module >
Abbreviation Max num Outline of specification 265IF-01 CompoNet (master)
266IF-01 PROFINET (master)
IO2310 DI:64 point DO:64 point (sink)
266IF-02 PROFINET (slave)
IO2330 DI:64 point DO:64 point (source) LIO-01 DI:16 point DO:16 point (sink) PI:1ch
IO2900 DI:16 point LIO-02 DI:16 point DO:16 point (source) PI:1ch
IO2910 DO:16 point (sink) LIO-04 DI:32 point and DO:32 point (sink)
21
(Including LIO-05 DI:32 point and DO:32 point (source)
PL2900 servo) Pulse input: 2ch, DI:8 point, DO:6 point LIO-06 Total Compound IO, DI:8 point, DO:8 point (sink), and AI, AO,
PL2910 Pulse output: 2ch and pulse input: Each 1ch
30
AN2900 Analog input: 4ch (+/-10V) DO-01 DO:64 point (sink)
AN2910 Analog output: 2ch (+/-10V) AI-01 Analog input: 8ch(+/-10V,0-20mA)
Sales from partner maker AO-01 Analog output: 4ch(+/-10V)
CNTR-01 Pulse input: 2ch (5V differential motion and 12V open
collector) 6
Chapter 2 PLC function
2.2Register
(1)Register: Format
(2)Type of register
(3)Register: Data type (1)
(4)Register: Data type (2)
(5)Register: Usage example
(6)Supplementation: Numeric expression of register
7
2.1Drawing and scanning
(1)User program and language
- User program and program language used
-Ladder program: The ladder language (ladder instruction) is used.
The ladder program is managed by the unit "Drawing".
It is executed by high speed and a low-speed scanning
operation method and process motion control and IO control.
Output data
(execution memory)
Output register
Input data
Input register
8
(2)Drawing type and scanning
The ladder program (drawing) is executed by high-speed scan and low-speed scan.
-Start drawing(A): Executed only once when the power supply is turned on.
Describe initialization sequence.
-High-speed drawing(H): Executed at high-speed scan. Describe motion control.
-Low-speed drawing(L): Executed at high-speed scan. Describe other than motion
control.
Power supply
・Operation error drawing: It is started automatically
turning on
by the operation error generation.
DWG.A ・Interrupt drawing (I): The priority execution is done
(start drawing) with the interrupt signal.
Every H-speed scan Every L-speed scan Operation error Interruption signal
10
(4)Modulation and the execution order in drawing
The ladder program is layered structure (*1) of parents drawing, child drawing and grandchild drawing.
・The parents drawing calls the child drawing, the child drawing calls the grandchild drawing.
・"SEE instruction" is used for the call of the drawing. (*1)Layered structure
In division into the hierarchy, the program :.
It becomes easy to see.
DWG.X YY . ZZ
DWG. I Interrupt drawing
Grandchild drawing (01-99)
DWG. X 00
Child drawing (01-99) Operation error drawing
FUNC-001 (A, I, H, L)
Parents drawing type (A, I, H, L) Function
The system Parents drawing Child drawing Grandchild drawing
Automatic Function
H H01 H01.01
execution FUNC 01
・・・
SEE H01 SEE H01.01
Interrupt drawing FUNC 01
・・・
・・・・・・・・・
・・・
DWG. I END
・・・
・・・
starts
・・・
Operation error
automatically.
Same for low-speed END END
END
drawing
11
(5)Example of modulating drawing
12
2.2Register
(1)Register format
15
(3)Register: Data type (1)
< data type and numeric range >
Data type Range of numerical value The main usage
B Bit (BIN) 1=ON 、0=OFF Coil, Contact and I/O
W Integer -32768 ~ +32767 General data
(word: 16 bits) (8000H) (7FFFH) (decimal number)
( ) is for logical operation
L Twice length -2147483848~ 2147483647 Numerical operation
integer (80000000H)(7FFFFFFFH) ( ) is for logical operation.
(length: 32 bits)
Q Four time length -9223372036854775808 ~ Numerical operation
integer 9223372036854775807 ( ) is for logical operation.
(64 bits) (8000000000000000H ~
7FFFFFFFFFFFFFFFH)
F Real number ±( 1.175E-38~3.402+38 ) Dealing with decimal point
(32 bits)
D Double precision ± (2.225E-308 ~ 1.798E+308) Dealing with decimal point
real number
(64 bits)
A Address (24 bits) 0 ~ 16,777,214 Specifying register data
address
16
(4)Register: Data type (2)
Relation among bit, integer, and twice length integer
・Bit type
F 3 0
MB000103 (the third bit of MW00010)
・・
This bit is used as the sign
bit. 214 of two)
・Double length integer and real number type consist of 32 bits by using
continuousness two word types.
31 (MW00011) 16 15 (MW00010)
ML00010 0
MF00010
Real number (binary floating point and single precision 32 bits)
One sign bit Eight bits for exponent part 23 mantissa bits
31 23 22 16 15 0
MF00010
17
(5)Register: Usage example
4607
511
Expressed by hexadecimal
number (HEX) F C 1 8
1) Binary number (Bin): Used by the internal arithmetic of the computer. Expressed by 0 and 1,
and it carries next digit by two.
・Binary number operation: 0+0=0, 0+1=1, 1+0=1, and 1+1=0 (carry)
・When you convert MW10 from the binary number into the decimal number:
・Without Sign: 23+ 24+ 210+ 211+212+ 213+214+ 215 =64536
・With sign : - (216-64536) (reversing above mentioned+1)) =-1000
2) Hexadecimal number (HEX): Expressed by 0-9, A(10), B(11), C(12), D(13), E(14), and F(15).
・It converts into the hexadecimal number
Decimal
every four bits, and it is used by logical operation. BIN
Enable to see the value with the watch in MPE720. Hexadecimal
19
Chapter 3 MPE720 Engineering Tool
Learning how to use MPE720 Engineering tool and how to manage project file.
< contents >
3.1 Basic function of MPE720
(1) Installation of MPE720
(2) MPE720 start up
(3) Screen composition of MPE720
3.2 Programming by MPE720
3.2.1 Design flow of off-line operation
(1)New making of project file (off-line)
(2)Module configuration and creating program (off-line)
(3)Online debugging from off-line
3.2.2 Design flow in online connection
(1)Online connection
3.3Transfer menu
(1) Transfer: Write to Controller
(2) Transfer: Save to Flash
(3) Transfer: Read from Controller
20
3.1 Basic function of MPE720
MPE720 VER7 is engineering tools to design/maintain the application of
MP3000/2000 series running on PC.
The main function of MPE720 learned here is as follows. MPE720 McConfig
On Off Related
Item Operation 1 Operation 2 Operation 3
Line Line chapter
Online connection (history) Communication setting Connection ○
22
(2) Start up MPE720
1)IP address setting (PC)
In case of online, the network connection setting (IP address) on the PC is
necessary.
(Refer to 2.10 for an online connection. )
< Windows7 > Control panel:
"Network and internet" →
"Network and common center"
→"Local area connection"
Right-click and
select property.
23
(3) Screen composition of MPE720
The main menu: The function necessary for the operation of MPE720 Ver7.0 Toolbar
Functions of management
① and the programming of
the project file
Launcher
Submenu bar which is oftenly used Caption bar
Screen tab
Selected tab are displayed The main window
when more than two The following screens are displayed
screens are launched. besides the start screen.
・Ladder program edit screen
Subwindow ・Motion program edit screen Subwindow
The window is displayed ・Data trace edit screen The window is
shown below. ・Register comment edit screen displayed shown below.
Subwindow
The window is displayed shown below.
24
3.2 Programming by MPE720
There are the following two methods of use of MPE720.
・Off-line operation: The connection to MP controller isn’t established.
The project file of PC is displayed/edited.
Used for program creation and various settings
・On-line operation: The connection to MP controller is established.
MP controller's execution memory is displayed/edited.
Used for program edit, debugging and servo tuning
MP3300 (CPU module)
25
3.2.1 Design flow of off-line operation
The user program and data are managed by "Project file".
The file of the project on PC is edited in off-line operation.
File name: ABC.YMW7
< off-line operation >
(3.1 (2))
< composition of project file >
MPE720 is started. (Excluding new. )
The project file System configuration
(3.2.1 (1))
It opens (click). ・System definition
New project
・Scan time
File name and model selection ・Module configuration
MPE720 starts.
(Or open existing file ) ・Data trace
Program
(3.2.1 (2))
・Ladder program
Module configuration ・Motion program
Edit program ・Variable
(After editing, do “Save to project". ) ・Comment
Register
Save and close the project
26
(1)New project file(off-line)
27
(2)Module configuration and editing program (off-line)
2)Edit program
The ladder drawing and the motion program can be made.
The making method is the same as the online operation.
3)Saving operation
The project file is saved in the personal computer.
28
(3)Online debugging from off-line
Online connection
31
3.3 Transfer menu
Management of project file by online connection
The project file made by off-line is
Practice transfer menu by ①②③.
used.
File name:「School. YMW7」
②Save to Flash(3.3(2))
32
(1)Transfer: Write to Controller.
1)“Transfer" →"Write to Controller. "
2)Select project file. "Open. "
Desktop:「School. YMW7」
3)The following screen
・The batch: Clear all memory and batch transfer.
During transfer CPU STOP.
・Individual: Specified item is written in present memory
During transfer CPU STOP or RUN.
“Transfer Write to Controller"
① ③
Select Item
Refer to 3.19 ①
33
(2) Transfer: Save to Flash
Click “Transfer" →“Save to Flash"
"Program Transfer-Save to Flash" screen is displayed.
34
(3)Transfer: Read from Controller
Select item
35
Chapter 4 The setting necessary for the programming
In this chapter, the application program is made with a practice machine.
The system configuration for programming is created.
The practice uses an online connection (direct connection).
< contents >
4.1 Practice machine setup 4.3 Manual Assignment.
(1) Connector setup for practice machine (1)Servo pack
(2)Optional module
(2) CPU module front panel
(3) With crack of SVC module
(3) Switch setting and LED display 4.4 Other settings
(4) Self configuration using DIP switch (1)Scan time.
4.2 Initialization by MP720: System configuration (2)The axis name is set.
(1)The module composition definition is confirmed.
(2)The module composition definition is confirmed (218IF).
(3)The module composition definition is confirmed (SVC).
(4)The module composition definition is confirmed (LIO).
(5)Status is displayed.
(6)Confirmation of I/O register number of practice machine
(7) With crack of address of SW panel
36
4.1 Practice machine setup
(1) Connector setup for practice machine
Switch setting of servo
packing MECHATROLINK cable
Engineering tools:
Personal computer
equipped with MPE720
Switch box
Connected to LIO card
・7 segment LED (4 digits)
・DS1 (4 digits) and DS2 (1
digit)
Mouse ・PL1~PL16
LAN cable ・SW1~SW12
(cross cable)
MP3300
Pressure transformer
Motor: SGM7J-A5A7A21(ABSO) ×2 AC100V/AC200V ・Input-output module
Servo packing: SGD7S-R70A20A×2 The second is connected
LIO-01(×2)
with the side outlet.
37
(2) CPU module front panel
CPU module
38
(3) Switch setting and LED display
1) Display 2) Status Indicator
Display shows the execution or
error status of the CPU Module
3)Mode switch
Self Configuration
LED no
longer
Power blink
"Module supply
Configuration” ON
definition is generated
automatically.
Module Configuration definition
Definition table where attribute of I/O house number etc. was
Done allocated to module installed in MP3300.
40
4.2 Initialization by MP720: System configuration
"System configuration" is initialized by the self configuration.
"System configuration" is confirmed by using MPE720. It edits it.
Initialization by MPE720
(system configuration)
42
(2)The module composition definition is confirmed (218IF).
1) 218IFD module ①
“Double Click” to open detail on 218FD tab
・Message communication
②
(20 connections)
・Setting of communication
parameter can be done here.
・Connection number 01-10
can be set to receive data
automatically.
・IO message communication ③
(R/Wx1)
・Cyclic communication
・It is possible to communicate
without the communication
function.
43
(3)The module composition definition is confirmed (SVC).
Double click to open up SVC No. of axes affect
2) MECHATOROLINK-Ⅲ tab communication
cycle time.
① ・0.5 ms ~ 4 axis &
below
・1ms ~ 9 axis
②
Two servo axes
are allocated.
44
(4)The module composition definition is confirmed (LIO).
45
(5)Status is displayed.
The operation condition of each module is monitored.
①
46
(6)Confirmation of I/O register number of practice machine
The register number for the SW box is confirmed (Refer
to the chart with an attached crack).
MP3300
LIOー
LIOー
Power
CPU
SVC 01 01
218IF
47
(7) With crack of address of SW panel
DS1
LED1
48
4.3 Manual Assignment.
(1)Servo pack
①
Manual assignment can be done here.
Can change or delete assignment after which a write
operation is needed.
1) Allocation of servo pack
1) Double-click or
2) Right-click →
“Device select” or
“Delete”
1) Double-click or
2) Right-click → “Device select” or “Delete”
2)The input-output register is allocated.
The input-output register is allocated by "Write".
Possible to change addressing if not overlapping
with other modules.
②
LIO-01/02
・The address of the input and the output is
different.
LIO-04/05
・The address of the input and the output is the
same.
50
(3)SVC module setting
②
Sets 48 bytes for servo pack.
51
4.4 Other settings
(1) Scan time.
The application software is executed, and the value is confirmed now in time of the scanning.
The settings
other than the
modular
framework and
the scan time
are done in the
environmental
setting.
52
(2)The axis name is set.
The axis name (logical axis name) used by the axis variable is specified.
The axis name defined here become the axis name of the motion program.
"Display" →"Variable" →
"Axis variable" →(double-clicking)→"Group The axis name is
defined.
definition"
①
Double-
clicking
53
Chapter 5 How to create ladder program.
In this chapter, you create a ladder program for sequence control.
Creating a ladder program is available both online / offline operation.
< content >
5.1The ladder program is made. 5.2Instruction used in text
(1)New making in drawing (ladder program) (1)Instruction often used: Relay instruction
(2)Instruction often used: Operation instruction
(2)Ladder edit screen
(3)Instruction often used: Control instruction
(3)Ladder edit: Edit of basic instruction
(4)Basic circuit (AND, OR, and self-maintenance)
(4)Ladder edit: Edit of instruction (5)Timer instruction (1)
(5) Ladder edit: Example of editing (6)Timer instruction (2)
instruction (7)How to unite pulse circuit
(6)Ladder edit: Branch circuit (8)Counter
(7)Ladder edit: COPY/PASTE (9)Branch instruction
(8)Ladder edit: Deletion (10)The expression is described: The EXPRESSION
(9)Ladder edit: Comment and variable instruction.
(10)Ladder edit: Variable display (11)Numeric operation (substitution, addition and
subtraction, multiplication, and division)
(11)Ladder edit: Comment display
(12)Enhancing addition and subtraction instruction
(12)Ladder edit: Compilation
(13)Numerical transformation (BIN,BCD)
(13)Input practice of circuit (14)The index does the register address: The affixing
character.
5.3Function that uses it by debugging
(1)Register list
(2)Watch
The project (The file name; school.YMW7) used in Chapter 4 can be use for (Chapter 5-Chapter 7).
54
5.1The ladder program is made.
(1)New making in drawing (ladder program)
Creating a new ladder program
Or
55
(2)Ladder edit screen
Shortcut Icon
Insert
Instruction
Screen
①
Instruction sub
window
Double-click
Screen
②
56
(3)Ladder edit: Edit of basic instruction
1)Edit display and name
Ladder step number/execution
Rung step number Rung
number comment
Green
highlight
when
Branch Rung selected
2)Rung's insertion;
At the insert position, right click to select "Insert Rung“ / “Insert Rung Comment”
58
(5) Ladder edit: Example of editing instruction
1) edit example
LD : A contact
LD IB0C304 : A contact + register
LD3 : A contact x 3.
LD + : A contact with address +1
from previous contact
LD = : same A contact address
LD ++5 : A contact with address +5
from previous contact
59
(6)Ladder edit: Branch circuit
1)Easy making of OR circuit
・OR circuit of the same instruction:
A red circle instruction was selected.
"Program" →"Insertion of branch" and ("Ctrl"+"B")
・Parallel addition of arbitrary instruction
"Program" →"Parallel addition of instruction"
2)Branch circuit
・Branch making mode ・Movement of
branch
End Point
60
(7)Ladder edit: COPY/PASTE
1)"Copy. " select the rung you want to copy
select edit on top column and select copy or press (Ctrl+C).
3)"Edit. " Select edit on the top column and select paste or press (Ctrl+V).
61
(8)Ladder edit: Deletion
Deletion
Everything is deleted.
Deletion
62
(9)Ladder edit: Comment and variable
1)Switch of address display ・Only when set, the variable is
displayed.
The variable can be input.
・The comment and the variable are
Upper row: variable [sabuuindou].
Variable/address
The lower: Comment It is possible to register from the
2)Input of comment variable list (next page).
64
(11)Ladder edit: Comment display
65
(12)Ladder edit: Compile
1)Compile
Main menu "Compile" →"Compile" ("F4")
The edited instruction is converted into shape that MP3000 can be
executed and it preserves it in the memory. (The flash preservation is not
done. )
66
(13)Input practice of circuit
1)The following ladder is input. (L01)
①Rung's insertion
②A point of contact (IB00C704) making
③"Ctrl" + "B" →A point of contact (OB0C711) is made.
④B point of contact (IB00C705) making
⑤Coil (OB0C710) making
⑥"Ctrl" + "B" → coil (OB0C711) is made.
② ④ ⑤
①
③
⑥
67
5.2Instruction used in text
(1)Instruction often used: Relay instruction
Relay circuit instruction
Type
Name Symbol short cut Content
A contact ][、LD、A、AND
Relay circuit instruction
B contact ]/、LDI、B、ANDI
The sequence logic is made.
Rising edge ・AND (series) circuit
]P
pulse ・OR (parallel) circuit
Falling edge ]N ・MEMORY circuit
pulse
Coil @、OUT
68
(2)Instruction often used: Operation instruction
Type Name Symbol Content
Storage The Src data is stored in Dest.
Addition Dest=SrcA+SrcB
Subtraction Dest=SrcA-SrcB
Multiplication Dest=SrcA×SrcB
instruction
Numeric operation
Division Dest=SrcA÷SrcB
Enhancing Extended add without
addition overflow error
Enhancing Subtract without underflow
subtraction error
The binary number data is
BCD conversion
converted into BCD.
BCD is converted into the
BIN conversion
binary number data.
It is +1 at each scanning as
Increment
for the register.
It is -1 at each scanning as for
Decrement
the register.
69
(3)Instruction often used: Control instruction
Type Name Symbol Content
IF condition
A
ELSE
B
IF sentence ENDIF
A is processed by the
condition approval.
Short cut: IEND B is processed because of
the failure.
70
(4)Basic circuit (AND, OR, and self-holding)
Reset
Set
When SW1 is turned on once, PL3 is
maintained until the SW2 is turned on.
71
(5)Timer instruction (1)
There are four kinds of timers that can be used in MP2000.
Timer
IB0C705
OB0C715
IB0C706
・SW1 turn on + 5 second equal PL5 turn on.
・SW2 turn on + 5 second equal PL6 turn on. OB0C716
・SW3 turn on + 1 second equal PL8 turn on which will OB0C717
turn off PL7.
73
(7)How to unite pulse circuit
Point of contact to be made For the last state storage of
pulse register immediately before
Equivalence
Point of contact to
be made pulse
Rising edge pulse
For one
scanning
< usage example >
Entering PB Cutting PB Driving Like being on entering PB
DB01
IB0C704 IB00C705 OB0C712 ・When there is not standing up:
Driving enters when cutting PB returns.
Driving ・When there is standing up: "Drive" is
It inserts in the self-
OB0C712 holding circuit of
not turned on as long as" is not turned
5.2(4) and hold it. on again.
→Safety
74
(8)Counter
The counter is used to know how many times to have turned on a
certain signal.
Increment of operation instruction. It composes of the decrement
instruction.
Addition count/subtraction count (L02)
Addition count
Subtraction
count
Reset
When IB0C304 is
turning off, it is
executed.
It inputs it
clicking.
// The comment
sentence from now on. ①
77
(11)Numeric operation (substitution, addition and
subtraction, multiplication, and division)
Operation instruction (L03)
Substitution and
arithmetic operation
< ladder expression > < EXPRESSION
expression >
78
Numeric operation example (supplementation)
Operation with different < supplementation > data type
Operation example 1) From the real number to the twice length integer
When the real type that exceeds the maximum value of the long integer type is converted into the twice length
integer, it is clamped to the maximum value of the twice length integer and it becomes an alarm.
Example) DF0=3.402823E+38;
DL0=DF0=2147483647(H7FFFFFF)
Operation example 2) Operation of integer and real number
A numeric type is basically matched.
Forecasting by the operation might not result when a numeric type is not corresponding.
To operate it by the real type, the decimal point is added right.
Example) ML10=1/3; → 0: It is dropped below the point small number of people because of the integer type
operation.
MF10=1/3; → 3.333333E-001: The real type is operated.
MF10=1.0/3; → 3.333333E-001 :
ML10=1/3*3; → 0: It is dropped below the point small number of people because of the integer type operation.
It divides to improve the operation accuracy at the end and it counts.
MF10=2147483647/3 → 7.158279E+008; :The real type ..digit.. falls in seven significant digit digits.
The twice length integer is used as follows to raise the number of
significant figures.
ML10=2147483647/3 → 715827882; :Precision operation to calculate up to 9 digits
79
(12)Enhancing addition and subtraction instruction
The enhancing addition and subtraction instruction is used to disregard
overflow/underflow, and to continue operating.
Register list
"Display" →"Register list"
The register that I want to see is
When you match mouse's cursor
specified. Register address and register
・Data is displayed. The usage condition is ballooning
・The edit of data is also possible. displayed.
①
84
(2)Watch
Watch
"Display" The register or the variable is specified.
・Data is displayed.
→"Watch"
・The edit of data is also possible.
①
85
Chapter 6 The parameter of the motion control is set.
In this chapter, we will learn to create a motion control of the program as
well as set the parameters required for motion control (motion parameter).
86
6.1 Motion control method of MP series
Motion parameter
Ladder
Fixed parameter
High-speed Unit
drawing Configuration conversion
OW8000~ parameter Acceleration
Servo
and M-Ⅱ Pack
Motion command deceleration
・・・
Command
+ Phase
generation
Control data
IW8000~ Servo
Monitor parameter Pack
87
(1)What is the motion parameter?
There are constant necessary for the motion control kinds of three of the following with
the motion parameter.
A fixed parameter: Mechanical conditions such as machines and the motor encoders are set.
It sets it from MPE720. The setting change cannot be done from the
ladder.
Configuration parameter: It is instruction from CPU module to the motion module.
"Motion command" and other "Control parameter" exist.
When the power supply is turned on, "Value when starting" is written in
"Present value".
The setting change of the value can be freely done by the ladder and the
motion program while driving now.
Monitor parameter: In servo monitor information sent from the motion module to CPU
module. It is possible to read it at any time while driving.
Configuration parameter
Fix Monitor
Parameter Start power is Present Parameter
turned value
value
on
Initial setting
MPE720 Ladder program
88
(2)The motion parameter is seen: The module configuration
definition.
89
6.2. Setting of fixed parameter
(1)Set the fixed parameters / display.
A fixed parameter is set or displays it.
Workspace "Fixed parameter" →"Axis display selection"
②
"Axis display selection"
①
90
(2)(1) that sets fixed parameter: Axis type
① The fixed parameter finally set
It is Chapter 6.6.
91
(3)(2) that sets fixed parameter: Reference unit and
electronic gear
It is an example of a typical mechanism of setting up a fixed parameter.
92
(4)Automatic servo user constant writing
Automatic servo user constant writing function (Refer to appendix 5).
It is a function to make the following a trigger, and to write the value of the servo gain
of the configuration parameter in the user constant of the servo packing
automatically. (note 1)
・Establishment of communication connection of MECHATROLINK
・Change operation of configuration parameter
・Execution beginning of motion command
It is necessary to reflect a correct servo user constant in the configuration parameter.
If you select Disable, you do not run the motion commands and
configuration parameters as it does not write to the servo.
93
(5)Encoder selection and positional coordinates
(incremental encoder)
94
(6)Encoder selection and positional coordinates (absolute
value encoder)
2) Absolute value encoder usage
If you select the absolute encoder, the motor eliminate the need for homing
when the power is turned on as the rotational position is stored.
(*1)Present when the positional data read from absolute value encoder
was converted into machine coordinates value
(*2)When POSMAX is not used by the control for one side, it sets it to
the limited length axis.
95
(7)Fixed parameter when linear motor is used
Fixed parameter of linear motor
<Setting example>
• linear scale pitch: 20 (μm)
• serial converter resolution: 8 (bit)
• Rated speed: 1.5 (m / s)
96
(8) Fixed parameter when PO module is used
PO module
97
6.3The configuration parameter is set.
Workspace “Setting Parameters” → “axis display selection” →
・ "Start-up value": Displays the value of at the start of the specified all axes
Set changes and implement the "write", the current value is updated.
"Reflect", "current value" in button is reflected in the "start value".
・"Present value": The present value of all axes specified the start value of the selected axis is
displayed.
When the power supply is turned on, the start value is forwarded.
Constantly updated from the ladder program.
Display
classification
The value is
reflected in the
start value now.
98
6.4The monitor parameter is displayed.
Workspace "Monitor parameter" →"Axis display
selection" →
It is possible to switch to
the configuration parameter.
①
99
6.5The servo parameter setting/is displayed.
Workspace "Servo parameter" →"Axis display selection" →
The servo parameter is read.
After the parameter is changed, "Write" is executed.
①
●
The axis
can be
compare
d
②
Right click to display below
・"Change to the factory shipment value" → factory shipment value is
displayed.
・"Change to the controller preservation value" → preservation value is
displayed.
・Again, to return it to the value display of present, "Read" is executed.
100
6.6Test Run
The following motion parameter is set, and it confirms it by
"Test run".
In "Test run", it is possible to drive without the program.
The deficit changes from
<Fixed parameters and configuration parameters to be used in the practice> the default value.
1) axis type : finite length (fixed parameter 1)
Only the confirmation : a
2) Reference unit : 0.001mm (fixed parameter 4, 5)
blue character.
3) machine 1 per rotational movement amount : 10mm (fixed parameter 6)
4) Rated speed : 30000mm / min (fixed parameter 8,9,34)
5) Encoder selection : absolute encoder (incremental use) (fixed parameter 30)
6) feed rate : mm / min (setting parameter 3)
7) acceleration and deceleration time : ms (setting parameter 3)
8) the position command type :( configuration parameter 9)
Ladder program method: absolute value specified
9) axis name (group definition):
1 Axis: X, 2 Axis: Y
Reference Unit: 1=0.001mm
<Mechanical
mechanism>
1
Number of encoder pulses:
1048576 Ball screw pitch: 10mm
1
101
(1)Test run (1)
2) Servo enable
102
(2)Test run (2)
■ Jog ■ Step
Set the speed reference, click Set the speed reference / step
down the "forward" / "reverse" distance / direction setting &
icon to do the jog operation. number of cycle, click “run” to do a
simple step operation.
① ②
103
Chapter 7 The program for motion control (ladder method)
In this chapter, study the motion control by the ladder method.
< contents > 7.2 Confirm motion control from screen.
7.1What is the motion control? 7.2.1 Position control
(1)Control necessary for application (1)Configuration parameter of positioning
(2)Setting position reference type
(2)Positioning and interpolation
(3)Position control and other settings
(3)Motion control method (ladder program)
(4)Setting of position rererence of infinity
(4)Motion control method (motion program) length axis
(5)What is the motion command? (5)Execute position control
Switch of control mode 7.2.2 Position control: Interpolation
(6)Motion control of ladder method 7.2.3 Position control: Zero point return
(positioning example) (1) Position control: Zero point return method
(7)Control mode and related setting parameter 7.2.4 Zero point setting
(8)Control mode and related monitor parameter (1)Incremental encoder
(9)What is virtual axis? (2)(reference)Absolute encoder (finite length)
7.2.5 Speed control
(1)Speed control
(2)Speed control(JOG)
7.2.6 Torque control
(1)Torque control loop
(2)How to control torque
7.3Debugging Function
(1)Axis monitor/Alarm monitor
7.4 Create sample program
Operating switch
104
7.1What is the motion control?
There are position control, speed control and torque control in motion
control.
Position control can be classified into three of the following.
●Point-to-Point control - Enables precise positioning of linear motion
or rotary motion, following position
reference and speed reference.
"Position" control is used.
Ladder method or motion program
Servopack control
Position control Speed Torque
functions
control control
106
(2)Positioning and interpolation
In the MP series, positioning and interpolation is different control method.
Positioning is practiced in this chapter.
Positioning Interpolation
The following data is set. Create movement data in each
CPU ・Target position high-speed scanning
(ladder program) ・Speed Making
・Acc/Dec time ・Table/operation
Transmits data at the Transmits data divided by the
SVC
mechatronics link cycle. mechatronics link cycle.
Position control Position control
・Acc/Dec processing ・Filter
Servo packing
・Filter ・Data divided in each servo cycle.
・Pos data at each servo cycle
In interpolation, the method of making the position data is different depending on application.
・The computing method: The interpolation curve is made a function and described in high-speed drawing.
Create position data every high-scan.
・Table method: Interpolation curve is described by parameter table
Refer position data in each high-scan by FGN function
Phase control is a kind of the interpolation control using the speed feedforward function.
Interpolation and phase control are treated by advanced course.
107
(3)Motion control method (ladder program)
Ladder
Fixed parameter Unit
High-speed conversion
drawing Setting parameter M-Ⅲ
OW8000~ Servo
Motion command Acc/Dec Command
+ pack
Control data Phase
generation
IW8000~
Monitor parameter
108
(4)Motion control method (motion program)
High-speed
drawing Motion
Parameter
Call
System
Motion Process
Program
109
(5)What is the motion command?
The motion command is a function to execute various functions (movement
instruction, etc.) by specifying the number of each control method.
The corresponding control method can be done by giving the number to motion
command register OW8008 (for the first axis).
< Command number and function >
Command number Function
"09: Set Zero Point" Setting zero point in the machine coordinate system.
Generally control mode is switched once the motion command is turned off,
and specify a new motion command.
It is also possible to move to a new control method without turning off the
motion command. The cycle time can be shortened because it moves to the
next control mode without stopping once.
However, note that some motion command requires to turn it off before
changing control mode.
111
(6)Motion control of ladder method (positioning example)
The motion control of the ladder method sets and executes setting parameter.
Motion command + control data
・Motion command; Define and execute motion control
・Control parameter; Data related to motion control. Ex. speed and position
OW8008=1
Positioning completed
OB80090: Hold Command
signal detection IB8000C1 OB80091: Cancel Command
113
(8)Control mode and related setting parameter
114
(9)What is a virtual axis?
A virtual axis is a virtual control axis that doesn‘t connect the real servopack.
Control can be done as well as SVC.
Virtual axis reflects machine coordinate position to monitor parameter.
115
7.2 Confirm motion from display
Specify motion command and control parameter from setting
parameter screen and confirm motion. < positioning example >
(workspace)“Setting parameter" →"Axis selection" → "Positioning"
Data is set to setting parameter.
Release lock →Servo on → "Positioning"
Release lock
116
7.2.1 The position is controlled.
(1)Configuration parameter of positioning
Setting parameter of positioning
117
(2) Position Reference Setting
118
(3)Position control and other settings
119
(4)Infinite-length Axis Reset Position
CPOS(N-1) CPOS(N)
120
(5)Positioning control
Open Setting parameter and select "Position" tab
Speed
Servo on Rated speed
OB80000=1 Sending speed
OL8010
Control parameter setting
Time
Target position: OL801C=100000 Acceleration time Deceleration time
Speed reference: OL8010=3000 OL8036 OL8038
Acceleration time: OL8036=100 Position
Deceleration time: OL8038=100 Target position
OL801C Reference
Position: IL8010
Motion command Position Deviation:
OW8008=1 Hold command :○ IL801A
Cancel command:○
Feedback Position: IL8016
Positioning completed Time
IB800C1=1 Distribution Completed: IB800C0
Positioning completed: IB800C1
OW8008=0
Target position and speed can be changed during operation.
121
7.2.2 Position control: Interpolation
Open Setting parameter and select "Interpolation".
Servo on
OB80000=1
Update
End
OW8008=0
Not practicing it in a basic course.
122
7.2.3 Positioning control: Zero Point Return
Open Setting parameter and select "Zero".
Control parameter
Servo on ・Zero point return method: OW803C;
OB80000=1 "18: INPUT&C aspect"
・Direction selection: OB80093;Invalid (*)
Setting of control parameter ・Speed reference setting: OL8010=500
・Approach speed: OL803E=5000
Motion command Hold command :○ ・Creep speed: OL8040=1000
OW8008=3 Cancel command:○ ・Zero point return travel distance: OL8042=20000
Zero point return (note)In case of < INPUT&C aspect >, the
completed direction follows sign of approach speed.
(IB800C5) is on. Approach speed
(OL803E) Creep speed
Machine
coordinate (OL8040) Speed rererence
Il8010=0 setting (OL8010)
19 INPUT signal Method by only INPUT signal INPUT signal: OWxx06 Bit B
124
7.2.4 Set Zero Point
(1)Incremental encoder
When motion command “Set Zero Point” is executed, “Zero point of
the machine coordinate system" is fixed.
Zero point can be set without the zero point return.
Power on
Motion command
OW8008=9 < reference >
・ABS encoder
Machine coordinate system current position = (Infinite length simple ABS0)
The same processing as incremental
Machine coordinate system starting point position
encoder
offset (OL8048)
・ABS encoder (finite length)
The position information doesn't
Zero point setting change.
completed (IB800C5) Refer to next page.
OW8008=0
125
(2) (reference)Absolute encoder (finite length)
Zero point setting of absolute encoder (finite length) operates zero point
offset at position to be zero point, and issues “Set Zero Point (9)".
Power On
126
7.2.5 Speed control
・Speed control
Servopack control becomes speed control.
Also available for inverter.
・FEED (JOG)
In case of MECHATROLINK method, servopack control becomes
position control.
Not available for inverter.
127
(1)Speed control (Speed control)
Open Setting parameter and select "Speed".
Servo on Speed
OB80000=1
Rated speed
128
(2)Speed control (FEED).
Open Setting parameter and select "Speed".
Servo on
OB80000=1
Speed
129
7.2.6 Torque control
(1)Torque control
The pressure sensor feedback is used to control pressure on the machine edge.
In case of output torque > load torque, motor speed increases since additional
torque more than load torque makes motor accelerate.
Therefore speed restrictions are settled if necessary.
130
(2) Torque control
Open Setting parameter and select “Torque/Thrust reference".
Servo on
OB80000=1 Motor accelerates
Speed because there is no load.
Speed Limit
Setting parameter
Torque reference: OL800C=3000
Speed limit: OL800E=1000
(The unit: 1=0.01%. ) Torque
Torque reference
OW8008=0
131
7.3Function that uses when debugging
Various functions are prepared for ladder program debugging. ● :Axis related
132
(1)Axis monitor/ alarm monitor
Axis monitor
Basic information on the axis can monitored.
Switch “Group” and “Circuit” Click
①
Alarm monitor
The alarm of the axis can be
monitored.
133
7.4 Create Sample program
After the motion operation is confirmed from the set parameter screen in
Chapter 7.2, the motion operation is confirmed by using the sample ladder
program.
134
(1)Operating switch
135
Chapter 8 Servo tuning
136
8.1Tuning method
B.Setup wizard
・Parameters related to axis is set by the wizard form.
・There is a limitation in servo parameter that can be set.
C.MC Configurator
・ Enable to execute all basic function
・Two or more axes can be set/displayed.
137
8.1.1 Servo tuning from SigmaWin+ via controller
Parameter edit
Auto tuning
Software reset
Reset of MECATROLINK
SigmaWin + starts up.
The user constant is reflected to
setting parameter (present value).
138
8.1.2 Servo adjustment using Axis setup wizard
139
8.2 Servo adjustment using Configurator
Confirm that axis can move by Test Run before servo tuning.
To do Test Run
・Switch (S1,S2,S3) of servopack is set
・Self configuration of servopack is done by the factory setting value.
・The following servopack parameter is set.
・Direction of rotation and over travel(invalid)
・Fixed parameter is set.
140
(1)Confirmation before tuning
Confirm axis can move by Test Run
Servopack front panel
Axis move confirmation
“Station adress" is set.
Wiring
SWsetting
Self configuration
& Save to Flash
141
(2)Menu related to adjustment procedure and adjustment
Adjustment procedure and menu of Workspace
MC Configurator ①
142
(3)Data transfer between controller and servopack
Following data is transferred by MP3300 and servopack.
MP3300 Servopack
(2) Self configuration
Fixed parameter Proced
ure (4) <SigmaWin+>
Setting parameter Communication User (3): Parameter edit
(auto-reflect parameter) establishment (Note 1) constant (5): Advanced
Initial value Current RAM Auto Tuning
value (reflection)
PON E2ROM
(6): Reflection
(3)-1: Reading
Servo Save
Parameter Current value
(3)-2: Writing
(7): Writing
(8): Writing
Controller save value
(1) (Writing)
(servo)Shipment value
(Note 1) Setting parameter of servo gain is written in servopack(RAM) (Refer to appendix 3).
After the tuning, it is necessary to reflect the servo parameter in Setting parameter.
143
8.3Setting of servo parameter
(1)Procedure (1): Initialize servo parameter (1).
1)Display user constant of servopack
Double click (workspace) "Servo parameter" → (attention screen)
→“Display in Axis selected" →「OK」
(reading)→ The present value is displayed (next page screen).
①
Automatically allocated
by Self Configuration
144
(2)Procedure (1): The servo parameter is initialized (2).
2)Display "Factory shipment value" and write them to servopack.
(1) -①: Right-click in the name ②
column of the servo.
145
(3)Procedure (2): Self configuration
1)Fixed parameter
Information of servopack is read and set to Fixed parameter automatically.
Refer to < appendix 1> for the set parameter.
2)Servo parameter
An initial value of MP3300 is written in the servo parameter.
Refer to < appendix 1> for the set constant.
146
(4)Procedure (3): Set operation of servo packing parameter
Display current value of servopack parameter
"Read" → (The present value is displayed) → Modify parameter →"Writing"
User constant of servopack is overwitten(Both of RAM/ E2ROM).
(The controller save value is written at the same time and changed. )
Click "+" to
expand details
147
8.4Procedure (4): Set Fixed parameter
Set Fixed parameter.
Workspace "Fixed parameter"
→“Display in Axis selected"
Writing.
Does not save to Flash
“Display in
① Axis selected"
148
8.5Auto tuning
Servo Auto Tuning
149
(1)Procedure (5): Auto tuning (1)
Initial screen of tuning ①
Procedure
(5) -①
Procedure
(5) -②
Servo parameter screen must be closed when
you execute setting of moment of inertia ratio.
150
(2)Procedure (5): Auto tuning (2)
①
Procedure (5) -④
Parameter name
Pn100 Speed Loop Gain
Pn101 Speed Loop Integral Time Constant
Pn102 Position Loop Gain
Pn401 First Stage Torque Filter Time Constant
Pn408.0 Notch Filter Selection1
Pn409 First Stage Notch Filter Frequency
② Pn40D First Stage Notch Filter Q Value
Procedure
(5) -⑤
151
(3)Procedure (5): Auto tuning (3)
Procedure (5) -⑥: Reset MECHATROLINK communication
・Without “Reset MECHATROLINK Communication”, communication error happens.
・When the check mark is applied to "Parameter reflected automatically", the servo
parameter related to the gain is reflected in “Current value" of the motion setting
parameter.
①
③
It returns to former
screen. procedure (5) Reflects it in -⑦"Controller save value".
152
(4)Procedure (5): Auto tuning (4)
153
8.6 Necessary operation necessary after tuning
(1)Procedure (6): Reflect servopack parameter to setting parameter
154
(2)Procedure (7): Save servopack parameter
155
(3)Procedure (8): Write all servo parameter
Procedure (1) - (7) is servo tuning.
Procedure (8) is servo parameter writing process to servopack which is newly
replaced because of breakdown or replacement.
1)Servo parameter from controller save value is written to new servopack (E2ROM).
Workspace "Servo parameter" →(Display current servo parameter)
→It is change → in "Controller preservation value" as for the display. "Writing"
Comparing axis
② parameter.
157
8.7Other operations
(1)Display servo monitor
①
Display in Axis selected
158
(2)Open other servo menu
There are two methods to open and execute servo menu
①
①Open from workspace.
Workspace[Servo][Servo Tuning] shows SigmaWin+ menu.
→Select menu and axis.
159