You are on page 1of 183

Chapter 4

CP1E-N[]S1 to G5 Lite Servo with NB


Objective

• 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 -1 What Hardware will we be • Chapter 4 -1 What Hardware will we be using


using in this Topic? in this Topic?
• 4-1-1 Basic Introduction on PLC • 4-1-7 Basic Introduction on Cables needed
• 4-1-1i The Complete CP1E-N[]S1 Family • 4-1-7i Cable Type
• 4-1-2 Human Machine Interface (HMI)
• 4-1-2i The Complete HMI Family • Chapter 4-2 How are we going to connect the
• 4-1-3 Power Supply components?
• 4-1-3i The Complete Power Supply • 4-2-1 Wiring Diagram
Family
• 4-1-4 Basic Introduction on Servo Drive • Chapter 4-3 Do we need to do setting for the
• 4-1-4i The Complete G5 Lite Family Servo Drive? How?
• 4-1-5 Basic Introduction on Servo Motor • 4-3-1 What will we learn in this topic
• 4-1-5i The Complete Servo Family • 4-3-2 Introduction on CX-Drive
• 4-1-6 Basic Introduction on Terminal • 4-3-3 Input Type Servo drive Setup
Block • 4-3-4 Input Type Servo drive Setup
• 4-1-6i The Complete Terminal Block • 4-3-5 Setting For Servo Drive
Family • 4-3-6 Transfer Setting
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 -7 What do we need to do to let • Chapter 4 -8 What do we need to do to let the


the Servo Motor Run? Servo Motor Run?
• 4-7-1 What will we learn in this topic • 4-8-3 Download to NB
• 4-7-2 Interlock Control • 4-8-4 NB Display
• 4-7-3 Create Interlock Servo Program • 4-8-5 ACC/DEC with I/O Address
• 4-7-4 How does this interlock works? • 4-8-6 ACC/DEC with Interlock Program
• 4-7-5 Online mode • 4-8-7 NB Display
• 4-7-6 Transfer PLC Program • 4-8-8 Online mode
• 4-7-7 Create Interlock Servo Control at • 4-8-9 Transfer PLC Program
NB HMI • 4-8-10 Monitor HMI with Inverter
• 4-7-8 Download to NB
• 4-7-9 NB Display • Chapter 4-9 How do we know the display
• 4-7-10 Monitor HMI with PLC speed is true?
• 4-9-1 Check with CX-Drive
• Chapter 4 -8 What do we need to do to let • 4-9-2 How to know the menu is right?
the Servo Motor Run?
• 4-8-1 What will we learn in this topic
• 4-8-2 ACC/DEC Control
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?

• Chapter 4 -14 What kind of program • Information


function needed for this topic?
• 4-14-1 What will we learn in this topic
• 4-14-2 Recipe Selection
• 4-14-3 Create Recipe Menu
• 4-14-4 Explanation
• 4-14-5 Recipe Transfer to PLC
• 4-14-6 Recipe Upload From PLC
• 4-14-7 Download to NB
• 4-14-8 NB Display
• 4-14-9 Create Recipe Download to USB
Drive
• 4-14-10 Recipe Upload from USB Drive
• 4-14-11 Download to NB
Chapter 4-1
What Hardware will we be using in this
Topic?
Chapter 4-1-1
Basic Introduction on PLC

S/N Product Qty


1 PLC: CP1E-N30S1 1
2 NB: NB10W-TW01B 1
3 Power Supply: S8JX-G03524CD 1
4 Servo Drive R88D-KP01H 1
5 OMNUC G5-series Servomotor: R88M-KE10030H-S2 1
6 Control Cables for Connector Terminal Block: Terminal Block XW2D-50G6 1
7 RS232C (Male to Male) 1
8 USB plug Connector 1
9 Motor Power Cables: R88A-CAGA003S 1
10 Encoder Cables:R88A-CRGB003C 1
11 Connector Terminal Block Cables:XW2Z-100J-B24 1
12 Type B-mini USB cable 1
13 Wires A few
Chapter 4-1-1i
The Complete CP1E-N[]S1 Family
Chapter 4-1-1i
The Complete CP1E-N[]S1 Family
S1-type
30 I/O points 40 I/O points 60 I/O points

Difference between S1 and S


Chapter 4-1-2
Basic Introduction on NB HMI

S/N Product Qty


1 PLC: CP1E-N30S1 1
2 NB: NB10W-TW01B 1
3 Power Supply: S8JX-G03524CD 1
4 Servo Drive R88D-KP01H 1
5 OMNUC G5-series Servomotor: R88M-KE10030H-S2 1
6 Control Cables for Connector Terminal Block: Terminal Block XW2D-50G6 1
7 RS232C (Male to Male) 1
8 USB plug Connector 1
9 Motor Power Cables: R88A-CAGA003S 1
10 Encoder Cables:R88A-CRGB003C 1
11 Connector Terminal Block Cables:XW2Z-100J-B24 1
12 Type B-mini USB cable 1
13 Wires A few
Chapter 4-1-2i
The Complete HMI Family

HMI

NB3Q- NB3Q- NB5Q- NB5Q- NB7W-


Model NB7W-TW00B NB10W-TW01B
TW00B TW01B TW00B TW01B TW01B
Memory USB USB USB USB
- - -
interface Memory Memory Memory Memory
10/100 10/100 10/100
Ethernet - - - 10/100 base-T
base-T base-T base-T
RS-232C RS-232C
Serial (COM1) RS-422A RS-422A RS-232C RS-232C RS-232C RS-232C RS-232C
RS-485 RS-485
RS-232C RS-232C RS-232C RS-232C RS-232C
Serial (COM2) - - RS-422A RS-422A RS-422A RS-422A RS-422A
RS-485 RS-485 RS-485 RS-485 RS-485
Chapter 4-1-3
Basic Introduction on Power Supply

S/N Product Qty


1 PLC: CP1E-N30S1 1
2 NB: NB10W-TW01B 1
3 Power Supply: S8JX-G03524CD 1
4 Servo Drive R88D-KP01H 1
5 OMNUC G5-series Servomotor: R88M-KE10030H-S2 1
6 Control Cables for Connector Terminal Block: Terminal Block XW2D-50G6 1
7 RS232C (Male to Male) 1
8 USB plug Connector 1
9 Motor Power Cables: R88A-CAGA003S 1
10 Encoder Cables:R88A-CRGB003C 1
11 Connector Terminal Block Cables:XW2Z-100J-B24 1
12 Type B-mini USB cable 1
13 Wires A few
Chapter 4-1-3i
The Complete Power Supply Family
Chapter 4-1-4
Basic Introduction on Servo Drive

S/N Product Qty


1 PLC: CP1E-N30S1 1
2 NB: NB10W-TW01B 1
3 Power Supply: S8JX-G03524CD 1
4 Servo Drive R88D-KP01H 1
5 OMNUC G5-series Servomotor: R88M-KE10030H-S2 1
6 Control Cables for Connector Terminal Block: Terminal Block XW2D-50G6 1
7 RS232C (Male to Male) 1
8 USB plug Connector 1
9 Motor Power Cables: R88A-CAGA003S 1
10 Encoder Cables:R88A-CRGB003C 1
11 Connector Terminal Block Cables:XW2Z-100J-B24 1
12 Type B-mini USB cable 1
13 Wires A few
Chapter 4-1-4i
The Complete G5 Lite Family

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

S/N Product Qty


1 PLC: CP1E-N30S1 1
2 NB: NB10W-TW01B 1
3 Power Supply: S8JX-G03524CD 1
4 Servo Drive R88D-KP01H 1
5 OMNUC G5-series Servomotor: R88M-KE10030H-S2 1
6 Control Cables for Connector Terminal Block: Terminal Block XW2D-50G6 1
7 RS232C (Male to Male) 1
8 USB plug Connector 1
9 Motor Power Cables: R88A-CAGA003S 1
10 Encoder Cables:R88A-CRGB003C 1
11 Connector Terminal Block Cables:XW2Z-100J-B24 1
12 Type B-mini USB cable 1
13 Wires A few
Chapter 4-1-5i
The Complete Servo Family

3000 r/min 2000 r/min 1000 r/min


200V 200V 200V 200V 200V 200V
Without brake With brake Without brake With brake Without brake With brake
50W 50W 1KW 1KW 900W 900W
100W 100W 1.5KW 1.5KW 2KW 2KW

200W 200W 2KW 2KW 3KW 3KW

400W 400W 3KW 3KW - -


750W 750W 4KW 4KW - -
1KW 1KW 5KW 5KW - -
2KW 2KW - - - -
3KW 3KW - - - -
4KW 4KW - - - -
5KW 5KW - - - -
Chapter 4-1-6
Basic Introduction on Terminal Block

S/N Product Qty


1 PLC: CP1E-N30S1 1
2 NB: NB10W-TW01B 1
3 Power Supply: S8JX-G03524CD 1
4 Servo Drive R88D-KP01H 1
5 OMNUC G5-series Servomotor: R88M-KE10030H-S2 1
6 Control Cables for Connector Terminal Block: 1
Terminal Block XW2D-50G6
7 RS232C (Male to Male) 1
8 USB plug Connector 1
9 Motor Power Cables: R88A-CAGA003S 1
10 Encoder Cables:R88A-CRGB003C 1
11 Connector Terminal Block Cables:XW2Z-100J-B24 1
12 Type B-mini USB cable 1
13 Wires A few
Chapter 4-1-6i
The Complete Terminal Block Family

XG4A XG4C MR Sockets MR Plugs


MIL Connectors MIL Connectors
20 Poles 20 Poles 20 Poles 20 Poles
34 Poles 34 Poles 34 Poles 34 Poles
40 Poles 40 Poles 50 Poles 50 Poles
50 Poles 50 Poles
Chapter 4-1-7
Basic Introduction on Cables needed

S/N Product Qty


1 PLC: CP1E-N30S1 1
2 NB: NB10W-TW01B 1
3 Power Supply: S8JX-G03524CD 1
4 Servo Drive R88D-KP01H 1
5 OMNUC G5-series Servomotor: R88M-KE10030H-S2 1
6 Control Cables for Connector Terminal Block: Terminal Block XW2D-50G6 1
7 RS232C (Male to Male) 1
8 USB plug Connector 1
9 Motor Power Cables: R88A-CAGA003S 1
10 Encoder Cables:R88A-CRGB003C 1
11 Connector Terminal Block Cables:XW2Z-100J-B24 1
12 Type B-mini USB cable 1
13 Wires A few
Chapter 4-1-7i
Cable Type

RS232C (Male to Male) USB plug Connector


HMI PLC

HMI /
PLC PC

XW2Z-200T
Chapter 4-1-7i
Cable Type

Motor Power Cables: R88A-CAGA003S Encoder Cables: R88A-CRGB003C


(Global Non-Flexible Cable) (Global Non-Flexible Cable)

R88A-CAGA003S R88A-CRGB003C
Chapter 4-1-7i
Cable Type

Connector Terminal Block Cables Type B-mini USB cable

Servo Drive PC
Chapter 4-2
How are we going to connect the
components?

Answer: Just follow the wiring diagram


Chapter 4-2-1
Wiring Diagram
Connect to
AC 230V
Connect to
DC 24V
Connect with
mini –USB to PC
USB cable from PC (For CX-Drive)
(CX-Programmer)

Connect with
Connect to HMI
PLC connect to Servo Drive Cable
using RS232 cable
Terminal block

Connect to
AC 230V

Motor
encoder
connector

Power cable for


servomotor
(connector)
Connect to
COM1

Connect to
DC 24V
Chapter 4-2-1
Wiring Diagram

• Wire PLC to Terminal block


Chapter 4-3
Do we need to do setting for the Servo
Drive? How?

Answer: Yes, we will be using CX-Drive to do


the setting
Chapter 4-3-1
What will we learn in this topic
• Understand
– The feature of CX-Drive (For Servo Drive)
– How to do setting on the CX-Drive
– How to online and download the setting to the Servo Drive
Chapter 4-3-2
Introduction on CX-Drive

• Basic Feature of a CX-Drive

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

Choose Servo and the


Drive Series for easy
detect
Chapter 4-3-4
Input Type Servo drive Setup
• To Auto detect device (Auto Online too )
• Click on Drive > AutoDectect
• Ctrl + D
• Click on the icon

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

3 Once the Transfer is finish, a pop-up of


successful transfer appear then click ok
Chapter 4-3-6
Transfer Setting
• Steps to follow
Step Description Display Number
4 CX-Driver start transferring the setting
to the MX2 Inverter

5 Once the Transfer is finish, a pop-up of


successful transfer appear then click ok
Chapter 4-3-6
Transfer Setting
• Steps to follow
Step Description Display Number
6 After transferring the setting for the
MX2 Inverter, you need to POWER
CYCLE the inverter to enable the setting
Chapter 4-4
What do we need to do to let the
Servo Motor Run?

Answer: Using Speed Output control (SPED)


Chapter 4-4-1
What will we learn in this topic
• Understand
– How to create New frame
– How to create Clockwise(CW) and Counter-Clockwise (CCW) button
– How to create Input pulse value
Chapter 4-4-2
Set up I/O list

• We be using this range of I/O for this whole chapter


Name Address
Word W30 – W39
Data Memory D400 – D499

• RUN CW/CCW & STOP function will be using


these I/O address stated below:
Name Address
Clockwise direction (CW_RUN) W31.00
Counter - Clockwise direction (CCW_RUN) W31.01
DRIVE_STOP W31.02
Drive Freq D400
Chapter 4-4-3
Create New Frame
• Create a Frame16 for Servo Drive
Step Description New Frame
1 Go to Toolbar
Click on the
Add
Window
icon

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)

3 View form Toolbar


Frame has
be added
once click
OK in Step 2
Chapter 4-4-4
Create Link Function
• Click and drag the Function Key and place it in the window
Step Description Chapter 4-1 Button
1 Function Key tab

Click and drag the icon


2 Click on Tag tab and do the setting,
Check Use Tag to display after finishes the
text on the icon setting, click to the
location you desire.
When it not activate is
state 0, display text

3 Click on Graphic tab

Select the design


of the button
Chapter 4-4-5
Create Motor Run Clockwise (CW) Button
• Click and drag the Bit State Switch to the window
Step Description RUN CW Button
1 Basic Attributes tab

2 Click on Bit State Switch tab


Chapter 4-4-5
Create Motor Run Clockwise (CW) Button
• Click and drag the Bit State Switch to the window
Step Description RUN CW Button
3 Click on Tag tab

4 Click on Graphic tab


Chapter 4-4-6
Create Motor Run Counter Clockwise (CCW) Button

• Click and drag the Bit State Switch to the window


Step Description RUN CCW Button
5 Basic Attributes tab

6 Click on Bit State Switch tab


Chapter 4-4-6
Create Motor Run Counter Clockwise (CCW) Button

• Click and drag the Bit State Switch to the window


Step Description RUN CCW Button
7 Click on Tag tab

8 Click on Graphic tab


Chapter 4-4-7
Create Motor Stop Button
• Click and drag the Bit State Switch to the window
Step Description STOP Button
9 Basic Attributes tab

10 Click on Bit State Switch tab


Chapter 4-4-7
Create Motor Stop Button
• Click and drag the Bit State Switch to the window
Step Description STOP Button
11 Click on Tag tab

12 Click on Graphic tab


Chapter 4-4-8
Create Set Pulse to servo motor
• Click and drag the Number Input to the window
Step Description Display Number
13 Basic Attributes tab

14 Click on Numeric Data tab


Chapter 4-4-8
Create Set Pulse to servo motor
• Click and drag the Number Input to the window
Step Description Display Number
15 Click on Graphic tab
Chapter 4-4-9
Method of Download to NB
• Method of downloading the drawing to NB
– Download way
– System Manager
Chapter 4-4-10
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-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

2 There no PLC program yet, so when


click on the RUN CW/CCW Button, there
nothing happen
Chapter 4-5
How to create program for Servo Drive in CX-
Programmer?

Answer: Using CX-Programmer


Chapter 4-5-1
What will we learn in this topic
• Understand
– The function of SPED(885) instruction
– The function of INI(880) instruction
– How to program PLC to start the motor
– How to start the servo motor
Chapter 4-5-2
CX-Programmer
• Basic Feature of a CX-Programmer

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.

4 Once Finish, it will display like this


Chapter 4-5-4
Let create Servo Program
• Create CW_RUN and CCW_RUN drive

Step Description Table


1 Servo run Clockwise Direction
Address Register
• Create a CW_RUN (W31.00) to the
Speed output SPED(885) W31.00 CW_RUN
• Create a CCW_RUN (W31.01) to W31.01 CCW_RUN
the Speed output SPED(885)
Chapter 4-5-4
Let create Servo Program
• Create CW_RUN and CCW_RUN drive

Port

Step Explanation W480-E1-05, Page 12-4


1 SPED(885)
• Port is #0 as when we do wiring on
the PLC
• For SPED Instruction, Right Click on
the Instruction SPED(885) and
click Instruction Help
• For Port setting, Check CP1E
For CIO100.00, port is “0”
Manual (W480-E1-05), page 12-4 For CIO100.01, port is “1”
For CIO100.02, port is “2”
For CIO100.03, port is “3”
Chapter 4-5-4
Let create Servo Program
• Create CW_RUN and CCW_RUN drive

Output
mode

Step Explanation Instruction SPED(885)


1 SPED(885)
• Output mode follow the table on
the right
• CW direction is #0100
• CCW direction is #0110

Pulse Output method Direction Mode


CW 1 0 0
CCW 1 1 0
Chapter 4-5-4
Let create Servo Program
• Create CW_RUN and CCW_RUN drive

Number of pulse when start

Step Explanation Instruction SPED(885)


1 SPED(885)
• Pulse Value is depend on the
model. For G5 Lite model, is up to
100,000Hz
Chapter 4-5-4
Let create Servo Program
• Create STOP Servo Drive

Step Description Table


2 Servo Stop
Address Register
• Create a DRIVE_STOP (W31.02) to
the MODE CONTROL INI(880) W31.02 DRIVE_STOP
Chapter 4-5-4
Let create Servo Program
• Create STOP Servo Drive

Port

Step Explanation Instruction INI(880)


2 INI(880)
• Port is #0 as when we do wiring on For using pulse output 0, port is #0000

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

Step Explanation Instruction INI(880)


2 INI(880)
• Function use is stop pulse output
so Control Data is #0003
• For INI Instruction, Right Click on
the Instruction INI(880) and click
Instruction Help

Stop the pulse output, select #0003


Chapter 4-5-4
Let create Servo Program
• Create STOP Servo Drive

First Word With New PV

Step Explanation Instruction INI(880)


2 INI(880)
• Set it to “0” as it not in use
• For INI Instruction, Right Click on
the Instruction INI(880) and click
Instruction Help
Chapter 4-5-5
Online mode
• Click Work Online to go Online
Offline Mode Online Mode

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

Step Description Setting


1 Double click on the Setting
PLC to HMI
Option

2 PLC Setting pop-up appear, click on


Built-In RS232C Port tab to set the
Communications Setting

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

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

2 Check the Settings before download,


else there will be no communication
between PLC and Inverter due to setting
wasn’t being transfer.
Chapter 4-5-8
Can the servo Run?
• Run and test out again
Step Description Display Number
1 Click on the Chapter 4-1 to go Frame 16

2 Next slide show the result


Chapter 4-5-9
Monitor HMI with PLC
• Once CW button is turn on
HMI View SERVO View
Step 2: Press the
CW button to start
motor

Clockwise
Step 1: Press and tenkey pop-up appear.
(CW)
Key in 100000 (100,000 pulses)

Step 3: Press the


STOP button to
start motor

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)

Step 3: Press the


STOP button to
start motor

STOP
Chapter 4-6
How do we know the display speed is true?

Answer: Using CX-Drive’s Real Time Trace


Chapter 4-6-1
What will we learn in this topic
• Understand
– How to use real time trace
– How to View motor speed from CX-Drive
Chapter 4-6-2
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

2 Check Monitor for CSPD


Chapter 4-6-2
How do we know the display speed is true?
• Check speed of the Servo motor from CX-Drive

Step Description Picture


3 Click Drive > Work Online
Click then Work Online shortcut icon

2 Click the start button

Click to start
Chapter 4-6-3
Monitor HMI to CX-Drive
• Once CCW button is turn on

HMI View SERVO View


Step 1: Press the
RUN button to start
motor

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.

How to get 600rpm?


Servo frequency (MAX) / gear integer setting = rps x 60 = rpm
1,000,000 / 10,000 = 100rps x 60 = 600rpm
Chapter 4-7
How to prevent accidental control?

Answer: Using Interlocking


Chapter 4-7-1
What will we learn in this topic
• Understand
– How to Create interlock on the PLC program using Move function
– How to Create interlock on the NB graphic
Chapter 4-7-2
Interlock Control
• Interlock Drive will be using these I/O address
stated below:
Name Address
SPED Interlock W33
CCW_Interlock W33.00
CW_Interlock W33.01
Chapter 4-7-3
Create Interlock Servo Program
• Follow the diagram stated below

Step Description Interlock


1 Interlock Control
• W33 (SPED Interlock) - Use for Address Register Address Register
interlocking by turning ON its
W33 SPED Interlock W33.00 CCW_Interlock
channel bit to disable either CW
(W33.00 active) or CCW (W33.01 W33.01 CW_Interlock
active) direction control.
Chapter 4-7-4
How does this interlock works?
• By using MOV function

S/N Explanation Interlock


1 When CW_RUN (CW31.00) is energized,
MOV function send #1 to W33 which Address Register Address Register
activate W33.01 to energized.
W33 SPED Interlock W33.00 CCW_Interlock
W33.01 CW_Interlock
Chapter 4-7-4
How does this interlock works?
• By using MOV function

S/N Explanation Interlock


2 When accidentally press on CCW_RUN
button, motor unable to run Clockwise Address Register Address Register
direction due to the interlock
W33 SPED Interlock W33.00 CCW_Interlock
W33.01 CW_Interlock
Chapter 4-7-4
How does this interlock works?
• By using MOV function

S/N Explanation Interlock


3 To Reset the interlock, user have to
press the Drive_Stop button (W31.02) Address Register Address Register
which MOV function send #0 to W33
W33 SPED Interlock W33.00 CCW_Interlock
which activate W33.00 to energized.
W33.01 CW_Interlock
Chapter 4-7-5
Online mode
• Click Work Online to go Online

Offline Mode Online Mode

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

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

2 Check the Settings before download,


else there will be no communication
between PLC and Inverter due to setting
wasn’t being transfer.
Chapter 4-7-7
Create Interlock Servo Control at NB HMI
• Create Interlock CW and CCW button
Step Description Scroll Bar
1 Bit State Switch Component Attribute

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

For CW button (W31.00), interlock address is (W33.01)


Button Address For CCW button (W31.01), interlock address is (W33.00)

CW interlock 33.01

CCW interlock 33.02


Chapter 4-7-8
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-7-9
NB Display
• Run and test
Step Description Display Number
1 Click on the Chapter 3-1 to go Frame 14

2 Next slide show the result


Chapter 4-7-10
Monitor HMI with PLC
• Changing Speed by entering value
HMI View MX2 Inverter View

Step 3: STOP button


can still stop drive in
either mode

Step 1: Press Step 2: Press CCW button but servo motor


CW button for unable to click as the interlock prevent user
servo motor to from clicking. Clockwise
run (CW)
Stop button still can be press as to stop servo.

Step 4: Press CCW button for servo motor to run

Step 6: STOP button


can still stop drive in
either mode

Step 5: Press CW button but servo motor unable to


click as the interlock prevent user from clicking.
Counter Clockwise
(CCW)
Stop button still can be press as to stop servo.
Chapter 4-8
How control the speed of the Servo Motor?

Solution: Use Acceleration and Deceleration


(ACC/DEC)
Chapter 4-8-1
What will we learn in this topic
• Understand
– The function of ACC(888) instruction
– How to program PLC to control the acceleration and deceleration
speed of the motor
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
1 Create 1 CW (W31.03 ), 1 CCW (W31.04), 1 Stop
(W31.02) pushbutton using Reset type.

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

2 There no PLC program yet, so when


click on the RUN CW/CCW Button, there
nothing happen
Chapter 4-8-5
ACC/DEC with I/O Address
• ACC/DEC Drive with Interlock will be using these
I/O address stated below:
Name Address
ACC_CW W31.03
ACC_CCW W31.04
CW_ACC/DEC D404
CCW_ACC/DEC D409
ACC_Interlock W34
ACC_CW_Interlock W34.00
ACC_CCW_Interlock W34.01
Chapter 4-8-6
ACC/DEC with Interlock Program
• ACC/DEC control with interlock

Acc Interlock

Step Description Table


1 ACC/DEC control with interlock Address Register
• W33 (SPED Interlock) - Use for
W31.03 ACC_CW
interlocking by turning ON its
channel bit to disable either CW W31.04 ACC_CCW
(W33.00 active) or CCW (W33.01 D404 CW_ACC/DEC
active) direction control. D409 CCW_ACC/DEC
W34 ACC_Interlock
W34.00 ACC_CW_Interlock
W34.01 ACC_CCW_Interlock
Chapter 4-8-6
ACC/DEC with Interlock Program
• ACC/DEC control with interlock

Port

Step Explanation Table


2 ACC(888)
• Port is #0 as when we do wiring on
the PLC
• For ACC Instruction, Right Click on
the Instruction ACC(888) and click
Instruction Help
• For Port setting, Check CP1E
Manual (W480-E1-05), page 12-4 For CIO100.00, port is “0”
For CIO100.01, port is “1”
For CIO100.02, port is “2”
For CIO100.03, port is “3”
Chapter 4-8-6
ACC/DEC with Interlock Program
• ACC/DEC control with interlock

Output mode

Step Explanation Table


2 ACC(888)
• Output mode follow the table on
the right
• CW direction is #0100
• CCW direction is #0110

Pulse Output method Direction Mode


CW 1 0 0
CCW 1 1 0
Chapter 4-8-6
ACC/DEC with Interlock Program
• ACC/DEC control with interlock

First Word of
Setting Table

Step Explanation Table


2 ACC(888)
• These uses 3 WORD.
• D404: ACC/DEC rate
• D405-D406: Target Freq
Chapter 4-8-7
NB Display
• Run and test
Step Description Display Number
1 Click on the Chapter 4-1 to go Frame 16

2 Next slide show the result


Chapter 4-8-8
Online mode
• Go Online
Offline Mode Online Mode

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

2 Check the Settings before download,


else there will be no communication
between PLC and Inverter due to setting
wasn’t being transfer.
Chapter 4-8-10
Monitor HMI with Inverter
• Test with Acceleration
HMI View Servo Drive View
3rd: Press the CCW
button to start
motor
1st: Set a rate on
how fast to
ACC/DEC

2nd: Set a rate on


how many pulse
per cycle
Counter Clockwise
(CCW)

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?

Answer: Using CX-Drive’s Real Time Trace


Chapter 4-9-1
Check with CX-Drive
• Check speed of the Servo motor from CX-Drive
Step Description Picture
1 Click on Monitor > Real Time Trace

2 Check Monitor for CSPD


Chapter 4-9-1
Check with CX-Drive
• Check speed of the Servo motor from CX-Drive
Step Description Picture
3 Click Drive > Work Online
Click then Work Online shortcut icon

4 Click the start button

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

S/N Explanation Table


1 By following the diagram from the
Instruction Help reading:
• CW-ACC/DEC rate: 250
• CW-ACC/DEC Target Frequency:
50,000
Chapter 4-10
Create Control Speed of the Servo motor
through NB HMI
Chapter 4-10-1
Pulse Output Control
• Create new Frame (Frame17) and Link button to Frame17 at Frame 16
• Refer to Chapter 1 on how to create the page and button

Step Description Picture


1 Create Frame17 for Next topic

2 • Create a change window to Frame17 and


name it PLS2 & PULS
• Place the button at Frame16
Chapter 4-10-1
Pulse Output Control
• Create CW, CCW, STOP button and ACC rate and DEC rate input value at Frame17
• Refer to Chapter 1 on how to create the page and button

Step Description Picture


3 Create 1 each:
CW (W31.05) with Interlock (W35.01)
CCW (W31.06), with Interlock (W35.00)
1 Stop (W31.02) pushbutton using Reset type.

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

Step Description Picture


5 Create 1 each:
•Target Frequency (D422)
•Pulse Output Amount (D424)
•Start Frequency (D430)

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

Step Description Picture


6 • Create a change window to Frame16 and
name it SPED & ACC
• Place the button at Frame17
Chapter 4-10-2
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-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

2 Click “PLS2 & PULS“ button at Frame16,


it will send you to Frame17“PLS2 &
PULS” page
Chapter 4-10-3
NB Display
• Run and test
Step Description Display Number
3 There no PLC program yet, so when
click on the RUN CW/CCW Button, there
nothing happen

4 Click “SPED & ACC“ button at Frame17,


it will send you to Frame16 “SPED &
ACC” page
Chapter 4-11
What kind of program function needed for this
topic?

Answer: Using PLS2 Function


Chapter 4-11-1
What will we learn in this topic
• Understand
– The function of PLS2(887) instruction
– How to control the Speed of the acceleration and deceleration of the
servo motor within a certain cycle
– Create interlock
Chapter 4-11-2
PLS2 with Interlock Program
• This topic will be using these I/O address stated
below:
Name Address
PLS2_CW W31.05
PLS2_CCW W31.06
PLS2_Set_table D420
PLS2_Start_Freq D430
PLS2_Interlock W35
PLS2_CW_Interlock W35.00
PLS2_CCW_Interlock W35.01
Chapter 4-11-3
How do we start using PLS2 function?
• Create Write Control Speed of the motor

Step Description Table


1 PLS2 control with interlock Address Register
• W35 (PLS2 Interlock) - Use for
W31.05 PLS2_CW
interlocking by turning ON its
channel bit to disable either CW W31.06 PLS2_CCW
(W35.00 active) or CCW (W35.01 D420 PLS2_Set_Table
active) direction control. D430 PLS2_Start_Freq
W35 PLS2_Interlock
W35.00 PLS2_CW_Interlock
W35.01 PLS2_CCW_Interlock
Chapter 4-11-3
How do we start using PLS2 function?
• Create Write Control Speed of the motor

PLS2 Interlock
RESET

Step Description Table


2 PLS2 control with interlock
Address Register
• AT Rung 2, insert a reset interlock
as shown above to reset the W35 PLS2_Interlock
interlock
Chapter 4-11-3
How do we start using PLS2 function?
• Create response feedback from the PLC
Port

S/N Explanation Table


1 PLS2(887)
• Port is #0 as when we do wiring on
the PLC
• For PLS2 Instruction, Right Click on
the Instruction PLS2(887) and click
Instruction Help
• For Port setting, Check CP1E
Manual (W480-E1-05), page 12-4 For CIO100.00, port is “0”
For CIO100.01, port is “1”
For CIO100.02, port is “2”
For CIO100.03, port is “3”
Chapter 4-11-3
How do we start using PLS2 function?
• Create response feedback from the PLC
Output Mode

S/N Explanation Table


2 PLS2(887)
• Output mode follow the table on
the right
• CW direction is #0100
• CCW direction is #0110

Pulse Output method Direction Mode


CW 1 0 0
CCW 1 1 0
Chapter 4-11-3
How do we start using PLS2 function?
• Create response feedback from the PLC
First Word of Settings Table

S/N Explanation Table


3 PLS2(887)
• These uses 3 WORD.
• D420: ACC rate
• D421: DEC rate
• D422: Target Frequency
Chapter 4-11-3
How do we start using PLS2 function?
• Create response feedback from the PLC
First Word of Starting Frequency

S/N Explanation Table


4 PLS2(887)
• These uses 2 WORD
• D430 to D431
• For motor max frequency uses
• 100,000Hz = 0001 86A0
• D431 = 0001
• D430 = 86A0
Chapter 4-11-4
Online mode
• Click Work Online to go Online

Offline Mode Online Mode

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

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

2 Check the Settings before download,


else there will be no communication
between PLC and Inverter due to setting
wasn’t being transfer.
Chapter 4-11-6
NB Display
• Run and test

Step Description Display Number


1 Click on the Chapter 4-1 to go Frame 16

2 Next slide show the result


Chapter 4-11-6i
Monitor HMI with Inverter
• Test with Acceleration

HMI View Servo Drive View


2nd: Press the CCW
button to start
motor

1st: Set the control Counter Clockwise


according to the (CCW)
Table below

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?

Answer: Using CX-Drive’s Real Time Trace


Chapter 4-12-1
What will we learn in this topic
• Understand
– How to use CX-Drive Real Time Trace to view the waveform
– How to see the different in Acceleration and deceleration on start up
and stopping of the servo motor
Chapter 4-12-2
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

2 Check Monitor for CSPD


Chapter 4-12-2
How do we know the display speed is true?
• Check speed of the Servo motor from CX-Drive

Step Description Picture


3 Either click Drive > Work Online
Or click then Work Online shortcut icon

4 Click the start button

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

Pulse Output Amount:


100,000Hz

Step Explanation Table


5 By following the diagram from the
Instruction Help reading:
• ACC rate: 5000
• DEC rate: 2500
• Target Frequency: 50,000Hz ACC rate: DEC rate:
• Pulse Output Amount: 100,000Hz 5000 pulse 2500 pulse
• Start Frequency: 200Hz
Chapter 4-12-3
How to know the menu is right?
• ACC/DEC control with interlock

Target Frequency:
50,000Hz

Start Frequency:
200Hz

Pulse Output Amount:


100,000Hz

Step Explanation Table


6 By following the diagram from the
Instruction Help reading:
• ACC rate: 2500
• DEC rate: 5000
• Target Frequency: 50,000Hz ACC rate: DEC rate:
• Pulse Output Amount: 100,000Hz 2500 pulse 5000 pulse
• Start Frequency: 200Hz
Chapter 4-13
How to set a certain amount of output pulses?

Answer: Using PULS Function


Chapter 4-13-1
What will we learn in this topic
• Understand
– The function of PULS(886) instruction
– How to control how many pulse to run per cycle
Chapter 4-13-2
Control Set Pulse
• Create CW, CCW, STOP button and Set Pulse and Set Speed at Frame 17
• Refer to Chapter 1 on how to create the page and button

Step Description Picture


1 Create 1 each:
CW (W31.07 ) with Interlock (W36.01)
CCW (W31.08), with Interlock (W36.00)
1 Stop (W31.02) pushbutton using Reset type.

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

Step Description Table


1 PULS control with interlock
Address Register
• W36 (PULS Interlock) - Use for
interlocking by turning ON its W31.07 PULS_CW
channel bit to disable either CW W31.08 PULS_CCW
(W36.00 active) or CCW (W36.01 D440 PULS_Set_Table
active) direction control.
D442 PULS_Start_Freq
W36.00 PULS_CW_Interlock
W36.01 PULS_CCW_Interlock
Chapter 4-13-4
How do we start using PULS function?
• Create Write Control Speed of the motor

PLS2 Interlock
RESET

Step Description Table


2 PULS control with interlock
• AT Rung 2, insert a reset interlock Address Register
as shown above to reset the W36 PLS2_Interlock
interlock
Chapter 4-13-4
How do we start using PULS function?
• Create response feedback from the PLC
Port

S/N Explanation Table


1 PULS(886)
• Port is #0 as when we do wiring on
the PLC
• For PULS Instruction, Right Click on
the Instruction PULS (886) and
click Instruction Help
• For Port setting, Check CP1E
Manual (W480-E1-05), page 12-4 For CIO100.00, port is “0”
For CIO100.01, port is “1”
For CIO100.02, port is “2”
For CIO100.03, port is “3”
Chapter 4-13-4
How do we start using PULS function?
• Create response feedback from the PLC
Pulse Type

S/N Explanation Table


2 PULS(886)
• #0000 is relative pulse which value
start from 0 to N pulse
• #0001 is absolute pulse which
value start from –N to +N pulse
Chapter 4-13-4
How do we start using PULS function?
• Create response feedback from the PLC
Number of Pulse

S/N Explanation Table


3 PULS(886)
• Number of pulse is set at DM area
of D440
Chapter 4-13-5
Online mode
• Click Work Online to go Online

Offline Mode Online Mode

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

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

2 Check the Settings before download,


else there will be no communication
between PLC and Inverter due to setting
wasn’t being transfer.
Chapter 4-13-7
NB Display
• Run and test
Step Description Display Number
1 Click on the Chapter 4-2 to go Frame 16
“SPED & ACC” page

2 Click on the “PLS2 & PULS” to go Frame


17 “PLS2 & PULS” page
Chapter 4-13-7
NB Display
• Run and test
Step Description Display Number
3 Next slide show the result
Chapter 4-13-8
Monitor HMI with Inverter
• Test with Acceleration
HMI View Servo Drive View
2nd: Press the CCW
button to start
motor

1st: Set the control Counter Clockwise


according to the (CCW)
Table below

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

2 Check Monitor for CSPD


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
3 Click Drive > Work Online
Click then Work Online shortcut icon

4 Click the start button

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

Pulse Output Amount:


50,000

Step Explanation Table


5 By following the diagram from the
Instruction Help reading: Set Speed:
50,000 Hz
• Set Pulse: 50,000
• Set Speed: 50,000

Set Pulse:
50,00 pulse
Chapter 4-14
How can we have different control setting to
run Servo Motor?

Answer: Create Recipe


Chapter 4-14-1
What will we learn in this topic
• Understand
– How to create recipe for different type of situation
Chapter 4-14-2
Recipe Selection
• Create new Frame (Frame18) at Frame 18
• Refer to Chapter 1 on how to create the page and button

Step Description Picture


1 Create Frame18 for Next topic

2 Copy PULS Control from Frame17 to


Frame18
Chapter 4-14-2
Recipe Selection
• Create Recipe selection on selecting Recipe
Step Description Recipe Data
1 Basic Attributes

2 Click on Multi-State Switch tab


Create 3 recipe

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

4 Click on Graphic tab


Chapter 4-14-3
Create Recipe Menu
• Create Recipe menu on selecting Recipe
Step Description Recipe menu
1 Basic Attributes
• Key in each addresses for different
recipe menu box

Follow as the
picture on the
right RW 0 RW 4 RW 8

2 Click on Numeric Data

Create 3 recipe DWORD = 2WORD

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

• From the Recipe selection is where they start reading data


User Select
Recipe 2

Recipe State 0 State 1 State 2


selection 0 4 8

Data will read from RW4 to RW7 for recipe 2

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 Selection Dropdown List


RW 0 RW 4 RW 8

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

2 Click on Recipe Data tab

The Recipe create will transfer to PLC

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 Click on Graphic tab


Chapter 4-14-6
Recipe Upload From PLC
• Click and drag the Recipe Data and place it in the window
Step Description Recipe Data
1 Basic Attributes

2 Click on Recipe Data tab

The PLC Data will transfer to Recipe Menu

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

4 Click on Graphic tab


Chapter 4-14-7
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-14-8
NB Display

• Try Key in different Recipe Menu and download recipe to PLC


Before Transfer Recipe After Transfer Recipe

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

The PLC Data will transfer to Recipe Menu

2 Click on Recipe Data tab

The PLC Data will transfer to Recipe Menu

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 Click on Graphic tab


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
1 Basic Attributes

The PLC Data will transfer to Recipe Menu

2 Click on Recipe Data tab

The PLC Data will transfer to Recipe Menu

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

4 Click on Graphic tab


Chapter 4-14-11
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-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

2 Next slide show the result


Chapter 4-14-12
How to Download Recipe to USB Drive?
• Run and test
Step Description Display Number
3 Let key in different value for each
Recipe:
Recipe 1 Recipe 2 Recipe 3

Set Pulse 80000 600 50000

Set Speed 80000 3000 100000

Note: Please insert the USB Drive Step 1: Value set Step 2: Click on the
before try for Recipe Menu Export Recipe from HMI

4 • After clicking Export Recipe from Step 3: Recipe


HMI, Recipe Upload pop-up appear Upload pop-up
and you can see the USB Drive that appear

have been inserted to the HMI.


Step 4: you will see
• Click on the usb1 shown in the usb1, click on it
right
Chapter 4-14-12
How to Download Recipe to USB Drive?
• Run and test
Step Description Display Number
5 • Enter the name you want for the
Recipe that you have created.
(Ex. I name the recipe as recipe1)

• Click Ok!
Step 5: Name the
recipe you want.
(Ex. recipe1)

6 • To check whether the recipe is save


in the USB Drive, you can click
again Export Recipe from HMI,
Recipe Upload pop-up appear and
you can click on the usb1.
Step 6: To view the recipe from the USB Drive,
you can either click on “Export Recipe from HMI”
• Then on the top right of the pop- or “Import Recipe to HMI”.
up, you can see the recipe being
save as “.rcp” format
Chapter 4-14-12
How to Upload Recipe from USB Drive?
• Run and test
Step Description Display Number
1 Click “Chapter 4-2” button, it will send
you to Frame18 “Recipe” page

2 Next slide show the result


Chapter 4-14-12
How to Upload Recipe from USB Drive?
• Run and test
Step Description Display Number
3 Let clear the value for each Recipe:

Recipe 1 Recipe 2 Recipe 3

Set Pulse 0 0 0

Set Speed 0 0 0

Note: Please insert the USB Drive Step 2: Click on the


Step 1: Set all Value Import Recipe to HMI
before try to zero

4 • After clicking Import Recipe to Step 3: Recipe


HMI, Recipe download pop-up download pop-up
appear
appear and you can see the USB
Drive that have been inserted to
the HMI.
Step 4: you will see
usb1, click on it
• Click on the usb1 shown in the
right
Chapter 4-14-12
How to Upload Recipe from USB Drive?
• Run and test
Step Description Display Number
5 • Select the recipe as shown on the
Step 5: If there
top right of the pop-up. recipe in the USB
(Ex. Click on recipe1.rcp) Drive, you can see
from here

• Click Ok!
Step 6: Select the
recipe
(Ex. recipe1)

6 • You can see all the value being


transfer to their respecting place.

Step 7: Value from the recipe will be place to


their original place
Information

• Servo Motors and Servo Drives:


– http://www.omron-ap.com/product_info/G5%20Series/index.asp
• CX-Drive:
– http://www.omron-ap.com.sg/downloads/pdf_listing.asp?product_model=NB
Series&catlvl=201
• G5 Lite Servo Motor and Drives (I584-E1-02):
– http://www.omron-ap.com/downloads/pdf_listing.asp?product_model=G5
Series&catlvl=48
• CP1E Manual (W480-E1-05):
– http://www.omron.com.au/downloads/pdf_viewing1.asp?product_model=CP1E&catlvl
=42
END of Chapter 4

Thank you!

You might also like