Omron NX1P Owner's manual

Machine Automation Controller NX1P
Practices Guide
for NX1P Programming
NX1P2-[][][][]
SYSMAC-SE20[][]
P122-E1-01

2
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or
transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or
otherwise, without the prior written permission of OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover,
because OMRON is constantly striving to improve its high-quality products, the information
contained in this guide is subject to change without notice. Every precaution has been taken in the
preparation of this guide. Nevertheless, OMRON assumes no responsibility for errors or omissions.
Neither is any liability assumed for damages resulting from the use of the information contained in
this publication.
© OMRON, 2017
Trademarks
•
Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and
other countries for OMRON factory automation products.
•Windows is either a registered trademark or trademark of Microsoft Corporation in the United States
and/or other countries.
•EtherCAT®is a registered trademark and patented technology, licensed by Beckhoff Automation
GmbH, Germany
•EtherNet/IP™ is a trademark of ODVA.
•Celeron, Intel, and Intel Core are the trademarks of Intel Corporation in the USA and other countries.
•Microsoft product screen shot(s) reprinted with permission from Microsoft Corporation.
Other company names and product names in this document are the trademarks or registered
trademarks of their respective companies.

3
Introduction
Thank you for purchasing an NX-series NX1P2 CPU Unit and the Sysmac Studio.
This NX1P Programming Practices Guide for Beginners (hereafter referred to as “this Guide”)
describes the differences in programming between the NX1P and traditional controllers and the
programming procedures using the Sysmac Studio that are required to use an NX1P2 CPU
Unit for the first time. You can perform the procedures that are presented in this Guide to
quickly gain a basic understanding of the NX1P2 CPU Units and the Sysmac Studio. This
Guide does not contain safety information and other details that are required for actual use.
Thoroughly read and understand the manuals for all of the devices that are used in this Guide
to ensure that the system is used safely. Review the entire contents of these materials,
including all safety precautions, precautions for safe use, and precautions for correct use.
For the startup and operating instructions for motion control, refer to the NJ/NX-series Startup
Guide for Motion Control (Cat. No. W514).
Intended Audience
This Guide is intended for the following personnel, who must also have knowledge of electrical
systems (an electrical engineer or the equivalent).
• Personnel in charge of introducing FA systems
• Personnel in charge of designing FA systems
• Personnel in charge of installing and maintaining FA systems
Applicable Products
This Guide covers the following products.
• NX1P2 CPU Units of NX-series Machine Automation Controllers
• Automation Software Sysmac Studio
Special Information
The icons that are used in this Guide are described below.
Precautions for Correct Use
Precautions on what to do and what not to do to ensure proper operation and
performance.
Additional Information
Additional information to read as required.
This information is provided to increase understanding or make operation easier.

4
Terms and Conditions Agreement
Warranty, Limitations of Liability
Warranties
•Exclusive Warranty
Omron’s exclusive warranty is that the Products will be free from defects in materials and
workmanship for a period of twelve months from the date of sale by Omron (or such other
period expressed in writing by Omron). Omron disclaims all other warranties, express or implied.
•Limitations
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, ABOUT
NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
OF THE PRODUCTS. BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED
THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR
INTENDED USE.
Omron further disclaims all warranties and responsibility of any type for claims or expenses
based on infringement by the Products or otherwise of any intellectual property right.
•Buyer Remedy
Omron’s sole obligation hereunder shall be, at Omron’s election, to (i) replace (in the form
originally shipped with Buyer responsible for labor charges for removal or replacement thereof)
the non-complying Product, (ii) repair the non-complying Product, or (iii) repay or credit Buyer
an amount equal to the purchase price of the non-complying Product; provided that in no event
shall Omron be responsible for warranty, repair, indemnity or any other claims or expenses
regarding the Products unless Omron’s analysis confirms that the Products were properly
handled, stored, installed and maintained and not subject to contamination, abuse, misuse or
inappropriate modification. Return of any Products by Buyer must be approved in writing by
Omron before shipment. Omron Companies shall not be liable for the suitability or unsuitability
or the results from the use of Products in combination with any electrical or electronic
components, circuits, system assemblies or any other materials or substances or environments.
Any advice, recommendations or information given orally or in writing, are not to be construed
as an amendment or addition to the above warranty.
See http://www.omron.com/global/ or contact your Omron representative for published
information.
Limitation on Liability; Etc
OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL, INDIRECT, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS
IN ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED IN
CONTRACT, WARRANTY, NEGLIGENCE OR STRICT LIABILITY.
Further, in no event shall liability of Omron Companies exceed the individual price of the
Product on which liability is asserted.

5
Application Considerations
Suitability of Use
Omron Companies shall not be responsible for conformity with any standards, codes or regulations
which apply to the combination of the Product in the Buyer’s application or use of the Product. At
Buyer’s request, Omron will provide applicable third party certification documents identifying ratings
and limitations of use which apply to the Product. This information by itself is not sufficient for a
complete determination of the suitability of the Product in combination with the end product,
machine, system, or other application or use. Buyer shall be solely responsible for determining
appropriateness of the particular Product with respect to Buyer’s application, product or system.
Buyer shall take application responsibility in all cases.
NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED
TO ADDRESS THE RISKS, AND THAT THE OMRON PRODUCT(S) IS PROPERLY RATED AND
INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
Programmable Products
Omron Companies shall not be responsible for the user’s programming of a programmable
Product, or any consequence thereof.
Disclaimers
Performance Data
Data presented in Omron Company websites, catalogs and other materials is provided as a
guide for the user in determining suitability and does not constitute a warranty. It may represent
the result of Omron’s test conditions, and the user must correlate it to actual application
requirements. Actual performance is subject to the Omron’s Warranty and Limitations of
Liability.
Change in Specifications
Product specifications and accessories may be changed at any time based on improvements
and other reasons. It is our practice to change part numbers when published ratings or features
are changed, or when significant construction changes are made. However, some
specifications of the Product may be changed without any notice. When in doubt, special part
numbers may be assigned to fix or establish key specifications for your application. Please
consult with your Omron’s representative at any time to confirm actual specifications of
purchased Product.

6
Errors and Omissions
Information presented by Omron Companies has been checked and is believed to be accurate;
however, no responsibility is assumed for clerical, typographical or proofreading errors or
omissions.
Automation Software Sysmac Studio
WARRANTY
•The warranty period for the Software is one year from the date of purchase, unless
otherwise specifically agreed.
•If the User discovers defect of the Software (substantial non-conformity with the manual),
and return it to OMRON within the above warranty period, OMRON will replace the Software
without charge by offering media or download from OMRON’s website. And if the User
discovers defect of media which is attributable to OMRON and return it to OMRON within
the above warranty period, OMRON will replace defective media without charge. If OMRON
is unable to replace defective media or correct the Software, the liability of OMRON and the
User’s remedy shall be limited to the refund of the license fee paid to OMRON for the
Software.
LIMITATION OF LIABILITY
•THE ABOVE WARRANTY SHALL CONSTITUTE THE USER’S SOLE AND EXCLUSIVE
REMEDIES AGAINST OMRON AND THERE ARE NO OTHER WARRANTIES,
EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTY OF
MERCHANTABILITY OR FITNESS FOR PARTICULAR PURPOSE. IN NO EVENT,
OMRON WILL BE LIABLE FOR ANY LOST PROFITS OR OTHER INDIRECT,
INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES
•ARISING OUT OF USE OF THE SOFTWARE. OMRON SHALL HAVE NO LIABILITY FOR
DEFECT OF THE SOFTWARE BASED ON MODIFICATION OR ALTERNATION TO THE
SOFTWARE BY THE USER OR ANY THIRD PARTY.
•OMRON SHALL HAVE NO LIABILITY FOR SOFTWARE DEVELOPED BY THE USER OR
ANY THIRD PARTY BASED ON THE SOFTWARE OR ANY CONSEQUENCE THEREOF.
APPLICABLE CONDITIONS
USER SHALL NOT USE THE SOFTWARE FOR THE PURPOSE THAT IS NOT PROVIDED
IN THE ATTACHED USER MANUAL.
CHANGE IN SPECIFICATION
The software specifications and accessories may be changed at any time based on
improvements and other reasons.
ERRORS AND OMISSIONS
The information in this manual has been carefully checked and is believed to be accurate;
however, no responsibility is assumed for clerical, typographical, or proofreading errors, or
omissions.

7
Precautions
•When building a system, check the specifications for all devices and equipment that will
make up the system and make sure that the OMRON products are used well within their
rated specifications and performances. Safety measures, such as safety circuits, must be
implemented in order to minimize the risks in the event of a malfunction.
•Thoroughly read and understand the manuals for all devices and equipment that will make
up the system to ensure that the system is used safely. Review the entire contents of these
materials, including all safety precautions, precautions for safe use, and precautions for
correct use.
•Confirm all regulations, standards, and restrictions that the system must adhere to.
Software Licenses and Copyrights
This product incorporates certain third party software. The license and copyright information
associated with this software is available at http://www.fa.omron.co.jp/nj_info_e/.

8
Related Manuals
The followings are the manuals related to this manual. Use these manuals for reference.
Manual name Cat. No. Model Application Description
NX-series
NX1P2 CPU Unit
Hardware User's
Manual
W578 NX1P2- □□□□ Learning the basic
specifications of the
NX1P2 CPU Units,
including introductory
information,
designing, installation,
and maintenance.
Mainly hardware
information is
provided.
An introduction to the entire NX1P2
system is provided along with the
following information on the CPU Unit.
• Features and system configuration
• Introduction
• Part names and functions
• General specifications
• Installation and wiring
• Maintenance and inspection
NX-series
NX1P2 CPU Unit
Built-in I/O and
Option Board
User's Manual
W579 NX1P2- □□□□ Learning about the
details of functions
only for an NX-series
NX1P2 CPU Unit and
an introduction of
functions for an
NJ/NX-series CPU
Unit.
Of the functions for an NX1P2 CPU
Unit, the following information is
provided.
• Built-in I/O
• Serial Communications Option Boards
• Analog I/O Option Boards
An introduction of following functions for
an NJ/NX-series CPU Unit is also
provided.
• Motion control functions
• EtherNet/IP communications functions
• EtherCAT communications functions
NJ/NX-series
CPU Unit
Software User’s
Manual
W501 NX701- □□□□
NJ501- □□□□
NJ301- □□□□
NJ101- □□□□
NX1P2- □□□□
Learning how to
program and set up
an NJ/NX-series CPU
Unit.
Mainly software
information is
provided.
The following information on a
Controller built with an NJ/NX-series
CPU Unit.
• CPU Unit operation
• CPU Unit features
• Initial setting
• Programming based on IEC 61131-3
language specifications
Use this manual together with the
NX-series NX1P2 CPU Unit Hardware
User's Manual (Cat. No. W578).
NJ/NX-series
Instructions
Reference Manual
W502 NX701-□□□□
NJ501-□□□□
NJ301-□□□□
NJ101-□□□□
NX1P2-□□□□
Learning detailed
specifications on the
basic instructions of
an NJ/NX-series CPU
Unit.
The instructions in the instruction set
(IEC 61131-3 specifications) are
described. When programming, use this
manual together with the NJ-series CPU
Unit Hardware User's Manual (Cat. No.
W500) and NJ/NX-series CPU Unit
Software User's Manual (Cat. No.
W501).
NJ/NX-series
CPU Unit
Motion Control
User’s Manual
W507 NX701-□□□□
NJ501-□□□□
NJ301-□□□□
NJ101-□□□□
NX1P2-□□□□
Learning about
motion control
settings and
programming
concepts.
The settings and operation of the CPU
Unit and programming concepts for
motion control are described. Use this
manual together with the NJ-series CPU
Unit Hardware User's Manual (Cat. No.
W500) and NJ/NX-series CPU Unit
Software User's Manual (Cat. No.
W501).

9
Manual name Cat. No. Model Application Description
NJ/NX-series
Motion Control
Instructions
Reference Manual
W508 NX701-□□□□
NJ501-□□□□
NJ301-□□□□
NJ101-□□□□
NX1P2-□□□□
Learning about the
specifications of the
motion control
instructions.
The motion control instructions are
described. When programming, use this
manual together with the NJ-series CPU
Unit Hardware User's Manual (Cat. No.
W500), NJ/NX-series CPU Unit
Software User's Manual (Cat. No.
W501),and NJ/NX-series CPU Unit
Motion Control User’s Manual (Cat. No.
W507).
NJ/NX-series
CPU Unit
Built-in
EtherCATPort
User’s Manual
W505 NX701-□□□□
NJ501-□□□□
NJ301-□□□□
NJ101-□□□□
NX1P2-□□□□
Using the built-in
EtherCAT port on an
NJ/NX-series CPU
Unit.
Information on the built-in EtherCAT
port is provided. This manual provides
an introduction and information on the
configuration, features, and setup. Use
this manual together with the NJ-series
CPU Unit Hardware User's Manual (Cat.
No. W500) and NJ/NX-series CPU Unit
Software User's Manual (Cat. No.
W501).
NJ/NX-series
CPU Unit
Built-in
EtherNet/IPPort
User’s Manual
W506 NX701-□□□□
NJ501-□□□□
NJ301-□□□□
NJ101-□□□□
NX1P2-□□□□
Using the built-in
EtherNet/IP port on an
NJ/NX-series CPU
Unit.
Information on the built-in EtherNet/IP
port is provided. Information on the
basic setup, tag data links, and other
features is provided. Use this manual
together with the NJ-series CPU Unit
Hardware User's Manual (Cat. No.
W500) and NJ/NX-series CPU Unit
Software User's Manual (Cat. No.
W501).
NJ/NX-series
Troubleshooting
Manual
W503 NX701-□□□□
NJ501-□□□□
NJ301-□□□□
NJ101-□□□□
NX1P2-□□□□
Learning about the
errors that may be
detected in an
NJ/NX-series
Controller.
Concepts on managing errors that may
be detected in an NJ/NX-series
Controller and information on individual
errors are described. Use this manual
together with the NJ-series CPU Unit
Hardware User's Manual (Cat. No.
W500) and NJ/NX-series CPU Unit
Software User's Manual (Cat. No.
W501).
Sysmac Studio
Version 1
Operation Manual
W504 SYSMAC-SE2 □□□ Learning about the
operating procedures
and functions of the
Sysmac Studio.
The operating procedures of the
Sysmac Studio is described.
NJ/NX-series
Startup Guide for
Motion Control
W514 NX1P2-□□□□
NX701-□□□□
NJ501-□□□□
NJ301-□□□□
NJ101-□□□□
SYSMAC-SE20□□
R88M-1□
R88D-1SN□-ECT
Learning startup
procedures and
Sysmac Studio
operating procedures
for someone that will
use NJ/NX series
motion control
functions for the first
time.
The operations from hardware
assembly through debugging for axis
parameter settings, simple one-axis
positioning, and two-axis linear
interpolation are described.

10
Revision History
A manual revision code appears as a suffix to the catalog number on the front and back covers
of the manual.
Revision code
Date
Revised content
01
September 2017
Original production
Cat. No.
P122-E1-01
Revision code

11
CONTENTS
Introduction...............................................................................................................3
Terms and Conditions Agreement............................................................................4
Precautions...............................................................................................................7
Related Manuals.......................................................................................................8
Revision History..................................................................................................... 10
1Programming the NX1P.......................................................... 14
1-1 Overview.......................................................................................................... 15
1-2 Features of NX1P Programming ..................................................................... 16
1-2-1 Challenges in Development and Solutions Using the NX1P.............16
1-2-2 Easy to Add Programs.......................................................................17
1-2-3 Easy Motion Programming................................................................18
1-2-4 Structured Text Language for Easy Mathematical Processing.........19
1-3 Programming with Variables............................................................................ 20
1-3-1 Programming the NX1P.....................................................................20
1-3-2 Data Types ........................................................................................23
1-3-3 Benefit of Using Data Types..............................................................24
1-3-4 International Standard IEC 61131-3..................................................25
1-4 Programming Software.................................................................................... 26
1-4-1 Programming Software Sysmac Studio.............................................26
1-4-2 Simulations........................................................................................27
2Before You Begin.................................................................... 28
2-1 System Configuration and Devices ................................................................. 29
2-1-1 Overview............................................................................................29
2-1-2 Wiring.................................................................................................30
2-2 Installing the Sysmac Studio............................................................................ 32
2-2-1 Installing the Sysmac Studio .............................................................32
2-2-2 Requirements for Installation.............................................................32
3Ladder Programming.............................................................. 33
3-1 Programming with the Sysmac Studio............................................................. 35
3-1-1 Programming Procedure ...................................................................35
3-1-2 Creating a Project..............................................................................35

12
3-2 Parts of the Sysmac Studio Window................................................................37
3-2-1 Screen for Configurations and Setup ................................................37
3-2-2 Screen for Programming....................................................................37
3-3 Assigning Variables to Terminals.....................................................................38
3-3-1 Variable Names for Terminal Numbers.............................................38
3-3-2 I/O Map Setting..................................................................................39
3-3-3 Checking Wiring.................................................................................41
3-4 Ladder Programming........................................................................................42
3-4-1 Inserting Circuit Parts ........................................................................42
3-4-2 Keyboard Mapping.............................................................................42
3-4-3 Rules..................................................................................................43
3-5 Example of a Basic Ladder Program................................................................44
3-5-1 Practice of Programming a Ladder Diagram.....................................44
3-5-2 Writing the Algorithm .........................................................................45
3-5-3 Program Check..................................................................................47
3-5-4 Saving the Program...........................................................................48
3-5-5 Checking Operation on the NX1P .....................................................49
3-5-6 Checking Operation on the Simulator................................................50
3-5-7 Example of a Program Error (Offline)................................................52
3-5-8 Example of an Error Occurred During Operation ..............................52
3-6 Example of a Ladder Program Using a Timer Instruction................................53
3-6-1 Self-holding Rung..............................................................................53
3-6-2 On-Delay Timer (TON) Instruction.....................................................54
3-6-3 Exercise: Energy Saving Escalator ...................................................58
3-6-4 Checking the Operation of the Program............................................59
3-6-5 Checking the Operation of the Program (Watch Tab Page)..............60
3-7 Example of a Ladder Program Using Date and Time......................................62
3-7-1 Programming the NX1P Using Date and Time..................................62
3-7-2 Exercise: Continuous Operating Time of Escalator...........................62
3-8 Fundamentals of Programming to Reduce Development Time.......................66
3-8-1 POUs (Program Organization Units) .................................................66
3-8-2 Programs and Execution Priorities (Tasks).......................................66
3-8-3 Functions (FUNs) and Function Blocks (FBs)...................................68
3-8-4 Sections.............................................................................................69
3-8-5 Types of Variables.............................................................................70
4Creating Programs to Handle Data..........................................73
4-1 Variables Used for Data Processing ................................................................74
4-1-1 Arrays.................................................................................................74
4-2 Programming Exercise .....................................................................................75
4-2-1 Application Example..........................................................................75
4-2-2 Programming .....................................................................................75
4-2-3 Creating a Project..............................................................................76
4-2-4 Configuring Analog Option Board Settings........................................77
4-2-5 Assigning Variables to the Option Board and Input Terminal............77
4-2-6 Program Example..............................................................................78

13
4-2-7 Creating an Array ..............................................................................79
4-2-8 Entering Programming Code.............................................................80
4-2-9 Checking the Operation of the Program............................................81
4-2-10 Referring Values of Array Variables..................................................83
5Motion FB Programming......................................................... 84
5-1 Motion FB Programming.................................................................................. 85
5-1-1 Motion FB Programming....................................................................85
5-1-2 Programming Procedure ...................................................................85
5-2 Adding a Servo Drive and Setting the Parameters ......................................... 86
5-2-1 Registering a Servo Drive..................................................................86
5-2-2 Registering the Axis...........................................................................87
5-2-3 Setting the Axis Parameters..............................................................87
5-3 Creating a Program ......................................................................................... 89
5-3-1 Overview of the Ladder Program ......................................................89
5-3-2 Motion FBs to Use.............................................................................89
5-3-3 Writing the Ladder Program ..............................................................90
5-4 Data Tracing .................................................................................................... 93
5-4-1 Checking the Operation with Data Traces.........................................93
5-5 3D Simulation................................................................................................... 95
5-5-1 Starting 3D Simulation.......................................................................95
6ST Programming..................................................................... 97
6-1 Overview of ST Programming ......................................................................... 98
6-1-1 Advantages of ST Language.............................................................98
6-1-2 ST Programs Including Constructs....................................................98
6-1-3 Structure of ST and Example ............................................................99
6-1-4 Operators...........................................................................................99
6-2 NX1P Programming in ST ............................................................................. 100
6-2-1 Writing an ST Program for NX1P ....................................................100
6-3 ST Programming Exercise............................................................................. 101
6-3-1 Exercise of Numerical Calculation Programming............................101
6-3-2 Programming Procedures................................................................102
6-3-3 Checking the Program.....................................................................104
6-3-4 Checking the Operation of the ST Program....................................104

14
1
1 Programming the NX1P
This section describes the fundamental elements of programming an NX1P
Machine Automation Controller.
1-1 Overview.......................................................................................................1-15
1-2 Features of NX1P Programming ..................................................................1-16
1-2-1 Challenges in Development and Solutions Using the NX1P......... 1-16
1-2-2 Easy to Add Programs................................................................... 1-17
1-2-3 Easy Motion Programming ............................................................ 1-18
1-2-4 Structured Text Language for Easy Mathematical Processing ..... 1-19
1-3 Programming with Variables.........................................................................1-20
1-3-1 Programming the NX1P................................................................. 1-20
1-3-2 Data Types .................................................................................... 1-23
1-3-3 Benefit of Using Data Types.......................................................... 1-24
1-3-4 International Standard IEC 61131-3.............................................. 1-25
1-4 Programming Software.................................................................................1-26
1-4-1 Programming Software Sysmac Studio......................................... 1-26
1-4-2 Simulations .................................................................................... 1-27

15
1-1 Overview
The photo below shows an NX1P2 CPU Unit. Push-In Plus terminal blocks are used to
connect a power supply and I/O devices.
EtherCAT and EtherNet/IP ports are built in.
Features
1. The built-in EtherCAT port and advanced motion control make machines faster and more
precise
•Up to four axes of motion control. Electronic cams and interpolation increase machine
speed and precision
•EtherCAT simplifies the wiring to up to eight servo systems including for single-axis
position control
2. Networks for IoT
•EtherNet/IP enables communications with a host PC and data links between
NJ/NX-series Controllers and CJ-series PLCs
3. Push-In Plus terminal blocks
•Push-In Plus connection reduces wiring time when a control panel is built
The environment for programming the NX1P makes development faster and easier.
This Guide describes the features of NX1P programming and how to program the NX1P
using the Sysmac Studio.
Push-In Plus
terminal
block

16
1-2 Features of NX1P Programming
1-2-1 Challenges in Development and Solutions Using the NX1P
As manufacturers need to improve productivity and quality, machines are getting more
advanced and more complex. Engineers are facing challenges such as reducing
engineering costs, improving programming efficiency, and minimizing training costs.
The NX1P can offer solutions to each challenge.
The next section gives more detailed explanation about programming the NX1P.

17
1-2-2 Easy to Add Programs
Previously
When adding a program, the user needed to check whether the I/O addresses and memory
area used for the additional program had already been used. If they were used,
modifications and debugging were required. These tasks reduced development productivity.
Existing program Program to add (reused)
Programming the NX1P
When a program is reused, the NX1P automatically allocates memory addresses in the
memory area for variables. The user does not need to worry about addresses when adding or
modifying the program. Debugging time can also be reduced.
Existing program Program to add (reused)
Memory area used for
existing program
Memory area used for
program to add
The same area is used
Memory area allocated for
variables of existing program
Memory area allocated for
variables of program to add

18
1-2-3 Easy Motion Programming
Previously
The traditional PLC (e.g., CJ2) used three different software applications for Position Control
Unit settings, ladder programming, and Servo System settings. The user had to create a
program while monitoring and tuning the settings.
Programming the NX1P
Operations such as turning ON the Servo, homing, and positioning can be described in one
program by using motion FBs.
Processes are executed from top to bottom, which makes the program easy to read.
The Sysmac Studio integrating ladder programming, motion, and Servo configuration
facilitates positioning control. Simple monitoring and modification!

19
1-2-4 Structured Text Language for Easy Mathematical Processing
Structured Text Language
The structured text (ST) language is a high-level structured language, similar to Pascal. It is
ideal for mathematical processing and nested conditional branching that are difficult to write
in ladder diagrams.
Features of ST Language
You can create easy to read programs by using two different programming languages,
ladder diagram language for sequence control and ST language for mathematical
processing.
Example: Calculating the area of a trapezoid
(Top length + bottom length) * height / 2
The ST language simplifies this code.
You can use ST as an element in a ladder diagram or create a program in ST only.
ST is ideal for:
1. Arithmetic operations and function calculation
+, -, *, /, SIN, COS, TAN, etc.
2. Loop and condition constructs
IF THEN, FOR NEXT, etc.
3. Text string processing
Joining, extracting, searching, and replacing text strings
The next section gives more detailed explanation about programming with variables.

20
1-3 Programming with Variables
1-3-1 Programming the NX1P
Variables are names defined by the user. They are used for programming the NX1P
although addresses are used for the CJ2 and other traditional PLCs.
Programming the NX1P
Programming with variables eliminates the need to remember addresses and makes
programming faster and easier.
Programming with variables means that you can create programs using the names on your
control panel or touchscreen as shown below.
Programming Traditional PLCs
I/O numbers and timer numbers (0.00 and T0000 shown in the figure below) are used to
program traditional PLCs such as CJ2.
For most PLCs, comments can be added to the numbers in order to easily understand what
the numbers mean. Omron calls the comment “I/O comment”.
Table of contents
Other Omron Controllers manuals

Omron
Omron CQM1H - 08-2005 Parts list manual

Omron
Omron Sysmac CP1H User manual

Omron
Omron NX Series User manual

Omron
Omron CVM1D User manual

Omron
Omron F3SP-U2P User manual

Omron
Omron E5AK-AA2-500 AC/DC24 User manual

Omron
Omron E5CC-U-800 User manual

Omron
Omron 1S Series User guide

Omron
Omron C200H-OD212 User manual

Omron
Omron E5 Z Series User manual

Omron
Omron C200HE-CPU42-E Manual

Omron
Omron EJ1 EtherCAT User manual

Omron
Omron E5*N Series User manual

Omron
Omron Smart Process Control CJ-Series User manual

Omron
Omron E5ED-82 Series User manual

Omron
Omron E5ED-B User manual

Omron
Omron CK3W-AX2323 Series User guide

Omron
Omron MC3 Series User manual

Omron
Omron C200H-MC221 - User manual

Omron
Omron E5CN User manual