NB Series Cost Effective Controldevices Manual
NB Series Cost Effective Controldevices Manual
Vol.
Vol.1 Complete Lineup of CP1E and NB Series
Vol.2 New to NB-Designer
Vol.3 Create Beautiful Screen with NB-Designer 1
Vol.4 Easy Programming with Smart Input Function
Vol.5 Quick Screen Creation with NB-Designer
Vol.6 Create Beautiful Screen with NB-Designer 2
Vol.7 Specify Offsets for Addresses
Vol.8 Save Alarm Histories to USB Memory Stick
Vol.9 Display Labels in Multiple Languages
Vol.10 Easy Positioning Using Pulse Outputs
Vol.11 Upload Screen Data from NB
Vol.12 Problem with Connection
Vol.13 Scaling Analog I/O Values
Vol.14 Convenient Use of NB Event
Vol.15 Input Interrupts for High-speed Processing
Vol.16 Use NS Components on NB
Vol.17 Positioning Using High-speed Counter
Vol.18 Paste Screenshots into Documents
Vol.19 Cam Motion Using High-speed Counter
Vol.20 Helps Reduce Design Time in NB-Designer
Vol.21 Create Beautiful Screen with NB-Designer 3
Vol.22 Use Analog Option Boards
The monthly news, C&N Vol.1
- OMRON Cost-effective Control Devices -
USB
RS-232C
NB-Series RS-485
(Modbus)
■CP1E Series
・Application models including built-in 3 ports types
RS-232C port, USB port, and RS-485 port are incorporated.
As well as HMI, Inverters and Temperature Controllers can be connected without using Options.
Full range of products, ranging from basic models to application models that enable addition of
communications ports, allows you to select the right model to suit your application.
Program
capacity N□□-type CP1E CPU Units Application Models (Built-in 2 ports : RS-232C, USB, Option Board)
N□□S1-type CP1E CPU Units Application Models (Built-in 3 ports : RS-232C, RS-485, USB)
8K
steps
N□□S-type CP1E CPU Units Application Models (Built-in 2 ports : RS-232C, USB)
2K
steps
■NB Series
・More than 65,000 display colors TFT, color touch-screen and
Ethernet communication for all models
・Serial port and USB
・USB memory stick support
New to NB-Designer
I started the NB-Designer. What should I do next?
(1)
(2) Drag and drop Connector (communication cable type) to connect to a communications port of the NB.
(2)
(3) Drag and drop PLC to be used to connect the connector to a communications port of the PLC.
(3)
I selected devices.
Do I have to set up the NB?
How to set up?
Double-click
(2) Make the same communication settings as for the PLC in the [COM1 Setting] tab.
(3) Uncheck the [Display Task Bar] in the [Task Bar] tab.
Area inside is
Frame 0 called “HMI Edit
Window”.
(3) Drag and drop a component from the [PLC Parts] or [Function Parts] in the Graph Element Window,
which is located to the left of the HMI Edit Window, to the HMI Edit
Window. A component is placed on the Window.
The monthly news, C&N Vol.3
- OMRON Cost-effective Control Devices -
(2) Although the component was enlarged, the tag characters “RUN” were not located at the center of the
component.
(3) Click the [Horizontal Middle Label] and [Vertical Middle Label] icons to move the tag to the center of
the component.
1) Click the [Horizontal Middle Label] icon. 2) Then, click the [Vertical Middle Label] icon.
The tag moved to the horizontal center position. The tag moved to the vertical center position.
How to make the multiple components with
the same size at once?
(1) Select one component as the reference. (2) To select all switches, press and hold the Shift
(In this example, the “RUN” switch is key while selecting the “STOP” and “START”
specified as the reference.) switches. (Selected components are surrounded
by a pink frame.)
(3) Click the “Equal Same” icon or select (4) Now all selected components are
[Both] under [Size] in the [Edit] menu. the same size.
(2) Click the [Align Left] icon or select [Left] under [Align] in the [Edit] menu.
All components are aligned along the left side of the “RUN” switch.
(3) Select [Vertical Even Spacing] in the (4) Then, click the [Horizontal Middle Label /
[Edit] menu to make the vertical space Vertical Middle Label] icons to move the tags
between the components same while to the center of the selected components at
selecting components. once.
The monthly news, C&N Vol.4
- OMRON Cost-effective Control Devices -
(2) Press the “↓” key to select the instruction to be input in the list.
Instruction names are displayed, so you can check instructions on the screen.
(2) If you select the [Auxiliary Relay Area], a list of Auxiliary Bits is displayed.
Press the “↓” key to select the Auxiliary Bit to be used.
Input offsets.
Specified offsets are
applied to all addresses.
(3) Click the [Paste] button on the [Address Incremental Copy] Dialog Box to copy the ladder instructions.
Complete! Easy!
Click the [State] Button of the [Copy Font Attribute to] in the [Font
Attribute] Field in the [Label] Tab Page to copy the font size, color, position,
and other attributes of the State 0 to the State 1.
The monthly news, C&N Vol.6
- OMRON Cost-effective Control Devices -
(2) A lock-shape mark appears on the component. You can unlock it in the same way.
The component with a lock-shape mark can be edited in the property.
♦Overview
<< Bit Addresses >>
The bit address is offset by the amount specified by n (number of offset bits) from A (start bit address).
* n (offset) can be specified as a decimal constant or word address (but CIO Area addresses cannot be
specified).
Examples
10.00[2] ⇒ 10.02
10.00[W0] ⇒ 10.05 (When W0 = &5)
Examples
D100[2] ⇒ D102
D100[D0] ⇒ D216 (When D0 = &116)
Note. The CP1H and CP1L do not support this function. If you use the CP1H or CP1L, use Index Registers.
♦Application Example for Address Offsets
The addition data (D10[W10]), which varies depending on the value of the input data (D0) when the input
trigger (1.01) turns ON, is added, and the sum is output to the calculation result (D200).
The number of data for measurement varies depending on the value of the input data.
Double-click
Complete!
♦ Additional Information
When the [Save to Recipe Data Field] surrounded by a blue border is checked,
history data can be saved to non-volatile memory (RW) in the NB.
The monthly news, C&N Vol.9
- OMRON Cost-effective Control Devices -
(2) Click the [Add] Button in the [Text Library] Dialog Box.
(3) The [Add Text] Dialog Box appears. Enter the [Title] and [State No.].
Give each label an easy-to-understand Title because the Title is used when a language is selected
in the Text Library. Click the [OK] Button.
Title:
Enter a Title of the multi-language label
(“UNTEN” in this example).
State No.:
Enter “2” (ON and OFF).
(4) The Title "UNTEN" was added to the Text Library.
(5) State 0 and 1 are displayed under the Title by clicking the Title “UNTEN”.
(6) Enter “運転” in the [Language1] (Japanese) Column for State 0 and 1.
(7) Enter “RUN” in the [Language2] (English) Column for State 0 and 1, and click the [OK] Button.
(8) The Property Dialog Box appears. Check the [Use Text Library].
”運転” set in step (6) are displayed in the Label List.
(9) When “Language2” is selected, “RUN” set in step (7) are displayed.
♦ Additional Information
The language displayed on the label can
be changed by setting the following
values to system memory LW9130.
0: Language1
1: Language2
2: Language3
The monthly news, C&N Vol.10
- OMRON Cost-effective Control Devices -
CP1E
Servomotor/Servo Drive
G5 Series
Port specifier and control data settings for the PLS2 instruction are as follows.
・Port specifier
0000 hex: Pulse output 0, 0001 hex: Pulse output1
・Control data
15 12 11 87 43 0
Relative/absolute
specifier
Direction 0 hex: Relative pulses
Always 0 hex 0 hex: CW 1 hex: Absolute pulses
1 hex: CCW
Pulse output method
1 hex: Pulse + direction
<Application Example>
■ Interrupt Feeding
Speed control is used to feed wrapping material. When the marker sensor detects a mark,
fixed-distance positioning is performed before stopping.
High-precision positioning can be achieved by immediately stopping pulse output when an interrupt
input is received.
Refer to the CP1E CPU Unit Software User’s Manual (Cat. No. W480) for details.
Interrupt input
(0.04)
Marker
sensor
CP1E
Built-in pulse output
Servomotor/Servo Drive
G5 Series
The monthly news, C&N Vol.11
- OMRON Cost-effective Control Devices -
(3) The [Upload Setting] Dialog Box appears. Check the [Project Data (required)] and click the [OK]
Button. After the [Save As] Dialog Box pops up, specify the file name and path to upload and then
click the [Save] Button.
(4) The [Password (Upload)] Dialog Box appears. Enter the password set for the uploaded screen, and
click the [OK] Button.
The default password is "888888".
(5) The screen data upload starts. When the upload is completed, the “Upload succeeded!” Dialog Box
will pop up. Click the [OK] Button.
(6) The uploaded file (file name: Omron_NB.pkg) can be found in the folder specified in step (3).
The PLG file is a file that is generated when the NB project data is compiled.
(7) Convert the PKG file to the format which can be handled with the NB-Designer (decompile).
(8) Select the [Decompile Operation] Tab. Click the [Select] Button in the [Select PKG File to
Decompile:] Field to specify the PKG file uploaded in step (6).
(9) The PKG file specified in step (8) is displayed at in the diagram below. Click the [Select]
Button in the [Select Target Project Folder to Decompile] Field to specify the folder to decompile,
and then click the [Decompile] Button.
(10) The [Decompiler] Dialog Box appears. Enter the password entered in step (4), and then click the
[OK] Button. Exit the NBManager after the “Decompilation success” Dialog Box pops up.
(11) The decompiled screen data for the NB-Designer is uploaded to the folder specified in step (9).
♦Point♦
NBManager is used to upload the screen data from the NB.
To upload the NB screen data, a PKG file is uploaded and then "decompiled" using the
NBManager.
The monthly news, C&N Vol.12
- OMRON Cost-effective Control Devices -
♦ How to check
(1) Left click and drag the PLC or NB around. If one component is separated from another, the
connection is not made.
(2) If the connector follows when the PLC or NB is moved, the connection is made properly.
2. Convert a set value between 200 and 500 to output a voltage between 2 and 5 V.
NB Series
Input
0 to 10 V
Displayed value (CIO 3)
Set value 0 to 10000
200 to 500
CP1W
Scaling Analog I/O Unit
(Resolution: 6000)
CP1E
Output
2 to 5 V
(CIO 102)
1. When a 0 to 10-V voltage is input to the analog input word (CIO 3) as 0 to 6000, convert the value
into a value between 0 and 10000 and output the result to D200.
10000
(D200)
Scaled value
(0 to 10000)
0
0 (Data in CIO 3) 6000
(0 V) (10 V)
Data input to Analog I/O Unit
(Unscaled: 0 to 6000)
Convert into 2 to 5V (converted data: 1500 to 6000) within the 1 to 5-V output range (converted data: 0 to 6000) of
the Analog Output Unit.
500
Unscaled data
(200 to 500)
(D300)
200
Unscaled value
(original data D300)
Scaled data
Scaled
result
Y0
X0 S X1
Input data
Unscaled data
C: Control word
Set for "Signed Integer Data (Binary)".
Control Word Setting The number of coordinates is 1 (m=1), so
#0800: Binary numeral (0000 1000 0000 0000) set bit 0 to 7 to "0" (=m-1).
S: Source data
Specify the word address of the input data before scaling.
R: Result word
Specify the word address where the data will be output after scaling.
The monthly news, C&N Vol.14
- OMRON Cost-effective Control Devices -
There is a limit to the number of logs that can be stored in the NB, so storing unnecessary logs
reduces the number of logs that is required to be stored.
Register the information that is required to be kept in history to Event and other
information to Alarm, which enables storing as many logs as possible.
How can I use Event Setting more efficiently?
♦ Classifying events
* 256 groups can be selected.
(1) Select [Event Setting] in the [Project Database]. Set [Type: 0 to 255] to an arbitrary group.
Group 0
(2) Drag the [Event] component icon from the [Parts] to open the [Event Property] Dialog Box. Set the
Display Range in the [Event Setting] Tab Page.
The interrupt function, on the other hand, allows a specified condition to interrupt a cycle and execute a
specified program.
Interrupts can thus be used to perform high-speed processing that is not restricted by the cycle time.
I/O I/O
Cyclic task Cyclic task
reflesh reflesh
Output pulses
1. PLC Setup
Set IN2 to [Interrupt] in the [Interrupt Input] Field on the [Built-in Input] Tab Page.
2. Create the ladder program in a cyclic task to enable input interrupt IN2 (CIO 0.02).
The interrupt function is disabled when the PLC is first turned on.
The MSKS instruction is used to enable and set interrupt inputs.
Set IN2 (CIO 0.02) to [Up-differentiation] and enable the interrupt input.
Specifying Up/Down
Differentiation of an
Interrupt Input
Set [Interrupt input 2
(IN2)] to
[Up-differentiation].
Enabling/Disabling
Interrupt Input
Setting
Set [Interrupt input 2
(IN2)] to [Enable the
interrupt].
3. Create the ladder program in the interrupt task to output pulses.
(1) Add a new ladder program and assign the interrupt task in the [Program Properties] Dialog Box.
Select [Interrupt Task 02 (Built-in Input 2)] to use IN2 for the interrupt input.
* Refer to The monthly news, C&N Vol.10 “Easy Positioning Using Pulse Outputs” for pulse
output settings.
The monthly news, C&N Vol.16
- OMRON Cost-effective Control Devices -
Use NS Components on NB
(1) Select [Add Graphics] in the [Draw] Menu to display the [New Graphics] Dialog Box. Make the following
settings.
(2) Select “state0” in the [State Preview] Window. (The background turns green.) Right-click in the black
editing box under “State0” and select [Load Graphic]. The [Open] Dialog Box will appear.
Right-click
(3) From the [Look in] Drop-down List, select a folder containing the required image under the [BMPfiles]
folder in the installation folder of the CX-Designer. Select an image to use (OFF color), and then click the
[Open] Button.
The selected image will be loaded into“state0”.
When the CX-one is installed normally, the default path of the [BMPfiles] folder is as follows:
C:¥Program Files¥OMRON¥CX-One¥CX-Designer¥intaparts¥BMPfiles
(4) Select “state1” (green background). Right-click and select [Load Graphic] to load the ON image.
(5) Select [Save] in the [File] menu to save the project after loading images into “state0” and “state1”.
(6) The name of the created bitmap graphic, which is specified in step (1), appears in the [Project File
Window]. Double-click the name to show the images loaded in step (3) and (4), as shown below.
Double click
(7) Follow the below steps to use the newly created bitmap graphic as a graphic display for a component in
the NB-Designer.
1) Place a component in the screen.
2) Double-click the component to open the property window.
3) Select the [Graphics] Tab, and then select the [Bitmap] Check Box
4) The created bitmap graphic appears. (OFF image loaded in step (3) is displayed.)
5) Click the [OK] Button. The component using images loaded in step (3) and (4) appears on the screen.
The monthly news, C&N Vol.17
- OMRON Cost-effective Control Devices -
5000
High-speed counter0 PV
1. PLC Setup
Set High Speed Counter 0 and Interrupt Input in the [Built-in Input] Tab Page.
(1) High Speed Counter 0
• Select the [Use high speed counter 0] Check Box.
• Set Counting mode to [Linear mode].
• Set Reset to [Software reset] (to reset on the ladder diagram).
• Set Input Setting to [Differential phase input]. (Set according to the encoder to use.)
5000
High-speed counter0 PV
Setting of workpiece
detection interrupt input
(CIO 0.02)
Specifying differentiation
of interrupt input
Interrupt Input 2 (IN2) is
set to [Up-differentiation].
(2) Interrupt task 2 is executed when a workpiece is detected (Interrupt input: CIO 0.02 turns ON).
(3) Interrupt task 8 is executed when the present value of the high-speed counter reaches 5,000 (target value)
Motor is stopped.
Set as follows.
Parameter Set value
High-speed counter number High-speed counter 0
Control method Registers a target value comparison table and starts comparison.
Number of target values 1
Target value 5,000. The target value is valid when the PV is being incremented.
Interrupt task number for 8
target value 1
P: Port specifier
P High-speed counter number
0000 hex High-speed counter 0
0001 to 0005 hex High-speed counter 1 to 5
C: Control data
C Control method
0000 hex Registers a target value comparison table and starts comparison.
0001 hex Registers a range comparison table and performs one comparison.
0002 hex Registers a target value comparison table.
0003 hex Registers a range comparison table.
4. Open the document to paste the screenshot. Use a keyboard shortcut Ctrl + V or right-click then select
[Paste] to paste the screenshot into the document.
The monthly news, C&N Vol.19
- OMRON Cost-effective Control Devices -
Control output 1 to 3
0° 30° 60° 90° 120° 150° 180° 210° 240° 270° 300° 330° 360°
Ctrl output1
Ctrl output2
Ctrl output3
Encoder output
High speed counter PV
1. PLC Setup
Set High Speed Counter 0 in the [Built-in Input] Tab Page.
• Select the [Use high speed counter 0] Check Box.
• Set Counting mode to [Circular mode].
• Set Circular Max. Count.
Set according to the encoder resolution to use.
As an Encoder with a resolution of 360 ppr is used in this example, set to [359] (360 ppr: 0 to 359).
• Set Reset to [Software reset] (to reset on the ladder program without using phase Z).
• Set Input Setting.
Set according to the encoder to use.
As the E6B2-C is used in this example, set to [Differential phase input].
The bits and words in the Auxiliary Area related to high-speed counter 0 are as follows.
• High-speed Counter 0 PV
A271 A270
Upper 4 digits Lower 4 digits
• When W10.00 turns ON, the present value of the high-speed counter is reset (set to 0).
0° 30° 60° 90° 120° 150° 180° 210° 240° 270° 300° 330° 360°
Ctrl output1(OUT100.00)
Ctrl output2(OUT100.01)
Ctrl output3(OUT100.03)
Encoder output
High speed counter PV
(A270~A271CH)
Ex:360 pulses/rotation (1 pulse=1°)
Only label
moves.
Drag
Label is selected.
Click!
2. After downloading nb-parts_e.zip and B150127.pdf, extract the contents from nb-parts_e.zip.
3. Double-click nb-parts_e.nbp in the nb-parts_e folder to start the NB-Designer.
4. Select Language2 under View - Language to display labels in English.
5. The screen 20 and the following screens contain "cool" templates. See page 12 and the following
pages of B150127.pdf for details on templates.
6. Three different types of screen templates are provided.
Metal Natural Pop
7. How to use a Metal template is explained below. Create a new project and add the NB7W that uses the
template.
1) Copy the screen 32 (background) of nb-parts_e.nbp (right-click on the screen and select [Copy]),
and then paste it on the screen 0 of the NB7W in the new project (right-click and select [Paste]).
2) In the NB7W, select [Add Screen] in the [Screen] menu to add a screen. (The screen 10 is added.)
3) Open the screen 20 of nb-parts_e.nbp. Copy the objects (right-click, select [Select All]. right-click
again, and select [Copy]), and then paste them on the screen 10 of the NB7W.
4) In the screen 10 of the NB7W, select [Screen Property] in the [Screen] menu to open the [Screen
property] Dialog Box. Set Sheet Screen 1 to [0:Frame0] (screen 0), and click the [OK] Button.
CP1E*
Setting
1. PLC Setup
Set in the [Serial Option Port] Tab Page.
(1) Communications Settings: Select the [Custom] Option.
Set Baud to [115200].
Set Format to [7,2,E].
Set Mode to [Host Link (Default)] or [Host Link].
(2) Unit Number : Set to [0].
Refer to the CP1E CPU Unit Software User’s Manual (Cat. No. W480) for details.
New CP1W Analog I/O Units and Temperature Sensor Units have been added to the line up.
CP1W Expansion Units
Product name Model Specifications
Analog Input Unit CP1W-AD042 4 analog inputs
Resolution: 12,000
Analog Output Unit CP1W-DA042 4 analog outputs
Resolution: 12,000
Analog I/O Unit CP1W-MAD42 4 analog inputs, 2 analog outputs
Resolution: 12,000
CP1W-MAD44 4 analog inputs, 4 analog outputs
Resolution: 12,000
Temperature Sensor CP1W-TS003 4 thermocouple inputs
Unit 2 analog inputs*
* Two channels can be used for thermocouple or
analog input.
2014-15
2014
R182-E1-09
X000-E1-01 0215(0513)
0614-?M (0614) (?)