Professional Documents
Culture Documents
• Understand
– the feature of NB Designer (For NB HMI)
– The feature of CX-Programmer (For PLC)
– Set up communication between PLC, Servo system and HMI
Content Page
• Chapter 4 -4 What do we need to do to let • Chapter 4 -5 How to create program for Servo
the Servo Motor Run? Drive in CX-Programmer?
• 4-4-1 What will we learn in this topic • 4-5-1 What will we learn in this topic
• 4-4-2 Set up I/O list • 4-5-2 CX-Programmer
• 4-4-3 Create New Frame • 4-5-3 Create New Program
• 4-4-4 Create Link Function • 4-5-4 Let create Servo Program
• 4-4-5 Create Motor Run Clockwise (CW) • 4-5-5 Online mode
Button • 4-5-6 HMI Com Setting for PLC
• 4-4-6 Create Motor Run Counter • 4-5-7 Transfer PLC Program
Clockwise (CCW) Button
• 4-5-8 Can the servo Run?
• 4-4-7 Create Motor Stop Button
• 4-5-9 Monitor HMI with PLC
• 4-4-8 Create Set Pulse to servo motor
• 4-4-9 Method of Download to NB
• Chapter 4-6 How do we know the display
• 4-4-10 Download to NB speed is true?
• 4-4-11 Can the servo Run? • 4-6-1 What will we learn in this topic
• 4-6-2 How do we know the display speed
is true?
• 4-6-3 Monitor HMI to CX-Drive
Content Page
• Chapter 4 -10 Create Control Speed of the • Chapter 4 -12 How do we know the display
Servo motor through NB HMI speed is true?
• 4-10-1 Pulse Output Control • 4-12-1 What will we learn in this topic
• 4-10-2 Download to NB • 4-12-2 How do we know the display speed
• 4-10-3 NB Display is true?
• 4-12-3 How to know the menu is right?
• Chapter 4 -11 What kind of program
function needed for this topic? • Chapter 4-13 How to set a certain amount of
• 4-11-1 What will we learn in this topic output pulses?
• 4-11-2 PLS2 with Interlock Program • 4-13-1 What will we learn in this topic
• 4-11-3 How do we start using PLS2 • 4-13-2 Control Set Pulse
function? • 4-13-3 PULS with Interlock Program
• 4-11-4 Online mode • 4-13-4 How do we start using PULS
• 4-11-5 Transfer PLC Program function?
• 4-11-6 NB Display • 4-13-5 Online mode
• 4-11-6i Monitor HMI with Inverter • 4-13-6 Transfer PLC Program
• 4-13-7 NB Display
• 4-13-8 Monitor HMI with Inverter
Content Page
• Chapter 4 -13 How to set a certain amount • Chapter 4 -14 What kind of program function
of output pulses? needed for this topic?
• 4-13-9 How do we know the display • 4-14-12 How to Download Recipe to USB
speed is true? Drive?
HMI
1-phase/3-phase 3-phase
200 VAC 200 VAC
100W 200W 750W 1KW 1.5KW 2KW 3KW 5KW
Chapter 4-1-5
Basic Introduction on Servo Motor
HMI /
PLC PC
XW2Z-200T
Chapter 4-1-7i
Cable Type
R88A-CAGA003S R88A-CRGB003C
Chapter 4-1-7i
Cable Type
Servo Drive PC
Chapter 4-2
How are we going to connect the
components?
Connect with
Connect to HMI
PLC connect to Servo Drive Cable
using RS232 cable
Terminal block
Connect to
AC 230V
Motor
encoder
connector
Connect to
DC 24V
Chapter 4-2-1
Wiring Diagram
Toolbar
Workspace
Windows
Output
Window
Status Bar
Chapter 4-3-3
Input Type Servo drive Setup
• Setting for Servo Drive
Step Description Scroll Bar
1 Options
2 General tab
R88D-KP
(Asia use only)
Chapter 4-3-3
Input Type Servo drive Setup
• Setting for Servo Drive
Step Description Scroll Bar
3 Click on Drive tab
ICON
Chapter 4-3-5
Setting For Servo Drive
• Go to Parameter Editor
• Pn001 - 3: Mode 1:Position Control, Mode 2: Speed Control
• Pn007 - 3: Feed pulse/direction signal
• Pn008 – 5000
Chapter 4-3-6
Transfer Setting
• Transfer Setting
• Drive tab > Transfer > To Drive
• Click on the Icon
Method
of
transfer
Chapter 4-3-6
Transfer Setting
• Steps to follow
Step Description Display Number
2 Check Drive parameters and Drive
Program as to overwrite the old setting
then click OK
2 Pop-up appear
Frame ID start from 10
as Frame 1 to 9 is used
for special window
New Frame
being created
Frame Name start from
Frame10 as Frame 1 to
9 is used for special
window. (Name can be
change)
2
Chapter 4-4-11
Can the servo Run?
• Run and test out
Step Description Display Number
1 Click on the Chapter 4-1 to go Frame 16
Toolbar
Project
Workspace
Diagram
Workspace
Status
Bar
Chapter 4-5-3
Create New Program
• Set the PLC setting to the same as the NB HMI
Step Description Display Number
1 Click On NEW
2 Select CP1E
Chapter 4-5-3
Create New Program
• Set the PLC setting to the same as the NB HMI
Step Description Display Number
3 Click on Settings, choose N30.
Click Ok then OK.
Port
Output
mode
Port
the PLC
• For INI Instruction, Right Click on
the Instruction INI(880) and click
Instruction Help
Chapter 4-5-4
Let create Servo Program
• Create STOP Servo Drive
Control Data
Click here to
Online mode
Click here
to Online Grey
mode Background
Chapter 4-5-6
HMI Com Setting for PLC
• Set the PLC setting to the same as HMI
Type Set
Baud 115200 bps
Format 7, 2, E
Mode Host Link
Chapter 4-5-7
Transfer PLC Program
• Set the PLC setting to the same as the Servo Drive
Clockwise
Step 1: Press and tenkey pop-up appear.
(CW)
Key in 100000 (100,000 pulses)
STOP
Chapter 4-5-9
Monitor HMI with PLC
• Once CCW button is turn on
HMI View SERVO View
Step 2: Press the
CCW button to
start motor
Counter Clockwise
Step 1: Press and tenkey pop-up appear.
(CCW)
Key in 100000 (100,000 pulses)
STOP
Chapter 4-6
How do we know the display speed is true?
Click to start
Chapter 4-6-3
Monitor HMI to CX-Drive
• Once CCW button is turn on
The Speed is at
Step 2: Press and tenkey pop-up appear. around 600 rpm
Key in 25Hz
When we let the servo motor run at Counter Clockwise(CCW) at 100,000 pulses (MAX), the result show in the
CX-Drive will be around 600rpm.
Click here to
Online mode
Click here
to Online Grey
mode Background
Chapter 4-7-6
Transfer PLC Program
• Set the PLC setting to the same as the MX2 inverter
Double click
on the CW
pushbutton
Chapter 4-7-7
Create Interlock Servo Control at NB HMI
• Create Interlock CW and CCW button
Step Description Scroll Bar
2 Click on Control Setting tab
1st: Select
Conditional
Enabling
2nd: Key in
the interlock
address
CW interlock 33.01
2
Chapter 4-7-9
NB Display
• Run and test
Step Description Display Number
1 Click on the Chapter 3-1 to go Frame 14
2 Create 1 each:
•CW - ACC/DEC rate (D404)
•CCW - ACC/DEC rate (D409)
Chapter 4-8-2
ACC/DEC Control
• Create CW, CCW, STOP button and CW - ACC/DEC rate , CCW - ACC/DEC rate, CW -
ACC/DEC Target Freq and CCW - ACC/DEC Target Freq
• Refer to Chapter 1 on how to create the page and button
Step Description Picture
3 Create 1 each:
•CW - ACC/DEC Target Freq
(D405)
•CCW - ACC/DEC Target Freq
(D410)
Chapter 4-8-3
Download to NB
1. Click Tools at toolbar, click Compile to compile the drawing first, if there
no problem carry on the next step.
2. Click download to download the drawing
2
Chapter 4-8-4
NB Display
• Run and test
Step Description Display Number
1 Click on the Chapter 4-1 to go Frame 16
Acc Interlock
Port
Output mode
First Word of
Setting Table
Click here
to Online
mode
Grey
Background
Chapter 4-8-9
Transfer PLC Program
• Set the PLC setting to the same as the MX2 inverter
Step Description Transfer Program
1 Download program to PLC
1. Click PLC tab > Transfer > Transfer
[PC ->PLC]
2. Ctrl + T
3. Click on the icon
Description Table
Description Value
CW_ACC/DEC rate 5000
CW_ACC/DEC Target Frequency 100,000
CCW_ACC/DEC rate 2500
CCW_ACC/DEC Target Frequency 100,000
Chapter 4-9
How do we know the display speed is true?
Click to start
Chapter 4-9-2
How to know the menu is right?
• ACC/DEC control with interlock
Acceleration during At
Acceleration during 100,000Hz 100,000Hz
50,000Hz
At
50,000Hz
4 Create 1 each:
•ACC rate (D420)
•DEC rate (D421)
Chapter 4-10-1
Pulse Output Control
• Create Target Frequency, Pulse Output Amount and Start Frequency at Frame 17
• Refer to Chapter 1 on how to create the page and button
Setting for :
•Target Frequency
•Start Frequency
Setting for:
Pulse Output Amount
Chapter 4-10-1
Pulse Output Control
• Create Link button to Frame16 at Frame 17
• Refer to Chapter 1 on how to create the page and button
2
Chapter 4-10-3
NB Display
• Run and test
Step Description Display Number
1 Click “Chapter 4-1” button, it will send
you to Frame16 “SPED & ACC” page
PLS2 Interlock
RESET
Click here
to Online
mode
Grey
Background
Chapter 4-11-5
Transfer PLC Program
• Set the PLC setting to the same as the MX2 inverter
Description Table
Let try the example from the Instruction Help as to
Description Value
check whether data is correct
ACC rate 5000
DEC rate 2500
Target Frequency 50,000
Pulse Output Amount 100,000
Start Frequency 200
Chapter 4-12
How do we know the display speed is true?
Click to start
Chapter 4-12-3
How to know the menu is right?
• ACC/DEC control with interlock
Target Frequency:
50,000Hz
Start Frequency:
200Hz
Target Frequency:
50,000Hz
Start Frequency:
200Hz
2 Create 1 each:
•Set Pulse (D440)
•Set Speed (D442)
Chapter 4-13-3
PULS with Interlock Program
• PULS control with Interlock will be using these
I/O address stated below:
Name Address
PULS_CW W31.05
PULS_CCW W31.06
PULS_Set_table D440
PULS_Start_Freq D442
PULS_Interlock W35
PULS_CW_Interlock W35.00
PULS_CCW_Interlock W35.01
Chapter 4-13-4
How do we start using PULS function?
• Create Write Control Speed of the motor
PLS2 Interlock
RESET
Click here
to Online
mode
Grey
Background
Chapter 4-13-6
Transfer PLC Program
• Set the PLC setting to the same as the MX2 inverter
Description Table
Let try the example from the Instruction Help as to
check whether data is correct
Description Value
Set Pulse 50,000
Set Speed 50,000
Chapter 4-13-9
How do we know the display speed is true?
• Check speed of the Servo motor from CX-Drive
Step Description Picture
1 Click on Monitor > Real Time Trace
Click to start
Chapter 4-13-9
How do we know the display speed is true?
• ACC/DEC control with interlock
Target Frequency:
50,000Hz
Set Pulse:
50,00 pulse
Chapter 4-14
How can we have different control setting to
run Servo Motor?
Explain
on the
later
slide
Chapter 4-14-2
Recipe Selection
• Create Recipe selection on selecting Recipe
Step Description Recipe Data
3 Click on Tag tab
Follow as the
picture on the
right RW 0 RW 4 RW 8
RW 2 RW 6 RW 10
Chapter 4-14-3
Create Recipe Menu
• Create Recipe menu on selecting Recipe
Step Description Recipe menu
3 Click on Graphics
RW 0 RW 4 RW 8
RW 2 RW 6 RW 10
Chapter 4-14-4
Explanation
Set Pulse Set Speed Set Pulse Set Speed Set Pulse Set Speed
Recipe Menu
RW 0 RW 1 RW 2 RW 3 RW 4 RW 5 RW 6 RW 7 RW 8 RW 9 RW 10 RW 11
Recipe Selection
Recipe 1 Map to RW 0
Recipe 2 Map to RW 4
Recipe 3 Map to RW 8
RW 2 RW 6 RW 10
Chapter 4-14-5
Recipe Transfer to PLC
• Click and drag the Recipe Data and place it in the window
Step Description Recipe Data
1 Basic Attributes
4 Word cos:
2 word from Set Pulse (D440-D441)
2 Word from Set Speed (D442-D443)
Chapter 4-14-5
Recipe Transfer to PLC
• Click and drag the Recipe Data and place it in the window
Step Description Recipe Data
3 Click on Tag tab
4 Word cos:
2 word from Set Pulse (D440-D441)
2 Word from Set Speed (D442-D443)
Chapter 4-14-6
Recipe Upload From PLC
• Click and drag the Recipe Data and place it in the window
Step Description Recipe Data
3 Click on Tag tab
2
Chapter 4-14-8
NB Display
Step 2 Step 3
Step 5
Step 1
Step 4
Step 1: Key in the different recipe menu Step 4: Value from recipe 1 transfer to Data Memory
Step 2: Select the recipe you desired area (D440-D443)
Step 3: Download the recipe to PLC Step 5: Run the motor CW or CCW and view the
different
Step 6: Try different recipe and download to the Data
memory area(D440-D443)
Chapter 4-14-9
Create Recipe Download to USB Drive
• Click and drag the Function Key and place it in the window
Step Description Recipe Data
1 Basic Attributes
4 Word cos:
2 word from Set Pulse (D440-D441)
2 Word from Set Speed (D442-D443)
Chapter 4-14-9
Create Recipe Download to USB Drive
• Click and drag the Function Key and place it in the window
Step Description Recipe Data
3 Click on Tag tab
4 Word cos:
2 word from Set Pulse (D440-D441)
2 Word from Set Speed (D442-D443)
Chapter 4-14-10
Recipe Upload from USB Drive
• Click and drag the Function Key and place it in the window
Step Description Recipe Data
3 Click on Tag tab
2
Chapter 4-14-12
How to Download Recipe to USB Drive?
• Run and test
Step Description Display Number
1 Click “Chapter 4-2” button, it will send
you to Frame18 “Recipe” page
Note: Please insert the USB Drive Step 1: Value set Step 2: Click on the
before try for Recipe Menu Export Recipe from HMI
• Click Ok!
Step 5: Name the
recipe you want.
(Ex. recipe1)
Set Pulse 0 0 0
Set Speed 0 0 0
• Click Ok!
Step 6: Select the
recipe
(Ex. recipe1)
Thank you!