Omron PLC CP - Hmi NB Rs232
Omron PLC CP - Hmi NB Rs232
Omron PLC CP - Hmi NB Rs232
NB to CP1E-N[]S1 Communication
Objective
• Understand
– the feature of NB Designer (For NB HMI)
– The feature of CX-Programmer (For PLC)
– Set up communication between PLC and HMI
– Create Project and control PLC through NB HMI by touch
• End of Lesson
– Able to bring back the program you have created which include
• Set up communication between PLC and HMI
• Control HMI Lamp
• Insert Number and text
• Display Number and text
• Event and Historical Event
Chapter 1-1-1i
The Complete CP1E-N[]S1 Family
Chapter 1-1-1i
The Complete CP1E-N[]S1 Family
S1-type
30 I/O points 40 I/O points 60 I/O points
HMI
2 NB: NB10W-TW01B 1
HMI /
PLC PC
XW2Z-200T
Chapter 1-2-1
Wiring Diagram
Connect to
DC 24V
Connect to HMI
using RS232 cable
Connect to
AC 230V
NB10W-TW01B
Connect to
COM1
PC
USB to PC
USB port
Connect to
DC 24V
Chapter 1-3
How are we going to create graphic for the
NB HMI?
Name Address
Toggle W0.00
Lamp 1 CIO 101.00
Chapter 1-3-3
Let Talk About NB Designer
• Basic Feature of a NB Designer
Title
Menu
Toolbar
Project files
window
HMI edit
Component window
library
window
Component Project
Compile
list structure
information
window window
window
State
toolbar
Chapter 1-3-4
Create New Project
• Create New Project for NB
Step Description Connection
1 File > New(N) or Ctrl + N to create new
project
Click to Create
New project
Step 1
Step 2
Step 3
Right click on
the NB and
click Edit to
start
Chapter 1-3-9
Create New Frame
• New Frame Start from 10 as Frame 1 to 9 is use for special window
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
Frame Name start from being created
Frame10 as Frame 1 to
9 is used for special
window. (Name can be
change)
4 Graphic tab
Chapter 1-3-13
Create Text
• Click on Text
Step Description Text
1 Select Static text in 2 different way
Method 1: Click on
the A icon and Text
Attribute pop-up
appear
Method 2: Click
on Draw tab and
Text Attribute
pop-up appear
Chapter 1-3-13
Create Text
• Placing of Text
Step Description Text
2 Name Label for the Header, button and
Lamp
2
Chapter 1-3-16
NB Display
• Let try it out
Step Description Display Number
1 Click on the Chapter 1-1 to go Frame 10
Toolbar
Project
Workspace
Diagram
Workspace
Status Bar
Chapter 1-4-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 1-4-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.
Grey
Background
Click here
to Online
mode
Click here to
Program mode
Chapter 1-4-6
Com Setting for PLC
• Set the PLC setting to the same as the NB HMI
Step Description Display Number
1 Double click on the Setting
1
1
2
RESET pushbutton
and indicating Light
Step 4: Feedback
receive after PLC
output is activated Step 2: In PLC, this show
that the HMI and PLC is
communicating and that
why when Press toggle
button, W0.01 contact is Step 3: When Toggle is
Step 5: Press the OFF button (W0.01)
in green. activate
to de-activate the L2 (101.01)
Chapter 1-4-9ii
Example - RESET
• Let try it out
HMI View PLC View
Step 4: Feedback
receive after PLC
output is activated
Chapter 1-5
What other function do NB have?
2
Chapter 1-5-5
NB Display
• Let try it out
Step Description Display Number
1 Click on the Chapter 1-1 to go
Frame 10
Method 2 Method 1
Chapter 1-5-6
Monitor from PLC
• To view from PLC
Step Description Display Number
3 You will see this table below, next
key in W1 at the Address area
2
Chapter 1-5-10
NB Display
• Let try it out
Step Description Display Number
1 Click on the Chapter 1-1 to go
Frame 10
Move the
mouse and
place the
button here
2 Click on Multiple State Setting tab
2
Chapter 1-5-16
NB Display
• Let try it out
Step Description Display Number
1 Click on the Chapter 1-1 to go
Frame 10
Value for
different
state
Chapter 1-5-17
Create Dropdown List
• Click and drag the Multiple State Switch and place it in the window
Step Description Dropdown List
3 Click on Tag tab
Value for
different
state
Chapter 1-5-18
Create List
• Click and drag the Multiple State Switch and place it in the window
Step Description List
3 Click on Tag tab
Step 1
Change the
background color
(Ex. Grey)
2 Save picture
4 Save picture
Delete the box
after creating
multiple state
VG graphic
Number
of state
Chapter 1-5-20
Create Multiple State Display
• Click and drag the Multiple State Display and place it in the window
Step Description Multiple State Display
3 Click on Tag tab
Tag must be created
else the display will
not appear when it
being selected
Select Background as
we create for this
cos of it multi-state
Chapter 1-5-21
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 1-5-22
NB Display
• Let try it out
Step Description Display Number
1 Click on the Chapter 1-1 to go
Frame 10
2
Chapter 1-5-27
NB Display
• Let try it out
Step Description Display Number
1 Click on the Chapter 1-1 to go
Frame 10
Event Display
have no
background Paste the
color Background
box here
Click and
Drag
Chapter 1-6-4
Create Event Display
• Click and drag the Event Display and place it in the window
Step Description Event
3 Basic Attributes tab
Select the
format
you want
to view
from the
display
Chapter 1-6-5
Create Event Information
• Click the Event Information
Step Description Event
1 Basic Attributes tab
Add Event
2 Event (Address)
Key in the
Address you
want to see
Chapter 1-6-5
Create Event Information
• Click the Event Information
Step Description Event
3 Event (Attribute)
When the
Event is
trigger
then event
receive
4 Event (Text)
Trigger: ON
Content: L3 ON
3 Address type: W1
Data type: WORD
Condition: >40
Content: Too Much
Chapter 1-6-7
Event Display
• Let try it out
Step Description Display Number
1 Click on the Chapter 1-2 to go
Frame 11
Paste the
function box
here
Chapter 1-6-9
Create History Event
• Click and drag the History Event and place it in the window
Step Description Event
1 Basic Attributes tab
Paste the
Background
box here
Click and
Drag
Chapter 1-6-9
Create History Event
• Click and drag the History Event and place it in the window
Step Description Event
3 Background Setting tab
Select number
of row and Paste the
column in the Background
display and box here
how you want
to acknowledge
4 Separator Setting
Paste the
Background
box here
Font can be
set through
here
Chapter 1-6-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 1-6-11
Historical Event Display
• Let try it out
Step Description Display Number
1 Click on the Chapter 1-2 to go Frame 11
2
Select Historical Events
Step1: Check this to Storage tab
save Event in USB
Drive
Step 2: Create
Subdirectory
Chapter 1-7-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 1-7-4
Historical Event Display
• Let try it out
Step Description Display Number
1 Click on the Chapter 1-2 to go
Frame 11
Step 6: You can see the Historical event from the very 1st
event still remain and carry on with the new event even
though the event was clear
Chapter 1-7-5
Insert USB Drive
• Insert the USB Drive to the Host port of the NB
Step Description Display Number
1 Before Inserting USB Drive to NB
• Empty USB Drive
Folder Auto
created
Chapter 1-7-6
Read USB Flash Drive
• Insert the USB Drive to the Host port of the NB
Step Description Display Number
1 Event will be save to an Excel file
(CSV format)
• Product:
– http://www.omron-ap.com.sg/
• Software Download:
– http://www.omron-ap.com.sg/downloads/software_listing.asp
• CP1E:
– http://www.omron-
ap.com.sg/downloads/pdf_listing1.asp?product_model=CP1E&catlvl=42
• NB:
– http://www.omron-ap.com.sg/downloads/pdf_listing.asp?product_model=NB
Series&catlvl=201
END of Chapter 1
Thank you!