NX1P2 CPU Unit: Built-In I/O and Option Board User's Manual
NX1P2 CPU Unit: Built-In I/O and Option Board User's Manual
NX-series
NX1P2 CPU Unit
CPU Unit
W579-E1-05
NOTE
• 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 manual is subject to change without notice.
• Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsi-
bility for errors or omissions.
Neither is any liability assumed for damages resulting from the use of the information contained in this publication.
Trademarks
• Sysmac and SYSMAC are trademarks or registered trademarks of OMRON Corporation in Japan and other
countries for OMRON factory automation products.
• Microsoft, Windows, Excel, and Visual Basic are either registered trademarks or trademarks of Microsoft Corpora-
tion in the United States and other countries.
• EtherCAT® is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany.
• ODVA, CIP, CompoNet, DeviceNet, and EtherNet/IP are trademarks of ODVA.
Other company names and product names in this document are the trademarks or registered trademarks of their
respective companies.
Copyrights
• Microsoft product screen shots reprinted with permission from Microsoft Corporation.
• 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/.
Introduction
Introduction
Thank you for purchasing an NX-series NX1P2 CPU Unit.
This manual contains information that is necessary to use the NX-series NX1P2 CPU Unit. Please read
this manual and make sure you understand the functionality and performance of the NX-series NX1P2
CPU Unit before you attempt to use it in a control system.
Keep this manual in a safe place where it will be available for reference during operation.
Intended Audience
This manual is intended for the following personnel, who must also have knowledge of electrical sys-
tems (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.
• Personnel in charge of managing FA systems and facilities.
For programming, this manual is intended for personnel who understand the programming language
specifications in international standard IEC 61131-3 or Japanese standard JIS B 3503.
Applicable Products
This manual covers the following products.
• NX-series NX1P2 CPU Units
• NX1P2-11
• NX1P2-111
• NX1P2-10
• NX1P2-101
• NX1P2-90
• NX1P2-901
• NX1P2-9B
• NX1P2-9B1
Part of the specifications and restrictions for the CPU Units are given in other manuals. Refer to Rele-
vant Manuals on page 7 and Related Manuals on page 19.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 1
CONTENTS
CONTENTS
Introduction .............................................................................................................. 1
Intended Audience ....................................................................................................................................... 1
Applicable Products ..................................................................................................................................... 1
CONTENTS................................................................................................................ 2
Versions .................................................................................................................. 16
Checking Versions ..................................................................................................................................... 16
Unit Versions of CPU Units and Sysmac Studio Versions ......................................................................... 18
Terminology ............................................................................................................ 23
2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
CONTENTS
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 3
CONTENTS
4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
CONTENTS
Section 9 Troubleshooting
9-1 Overview of Troubleshooting ............................................................................................... 9-2
9-2 Option Board Errors.............................................................................................................. 9-3
9-2-1 Checking for Errors and Troubleshooting with the ERR Indicator on Option Boards ................. 9-3
Appendices
A-1 Version Information...............................................................................................................A-2
Index
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 5
CONTENTS
6 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Relevant Manuals
Relevant Manuals
The following table provides the relevant manuals for the NX-series NX1P2 CPU Units. Read all of the
manuals that are relevant to your system configuration and application before you use the NX-series
NX1P2 CPU Unit.
Most operations are performed from the Sysmac Studio Automation Software. Refer to the Sysmac Stu-
dio Version 1 Operation Manual (Cat. No. W504) for information on the Sysmac Studio.
Manual
Basic information
Hardware User’s Manual
NX-series NX1P2 CPU Unit
Troubleshooting Manual
NJ/NX-series
Built-in I/O and Option Board User’s Manual
Purpose of use
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 7
Manual Structure
Manual Structure
Page Structure
The following page structure is used in this manual.
A step in a procedure 1 Join the Units so that the connectors fit exactly.
Hook
Indicates a procedure. Connector
Hook holes
Lock
Release
Slider
Manual name NJ-series CPU Unit Hardware User’s Manual (W500) 4-9
Note This illustration is provided only as a sample. It may not literally appear in this manual.
8 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Manual Structure
Special Information
Special information in this manual is classified as follows:
Additional Information
Version Information
Information on differences in specifications and functionality for CPU Units with different unit
versions and for different versions of the Sysmac Studio is given.
Note References are provided to more detailed or related information.
Precaution on Terminology
In this manual, “download” refers to transferring data from the Sysmac Studio to the physical Controller
and “upload” refers to transferring data from the physical Controller to the Sysmac Studio.
For the Sysmac Studio, synchronization is used to both upload and download data. Here, “synchronize”
means to automatically compare the data for the Sysmac Studio on the computer with the data in the
physical Controller and transfer the data in the direction that is specified by the user.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 9
Terms and Conditions Agreement
Warranties
Exclusive Warranty
Omron’s exclusive warranty is that the Products will be free from defects in materials and workman-
ship 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-com-
plying 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 combi-
nation with any electrical or electronic components, circuits, system assemblies or any other materi-
als 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.
10 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Terms and Conditions Agreement
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 com-
plete determination of the suitability of the Product in combination with the end product, machine, sys-
tem, 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 applica-
tion responsibility in all cases.
NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY OR IN LARGE QUANTITIES 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 EQUIP-
MENT 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 perfor-
mance 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.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 11
Safety Precautions
Safety Precautions
Refer to the following manuals for safety precautions.
• NX-series NX1P2 CPU Unit Hardware User’s Manual (Cat. No. W578)
12 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Precautions for Safe Use
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 13
Precautions for Correct Use
14 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Regulations and Standards
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 15
Versions
Versions
Hardware revisions and unit versions are used to manage the hardware and software in NX-series
Units and EtherCAT slaves.
The hardware revision or unit version is updated each time there is a change in hardware or software
specifications. Even when two Units or EtherCAT slaves have the same model number, they will have
functional or performance differences if they have different hardware revisions or unit versions.
Checking Versions
You can check versions in the ID information indications on the product or with the Sysmac Studio.
MAC address
PORT1 :
PORT2 :
Hardware
Unit version Ver.1. HW Rev. revision
LOT No. DDMYY xxxx
ID information indication
1 Right-click CPU Rack under Configurations and Setup - CPU/Expansion Racks in the Multi-
view Explorer and select Display Production Information.
The Production Information Dialog Box is displayed.
16 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Versions
2 Click the Show Detail or Show Outline Button at the lower right of the Production Information
Dialog Box.
The view will change between the production information details and outline.
The information that is displayed is different for the Outline View and Detail View. The Detail View
displays the unit version, hardware version, and software versions. The Outline View displays only
the unit version.
Note The hardware revision is separated by “/” and displayed on the right of the hardware version. The hard-
ware revision is not displayed for the Unit that the hardware revision is in blank.
1 Double-click EtherCAT under Configurations and Setup in the Multiview Explorer. Or,
right-click EtherCAT under Configurations and Setup and select Edit from the menu.
The EtherCAT Tab Page is displayed for the Controller Configurations and Setup Layer.
2 Right-click the master on the EtherCAT Tab Page and select Display Production Information.
The Production Information Dialog Box is displayed.
The unit version is displayed after “Rev.”
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 17
Versions
18 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Related Manuals
Related Manuals
The following manuals are related. Use these manuals for reference.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 19
Related Manuals
20 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Related Manuals
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 21
Related Manuals
22 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Terminology
Terminology
Term Description
absolute encoder home offsets This data is used to restore in the CPU Unit the actual position of a Servo Drive with
an absolute encoder. The offset is the difference between the command position
after homing and the absolute data that is read from the absolute encoder.
array specification One of the variable specifications. An array variable contains multiple elements of
the same data type. The elements in the array are specified by serial numbers
called subscripts that start from the beginning of the array.
AT One of the attributes of a variable.
This attribute allows the user to specify what is assigned to a variable. An I/O port
or an address in memory used for CJ-series Units can be specified.
axes groups A functional unit that groups together axes within the Motion Control Function Mod-
ule.
Axes Group Variable A system-defined variable that is defined as a structure and provides status infor-
mation and some of the axes parameters for an individual axes group.
An Axes Group Variable is used to specify an axes group for motion control instruc-
tions and to monitor the command interpolation velocity, error information, and
other information for the axes group.
axis A functional unit within the Motion Control Function Module. An axis is assigned to
the drive mechanism in an external Servo Drive or the sensing mechanism in an
external Encoder Input Slave Unit.
Axis Variable A system-defined variable that is defined as a structure and provides status infor-
mation and some of the axis parameters for an individual axis.
An Axis Variable is used to specify an axis for motion control instructions and to
monitor the command position, error information, and other information for the axis.
basic data type Any of the data types that are defined by IEC 61131-3.
They include Boolean, bit string, integer, real, duration, date, time of day, date and
time, and text string data types.
“Basic data type” is used as opposed to derivative data types, which are defined by
the user.
cam data variable A variable that represents the cam data as a structure array.
A cam data variable is an array structure that consists of phases and displace-
ments.
CJ-series Unit Any of the CJ-series Units that can be used with an NJ-series Controller.
Communications Coupler Unit The generic name of an interface unit for remote I/O communications on a network
between NX Units and a host network master. For example, an EtherCAT Coupler
Unit is a Communications Coupler Unit for an EtherCAT network.
Constant One of the attributes of a variable.
If you specify the Constant attribute for a variable, the value of the variable cannot
be written by any instructions, ST operators, or CIP message communications.
Controller The range of devices that are directly controlled by the CPU Unit.
In the NX-series System, the Controller includes the CPU Rack and EtherCAT
slaves (including general-purpose slaves and Servo Drives).
In the NJ-series System, the Controller includes the CPU Rack, Expansion Racks,
and EtherCAT slaves (including general-purpose slaves and Servo Drives).
Controller error Errors that are defined by the NJ/NX-series System.
“Controller error” is a collective term for major fault level, partial fault level, minor
fault level, and observation Controller events.
Controller event One of the events in the NJ/NX-series System. Controller events are errors and
information that are defined by the system for user notification. A Controller event
occurs when the system detects a factor that is defined as a Controller event.
Controller information Information that is defined by the NJ/NX-series System that is not an error. It rep-
resents an information Controller event.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 23
Terminology
Term Description
CPU Unit The Unit that serves as the center of control for a Machine Automation Controller.
The CPU Unit executes tasks, refreshes I/O for other Units and slaves, etc. The
NJ/NX-series CPU Units include NX701-, NX1P2-, NJ501-,
and NJ301-.
derivative data type A data type that is defined by the user. Structures, unions, and enumerations are
derivative data types.
device A general term for any Unit or slave that is refreshed by the I/O refreshing that is
performed by the CPU Unit. Specifically, it refers to EtherCAT slaves, NX Units on
the CPU Unit, built-in I/O, Option Boards, and CJ-series Units.
device output An output for any Unit or slave that is refreshed by the I/O refreshing that is per-
formed by the CPU Unit.
device variable A variable that is used to access a specific device through an I/O port.
download To transfer data from the Sysmac Studio to the Controller with the synchronization
operation of the Sysmac Studio.
edge One of the attributes of a variable.
This attribute makes a BOOL variable pass TRUE to a function block when the vari-
able changes from FALSE to TRUE or when it changes from TRUE to FALSE.
enumeration One of the derivative data types. This data type takes one item from a prepared
name list of enumerators as its value.
enumerator One of the values that an enumeration can take expressed as a character string.
The value of an enumeration is one of the enumerators.
EtherCAT Master Function Module One of the function modules. This function module controls the EtherCAT slaves as
the EtherCAT master.
EtherNet/IP Function Module One of the function modules. This function module controls the built-in EtherNet/IP
port.
event log A function that recognizes and records errors and other events.
Event Setup Settings that define user-defined errors and user-defined information.
event task A task that executes a user program only once when the task execution conditions
are met.
FB An acronym for “function block.”
forced refreshing Forcing the refreshing of an input from an external device or an output to an exter-
nal device, e.g., when the user debugs a program.
Addresses that are subject to forced refreshing can still be overwritten from the
user program.
FUN An abbreviation for “function.”
function A POU that is used to create an object that determines a unique output for the
same input, such as for data processing.
function block A POU that is used to create an object that can have a different output for the same
input, such as for a timer or counter.
function module One of the functional units of the software configuration of the CPU Unit.
general-purpose slave Any of the EtherCAT slaves that cannot be assigned to an axis.
global variable A variable that can be read or written from all POUs (programs, functions, and func-
tion blocks).
I/O map settings Settings that assign variables to I/O ports. Assignment information between I/O
ports and variables.
I/O port A logical interface that is used by the CPU Unit to exchange data with an external
device (slave or Unit).
I/O refreshing Cyclic data exchange with external devices that is performed with predetermined
memory addresses.
information One of the event levels for Controller events or user-defined events. These are not
errors, but appear in the event log to notify the user of specific information.
24 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Terminology
Term Description
Initial Value One of the attributes of a variable. The variable is set to the initial value in the fol-
lowing situations.
• When power is turned ON
• When the CPU Unit changes to RUN mode
• When you specify to initialize the values when the user program is transferred
• When a major fault level Controller error occurs
inline ST ST programming that is included within a ladder diagram program.
instruction The smallest unit of the processing elements that are provided by OMRON for use
in POU algorithms. There are ladder diagram instructions (program inputs and out-
puts), function instructions, function block instructions, and ST statements.
literal A constant expression that is used in a user program.
local variable A variable that can be accessed only from inside the POU in which it is defined.
“Local variable” is used as opposed to “global variable.”
Local variables include internal variables, input variables, output variables, in-out
variables, and external variables.
main memory The memory inside the CPU Unit that is used by the CPU Unit to execute the OS
and user program.
major fault level Controller error An error for which all NJ/NX-series Controller control operations stop. The CPU Unit
immediately stops user program execution and turns OFF the loads for all slaves and
Units (including remote I/O).
MC Test Run A function to check motor operation and wiring from the Sysmac Studio.
memory used for CJ-series Units One type of I/O memory in an NX1P2 CPU Unit and NJ-series CPU Unit. It contains
addresses that can be directly specified by the user.
It can be accessed only with variables with an AT attribute. This memory is used to
access CJ-series Units and CJ-series networks. However, you cannot connect the
CJ-series Units to the NX1P2 CPU Units.
minor fault level Controller error An error for which part of the control operations for one of the function modules in
the NJ/NX-series Controller stop.
The NJ/NX-series CPU Unit continues operation even after a minor fault level Con-
troller error occurs.
Motion Control Function Module One of the function modules. The MC Function Module performs motion control
based on commands from the motion control instructions that are executed in the
user program.
motion control instruction A function block instruction that executes motion control.
The Motion Control Function Module supports instructions that are based on func-
tion blocks for PLCopen® motion control as well as instructions developed specifi-
cally for the Motion Control Function Module.
namespace A system that is used to group and nest the names of functions, function block defi-
nitions, and data types.
Network Publish One of the attributes of a variable.
This attribute allows you to use CIP message communications or tag data links to
read/write variables from another Controller or from a host computer.
NX bus The NX-series internal bus. An NX1P2 CPU Unit has the NX bus.
NX Units Any of the NX-series Units that perform I/O processing with connected external
devices. The Communications Coupler Units are not included with the NX Units.
observation One of the event levels for Controller events or user-defined events.
These are minor errors that do not affect control operations, but appear in the event
log to notify the user of specific information.
partial fault level Controller error An error for which all of the control operations for one of the function modules in the
NJ/NX-series Controller stop.
An NJ/NX-series CPU Unit continues operation even after a partial fault level Con-
troller error.
PDO communications An abbreviation for process data communications. Data is exchanged between the
master and slaves on a process data communications cycle. (The process data com-
munications cycle is the same as the task period of the primary periodic task.)
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 25
Terminology
Term Description
periodic task A task for which user program execution and I/O refreshing are performed each
period.
PLC Function Module One of the function modules. This function module executes the user program,
sends commands to the Motion Control Function Module, and provides an interface
to the USB and SD Memory Card.
POU An acronym for “program organization unit.” A POU is a unit in a program execution
model that is defined in IEC 61131-3.
A POU contains an algorithm and a local variable table and forms the basic unit
used to build a user program.
There are three types of POUs: programs, functions, and function blocks.
primary periodic task The task with the highest priority.
process data communications One type of EtherCAT communications in which process data objects (PDOs) are
used to exchange information cyclically and in realtime. Process data communica-
tions are also called PDO communications.
program Along with functions and function blocks, one of the three types of POUs.
Programs are assigned to tasks to execute them.
Range Specification One of the variable specifications. You can specify a range for a variable in
advance. The variable can take only values that are in the specified range.
Retain One of the attributes of a variable. The values of variables with a Retain attribute
are held at the following times. (Variables without a Retain attribute are set to their
initial values.)
• When power is turned ON after power interruption
• When the CPU Unit changes to RUN mode
• When you specify to not initialize the values when the user program is transferred
SDO communications One type of EtherCAT communications in which service data objects (SDOs) are
used to transmit information whenever required.
Servo Drive/encoder input slave Any of the EtherCAT slaves that is assigned to an axis. In the NJ/NX-series Sys-
tem, it would be a Servo Drive or Encoder Input Slave Unit.
slave A device that performs remote I/O for a master.
slave and Unit configurations A generic term for the EtherCAT configuration and Unit configuration.
Slave Terminal A building-block remote I/O terminal to which a Communications Coupler Unit and
NX Units are mounted. A Slave Terminal is one type of slave.
Special Unit Setup A generic term for the settings for a Special Unit, including the settings in allocated
DM Area words.
structure One of the derivative data types. It consists of multiple data types placed together
into a layered structure.
synchronization A function that automatically compares the information in the NJ/NX-series Control-
ler with the information in the Sysmac Studio, displays any differences and loca-
tions in a hierarchical form, and can be used to synchronize the information.
Sysmac Studio A computer software application for setting, programming, debugging, and trouble-
shooting NJ/NX-series Controllers. It also provides operations for motion control
and a Simulator.
system common processing System processing that is performed by the CPU Unit to perform I/O refreshing and
the user program execution within a task. Exclusive control of variables between
tasks, data trace processing, and other processing is performed.
system service Processing that is performed by the CPU Unit in unused time between task pro-
cessing. The system service includes communications processing, SD Memory
Card access processing, self-diagnosis processing, and other processing.
system-defined variable A variable for which all attributes are defined by the system and cannot be changed
by the user.
task An attribute that defines when a program is executed.
task period The interval at which the primary periodic task or a periodic task is executed.
union One of the derivative data types. It allows you to handle the same data as different
data types.
Unit A device that mounts to the CPU Rack or an Expansion Rack.
26 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Terminology
Term Description
Unit configuration The configuration information for the Units that are set on the Sysmac Studio. This
information tells what Unit models are connected to the CPU Unit and where they
are connected.
upload To transfer data from the Controller to the Sysmac Studio with the synchronization
operation of the Sysmac Studio.
user program All of the programs in one project.
user-defined event One of the events in the NJ/NX-series System. These events are defined by the
user. “User-defined events” is a generic term for user-defined errors and
user-defined information.
user-defined variable A variable for which all of the attributes are defined by the user and can be changed
by the user.
variable A representation of data, such as a numeric value or character string, that is used in
a user program.
You can change the value of a variable by assigned the required value. “Variable” is
used as opposed to “constant,” for which the value does not change.
variable memory A memory area that contains the present values of variables that do not have AT
specifications. It can be accessed only with variables without an AT attribute.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 27
Revision History
Revision History
A manual revision code appears as a suffix to the catalog number on the front and back covers of the
manual.
Revision
Date Revised content
code
01 October 2016 Original production
02 January 2017 Corrected mistakes.
03 October 2017 Added shipbuilding standards (LR).
04 January 2019 Made changes accompanying the transfer of explanation for event codes and
errors to the NJ/NX-series Troubleshooting Manual.
05 October 2019 • Added information on the NX1P2-9B.
• Corrected mistakes.
28 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Sections in this Manual
1 A
2 I
Introduction to NX1P2
1 CPU Units A Appendices
3
3 Option Boards
5
4 Serial Communications 6
7
5 Analog I/O
8
6 Introduction of Motion Control Functions
9
Introduction of EtherNet/IP Communications
7 Functions
9 Troubleshooting
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 29
Sections in this Manual
30 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
1
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 1-1
1 Introduction to NX1P2 CPU Units
NX1P2-
Item
11 10 90 9B
Instruction LD instruction 3.3 ns
Process-
execution Math instructions (for long real 70 ns or more
ing time
times data)
Size 1.5 MB 1.0 MB
Number of POU 450
Program
definitions
capacity*1 Quantity
Number of POU 1,800
instances
Size 32 KB
Retain attri-
Number of vari- 5,000
Memory butes
ables
capacity for
Size 2 MB
Program- variables*2 No Retain
ming Number of vari- 90,000
attributes
ables
Data types Number of data types 1,000
Memory for CIO Area 0 to 6,144 words (CIO 0 to CIO 6,143)*3
CJ-series
Work Area 0 to 512 words (W0 to W511)*3
Units (Can be
specified with Holding Area 0 to 1,536 words (H0 to H1,535)*4
AT specifica- DM Area 0 to 16,000 words (D0 to D15,999)*4
tions for vari- ---
EM Area
ables.)
Maximum number of controlled 12 axes 10 axes 4 axes 2 axes
axes
Motion control 8 axes 6 axes ---
axes
Single-axis posi- 4 axes 2 axes
tion control
axes
Maximum number of used real 8 axes 6 axes 4 axes 2 axes
axes
Number of
controlled Used motion 4 axes 2 axes ---
Motion *5 control servo
axes
control axes
Used sin- 4 axes 2 axes
gle-axis posi-
tion control
servo axes
Maximum number of axes for 4 axes per axes group ---
linear interpolation axis control
Number of axes for circular 2 axes per axes group ---
interpolation axis control
Maximum number of axes groups 8 axes groups ---
Motion control period Same as the period for primary periodic task
1-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
1 Introduction to NX1P2 CPU Units
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 1-3
1 Introduction to NX1P2 CPU Units
NX1P2-
Item
11 10 90 9B
Communications standard IEC 61158 Type12
EtherCAT master specifications Class B (Feature Pack Motion Control compliant)
Physical layer 100BASE-TX
Modulation Baseband
Baud rate 100 Mbps (100BASE-TX)
Duplex mode Auto
Topology Line, daisy chain, and branching
Twisted-pair cable of category 5 or higher (dou-
Transmission media ble-shielded straight cable with aluminum tape and braid-
ing)
Maximum transmission distance between 100 m
Built-in nodes
Ether- Maximum number of slaves 16 8
CAT port Range of node addresses that can be set 1 to 192
Input: 1,434 bytes
Output: 1,434 bytes
Maximum process data size
However, the maximum number of process data frames
is 1.
Input: 1,434 bytes
Maximum process data size per slave
Output: 1,434 bytes
2,000 to 8,000 μs (in 250-μs increments) 4,000 to
8,000 μs (in
Communications cycle
250-μs incre-
ments)
Sync jitter 1 μs max.
Serial Communications method Half duplex
commu- Synchronization Start-stop
nica- Baud rate 1.2/2.4/4.8/9.6/19.2/38.4/57.6/115.2 kbps
tions Transmission distance Depends on Option Board.
(Serial Host link (FINS), Modbus-RTU master, and no-protocol
Commu-
nica-
tions Supported protocol
Option
Board)
Maximum number of NX Units 8
Maximum per CPU Rack
number of 24
Unit con- connectable Maximum number of NX Units
On CPU Rack: 8
figura- Units for entire controller
tion On EtherCAT Slave Terminals: 16
A non-isolated power supply for DC input is built into the
Model
Power supply CPU Unit.
Power OFF detection time 2 to 8 ms
Option 2 2 1
Number of slots
Board
Input Number of points 24 24 14 *9
1-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
1 Introduction to NX1P2 CPU Units
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 1-5
1 Introduction to NX1P2 CPU Units
Step 4. Wiring
Connect the network cables and wire the I/O.
1-6 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
1 Introduction to NX1P2 CPU Units
Step 1-3
Designing Programs
POU (Program Organi- • Programs NJ/NX-series CPU Unit Soft-
zation Unit) Design • Functions and function blocks ware User’s Manual (Cat.
• Determining the algorithm languages No. W501)
Variable Design • Defining variables that you can use in more than one POU and NJ/NX-series CPU Unit Soft-
variables that you use in only specific POUs ware User’s Manual (Cat.
• Defining the variables names for the device variables that you No. W501)
use to access slaves, NX Units, and the built-in I/O
• Defining the attributes of variables, such as the Name and
Retain attributes
• Designing the data types of variables
The following Controller Configurations and Setup and the Programming and Task Settings can be performed in either
order.
Step 2-1
Slave and NX Unit Con-
figurations
1. Creating the Slave 1. Creating the slave configuration and EtherCAT Tab Page NJ/NX-series CPU Unit Soft-
and NX Unit Configura- NX Unit configuration either offline or CPU and Expansion ware User’s Manual (Cat.
tions online. (For online configuration, Racks Tab Page No. W501)
make the online connection that is NX-series EtherCAT Coupler
Slave Terminal Tab
described in step 5.) Units User’s Manual (Cat.
Page
2. Setting up any Slave Terminals that No. W519)
are used.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 1-7
1 Introduction to NX1P2 CPU Units
2. Assigning Device Registering device variables in the vari- I/O Map NJ/NX-series CPU Unit Soft-
Variables to I/O Ports able table ware User’s Manual (Cat.
(Variable names are user-defined or No. W501)
automatically created.)
Step 2-2 Setting the following parameters from the NJ/NX-series CPU Unit Soft-
Controller Setup Sysmac Studio ware User’s Manual (Cat.
Setting the initial values for the PLC Configurations and No. W501)
Function Module Setup − Controller
Setup − Operation
Settings
(When battery is used)Setting the Controller − Con-
clock data with the clock function troller Clock
Setting the initial values for the NX Configurations and
Bus Function Module Setup −
CPU/Expansion
Racks − CPU Rack
(The following step is for motion Configurations and
control.) Setup − Motion
Setting the initial settings for the Control Setup
Motion Control Function Module
Setting the initial values for the Eth- Configurations and
erCAT Function Module Setup − EtherCAT
Setting the initial values for the Eth- Configurations and
erNet/IP Function Module Setup − Controller
Setup − Built-in
EtherNet/IP Port
Settings
Setting the initial values for the Configurations and 2-4-1 Built-in I/O Settings on
built-in I/O Setup − Controller page 2-8
Setup − Built-in I/O
Settings
Setting the initial values for an Configurations and 3-2-1 Settings on page 3-4
Option Board Setup − Controller
Setup − Option
Board Settings
Step 2-3
Programming
1-8 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
1 Introduction to NX1P2 CPU Units
Step 2-4 Checking the algorithms and task execu- NJ/NX-series CPU Unit Soft-
Offline Debugging tion times on the Simulator (virtual con- ware User’s Manual (Cat.
troller) No. W501)
Step 4. Wiring
Step Description Reference
1. Connecting the • Connecting the power supply and ground wires NX-series NX1P2 CPU Unit
Power Supply to the Hardware User’s Manual
CPU Unit (Cat. No. W578)
2. Connecting Ether- • Connecting the built-in EtherCAT port NJ/NX-series CPU Unit
net Cable • Connecting the built-in EtherNet/IP port Built-in EtherCAT Port User’s
Manual (Cat. No. W505)
NJ/NX-series CPU Unit
Built-in EtherNet/IP Port
User’s Manual (Cat. No.
W506)
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 1-9
1 Introduction to NX1P2 CPU Units
3. Wiring I/O • Wiring the built-in I/O NX-series NX1P2 CPU Unit
• Wiring I/O for NX Units Hardware User’s Manual
• Wiring Option Boards (Cat. No. W578)
Manuals for the specific NX
Units
• Wiring I/O to EtherCAT slaves Operation manuals for the
EtherCAT slaves
NX-series NX1P2 CPU Unit
Hardware User’s Manual
(Cat. No. W578)
• Checking wiring Sysmac Studio Version 1
Operation Manual (Cat. No.
W504)
4. Connecting the • Connecting the built-in EtherNet/IP port Sysmac Studio Version 1
Computer That Runs Operation Manual (Cat. No.
the Sysmac Studio W504)
2. Operation Check on 1. Check the wiring by using forced --- NJ/NX-series CPU Unit Soft-
Controller refreshing of real I/O from the I/O Map ware User’s Manual (Cat.
or Watch Tab Page. No. W501)
2. For motion control, use the MC Test
Run operations in PROGRAM mode
to check the wiring. Then check the
motor rotation directions for jogging,
travel distances for relative
positioning (e.g., for electronic gear
settings), and homing operation.
3. Change the Controller to RUN mode
and check the operation of the user
program.
1 - 10 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
2
Built-in I/O
This section describes the built-in I/O of the NX1P2 CPU Units.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 2-1
2 Built-in I/O
NX1P2-24DT/-24DT1
IN + --- COM 01 03 05 07 09 11 13
+ --- 00 02 04 06 08 10 12 NC NC
POWER
RUN
Input terminal block
NX1P2-24DT
LINK/ACT
1
NC NC 00 02 04 06 08 NC NC NC NC
OUT C0 (0V) 01 03 05 07 09 NC NC NC NC NC
NX1P2-24DT1
LINK/ACT
1
NC C0 (+V) 00 02 04 06 08 NC NC NC NC
OUT 0V0 01 03 05 07 09 NC NC NC NC NC
2-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
2 Built-in I/O
+ - COM 01 03 05 07 09 11 13
+ - 00 02 04 06 08 10 12 NC NC
NC NC 00 02 04 06 08 NC NC NC NC
C0 (0V) 01 03 05 07 09 NC NC NC NC NC
2
NX1P2-24DT1
NC C0 (+V) 00 02 04 06 08 NC NC NC NC
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 2-3
2 Built-in I/O
NX1P2-40DT/-40DT1
IN + --- COM 01 03 05 07 09 11 13 15 17 19 21
+ --- 00 02 04 06 08 10 12 14 16 18 20 22 23
POWER
RUN
Input terminal block
NX1P2-40DT
LINK/ACT
1 2
NC NC 00 02 04 06 NC 08 10 12 14
OUT C0 (0V) 01 03 05 07 C1 (0V) 09 11 13 15 NC
NX1P2-40DT1
LINK/ACT
1 2
NC C0 (+V) 00 02 04 06 C1 (+V) 08 10 12 14
OUT 0V0 01 03 05 07 0V1 09 11 13 15 NC
+ - COM 01 03 05 07 09 11 13 15 17 19 21
+ - 00 02 04 06 08 10 12 14 16 18 20 22 23
NC NC 00 02 04 06 NC 08 10 12 14
C0 (0V) 01 03 05 07 C1 (0V) 09 11 13 15 NC
NX1P2-40DT1
NC C0 (+V) 00 02 04 06 C1 (+V) 08 10 12 14
0V0 01 03 05 07 0V1 09 11 13 15 NC
2-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
2 Built-in I/O
Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) for I/O ports and device 2
variables.
Refer to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504) for how to register device
2-2-1 NX1P2-24DT/-24DT1
variables with the Sysmac Studio.
2-2-1 NX1P2-24DT/-24DT1
General Input
General Output
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 2-5
2 Built-in I/O
2-2-2 NX1P2-40DT/-40DT1
General Input
General Output
2-6 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
2 Built-in I/O
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 2-7
2 Built-in I/O
2-4 Settings
The following describes the settings of the built-in I/O.
Select Built-in I/O Settings under Configurations and Setup - Controller Setup to display the
Built-in I/O Settings Tab Page.
Setting Changes in
Item Description Set value Default Update timing
group RUN mode
Input Filter Input Filter Set the filter time for No filter 1 ms*1 When downloaded Not
Settings input signals. 0.25 ms to CPU Unit allowed.
0.5 ms
1 ms
2 ms
4 ms
8 ms
16 ms
32 ms
64 ms
128 ms
256 ms
Operation Set the operating • ON and OFF fil- ON and When downloaded Not
Mode*2 mode for the input fil- ters OFF filters to CPU Unit allowed.
ter. • OFF filter only
Load Rejec- Set the output at load Turn OFF Turn OFF When downloaded Not
tion Output rejection. Hold the present to CPU Unit allowed.
Settings value
2-8 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
2 Built-in I/O
*1. If a value is set for the input filter time that is smaller than the default value, incorrect input caused by external noises
occurs more easily. If an incorrect input occurs, either change the setting to make a long input filter time or take counter-
measures, such as separate the Unit or signal lines and noise source, or protect the Unit or signal lines.
*2. You cannot edit this setting when the Input Filter is set to No filter.
2-4 Settings
To use I/O data in the user program, you assign a device variable to each I/O port.
Select Configurations and Setup - I/O Map to display the I/O Map.
2
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 2-9
2 Built-in I/O
2-5 Functions
The following shows the details on the functions available for the built-in I/O.
Application
This function prevents data changes and unstable data caused by changes of input data and unstable
status of input bits due to chattering and noise.
You can also use this function to make the settings to easily read the pulses that ON time is short.
1 2 3 4 1 2 3 4
ON
Values of input
terminals
OFF
ON OFF OFF ON ON ON ON ON
Input value is OFF Input value is ON
because all inputs because all inputs
are not ON during are ON during
four times of reading. four times of reading.
ON
Input value
OFF
2 - 10 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
2 Built-in I/O
1 2 3 4 1 2 3 4
ON
Values of input
2-5 Functions
terminals
OFF
If the Operation Mode in the Input Filter Settings is OFF filter only
ON filter is disabled and OFF filter is enabled.
This makes easily to read the pulses that ON time is short.
1 2 3 4 1 2 3 4
ON ON
Values of input
terminals
OFF OFF
ON OFF OFF OFF OFF ON OFF ON OFF OFF OFFOFF
ON ON
Input value
OFF OFF
When input is ON (ON filter disabled) When input is ON (ON filter disabled)
If the status of input terminals turns ON, If the status of input terminals turns ON,
the input value will turn ON immediately. the input value will turn ON immediately.
When input is OFF (OFF filter enabled) When input is OFF (OFF filter enabled)
If the status of input terminals does If the status of input terminals turns
not turn ON again during the input ON again during the input filter time,
filter time, the input value will turn the input value stays ON from that
OFF after the input filter time has time during the input filter time.
passed.
Additional Information
If a value is set for the input filter time that is smaller than the default value, incorrect input
caused by external noises occurs more easily. If an incorrect input occurs, either change the
setting to make a long input filter time or take countermeasures, such as separate the Unit or
signal lines and noise source, or protect the Unit or signal lines.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 2 - 11
2 Built-in I/O
Settings
Configure the settings in the Built-in I/O Settings Tab Page, which is displayed by selecting Built-in I/O
Settings under Configurations and Setup - Controller Setup.
Each setting corresponds to 4 consecutive inputs.
Precautions
Note that when you use this function, the time for which the input value actually turns ON or turns OFF
is delayed from the initial input to the input terminals until delay time in the following table.
Application
This function maintains a safe output status by performing a preset output operation if a watchdog timer
error or an error in the major fault level occurs in the CPU Unit.
Settings
Configure the settings in the Built-in I/O Settings Tab Page, which is displayed by selecting Built-in I/O
Settings under Configurations and Setup - Controller Setup.
Each setting corresponds to 1 output.
2 - 12 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
2 Built-in I/O
The CPU Unit reads input values into device variables at the time of I/O refreshing. 2
The CPU Unit updates the outputs with the values of the device variables read at the time of I/O
refreshing.
Input values:
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 2 - 13
2 Built-in I/O
The CPU Unit refreshes outputs and reads inputs for each built-in I/O bit during the period of I/O
refreshing in the task period.
Therefore, the timing to read input values varies between input terminals and the timing to refresh out-
puts varies between output terminals.
: I/O refreshing
Additional Information
If the offset in the timing to read inputs or refresh outputs between terminals is a problem, use a
Unit that supports synchronous I/O refreshing. By using a Unit that supports synchronous I/O
refreshing, you can synchronize the timing to read inputs and refresh outputs between termi-
nals and Units.
Some NX Units connected to a CPU Unit or EtherCAT Slave Terminal and Units other than NX
Units support synchronous I/O refreshing.
Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) or the NX-series
EtherCAT Coupler Unit User’s Manual (Cat. No. W519) for synchronous I/O refreshing.
2 - 14 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
2 Built-in I/O
Input values:
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 2 - 15
2 Built-in I/O
: I/O refreshing
Input values:
Additional Information
The input ON/OFF response time and the output ON/OFF response time vary depending on
the terminal that is used.
Refer to the NX-series NX1P2 CPU Unit Hardware User’s Manual (Cat. No. W578) for the
specifications of each terminal.
2 - 16 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Option Boards
3
This section describes the common functions of Option Boards for the NX1P2 CPU
Units.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 3-1
3 Option Boards
To use an Option Board, mount it to the option board slot on the NX1P2 CPU Unit.
Two types of Option Boards are available: Serial Communications Option Boards and Analog I/O
Option Boards.
Option board slot
IN + ---
NX1P2 CPU Unit
SW SETTING + ---
PORT1 EtherNet/IP
PORIT2 EtherCAT
1 2
OUT
COM
COM
COM
VO2
VO2
VO1
VO1
VI1
VI2
VI1
VI2
I I1
I I2
I I1
I I2
3-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
3 Option Boards
COMM COMM
COM
COM
COM
VO1
VO1
VO2
VO2
VI1
VI2
VI1
VI2
I I1
I I2
I I1
I I2
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 3-3
3 Option Boards
3-2-1 Settings
The description below is related to the settings of Option Boards to use.
Configuration
Specify the models of the Option Boards to use.
Set the Option Board configuration under Configuration in the Option Board Settings Tab Page, which
is displayed by selecting Option Board Settings under Configurations and Setup - Controller
Setup.
Changes in
Item Setting group Description Set value Default Update timing
RUN mode
Configura- Option board 1 Specify the model of Not mounted Not When downloaded Not
tion the Option Board to NX1W-CIF01 mounted to CPU Unit allowed.
Option board 2*1 use.
NX1W-CIF11
NX1W-CIF12
NX1W-ADB21
NX1W-DAB21V
NX1W-MAB221
*1. You cannot edit this setting if your CPU Unit does not support the second Option Board.
Additional Information
If you change the set Option Board configuration, the I/O Map will be changed automatically. At
the same time, the mapping of device variables to the I/O Map will also be deleted.
After you change the Option Board configuration, you need to map the device variables again.
3-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
3 Option Boards
3-2-1 Settings
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 3-5
3 Option Boards
Setting Changes in
Item Description Set value Default Update timing
group RUN mode
Option Serial com- Set the serial commu- Host Link (FINS) Host Link When downloaded Not
Board 1 munica- nications mode. Modbus-RTU Mas- (FINS) to CPU Unit allowed.
Serial Com- tions mode ter
munica-
No-Protocol
tions
Unit No. Set the unit number of 0 to 31 0 When downloaded Not
Settings
the host link when the to CPU Unit allowed.
Serial communica-
tions mode is set to
Host Link (FINS).
Baud rate Set the baud rate for 1,200 bps 9,600 bps When downloaded Not
the serial port. 2,400 bps to CPU Unit allowed.
4,800 bps
9,600 bps
19,200 bps
38,400 bps
57,600 bps
115,200 bps
Data length Set the data length. 7 bits 7 bits When downloaded Not
8 bits to CPU Unit allowed.
Parity Set the parity bit. Even Even When downloaded Not
Odd to CPU Unit allowed.
None
Stop bit Set the stop bit. 1 bit 2 bits When downloaded Not
2 bits to CPU Unit allowed.
Option The settings are the same as those for the Option Board 1 Serial Communications Settings.
Board 2 However, you cannot edit this setting if your CPU Unit does not support the second Option Board.
Serial Com-
munica-
tions
Settings
Additional Information
The host link (FINS) protocol accesses only the memory used for CJ-series Units out of the
entire memory available in the CPU unit.
Nevertheless, the NX1P2 CPU Unit does not have memory used for CJ-series Units in the
default setting. Therefore, in order to use the host link (FINS) protocol, you need to generate
memory used for CJ-series Units in the NX1P2 CPU Unit. The memory settings for CJ-series
Units are used for this purpose.
3-6 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
3 Option Boards
Setting Procedure
3-2-1 Settings
and actual operation and connected devices. Manual (Cat. No. W504)
Setting Screen
Specify the memory used for CJ-series Units in the Memory Settings for CJ-series Units Tab Page,
which is displayed by selecting Memory Settings under Configurations and Setup - Controller
Setup.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 3-7
3 Option Boards
Settings
The settings are as follows:
Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) for the specifications of
memory used for CJ-series Units.
3-8 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
3 Option Boards
The operation of the _PLC_OptBoardSta (Option Board Status) system-defined variable members is
shown below.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 3-9
3 Option Boards
To use device variables or communications instructions for an Option Board, program the .Run (Option
Board Normal Operation) member of the _PLC_OptBoardSta (Option Board Status) system-defined
variable as an interlock condition in the user program.
Example of reading analog input values from Option Board 1 to the CPU Unit using the Option Board
Normal Operation as an interlock condition
_PLC_OptBoardSta[1].Run MOVE
EN ENO
The following is an example of Option Board displayed on the I/O Map Tab Page.
3 - 10 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
3 Option Boards
1 In the Sysmac Studio, set the Option Board configuration under Configuration in the Option
Board Settings Tab Page, which is displayed by selecting Option Board Settings under Con-
figurations and Setup - Controller Setup.
2 Select Configurations and Setup - I/O Map to display the I/O Map Tab Page.
3
3 Right-click the model of Option Board to which you want to assign variables and select Display
4 Right-click Node location information and select Create Device Variable from the menu.
The variable name is written to the Variable Field of the Node location information port.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 3 - 11
3 Option Boards
The data type of variables assigned to Option Boards is _sOPTBOARD_ID structure. The details on the
_sOPTBOARD_ID structure data type are given in the following table.
Example of reading analog input values to the CPU Unit using the Option Board Normal Operation at slot
position indicated by the variables assigned to Option Board as an interlock condition
_PLC_OptBoardSta[gOptBoard_ID1.SlotNo].Run MOVE
EN ENO
OP1_Ch1_Analog_Input_Value_Valid Input value to analog input 1 read into the CPU Unit
3 - 12 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
3 Option Boards
Refer to the NJ/NX-series Instructions Reference Manual (Cat. No. W502-E1-17 or later) for details on
serial communications instructions.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 3 - 13
3 Option Boards
Serial Communications
Event level Analog I/O Option Board
Option Board
Major fault level No change. Load turned OFF for analog output.
Analog input values at error occur-
rence retained.
Partial fault level No change.
Minor fault level
Observation
Information
Event level Serial Communications Option Board Analog I/O Option Board
Option Board Configuration Veri- Host link function disabled when Host Load turned OFF for analog out-
fication Error Link (FINS) is selected. put.
Unsupported Option Board Error generated at execution of a serial Analog input value reset to 0.
Mounted communications instruction when Host
Option Board Error Link (FINS) is not selected.
Analog Option Board Startup ---
Error
Analog Option Board Communi- ---
cations Error
3 - 14 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Serial Communications
This section describes the functions of Serial Communications Option Boards for the
NX1P2 CPU Units.
4
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4-1
4 Serial Communications
Serial communi-
Connected device Description
cations mode*1
NB-series Host Link The CPU Unit exchanges data with
Programmable Terminal (FINS)*2 Programmable Terminals (PTs). For
this data exchange, memory used
NB-series Programmable Terminals for CJ-series Units is used.
access memory used for CJ-series Units No communications program is
automatically.
required on the CPU Unit side.
RS-232C or RS-422A/485
<<
<<
<<
<<
<<
Inverter
4-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
Serial communi-
Connected device Description
cations mode*1
No-Protocol The CPU Unit exchanges data with
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4-3
4 Serial Communications
4-2-1 Overview
The NX1P2 CPU Unit supports programless communications with NB-series Programmable Terminals
(hereafter NB-series Units) using the host link protocol.
To use this function, you mount a Serial Communications Option Board on the NX1P2 CPU Unit, set its
Serial communications mode to Host Link (FINS) and specify the memory used for CJ-series Units,
and connect their serial ports together.
NB-series
Programmable Terminal
RS-232C or RS-422A/485
4-2-2 Procedure
The operating procedure is described below.
Overall Procedure
2 Specifying memory used for CJ-series Units Determining the usable memory
4-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
Terminals
3 Programming In the Sysmac Studio, create a program 4-2-4 Programming on page 4-8
to access the memory used for CJ-series
Units by using user-defined variables
with AT specifications.
4 Mounting and setting If you are using an NX1W-CIF11/CIF12 4-2-5 Connection Examples on page 4
hardware Option Board, set the operation setting 4-9
DIP switches on the back. NX-series NX1P2 CPU Unit Hard-
4-2-2 Procedure
Mount the Option Boards and necessary ware User’s Manual (Cat. No. W578)
Units.
Install the CPU Unit and NB-series Units.
5 Wiring and power ON Connect the serial communications ter-
minals of the Option Boards and
NB-series Units.
Wire the power supply terminals and turn
ON the power supply.
6 Downloading the proj- Download the project from the Sysmac NJ/NX-series CPU Unit Software
ect Studio. User’s Manual (Cat. No. W501)
7 Checking operation Check the operation of the user program Sysmac Studio Version 1 Operation
and actual operation and screen data. Manual (Cat. No. W504)
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4-5
4 Serial Communications
4-2-3 Settings
Set the area type and the number of words of memory enough to include the memory that will be
used for the screen data to create.
4-6 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
CIF11 CIF12
Setting Setting description
SW No. SW No.
SW1 1 SW1 1 ON With terminating resistance*1
2 2 OFF Four-wire type
3 3 OFF Four-wire type
4 4 OFF (Not used)
5 SW2 1 OFF Without RS control for receive data (Always
Terminals
receive data)
6 2 OFF Without RS control for send data (Always send
data)
*1. Turn this OFF if the NX1W-CIF11/CIF12 is not the terminating device.
4
4-2-3 Settings
In the NB-Designer, create a project and select the serial port to use in the Configuration and Setup
Window.
The settings are as follows:
Refer to the NB-series Programmable Terminals NB-Designer Operation Manual (Cat. No. V106) for
the detailed settings.
Refer to 4-2-5 Connection Examples on page 4-9 for information on wiring the serial port.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4-7
4 Serial Communications
4-2-4 Programming
Assign the user-defined variables that are used in the user program on the CPU Unit to the memory
used for CJ-series Units that will be accessed by the NB-series Unit by using AT specification.
Then, create the user program for communicating with the NB-series Unit.
Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) for memory used for
CJ-series Units and AT specification.
Additional Information
The NX1P2 CPU Unit performs programless communications with NB-series Units using the
host link (FINS) protocol.
The host link (FINS) protocol accesses only the memory used for CJ-series Units out of the
entire memory available in the CPU unit based on address specification.
In other words, the CPU Unit uses the memory used for CJ-series Units to communicate data
with NB-series Units.
On the other hand, the NX1P2 CPU Unit uses variables for all processing tasks, for example, to
exchange I/O information with external devices, perform data calculations, and so on.
Therefore, to access memory used for CJ-series Units from the user program on the CPU Unit,
you need to assign user-defined variables to it. This assignment of user-defined variables to
memory used for CJ-series Units is called AT specification.
NX1P2 CPU Unit NB-series Unit
User-defined Memory used for
User program variables CJ-series Units
AT CIO
Data reading, specification
data calculation, Variable Example 1200.00 Button
data transfer, etc. AT
specification
Variable Example 1201.00 Lamp
4-8 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
Connecting the NX1W-CIF01 Option Board to the Serial Port (COM1) on an NB3Q Programmable Ter-
minal (RS-232C)
NB3Q COM1 connector (female) NX1W-CIF01 RS-232C terminal block
Pin No. Signal abbreviation
1 6 1 SDB+ SG0
2 SD RD
3 RD SD COMM
4 RS ER
Terminals
SG0 RD SD ER SG1 DR RS CS SHLD
5 CS SG1
6 RDB+ DR
7 SDA- RS
8 RDA- CS
5 9 9 SG SHLD
Shell FG 4
Connecting the NX1W-CIF11/CIF12 Option Board to the Serial Port (COM1) on an NB3Q Programma-
5 CS SDA-
6 RDB+ SDB+
7 SDA- SHLD
8 RDA-
5 9 9 SG
Shell FG
DIP switches on the back of the Operation setting DIP switches on the back of the
NB3Q Programmable Terminal NX1W-CIF11/CIF12 Option Board
O
N
N
1
2
3
4
1
2
3
4
O
N
N
1
2
3
4
5
6
1
2
3
4
1
2
1
2
3
4
5
6
1
2
3
4
1
2
Refer to the NB-series Programmable Terminals Setup Manual (Cat. No. V107) for wiring information
on connecting the CPU Unit to the serial ports on an NB5Q/NB7W/NB10W Programmable Terminal.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4-9
4 Serial Communications
4-3-1 Overview
The NX1P2 CPU Unit supports programless communications with E5C-series Digital Temperature
Controllers (hereafter E5C Controllers) using the host link protocol.
To use this function, you mount a Serial Communications Option Board on the NX1P2 CPU Unit, set its
Serial communications mode to Host Link (FINS) and specify the memory used for CJ-series Units,
and connect their serial ports together.
SV SV SV
<<
<<
<<
<<
<<
32 max.
E5C Controllers access memory
used for CJ-series Units automatically.
Additional Information
In programless communications with E5C Controllers, you can read and write E5C param-
eters and run/stop the Controller via the memory of a Programmable Controller (hereafter
PLC). Because E5C Controllers communicate with a PLC automatically, there is no need to
create a communications program.
Refer to the E5C Digital Temperature Controllers Use’s Manual (Cat. No. H174) for the pro-
gramless communications of E5C Controllers.
4 - 10 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
PV PV PV
SV SV SV
<<
<<
<<
<<
<<
<<
E5CC E5CC E5CC
Controllers
Memory used for
CJ-series Units
No. 0 PV, status, etc.
Upload area
No. 0 Set point, alarm value, etc.
Download area
No. 1 4
Upload area
No. 1
Download area
4-3-1 Overview
No. 2
Upload area
No. 2
Download area
Refer to the E5C Digital Temperature Controllers User’s Manual (Cat. No. H174) and the E5C Digi-
tal Temperature Controllers Communications Manual (Cat. No. H175) for details on the specifications of
E5C Controllers.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 11
4 Serial Communications
4-3-2 Procedure
Overall Procedure
2 Specifying memory used for CJ-series Units Determining the usable memory
3 Programming
Procedure Details
CPU Unit Side
4 - 12 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
Controllers
ect Studio. User’s Manual (Cat. No. W501)
7 Checking operation Check the operation of the user program Sysmac Studio Version 1 Operation
and actual operation and programless communications with Manual (Cat. No. W504)
the E5C Controller.
4-3-2 Procedure
2 Determining the Determine the number of words of mem- E5C Digital Temperature Control-
usable memory ory to make available for the E5C Con- lers User’s Manual (Cat. No. H174)
troller. E5C Digital Temperature Control-
4 Mounting and setting Install the CPU Unit and the E5C Con- lers Communications Manual (Cat.
hardware troller. No. H175)
5 Wiring and power ON Connect the serial communications ter-
minals of the Option Board and the
E5C Controller.
Wire the power supply terminals and turn
ON the power supply.
6 Configuring the serial On the E5C Controller, set the serial
communications set- communications parameters in the com-
tings munications setting level.
7 Checking operation Check the operation of the user program
and actual operation and programless communications with
the E5C Controller.
Additional Information
The CPU Unit fails to receive a command frame if a response frame from the CPU Unit is
received and the next command frame from the E5C Controller is sent too soon.
When a receiving of the command frame failed, increase the send data wait time of the E5C
Controller.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 13
4 Serial Communications
4-3-3 Settings
Determine and set the area type and the number of words based on the first address of the E5C
Controller and the number of Controllers to connect.
4 - 14 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
Controllers
CIF11 CIF12
Setting Setting description
SW No. SW No.
SW1 1 SW1 1 ON With terminating resistance*1
2 2 ON Two-wire type
3 3 ON Two-wire type 4
4 4 OFF (Not used)
5 SW2 1 ON With RS control for receive data
4-3-3 Settings
6 2 ON With RS control for send data
*1. Turn this OFF if the NX1W-CIF11/CIF12 is not the terminating device.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 15
4 Serial Communications
Refer to the E5C Digital Temperature Controllers Communications Manual (Cat. No. H175) for details
on the parameters used for programless communications of E5C Controllers.
4 - 16 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) for memory used for
CJ-series Units and AT specification.
Controllers
4-3-5 Connection Examples
An example of connecting three E5CC Controllers is given below.
4-3-4 Programming
E5CC E5CC E5CC
Controller Controller Controller
No. 0 No. 1 No. 2
PV PV PV
SV SV SV
<<
<<
<<
<<
<<
O
N
N
O
O
N
N
1
2
3
4
5
6
1
2
3
4
1
2
1
2
3
4
5
6
1
2
3
4
1
2
NX1W-CIF11/CIF12
RDA- RDB+ SDA- SDB+ SHLD
14 14 14
A (-) A (-) A (-)
Refer to the E5C Digital Temperature Controllers Communications Manual (Cat. No. H175) for details
on wiring an E5C Controller.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 17
4 Serial Communications
4-4-1 Overview
The NX1P2 CPU Unit can exchange data with Modbus-RTU slaves by using instructions to send a
Modbus-RTU command and receive a response.
To use this function, you mount a Serial Communications Option Board on the NX1P2 CPU Unit, set its
Serial communications mode to Modbus-RTU Master, and connect their serial ports together.
NX1P2 CPU Unit
RS-232C or RS-422A/485 Option Board
User program
NX_ModbusRtuCmd instruction
NX_ModbusRtuRead instruction
NX_ModbusRtuWrite instruction
The processing of the Modbus-RTU protocol and message frame format is handled by the instructions
to send a Modbus-RTU command and receive a response.
Therefore, you can easily create a program to exchange data with Modbus-RTU slaves.
Refer to the NJ/NX-series Instructions Reference Manual (Cat. No. W502-E1-17 or later) for the speci-
fication of instructions.
Additional Information
Slaves Function
Address Code Data CRC
4 - 18 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
4-4-2 Procedure
The operating procedure is described below.
4-4-2 Procedure
6 Checking operation and actual operation
Procedure Details
CPU Unit Side
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 19
4 Serial Communications
Additional Information
4 - 20 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
4-4-3 Settings
4-4-3 Settings
Under Configuration, specify the models of the Option Boards to use.
Under Option Board Settings, configure the following settings:
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 21
4 Serial Communications
4-4-4 Programming
Create a program to exchange data with Modbus-RTU slaves by using instructions to send a Mod-
bus-RTU command and receive a response.
No program is needed for the processing of the Modbus-RTU protocol and message frame format,
because it is handled by the instructions.
4 - 22 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
Operating Inline ST
OptionPort.DeviceType:=_eDEVICE_TYPE#_DeviceOptionBoard;
OptionPort.OptBoard:=OptionBoard1_location_information;
OptionPort.PortNo:=1;
NX_ModbusRtuCmd instruction
execution NX_ModbusRtuCmd_instance
Operating NX_ModbusRtuCmd
Execute Done
OptionPort DevicePort Busy
Address of remote slave SlaveAdr CommandAborted
4
Command to send CmdDat Error
Size of command to send CmdSize ErrorID
4-4-4 Programming
RespDat RespDat
Received data
Option ErrorIDEx
Abort RespSize
Refer to 3-2-4 Assigning Device Variables to Option Boards on page 3-11 for assigning variables to
Option Boards.
NX_ModbusRtuCmd_instance
Operating _PLC_OptBoardSta[1].Run
NX_ModbusRtuCmd
Execute Done
OptionPort DevicePort Busy
Address of remote slave SlaveAdr CommandAborted
Command to send CmdDat Error
Size of command to send CmdSize ErrorID
RespDat RespDat
Received data
Option ErrorIDEx
Abort RespSize
Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) for the specifications of
the _PLC_OptBoardSta (Option Board Status) system-defined variable.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 23
4 Serial Communications
RS-
RS+
O
N
N
O
O
N
N
1
2
3
4
5
6
1
2
3
4
1
2
1
2
3
4
5
6
1
2
3
4
1
SW1 SW1 SW2 2
CIF11 CIF12
Setting Setting description
SW No. SW No.
SW1 1 SW1 1 ON With terminating resistance
2 2 ON Two-wire type
3 3 ON Two-wire type
4 4 OFF (Not used)
5 SW2 1 ON With RS control for receive data
6 2 ON With RS control for send data
• Switch Setting
Set the terminating resistor selector switch to ON.
4 - 24 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
4-5-1 Overview
The NX1P2 CPU Unit can exchange data with general-purpose serial communications devices by
using the instructions to send and receive data in No-Protocol mode.
To use this function, you mount a Serial Communications Option Board on the NX1P2 CPU Unit, set its
Devices
Serial communications mode to No-Protocol, and connect their serial ports together.
User program
4-5-1 Overview
NX_SerialSend instruction
NX_SerialRcv instruction
RS-232C or
Sending and receiving data
RS-422A/485
The instruction to send data in No-Protocol mode refers to an instruction to output the specified data
from the specified serial port without converting it.
The instruction to receive data in No-Protocol mode refers to an instruction that reads data received at
the specified port into the specified variable without converting it.
Refer to the NJ/NX-series Instructions Reference Manual (Cat. No. W502-E1-17 or later) for the speci-
fication of instructions.
Additional Information
To enable the CPU Unit to exchange data with general-purpose serial communications devices
by using the instructions to send and receive data in No-Protocol mode, you must program the
communications procedure (protocol) for the remote device.
For example, program the sequence processing and retry processing between the command
and the response, data type conversion processing, branching processing, and other process-
ing steps to be performed based on the communications protocol of the remote device.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 25
4 Serial Communications
4-5-2 Procedure
The operating procedure is described below.
Overall Procedure
Procedure Details
CPU Unit Side
4 - 26 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
Devices
3 Mounting and setting Install the CPU Unit and general-pur-
hardware pose serial communications devices.
4 Wiring and power ON Connect the serial communications ter-
minals of the Option Boards and gen- 4
eral-purpose serial communications
devices.
4-5-2 Procedure
Wire the power supply terminals and turn
ON the power supply.
5 Configuring the slave Configure the functions of general-pur-
function settings pose serial communications devices as
required.
6 Checking operation Check the operation of the user program
and actual operation and general-purpose serial communica-
tions devices.
Additional Information
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 27
4 Serial Communications
4-5-3 Settings
4 - 28 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
Devices
Instruction Name Outline of function
NX_SerialSend Send No-protocol Data Sends data in No-Protocol mode from a serial port on a
CIF Unit or Option Board.
NX_SerialRcv Receive No-protocol Data Reads data in No-Protocol Mode from a serial port on a 4
CIF Unit or Option Board.
NX_SerialSigCtl Serial Control Signal ON/OFF Turns ON or OFF the ER or RS signal of a serial port on a
4-5-4 Programming
Switching CIF Unit or Option Board.
NX_SerialSigRead Read Serial Control Signal Reads the CS or DR signal of a serial port on an Option
Board.
NX_SerialStatus- Read Serial Port Status Reads the status of a serial port on an Option Board.
Read
NX_SerialBufClear Clear Buffer Clears the send or receive buffer.
Refer to the NJ/NX-series Instructions Reference Manual (Cat. No. W502-E1-17 or later) for details on
these instructions.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 29
4 Serial Communications
Operating Inline ST
OptionPort.DeviceType:=_eDEVICE_TYPE#_DeviceOptionBoard;
OptionPort.OptBoard:=OptionBoard1_location_information;
OptionPort.PortNo:=1;
NX_ModbusRtuCmd instruction
execution NX_SerialSend_instance
Operating NX_SerialSend
Execute Done
OptionPort DevicePort Busy
Data to send SendDat CommandAborted
Size of data to send SendSize Error
Conditions attached to send data SendCfg ErrorID
Option
Abort
Refer to 3-2-4 Assigning Device Variables to Option Boards on page 3-11 for assigning variables to
Option Boards.
4 - 30 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
4 Serial Communications
Example of executing a Send No-protocol Data instruction to an Option Board mounted on Option
Board 1 using the Option Board Normal Operation as an interlock condition
NX_SerialSend_instance
Operating _PLC_OptBoardSta[1].Run
NX_SerialSend
Execute Done
OptionPort DevicePort Busy
Devices
Data to send SendDat CommandAborted
Size of data to send SendSize Error
Conditions attached to send data SendCfg ErrorID
Option
Abort
4
4-5-4 Programming
_PLC_OptBoardSta[1].Run Option Board Normal Operation of Option Board 1 Status
system-defined variable
Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) for the specifications of
the _PLC_OptBoardSta (Option Board Status) system-defined variable.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 4 - 31
4 Serial Communications
4 - 32 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Analog I/O
This section describes the functions of Analog I/O Option Boards for the NX1P2 CPU
Units.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 5-1
5 Analog I/O
5-1 Specifications
The following describes the types and specifications of Analog I/O Option Boards.
COM
COM
COM
VO1
VO1
VO2
VO2
VI1
VI2
VI1
VI2
I I1
I I2
I I1
I I2
Analog input 2 inputs None 2 inputs
Input range 0 to 10 V, 0 to 20 mA --- 0 to 10 V, 0 to 20 mA
Resolution 1/4,000, 1/2,000 --- 1/4,000, 1/2,000
Analog output None 2 outputs 2 outputs
Output --- 0 to 10 V 0 to 10 V
range
Resolution --- 1/4,000 1/4,000
Conversion time 4 ms/Option Board 4 ms/Option Board 6 ms/Option Board
Isolation No-isolation No-isolation No-isolation
External connection termi- Screwless clamping termi- Screwless clamping termi- Screwless clamping termi-
nal nal block nal block nal block
(A)
ERR
IN OUT IN OUT
COM
COM
COM
COM
VO1
VO1
VO2
VO2
VI1
VI2
VI1
VI2
I I1
I I2
I I1
I I2
(B)
5-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
5 Analog I/O
COM
COM
COM
COM
VO1
VO1
VO2
VO2
VI1
VI2
VI1
VI2
I I1
I I2
I I1
I I2
5-1 Specifications
Refer to the NX-series NX1P2 CPU Unit Hardware User’s Manual (Cat. No. W578) for information on
wiring Analog I/O Option Boards.
0 to 10 V
An input voltage of 0 to 10 V is converted to a signed integer value (0 to 4,000).
The allowable value conversion range is 0 to 4,095.
Converted value
(Decimal)
4,095
4,000
0
Input voltage
0V 10 V 10.24 V
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 5-3
5 Analog I/O
0 to 20 mA
An input current of 0 to 20 mA is converted to a signed integer value (0 to 2,000).
The allowable value conversion range is 0 to 4,095. However, the input current cannot exceed the
absolute maximum rating, which is 30 mA.
Converted value
(Decimal)
2,000
0
Input current
0 mA 20 mA
The output set value of the signed integer (0 to 4,095) is converted to voltage from 0 to 10 V and output.
The allowable output set value conversion range is 0 to 4,095.
Output voltage
10.24 V
10 V
In the output mode at load rejection, the value when the output set value is 0 is output.
5-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
5 Analog I/O
5-2 Procedure
The operating procedure is described below.
Overall Procedure
3 Programming
5-2 Procedure
4 Mounting and setting hardware
Procedure Details
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 5-5
5 Analog I/O
5-3 Settings
The following describes the settings required to use Analog I/O Option Boards.
IN
COM
VI1
VI2
I I1
I I2
Additional Information
The input terminals are always subjected to AD conversion even when they are not used.
Therefore, if unused input terminals are left unconnected, unintended conversion values may
be input.
Although the Option Boards support two input ranges, no settings are provided to select the range.
Connect remote devices with the voltage or current input terminals based on their specifications.
When you use the current input range, however, short-circuit the current input terminal with the voltage
input terminal.
Analog output
+ VI
device
Analog Input
II
Option Board
Current output
- COM
5-6 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
5 Analog I/O
Refer to 5-4-1 I/O Data on page 5-8 for I/O data for Analog I/O Option Boards.
5-3 Settings
5
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 5-7
5 Analog I/O
5-4 Programming
The following provides information on programming for Analog I/O Option Boards.
NX1W-ADB21
NX1W-DAB21V
NX1W-MAB221
For Analog I/O Option Boards, I/O data is used as I/O ports.
I/O ports are generated automatically by the Sysmac Studio when you specify the Option Board config-
uration.
To use I/O data in the user program, you use device variables assigned to the relevant I/O ports.
Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) for I/O ports and device
variables.
Refer to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504) for how to register device
variables with the Sysmac Studio.
5-8 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
5 Analog I/O
Example of reading analog input values from Option Board 1 to the CPU Unit using the Option Board
Normal Operation as an interlock condition
_PLC_OptBoardSta[1].Run MOVE
EN ENO
5-4 Programming
_PLC_OptBoardSta[1].Run Option Board Normal Operation of Option Board 1 Status
system-defined variable
OP1_Ch1_Analog_Input_Value Device variable to analog input 1 on Option Board 1
OP1_Ch1_Analog_Input_Value_Valid Input value to analog input 1 read into the CPU Unit
Refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501) for the specifications of 5
the _PLC_OptBoardSta (Option Board Status) system-defined variable.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 5-9
5 Analog I/O
There are functions that are provided on NX-series Analog I/O Units, but not available for Analog I/O
Option Boards.
The tables below show what you should do to use these functions.
Function Action
Synchronous I/O refresh- The same operation is not possible.
ing method
Selecting channel to use Refer to 5-3-1 Option Board Settings on page 5-6 for what you should do for
unused input terminals.
Moving average Use the MovingAverage (Moving Average) instruction to perform similar
operations.
Input disconnection detec- There is no input range that requires this function.
tion
Over range/under range Use the ZoneCmp (Zone Comparison) instruction to perform similar opera-
detection tions.
User calibration Use the PWLApprox or PWLApproxNoLineChk (Broken Line Approximation)
instruction to perform similar operations.
Function Action
Synchronous I/O refresh- The same operation is not possible.
ing method
Selecting channel to use Refer to 5-3-1 Option Board Settings on page 5-6 for what you should do for
unused input terminals.
Output load rejection set- The Unit cannot perform operations to output the output set value specified
ting at load rejection.
Over range/under range Use the ZoneCmp (Zone Comparison) instruction to perform similar opera-
detection tions.
User calibration Use the PWLApprox or PWLApproxNoLineChk (Broken Line Approximation)
instruction to perform similar operations.
5 - 10 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
5 Analog I/O
5-5 Wiring
Refer to the NX-series NX1P2 CPU Unit Hardware User’s Manual (Cat. No. W578) for information on
wiring Analog I/O Option Boards.
5-5 Wiring
5
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 5 - 11
5 Analog I/O
Analog Input
Converted values are read during the internal processing of an Option Board and passed to the next
option board service for subsequent processing.
When the processing in the option board service is completed, the new converted values are available
for use in user program execution in the next primary periodic task.
Analog input
Option Board AD AD
internal processing conversion conversion
Converted value
Option board
service
Device variable for converted value
Primary period
5 - 12 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
5 Analog I/O
Analog Output
New output set values are determined when the user program is executed. The output set values are
then processed in the next option board service.
When the processing in the option board service is completed, the processed values are passed to the
next internal processing of the Option Board to generate analog output with the new output set values.
Analog output
Option Board DA DA
internal processing conversion conversion
Output set value
Option board
Primary period
Response time*1
Model
Min. Max.
NX1W-ADB21 2.8 ms 32.0 ms
NX1W-DAB21V 3.0 ms 24.0 ms
NX1W-MAB221 (Input) 2.8 ms 43.0 ms
NX1W-MAB221 (Output) 3.0 ms 38.0 ms
*1. These values are provided for reference only. They are not intended to guarantee
the I/O response performance of each model.
Here, the input response time refers to the time from when the voltage or current value changes at an
input terminal until the change is reflected on the device variable for the converted value.
The output response time refers to the time from when the device variable for the output set value
changes until the change is reflected on the value at the output terminal.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 5 - 13
5 Analog I/O
5 - 14 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Introduction of Motion Control
Functions
This section describes the motion control functions that are used when the NX1P2
CPU Unit is connected to an OMRON 1S-series Servo Drive with built-in EtherCAT
communications.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-1
6 Introduction of Motion Control Functions
6-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Velocity processing
Command
6
velocity
Note You can use the command position or actual position as the input to the synchronization processing.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-3
6 Introduction of Motion Control Functions
Target
velocity
Deceleration
Acceleration
Time
0 Command Target position
current position
For details, refer to the MC_MoveAbsolute (Absolute Positioning) and MC_Move (Positioning) instruc-
tions in the NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508).
Target
velocity
Deceleration
Acceleration
Time
0 Command current position
Target distance
For details, refer to the MC_MoveRelative (Relative Positioning) and MC_Move (Positioning) instruc-
tions in the NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508).
6-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Command position
6
Relative positioning,
absolute positioning,
Interrupt input
Actual position
Relative positioning, The figure on the left shows that there is a follow
absolute positioning, delay in relation to the command position.
or velocity control
Specified travel
distance
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-5
6 Introduction of Motion Control Functions
If decelerating to a stop after a reverse turn is specified for the Operation Selection at Reversing axis
parameter, an acceleration/deceleration curve is used when reversing.
For details, refer to the MC_MoveFeed (Interrupt Feeding) instruction in the NJ/NX-series Motion Con-
trol Instructions Reference Manual (Cat. No. W508).
Refer to the NX-series Position Interface Units User’s Manual (Cat. No. W524) for the differences when
you use NX-series Pulse Output Units.
Time
Task period
For details, refer to the MC_SyncMoveAbsolute (Cyclic Synchronous Absolute Positioning) instruction
in the NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508).
6-6 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
6-1-6 Stopping
Functions to stop axis operation include immediate stop input signal and limit input signals connected
to the Servo Drive, stop functions of motion control instructions in the user program, and stopping due
to errors.
Refer to the NX-series Position Interface Units User’s Manual (Cat. No. W524) for the differences when
you use NX-series Pulse Output Units.
6-1-6 Stopping
Stop processing in the MC Function Module is executed according to the state of the Servo Drive
input signals. You can select one of the following stopping methods for the MC Function Module.
• Immediate stop
• Deceleration stop
• Immediate stop and error reset
• Immediate stop and Servo OFF
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-7
6 Introduction of Motion Control Functions
Additional Information
• You must set up the Servo Drive in order to use the input signals from the Servo Drive. An
OMRON 1S-series Servo Drive with built-in EtherCAT communications or G5-series Servo
Drive with built-in EtherCAT communications has an immediate stop input and limit input
assigned in its default settings.
• Refer to the NJ/NX-series CPU Unit Motion Control User’s Manual (Cat. No. W507) for set-
ting examples for connection to an OMRON 1S-series Servo Drive.
• Refer to the NJ/NX-series CPU Unit Motion Control User’s Manual (Cat. No. W507) for set-
ting examples for connection to an OMRON G5-series Servo Drive.
MC_Stop Instruction
You can specify the deceleration rate and jerk for single-axis control and synchronized control to
decelerate to a stop. Specify a deceleration rate of 0 to send a command that immediately stops the
Servo Drive. Other operation commands are not acknowledged while decelerating to a stop for this
instruction and while the input variable Execute is TRUE.
MC_ImmediateStop Instruction
You can perform an immediate stop for single-axis control or synchronized control functions. You
can also execute this instruction on axes that are enabled in an axes group.
For details, refer to the MC_Stop and MC_ImmediateStop instructions in the NJ/NX-series Motion Con-
trol Instructions Reference Manual (Cat. No. W508).
Additional Information
When the input variable Enable to the MC_Power (Servo ON) instruction changes to FALSE,
the MC Function Module immediately stops the command value and turns OFF the Servo.
When the Servo is turned OFF, the Servo Drive will operate according to the settings in the
Servo Drive.
6-8 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Refer to the NJ/NX-series CPU Unit Motion Control User’s Manual (Cat. No. W507) for details on
software limits.
6-1-6 Stopping
• Exit the Sysmac Studio.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-9
6 Introduction of Motion Control Functions
Additional Information
• When RUN mode changes to PROGRAM mode, any motion control instructions for current
motions are aborted. The CommandAborted output variable from the instructions remains
FALSE. The Servo remains ON even after changing to PROGRAM mode.
• If the operating mode returns to RUN mode while a deceleration stop is in progress after the
operating mode changes from RUN to PROGRAM mode, the output variables from motion
control instructions are cleared. The CommandAborted output variables from the motion con-
trol instructions therefore remain FALSE.
• The save process will continue during a save for the MC_SaveCamTable Instruction.
• The generation process will continue when generation of the cam table is in progress for the
MC_GenerateCamTable (Generate Cam Table) instruction.
6-10 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Stop Method
Deceleration Stop
Velocity
Time
Immediate Stop
Time
6-1-6 Stopping
immediate stop occurred is used as the
command position. Inertia will take the axis
past this position, but it will return to the
actual position when the cause of the
immediate stop occurred and stop there.
Time
Time
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-11
6 Introduction of Motion Control Functions
Stop Priorities
The priorities for each stop method are listed in the following table. If a stop with a higher priority stop
method occurs while stopping, the stop method will switch to the higher priority method.
Priority
Stop method
(higher numbers mean higher priority)
Immediate stop and Servo OFF 4
Immediate stop and error reset 3
Immediate stop 2
Deceleration stop 1
Example
The following figure is an example of an immediate stop when the limit input signal is ON and the
immediate stop input changes to ON during a deceleration to a stop.
Limit input
Command velocity
6-12 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Busy
Active
Done
CommandAborted
Current Instruction
Enable 6
Enabled
Velocity
Override factor: 200%
Time
For details, refer to the MC_SetOverride (Set Override Factors) instruction in the NJ/NX-series Motion
Control Instructions Reference Manual (Cat. No. W508).
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-13
6 Introduction of Motion Control Functions
Specify with
Master_Reference.
Gear operation
Numerator
Actual position Command position
Denominator
Remainder
Command position
You can set the gear ratio numerator, gear ratio denominator, position type, acceleration rate, and
deceleration rate for the slave axis to operate. For the master axis, you can specify the command posi-
tion, actual position, or most recent command position.
After operation starts, the slave axis uses the velocity of the master axis times the gear ratio for its tar-
get velocity, and accelerates/decelerates accordingly. The catching phase exists until the target velocity
is reached. The InGear phase exists after that. If the gear ratio is positive, the slave axis and master
axis move in the same direction. If the gear ratio is negative, the slave axis and master axis move in the
opposite directions.
6-14 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
For details on gear operation, refer to the MC_GearIn (Start Gear Operation), MC_GearOut (End Gear
Operation), and MC_Stop instructions in the NJ/NX-series Motion Control Instructions Reference Man-
ual (Cat. No. W508).
Specify with
ReferenceType.
Gear operation
Remainder
Command position
You can set the gear ratio numerator, gear ratio denominator, position type, acceleration rate, and
deceleration rate for the slave axis to operate. For the master axis, you can specify the command posi-
tion, actual position, or most recent command position.
After operation starts, the slave axis uses the velocity of the master axis times the gear ratio for its tar- 6
get velocity, and accelerates/decelerates accordingly. The slave axis is in the catching phase until it
reaches the slave sync position. The slave axis enters the InSync phase after it reaches the slave sync
position. For either, the position of the slave axis is synchronized with the master axis. If the gear ratio
Master
Slave
Execute Time
For details on positioning gear operation, refer to the MC_GearInPos (Positioning Gear Operation), the
MC_GearOut (End Gear Operation), and the MC_Stop instructions in the NJ/NX-series Motion Control
Instructions Reference Manual (Cat. No. W508).
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-15
6 Introduction of Motion Control Functions
Specify with
ReferenceType.
Cam operation
Cam
Actual position processing Command position
Command position
Cam table
Phase Displacement
Cam operation 0.0 0.0 Cam
start point
Master axis Displacement 0.1 10.0
Cam profile curve 0.2 50.0
Phase Number of valid
Displacement cam data
359.8 100.0
359.9 50.0 Maximum number
Slave 360.0 0.0 Cam of cam data
axis end point
0.0 0.0
0.0 0.0
Phase
One period 0.0 0.0
Also, the following operation is possible: if another MC_CamIn (Start Cam Operation) instruction is exe-
cuted by using multi-execution with the Buffer Mode set for blending while the current MC_CamIn (Start
Cam Operation) instruction is executed, the operation can continue using the switched cam table and
the slave axis does not stop.
For details on cam operation, refer to the MC_CamIn (Start Cam Operation), MC_CamOut (End Cam
Operation), and MC_Stop instructions in the NJ/NX-series Motion Control Instructions Reference Man-
ual (Cat. No. W508).
For details on the Cam Editor, refer to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504).
6-16 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Term Description
cam operation An operation that takes one master axis and one slave axis and follows the cam pro-
file curve to derive the displacement of the slave axis from the phase of the master
axis.
cam profile curve A curve that shows the relationship between phases and displacements in a cam
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-17
6 Introduction of Motion Control Functions
Term Description
master following dis- The master start distance where the slave axis starts cam operation represented as
tance either an absolute position or relative position. The relative position is based on the
cam start point position.
start mode A specification of whether to represent the master following distance as an absolute
position or relative position.
null cam data Cam data that can be set after the end point where the phase and displacement are 0.
connecting velocity The connecting velocity that is used to connect cam profile curves. The connecting
velocity cannot be specified for some curves.
connecting acceleration The acceleration rate that is used to connect cam profile curves. The connecting
acceleration cannot be specified for some curves.
phase pitch The width when dividing the cam profile curve by phases (horizontal axis). The points
after dividing the curve into the phase pitch correspond to the cam data in the cam
table. You must specify the phase pitch for each cam block.
Displacement
Block 1 Block 2
End point
Cam start point displacement
Cam end point for block 2
(block start point)
(block start point)
6-18 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Cam Tables
The MC Function Module defines a single element of data consisting of the phase of the master axis
and the displacement of the slave axis as one cam data. A cam table is defined as the combination of
multiple sets of cam data. The cam table is created with the Cam Editor in the Sysmac Studio. You can
modify cam data in the cam table from the user program.
The phases and displacements in the cam data that makes up the cam table are represented as rela-
tive distances from the start point 0.0. During cam operation, the command position sent to the slave
axis is the displacement determined by interpolating linearly between the two cam data elements adja-
cent to the phase of the master axis. The more cam data there is in the cam table, the more accurate
the trajectory and the smoother the cam profile curve will be.
The phase is calculated
1 cycle Command position from the master axis
Item Description
Maximum number of cam data per 65,535 points
cam table
Maximum size of all cam data 1,048,560 points*1
Maximum number of cam tables 640 tables*2
Switching cam operation You can switch to a different cam operation by executing a motion control
instruction
Changing cam data Cam data can be edited from the user program.
Cam data can be overwritten with the Generate Cam Table instruction.
Saving cam data Cam data can be saved to non-volatile memory by using the Save Cam
Table instruction.
Information attached to the cam data Information can be downloaded or uploaded for display in the Cam Editor*3
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-19
6 Introduction of Motion Control Functions
Item Description
Timing to load cam data to main • When the data is downloaded from the Sysmac Studio
memory • When power is turned ON
*1. If 65,535 points are used for each cam table, there will be a maximum of 16 cams. A resolution of 0.1° allows
for a maximum of 3,600 points per cam table for a maximum of 291 cams.
*2. The total size is 10 MB max.
*3. Use the Synchronization menu command of the Sysmac Studio to upload and download the project.
An error will occur if the specified cam table does not exist in the Controller. You can also specify the
same cam table for more than one axis.
6-20 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
For details on arrays, refer to the NJ/NX-series CPU Unit Software User’s Manual (Cat. No. W501).
For details on the Save Cam Table instruction, refer to the MC_SaveCamTable instruction in the
NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508).
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-21
6 Introduction of Motion Control Functions
For details on the Set Cam Table Properties instruction, refer to the MC_SetCamTableProperty (Set
Cam Table Properties) instruction in the NJ/NX-series Motion Control Instructions Reference Manual
(Cat. No. W508).
6-22 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
MC_GenerateCamTable_instance 6
MC_GenerateCamTable
CamTable CamTable
The cam data variable is an array variable with the data type of cam data structure _sMC_CAM_REF.
You create the cam data variable on the Cam Editor of the Sysmac Studio.
For CamProperty, specify the cam property variable. The cam property variable is an array variable with
the data type of cam property structure _sMC_CAM_PROPERTY. You create the cam property variable
as a user-defined variable on the global variable table of the Sysmac Studio. Or, you create the variable
using the cam data settings on the Sysmac Studio.
For CamNodes, specify the cam node variable. The cam node variable is an array variable with the
data type of cam node structure _sMC_CAM_NODE. You create the cam node variable as a
user-defined variable on the global variable table of the Sysmac Studio. Or, you create the variable
using the cam data settings on the Sysmac Studio.
The cam property variable and the cam node variable are collectively called “cam definition variable”.
If the cam definition variable is created as a user-defined variable, the default of its Retain attribute is
Non-retain. You must set the Retain attribute of variable to Retain, if you want to reuse the variable after
changing its value and switching the operating mode to PROGRAM mode or cycling the power supply.
If you set the variable each time of use from the HMI, etc., the attribute can be left Non-retain.
If the cam definition variable is created with the cam data settings on the Sysmac Studio, the Retain
attribute of variable will be fixed to Retain.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-23
6 Introduction of Motion Control Functions
By using the HMI, etc. to set the values for the MC_GenerateCamTable instruction, you can create the
cam data variable and adjust the cam operation without using the Sysmac Studio.
The following is the procedure used to adjust the cam operation.
2 Set the value of the cam definition variable from the HMI.
4 Verify the curve shape of the generated cam table and the value of the end point index dis-
played on the HMI.
5 If there is no problem with the curve shape of the cam table and the number of the cam data,
then execute the cam operation.
6 Verify the result of the cam operation and consider changing the value of the cam definition vari-
able.
7 Repeat steps 2 to 6.
For details on the cam definition variable and the Generate Cam Table instruction, refer to the MC_-
GenerateCamTable instruction in the NJ/NX-series Motion Control Instructions Reference Manual (Cat.
No. W508).
Refer to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504-E1-10 or later) for information
on creating and transferring the cam definition variables using the Sysmac Studio.
6-24 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
MasterDistanceInDEC
MasterDistance
Master
Following MasterDistanceInACC
Distance
Time
Slave axis position
6
Time
Slave axis velocity
Time
For details on synchronous positioning, refer to the MC_MoveLink (Synchronous Positioning) and
MC_Stop instructions in the NJ/NX-series Motion Control Instructions Reference Manual (Cat. No.
W508).
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-25
6 Introduction of Motion Control Functions
Slave
(slave axis) Execute of MC_CombineAxes
Time Velocity changes to TRUE
Position: 200 Position: 600
-
Auxiliary
(auxiliary axis)
Velocity Execute of MC_CombineAxes Time
changes to TRUE Position: 0 Position: 390
Time
Position: 100 Position: 110
For details on combining axes, refer to the MC_CombineAxes and MC_Stop instructions in the
NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508).
6-26 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Busy
Done
CommandAborted
Error
ErrorID 16#0000
6
Master axis velocity Time
as viewed from the
Time
For details on the shift master axis phase function and the synchronized control instructions for which a
master axis phase shift can be applied, refer to the MC_Phasing (Shift Master Axis Phase) instruction in
the NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508).
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-27
6 Introduction of Motion Control Functions
For details on slave axis position compensation, refer to the MC_SyncOffsetPosition (Cyclic Synchro-
nous Position Offset Compensation) instruction in the NJ/NX-series Motion Control Instructions Refer-
ence Manual (Cat. No. W508).
The cam operation and gear operation synchronized with the master axis and slave axis are available
for the following combinations.
Axis 1
1:2 2:3
Axis 2 Axis 3
6-28 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Axis 1
Master axis
1:2
Axis 2
Slave axis Primary periodic task
Target position
Calculations given to virtual Axis 4 2:3
Master axis position axis. Virtual axis
Master axis velocity
:
Axis 3
Slave axis
6
Programming is placed in both the primary periodic task and priority-5 periodic task to achieve the oper-
ation for the above application.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-29
6 Introduction of Motion Control Functions
Busy
Active
InVelocity
CommandAborted
Error
ErrorID 16#0000
Decelerates to a stop
Velocity when another instruction
causes an error.
Target velocity
Time
The MC Function Module uses Position Control Mode of the Servo Drive or other device and sends tar-
get position commands to achieve the specified target velocity.
The position control loop is enabled in the Servo Drive or other device. Therefore, as the command
velocity slows down, e.g., due to disturbance, and the following error increases, the velocity will change
to eliminate this following error.
For details, refer to the MC_MoveVelocity (Velocity Control) instruction in the NJ/NX-series Motion Con-
trol Instructions Reference Manual (Cat. No. W508).
6-30 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
To stop an axis, use the MC_Stop instruction or execute another motion control instruction. If you spec-
ify a target velocity of 0, the axis will not move but the axis status will indicate that it is moving.
MC_SyncMoveVelocity Instruction
Execute
Busy
Active
CommandAborted
Error
ErrorID 16#0000
6
MC_Stop Instruction
Done
Busy
Active
Time
Target velocity is changed Target velocity is not
every primary period. changed.
Control Mode
CSP CSV CSP CSV
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-31
6 Introduction of Motion Control Functions
To stop an axis, use the MC_Stop instruction or execute another motion instruction. If you specify a
Torque (Target Torque) of 0, the axis will not move but the axis status will indicate that it is moving.
Torque
TorqueRamp
Time
Time
TorqueRamp
Torque
The MC Function Module uses the Torque Control Mode of the Servo Drive. The Servo Drive receives
the torque command value from the MC Function Module in the torque control loop and to control the
torque. You can specify the velocity limit value for the Servo Drive in the Velocity (Velocity Limit) input
variable to the motion control instruction. You can use this to limit high-speed revolution of the motor
when the load on the motor is low in Torque Control Mode.
For details, refer to the MC_TorqueControl instruction in the NJ/NX-series Motion Control Instructions
Reference Manual (Cat. No. W508).
6-32 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Types of Positions
The MC Function Module uses the following two types of positions.
Type of position Definition
Command position This is the position that the MC Function Module outputs to control an axis.
Actual position The actual position as input from the Servo Drive or encoder input.
The following figure shows the relationship between the command position and the actual position for
an EtherCAT slave Servo Drive.
User program MC Function Module Command position Servo Drive
Electronic (pulses)
Motion Motion Command Command Following M
gear Position loop
control control position position error
instruction processing (command units) In-position check counter counter Velocity loop
Remainder Actual position
Actual position Electronic (pulses)
Current loop
6
(command units) gear Feedback E
counter
Remainder
6-5-1 Positions
The command position and actual position share the following items.
Item Command position Actual position
Count Mode You can set Linear Mode or Rotary The same Count Mode is used as
Mode. for the command position.
Position increment You can set one of the following: The unit is the same as the unit of
mm, μm, nm, inch, degree, or pulse. the command position.
Software limits You can set the range of operation The range is the same as the range
of the software. for the command position.
Changing the current position You can change the actual position This value will be set to the same
to any desired position. position as the command position.*1
Defining home Home is either defined or The status of home is the same as
undefined. the command position.
*1. If there is any following error before the change, the following error value is maintained in the actual position.
Additional Information
Refer to the NX-series Position Interface Units User’s Manual (Cat. No. W524) for information
on the NX-series Position Interface Units.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-33
6 Introduction of Motion Control Functions
Monitoring Positions
You can read Axis Variables in the user program to monitor positions.
In the descriptions, a variable name _MC_AX[*] is used as an example, but the same information
applies to _MC1_AX[*] and _MC2_AX[*].
Variable name Data type Meaning Function
_MC_AX[0-255].Cmd.Pos LREAL Command Current This is the current value of the command posi-
Position tion. When the Servo is OFF and the mode is
not the position control mode, the actual cur-
rent position is output.
_MC_AX[0-255].Act.Pos LREAL Actual Current Posi- This is the actual current position.
tion
6-34 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
6-5-2 Velocity
Types of Velocities
The following two types of axis velocities are used in the MC Function Module.
Velocity type Definition
Command velocity This is the velocity that the MC Function Module outputs to control an axis.
Actual velocity This is the velocity calculated in the MC Function Module based on the actual posi-
tion input from the Servo Drive or encoder input.*1
Velocity Unit
A velocity is given in command units/s. The command unit is the value obtained from unit conversion of
the position display unit and the electronic gear.
6-5-2 Velocity
ity.
Start Velocity Set the start velocity for each axis. Positive long reals 0
Set a value that does not exceed the maximum
velocity.
(Unit: command units/s)
Maximum Jog Velocity Set the maximum jog velocity for each axis.*1 Positive long reals 1,000,000
Set a value that does not exceed the maximum
velocity.
(Unit: command units/s)
Velocity Warning Value Set the percentage of the maximum velocity at 0 to 100 0
which to output a velocity warning for the axis.
No velocity warning is output if 0 is set.
(Unit: %)
Actual Velocity Filter Set the time period to calculate the average 0 to 100 0
Time Constant travel of the actual velocity in milliseconds. The
average travel is not calculated if 0 is set.
(Unit: ms)
Use this to reduce variations in the actual cur-
rent velocity when axis velocity is slow.
*1. The maximum jog velocity is used as the command velocity if you specify a velocity command value that is
greater than the maximum jog velocity.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-35
6 Introduction of Motion Control Functions
Monitoring Velocities
You can read Axis Variables in the user program to monitor velocities.
In the descriptions, a variable name _MC_AX[*] is used as an example, but the same information
applies to _MC1_AX[*] and _MC2_AX[*].
Variable name Data type Meaning Function
_MC_AX[0-255].Cmd.Vel LREAL Command Current This is the current value of the command
Velocity velocity. A plus sign is added during
travel in the positive direction, and a
minus sign is added during travel in the
negative direction.
_MC_AX[0-255].Act.Vel LREAL Actual Current This is the actual current velocity. A plus
Velocity sign is added during travel in the positive
direction, and a minus sign is added
during travel in the negative direction.
6-36 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
A D
Time
A
Ta1 Ta2 Td
If you specify a short travel distance or a low acceleration/deceleration rate, the target velocity may not
be reached. If the target position is exceeded after re-execution of the motion control instruction with
the newly updated acceleration or deceleration rate, positioning is performed at an acceleration or
deceleration rate that will enable stopping at the target position.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-37
6 Introduction of Motion Control Functions
6-5-4 Jerk
The jerk specifies the rate of change in the acceleration rate or deceleration rate. If the jerk is specified,
the velocity waveform during acceleration will be an S-curve, which will reduce the shock and vibration
on the machine.
Additional Information
Jerk Unit
Jerk is given in command units/s3. The command unit is the value obtained from unit conversion of the
position display unit and the electronic gear.
Time
Acceleration
Acceleration rate rate
at startup
Time
Jerk
Jerk
at startup
Time
25% 25%
6-38 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Monitoring Jerk
You can read Axis Variables in the user program to monitor jerk.
In the descriptions, a variable name _MC_AX[*] is used as an example, but the same information
applies to _MC1_AX[*] and _MC2_AX[*].
Variable name Data type Meaning Function
_MC_AX[0-255].Cmd.Jerk LREAL Command Current This is the current value of the com-
Jerk mand jerk.
Modulo minimum
position setting
value: −70 Moves in negative direction.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-39
6 Introduction of Motion Control Functions
Additional Information
Moves in the same direction as the Current Direction specification if the travel distance is the
same in the positive and negative directions.
Modulo minimum
position setting
value: −70
Moves in positive direction.
Modulo minimum
position setting
value: −70
Moves in negative direction.
6-40 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Modulo minimum
position setting
value: −70 If the previous operation was If the previous operation was in
in the negative direction, the positive direction, motion is in
motion is in the negative the positive direction.
direction.
The direction of the previous operation is given in the Command Direction in the Axis Variable.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-41
6 Introduction of Motion Control Functions
Modulo minimum
position setting
value: −70 Moves towards the
ring counter range.
Similarly, the following example illustrates when the ring counter upper limit is 100, the lower limit is
−70, the command current position is −20, and positioning is performed towards a target position of
290.
Modulo maximum
position setting
value: 100
Modulo minimum
position setting
value: −70
190
Performs relative positioning with target distance of (290
(target position) − 100 (upper limit)) = 190.
6-42 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
When a Reverse Turn Does Not Occur for the New Command Value
Re-executing Instruction during Re-executing Instruction during
Constant-velocity Motion Acceleration/deceleration
Velocity Velocity
↓Command re-executed. ↓Command re-executed.
6
If the instruction is re-executed If the travel distance upon reversal If the instruction is re-executed during
during acceleration, the axis is small, triangular control is acceleration or deceleration, the axis
starts deceleration as soon as performed as it was for the first stops immediately upon re-execution.
the instruction is re-executed. execution of the instruction. This also occurs during deceleration.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-43
6 Introduction of Motion Control Functions
↓Command re-executed.
↓Command re-executed.
• If There Is A Reverse Turn and Decelerating to a Stop Would Exceed a Software Limit
No Reverse Turn
Velocity
↓Command re-executed.
↑Executed. Reverse
operation
↑Software limit
• If There Is A Reverse Turn and Decelerating to a Stop Would Result in Command Current Posi-
tion Overflow or Underflow
No Reverse Turn
Velocity
↓Command re-executed.
↑Executed. Reverse
operation
↑Counter upper limit
6-44 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
6
Changing the Target Velocity
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-45
6 Introduction of Motion Control Functions
Axis1PosSet1
Axis1pos:=1000;
Axis1PosSet2
Axis1pos:=2000;
Axis1MoveAbsolute
MC_MoveAbsolute
Axis1Execute _MC_AX[0] Axis Axis _MC_AX[0]
Execute Done Axis1Done
Axis1Pos Position Busy Axis1Busy
Axis1Velo Velocity Active Axis1Active
Axis1Acc Acceleration CommandAborted Axis1CA
Axis1Dec Deceleration Error Axis1Error
Axis1Jerk Jerk ErrorID Axis1ErrorID
0 Direction
0 BufferMode
6-46 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Timing Charts
Variables
Axis1PosSet1
Axis1PosSet2
Input Parameter
Axis1Execute
Axis1Busy
Axis1Active
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-47
6 Introduction of Motion Control Functions
6-48 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Aborting
This is the default mode. No buffering is performed in this mode. The current command is aborted and
the new instruction is executed. Aborting Mode can be used for multi-execution of instructions for
motion control instructions for both single-axis control and synchronized control.
When a Reverse Turn Does Not Occur for the Command Position of the
Multi-execution Instruction
Executing More than One Instruction Multi-execution during Acceleration/Deceleration
When a Reverse Turn Occurs for the Command Position of the Multi-execu-
tion Instruction
Decelerating to a Stop after Reversing Stopping Immediately after Reversing 6
Velocity Velocity
↓Multi-execution timing ↓Multi-execution timing
If the travel distance
If an instruction is executed with If the travel distance upon If the instruction is executed with multi-
multi-execution of instructions reverse turn is small, triangular execution of instructions during acceleration
during acceleration, the axis control is performed as it was for or deceleration, the axis stops immediately
starts deceleration according to the first execution of the according to the multi-execution timing.
the multi-execution timing. instruction. This also occurs during deceleration.
Buffered
The buffered instruction remains in the buffer until the operation of the current instruction is finished.
The buffered instruction is executed after the operation for the current instruction is normally ended.
The target position is reached
and the next command is
Velocity executed after the current
↓Multi-execution timing
operation is normally finished.
Time
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-49
6 Introduction of Motion Control Functions
Blending
The buffered instruction remains in the buffer until the target position of the current instruction is
reached. The buffered instruction is executed after the current instruction’s target position is reached.
However, motion does not stop at this time. Operation transitions to the next instruction at the velocity
specified with the BufferMode (Buffer Mode Selection) input variable. For relative travel, the final posi-
tion will be the total of the values for both instructions. For absolute travel, the final position will be the
target position of the second multi-execution instruction. The Acceleration/Deceleration Over axis
parameter is used to select one of the following operations for when the target position would be
exceeded with the values that are set in the Maximum Acceleration and Maximum Deceleration axis
parameters.
• Use rapid acceleration/deceleration. (Blending is changed to Buffered.)
• Use rapid acceleration/deceleration.
• Minor fault stop
Multi-execution of Time
instructions
6-50 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Current instruction
Time
Multi-execution of instructions
6
Minor Fault Stop
• The operation is the same as when Use rapid acceleration/deceleration. (Blending is changed to
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-51
6 Introduction of Motion Control Functions
Time
Cases Resulting in Deceleration
Multi-execution
of instruction
Velocity
Time
Time
Buffered instruction
6-52 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Time
Cases Resulting in Deceleration
Multi-execution of instruction
Velocity
Time
6
Blending High (High Velocity)
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-53
6 Introduction of Motion Control Functions
Actual Command
Input 2 Output 2
position 2 position 2
Actual Command
Input 3 Output 3
position 3 position 3
Additional Information
For devices that require you to modify the grouping of axes in motion to perform interpolation
control, you must create multiple axes groups that include the axes to modify from the Sysmac
Studio beforehand. After completing this step, you can execute by specifying the enabled axes
groups from the user program during operation.
You can also use the MC_ChangeAxesInGroup (Change Axes in Group) instruction to change
the composition axes for an axes group that is disabled.
For details on axes groups, refer to the NJ/NX-series CPU Unit Motion Control User’s Manual (Cat. No.
W507).
6-54 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
For details on enabling and disabling axes groups, refer to the MC_GroupEnable (Enable Axes Group)
and MC_GroupDisable (Disable Axes Group) instructions in the NJ/NX-series Motion Control Instruc-
tions Reference Manual (Cat. No. W508).
For details on changing the composition axes of an axes group, refer to the MC_ChangeAxesInGroup
(Change Axes in Group) instruction in the NJ/NX-series Motion Control Instructions Reference Manual
(Cat. No. W508).
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-55
6 Introduction of Motion Control Functions
6-56 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
La1
Td
6
L
Ta
A
La0
X
Axis A0 motion
Ta Td
For details on linear interpolation, refer to the MC_MoveLinear (Linear Interpolation), MC_MoveLinear-
Absolute (Absolute Linear Interpolation), and MC_MoveLinearRelative (Relative Linear Interpolation)
instructions in the NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508).
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-57
6 Introduction of Motion Control Functions
CCW
CW
CW : Clockwise rotation
CCW : Counterclockwise rotation
X coordinate
With the MC Function Module, you can specify the following three kinds of circular interpolation meth-
ods with the input variable CircMode (Circular Interpolation Mode).
• Border point
• Center
• Radius
6-58 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
MC_GroupStop Instruction
For linear interpolation or circular interpolation performed on an axes group, you can decelerate to a
stop along the control path. You specify the deceleration rate and jerk. Specify a deceleration rate of
MC_GroupImmediateStop Instruction
You can perform an immediate stop for all axes in the axes group. The immediate stopping method
is determined by the setting of the Immediate Stop Input Stop Method axis parameter for each axis.
The MC_GroupImmediateStop instruction can also be executed for an axes group that is decelerat-
ing to a stop for an MC_GroupStop instruction.
For details, refer to the MC_GroupStop and MC_GroupImmediateStop instructions in the NJ/NX-series
Motion Control Instructions Reference Manual (Cat. No. W508).
6
Stopping Due to Errors or Other Problems
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-59
6 Introduction of Motion Control Functions
Additional Information
• If you execute the MC_GroupDisable (Disable Axes Group) instruction during axes group
operation, the axes in the group will decelerate to a stop at their maximum deceleration rates.
• If you execute the MC_Stop instruction while an axes group is in operation, an error will occur
for the axes and axes group and the axes group operation will decelerate to a stop with inter-
polation. The interpolation deceleration rate is determined by the deceleration rate that is
specified for the controlling instruction.
• When the input variable Enable to the MC_Power (Servo ON) instruction changes to FALSE
during axes group motion, the MC Function Module immediately stops the command value
for that axis and turns OFF the Servo. When the Servo is turned OFF, the Servo Drive or
other device will operate according to the settings in the Servo Drive or other device. Other
axes in that axes group will stop with the stop method that is set in the Axes Group Stop
Method axes group parameter. An error will occur for the axes group if this happens.
• When RUN mode changes to PROGRAM mode, any motion control instructions for current
motions are aborted. The CommandAborted output variable from the instructions remain
TRUE and the Servo remains ON.
• If the operating mode returns to RUN mode while a deceleration stop is in progress after the
operating mode changes from RUN to PROGRAM mode, the output variable Command-
Aborted from the current motion control instructions change to TRUE.
• The save process will continue during a save for the MC_SaveCamTable Instruction.
• The generation process will continue when generation of the cam table is in progress for the
MC_GenerateCamTable (Generate Cam Table) instruction.
6-60 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Busy
Active
Done
CommandAborted
Current Instruction
6
Enable
Enabled
Time
For details, refer to the MC_GroupSetOverride (Set Group Overrides) instruction in the NJ/NX-series
Motion Control Instructions Reference Manual (Cat. No. W508).
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-61
6 Introduction of Motion Control Functions
Types of Velocities
The following is the only type of interpolation velocity for axes groups supported by the MC Function
Module.
Velocity type Definition
Command interpolation velocity This is the actual value of the command interpolation velocity output by
the MC Function Module to control an axes group.
6-62 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Monitoring Velocities
You can read Axes Group Variables from the user program to monitor the interpolation velocity.
In the descriptions, a variable name _MC_GRP[*] is used as an example, but the same information
applies to _MC1_GRP[*] and _MC2_GRP[*].
Variable name Data type Meaning Function
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-63
6 Introduction of Motion Control Functions
6-64 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Time
Acceleration
rate At
Time
Deceleration
rate -Dt
Jt
Jerk
Time
-Jt
Vt: Specified interpolation velocity, At: Specified acceleration rate, Dt: Specified deceleration rate, Jt: Specified jerk
6
6-7-4 Re-executing Motion Control Instructions for Multi-axes Coordi-
nated Control
Busy
Active
Done
CommandAborted
Error
Interpolation velocity
Time
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-65
6 Introduction of Motion Control Functions
You can change the deceleration rate if you re-execute the MC_GroupStop instruction, but you cannot
change the jerk in this way.
If you re-execute the MC_GroupReset instruction, the re-execution command will be ignored and error
reset processing will continue.
For details on re-executing motion control instructions, refer to each instruction in the NJ/NX-series
Motion Control Instructions Reference Manual (Cat. No. W508).
(3) (4)
(2) Linear interpolation: (1), (3), (5), and (7)
Circular interpolation: (2), (4), and (6)
(5)
(6) (7)
(1) Point B
Point A
You can set the BufferMode input variable to motion control instruction to select one of the same Buffer
Modes as are supported for single-axis operations. There are a total of eight instruction buffers for axes
groups. Each axes group has one buffer for the instruction currently in operation and seven buffers for
multi-execution instructions. Multi-execution of instruction cannot be used from an axis operation
instruction to an axes group operation instruction and vice-versa.
6-66 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Aborting
This is the default mode. No buffering is performed in this mode. The current command is aborted and
the new instruction is executed. Multi-execution of motion control instructions that have no BufferMode
input variable will operate in Aborting Mode. Operation of the multi-execution instruction starts at the
current interpolation velocity when the multi-execution instruction is executed. With Aborting Mode you
cannot combine single-axis control, including synchronized single-axis control and axes group control.
Executed. Initial command position Buffered command Executed. Initial command position Buffered command
position position
Multi-execution for axes groups is done so that the interpolation velocity remains continuous between
instructions. If continuous operation is performed with an instruction with a travel distance of 0, the
velocity changes for the axes will not be continuous.
trol
6-7-5 Multi-execution (Buffer Mode) of Motion Control Instructions for Multi-axes Coordinated Con-
Y coordinate
Fy F
X coordinate
Y-axis motion
Fx
X-axis motion
Ta Td
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-67
6 Introduction of Motion Control Functions
Buffered
The multi-execution instruction remains in the buffer until the current operation is finished. The buffered
instruction is executed after the operation for the current instruction is normally ended.
The target position is reached
and the next command is
executed after the current
Velocity ↓Multi-execution timing operation is normally finished.
Time
Blending
Blending for axes groups works in the same way as blending for single-axis operations. The buffered
instruction remains in the buffer until the target position of the current instruction is reached. The buff-
ered instruction is executed after the target position of the current instruction is reached. The axes do
not stop at the target position. The two motions are blended together at the interpolation velocity speci-
fied with the BufferMode input variable.
The Interpolation Acceleration/Deceleration Over axes group parameter is used to select one of the fol-
lowing operations for when the acceleration/deceleration that is specified in the buffered instruction
would exceed the target position.
• Use rapid acceleration/deceleration. (Blending is changed to Buffered.)
• Use rapid acceleration/deceleration.
• Minor fault stop
Refer to 6-5-7 Multi-execution of Motion Control Instructions (Buffer Mode) on page 6-48 for operation
with each set value.
6-68 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Time
Cases Resulting in Deceleration
Multi-execution of instruction
Velocity
Time
6
Blending Next (Next Velocity)
Operation is performed using the target position of the current instruction and the target velocity of
trol
6-7-5 Multi-execution (Buffer Mode) of Motion Control Instructions for Multi-axes Coordinated Con-
the buffered instruction.
Cases Resulting in Acceleration
The transit velocity is the command
velocity of the buffered command
Multi-execution of instruction
Velocity
Time
Cases Resulting in Deceleration
Multi-execution of instruction
Velocity
Time
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-69
6 Introduction of Motion Control Functions
Transition Modes
Multi-execution of instructions for axes groups may create some shock on the device and/or workpiece
due to changes in the direction of the interpolation path. You can specify the TransitionMode input vari-
able to the motion control instruction to select a transition method to use between instructions in order
to lessen this shock. You can choose from the following transition modes in the MC Function Module.
No. Transition mode Description
0 Transition Disabled (_mcTM- Do not perform any processing for transitions (default). No
None) attempt is made to lessen the shock, but this results in a
shorter operation time.
10 Superimpose Corners (_mcT- The deceleration of the current instruction is superimposed
MCornerSuperimposed) on the acceleration of the buffered instruction. You can keep
the linear velocity of the interpolation path constant.
Additional Information
Multi-execution of instruction
X coordinate
Velocity
Velocity
6-70 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Y coordinate
End2
6
Start2 End2 Time
trol
6-7-5 Multi-execution (Buffer Mode) of Motion Control Instructions for Multi-axes Coordinated Con-
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-71
6 Introduction of Motion Control Functions
Multi-execution of instruction
End1
Start1 End1’/ Start2
X coordinate
Velocity
Velocity
The output variable Done, which indicates the end of a motion control instruction, will change to TRUE
for _mcTMCornerSuperimposed when the area of superimposition is completed.
6-72 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Additional Information
The path linear velocity is constant if the following two conditions are met.
• The target velocities of the current instruction and the buffered instruction are the same.
• The deceleration rate of the current instruction and the acceleration rate of the buffered
instruction are the same.
trol
6-7-5 Multi-execution (Buffer Mode) of Motion Control Instructions for Multi-axes Coordinated Con-
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-73
6 Introduction of Motion Control Functions
Busy
Active
Done
Additional Information
You can change the actual position while home is defined by specifying a zero position preset
for the MC_Home or MC_HomeWithParameter instruction.
For details on the MC_SetPosition instruction, refer to the NJ/NX-series Motion Control Instructions
Reference Manual (Cat. No. W508).
6-74 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
6-8-3 Latching
Latching is used to control positioning based on the position where a trigger signal occurs, such as a
signal from a sensor input. The position of the axis is recorded (i.e., latched) when the trigger signal
Linear Mode
0x8000000000 0 0x7FFFFFFFFF
Window
Latch enabled range
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-75
6 Introduction of Motion Control Functions
Rotary Mode
• The FirstPosition can be less than, equal to, or greater than the LastPosition. If the FirstPosition is
greater than the LastPosition, the setting will straddle the modulo minimum position setting value.
• An instruction error will occur if a position beyond the upper and lower limits of the ring counter is
specified.
First Position ≤ Last Position First Position > Last Position
Valid range FirstPosition to LastPosition LastPosition to FirstPosition
Count value
0x7FFFFFFFFF
Modulo maximum
position setting value
FirstPosition
LastPosition
Modulo minimum position
setting value (= 0)
0
Window
Latch enabled range Latch enabled range
For details on latching, refer to the MC_TouchProbe (Enable External Latch) and MC_AbortTrigger
(Disable External Latch) instructions in the NJ/NX-series Motion Control Instructions Reference Manual
(Cat. No. W508).
Refer to the NX-series Position Interface Units User’s Manual (Cat. No. W524) for the differences when
you use NX-series Pulse Output Units.
6-76 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
You can use the axis settings of the Sysmac Studio, the MC_Write (Write MC Setting) instruction, or the
MC_WriteAxisParameter (Write Axis Parameters) instruction to set the above axis parameters.
If any setting values are changed for an axis or axes group in operation, those settings are enabled
when the next operation begins.
Software limits function in the following two cases based on the axis operation state and the motion
control instruction that is used.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-77
6 Introduction of Motion Control Functions
Additional Information
Software limits can be enabled when the Count Mode is set to Linear Mode and home is
defined. Software limits are disabled in the following situations no matter what axis parameters
have been set.
• When Count Mode is set to Rotary Mode.
• When home is not defined.
• During homing.
For details on the instruction to write the MC settings and the instruction to write the axis parameters,
refer to the MC_Write instruction and MC_WriteAxisParameter instruction in the NJ/NX-series Motion
Control Instructions Reference Manual (Cat. No. W508).
6-78 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-79
6 Introduction of Motion Control Functions
For details on axis following error monitoring, refer to the MC_AxesObserve (Monitor Axis Following
Error) instruction in the NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508).
Refer to the NX-series Position Interface Units User’s Manual (Cat. No. W524) for the differences when
you use NX-series Pulse Output Units.
In-position Range
The following error (absolute
value) is monitored after
positioning finishes.
If the following error is within
the in-position range, Time
positioning is considered
finished.
Velocity
Command velocity
Actual velocity
Time
6-80 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Additional Information
You can read Axes Group Variables from the user program to monitor when positioning finishes for the
axes group.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-81
6 Introduction of Motion Control Functions
In the descriptions, a variable name _MC_GRP[*] is used as an example, but the same information
applies to _MC1_GRP[*] and _MC2_GRP[*].
Variable name Data type Meaning Function
_MC_GRP[0-63].Details.Idle BOOL Idle TRUE when processing is not currently
performed for the command value,
except when waiting for in-position
state.*1
Idle and InPosWaiting are mutually
exclusive. They cannot both be TRUE at
the same time.
_MC_GRP[0-63].Details.InposWaiting BOOL In-position TRUE when waiting for in-position state
Waiting for any composition axis.*2
The in-position check is performed when
positioning for the in-position check.
*1. This also includes states where processing is performed while in motion at a velocity of 0.
*2. This variable is FALSE when all composition axes in the axes group are within the in-position ranges set in the
axis parameters.
For details on the instruction to write the MC settings and the instruction to write the axis parameters,
refer to the MC_Write (Write MC Setting) and MC_WriteAxisParameter (Write Axis Parameters) instruc-
tion in the NJ/NX-series Motion Control Instructions Reference Manual (Cat. No. W508).
Refer to the NX-series Position Interface Units User’s Manual (Cat. No. W524) for the differences when
you use NX-series Pulse Output Units.
For details, refer to the MC_ChangeAxisUse instruction in the NJ/NX-series Motion Control Instructions
Reference Manual (Cat. No. W508).
For an application example of the MC_ChangeAxisUse instruction, refer to the NJ/NX-series CPU Unit
Software User’s Manual (Cat. No. W501).
6-82 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Refer to the NJ/NX-series Instructions Reference Manual (Cat. No. W502) for details on NX_AryDOut-
TimeStamp instruction.
Refer to the NX-series Digital I/O Units User’s Manual (Cat. No. W521-E1-02 or later) for Digital Output 6
Unit that supports time stamp refreshing.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-83
6 Introduction of Motion Control Functions
_sMC_POSITION_REF
The followings are the members of _sMC_POSITION_REF type data.
Member Description
User-defined variable.CommandPosition[0] This is an X-axis component for the command current position.
This member is assigned a user-defined variable that indi-
cates the X-axis position of the command current position gen-
erated by a user program.
User-defined variable.CommandPosition[1] This is a Y-axis component for the command current position.
This member is assigned a user-defined variable that indi-
cates the Y-axis position of the command current position gen-
erated by a user program.
User-defined variable.CommandPosition[2] This is a Z-axis component for the command current position.
This member is assigned a user-defined variable that indi-
cates the Z-axis position of the command current position gen-
erated by a user program.
User-defined variable.CommandPosition[3] to Not used.
[5]
User-defined variable.ActualPosition[0] This is an X-axis component for the actual current position.
This member is assigned a user-defined variable that indi-
cates the X-axis position of the actual current position handled
in a user program.
User-defined variable.ActualPosition[1] This is a Y-axis component for the actual current position.
This member is assigned a user-defined variable that indi-
cates the Y-axis position of the actual current position handled
in a user program.
User-defined variable.ActualPosition[2] This is a Z-axis component for the actual current position.
This member is assigned a user-defined variable that indi-
cates the Z-axis position of the actual current position handled
in a user program.
User-defined variable.ActualPosition[3] to [5] Not used.
6-84 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
6 Introduction of Motion Control Functions
Each member is assigned a user-defined variable. The followings are the examples.
3D_position.CommandPosition[0] := MCS_Cmd_TransX;
3D_position.CommandPosition[1] := MCS_Cmd_TransY;
3D_position.CommandPosition[2] := MCS_Cmd_TransZ;
6
3D_position.ActualPosition[0] := MCS_Act_TransX;
3D_position.ActualPosition[1] := MCS_Act_TransY;
2 Create a program in which user-defined variables that indicate the command current position
and actual current position for 3D display are assigned to each member of the created
user-defined variable.
3 Select Specified coordinate in the Type Box in the 3D Machine Model List.
The _sMC_POSITION_REF data type is displayed in the 3D Machine Model Parameter Set-
tings section.
4 Set the created user-defined variable in the Value Column in the 3D Machine Model Parameter
Settings section.
6 Start tracing the data with the data trace to sample the data.
Refer to the Sysmac Studio Version 1 Operation Manual (Cat. No. W504) for details on 3D Motion Mon-
itor Display Mode.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 6-85
6 Introduction of Motion Control Functions
6-86 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Introduction of EtherNet/IP Com-
munications Functions
This section describes the communications services of the built-in EtherNet/IP port for
an NX1P2 CPU Unit.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 7-1
7 Introduction of EtherNet/IP Communications Functions
Refer to the NJ/NX-series CPU Unit Built-in EtherNet/IP Port User’s Manual (Cat. No. W506) for the
built-in EtherNet/IP port tag and tag set specifications.
Connection Information
∙ Target IP address
∙ Target tag set
∙ Originator tag set
∙ Packet interval (RPI) Connection
Tag Set (Input) Tag Set (Output)
Tag a Tag i
Tag b Tag ii
Data
Dataflow
flow
Tag c
Tag g
Originator Target
device EtherNet/IP device
Note In this example, a connection is established with the originator’s tag list with tags a to g (inputs), which
are in a tag set called SP1_IN, and the target’s tag list with tags i and ii (outputs), which are in a tag set
called SP1_OUT.
7-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
7 Introduction of EtherNet/IP Communications Functions
CIP_SEND
Response
Additional Information
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 7-3
7 Introduction of EtherNet/IP Communications Functions
BOOTP server
IP address
Built-in EtherNet/IP port Built-in EtherNet/IP port
BOOTP client
Host computer
(FTP client)
Ethernet
FTP command
Built-in EtherNet/IP port
NJ/NX-series
SD Memory Controller
Card
SD Memory SD Memory
Card Card
7-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
7 Introduction of EtherNet/IP Communications Functions
Host computer
(FTP server)
Ethernet
NJ/NX-series
SD Memory Controller
Card
SD Memory SD Memory
Card Card
NTP command
Ethernet
Clock information
NJ/NX-series
Controller
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 7-5
7 Introduction of EtherNet/IP Communications Functions
Ethernet
NJ/NX-series
Controller
7-6 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
7 Introduction of EtherNet/IP Communications Functions
IP address
Ethernet
Host name
NJ/NX-series
Controller
SNMP message
Management information
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 7-7
7 Introduction of EtherNet/IP Communications Functions
• SNMP Trap
When specific conditions occur, the built-in EtherNet/IP port that is set as the SNMP agent sends sta-
tus notification reports to the SNMP manager.
The SNMP manager can learn about changes in status even without periodically monitoring of the
built-in EtherNet/IP port.
Status notification reports are sent under the following conditions.
a) When the Controller is turned ON
b) When links are established
c) When an SNMP agent fails to be authorized
SNMP manager
Controller
Trap Built-in EtherNet/IP turned ON.
port
SNMP agent
7-8 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Introduction of EtherCAT Commu-
nications Functions
This section describes the communications functions of the built-in EtherCAT port for
an NX1P2 CPU Unit.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 8-1
8 Introduction of EtherCAT Communications Functions
Refer to the NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (Cat. No. W505) for details
on the specifications of process data communications.
SDO Communications
“SDO communications” is a communications method in which control information is exchanged in non-
cyclic event communications between the EtherCAT master and slaves.
You can use EtherCAT communications instructions to read and write the SDO data in EtherCAT
slaves.
Refer to the NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (Cat. No. W505) for details
on the specifications of SDO communications.
8-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
8 Introduction of EtherCAT Communications Functions
Use this function to continue or stop the communications with EtherCAT slaves that are operating
normally, if a communications error occurs.
“Fail-soft operation” refers an operation that only normally operating EtherCAT slaves are allowed to
operate continuously.
The EtherCAT master can continue the communications with the EtherCAT slaves until the opera-
tion is stopped safely through the user program or user operation.
You enable/disable the fail-soft operation in Sysmac Studio. Refer to the NJ/NX-series CPU Unit
Built-in EtherCAT Port User’s Manual (Cat. No. W505) for the setting procedure.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 8-3
8 Introduction of EtherCAT Communications Functions
Maintenance
Disconnecting/Reconnecting Slaves
Use this function to temporarily stop and start communications with a specified slave.
It is useful because, during system operation, you can replace an erroneous EtherCAT slave without
interrupting the communications with EtherCAT slaves that are operating normally.
Refer to the NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (Cat. No. W505) for
details on how to use this function.
Diagnosis/Statistics Log
The diagnostic and statistical information provides statistics on the number of communications
frames sent and received by the EtherCAT master and EtherCAT slaves as well as the number of
frames for which errors were detected.
This function acquires the diagnostic and statistical information at the specified cycle and saves the
information as a log file in an SD Memory Card that is mounted on the CPU Unit.
You can use it to diagnose the EtherCAT network line quality based on the diagnostic and statistical
information.
Use this function for the following applications.
• Checking the EtherCAT network line quality for predictive monitoring and preventive maintenance
• Finding locations of errors when they occur
Refer to the NJ/NX-series CPU Unit Built-in EtherCAT Port User’s Manual (Cat. No. W505) for
details on how to use this function.
8-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Troubleshooting
This section describes the overview of methods for checking errors.
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 9-1
9 Troubleshooting
Host computer
HMI
Checking Network
Status
EtherNet/IP
Troubleshooter
Network Configurator
Built-in
NJ/NX-series EtherNet/IP port CJ-series Units
CPU Unit and NX Units
Troubleshooting
Sysmac Studio
EtherCAT
EtherCAT
slave
You can use the troubleshooting functions of the Sysmac Studio or the Troubleshooter on an HMI to
quickly check for errors that have occurred and find corrections for them.
Refer to the NJ/NX-series Troubleshooting Manual (Cat. No. W503-E1-19 or later) for types of errors,
meanings, specific corrections when errors occur and for troubleshooting information on the entire
NJ/NX-series Controller.
9-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
9 Troubleshooting
9-2-1 Checking for Errors and Troubleshooting with the ERR Indicator
on Option Boards
You can check the status indicator on an Analog I/O Option Board see if an error occurs in it. This table
below gives the meanings of errors that the indicator shows and the troubleshooting information on
them.
(A)
ERR
IN OUT IN OUT
COM
COM
COM
COM
VO1
VO1
VO2
VO2
VI1
VI2
VI1
VI2
I I1
I I2
I I1
I I2
(B)
W503-E1-19 or later).
Analog Option Board Refer to the event Analog Option Board Startup
Startup Error Error in the NJ/NX-series Troubleshooting Manual
(Cat. No. W503-E1-19 or later).
Analog Option Board Refer to the event Analog Option Board Communi-
Communications Error cations Error in the NJ/NX-series Troubleshooting
Manual (Cat. No. W503-E1-19 or later).
Option Board Configura- Refer to the event Option Board Configuration Veri-
tion Verification Error fication Error in the NJ/NX-series Troubleshooting
Manual (Cat. No. W503-E1-19 or later).
Not lit --- Normal operation
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) 9-3
9 Troubleshooting
9-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
A
Appendices
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) A-1
Appendices
The following describes how the unit version of an NX1P2 CPU Unit corresponds to the Sysmac Studio
version. Normally use the corresponding versions.
Restriction When the Unit Version Does not Correspond to the Sys-
mac Studio Version
By specification, the following restriction applies when the unit version of the NX1P2 CPU Unit does not
correspond to the Sysmac Studio version.
A-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Appendices
Additional Information
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) A-3
Appendices
A-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
I
Index
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) I-1
Index
Index
Symbols cam tables .................................................................... 6-19
data type ................................................................. 6-20
.Run (Option Board saving ..................................................................... 6-21
Normal Operation) ............................3-10, 4-23, 4-31, 5-9 specifications .......................................................... 6-19
switching ................................................................. 6-21
A updating properties ................................................. 6-22
CIP communications ...................................................... 7-2
CIP message communications ....................................... 7-3
aborting ............................................................... 6-49, 6-67
command position ........................................................ 6-33
acceleration and deceleration rates
command velocity ........................................................ 6-35
unit .......................................................................... 6-36
communications setting level ....................................... 4-16
acceleration rate
Configuration .................................................................. 3-4
changing ................................................................. 6-45
connecting acceleration ............................................... 6-18
Acceleration Warning Value ......................................... 6-36
connecting velocity ....................................................... 6-18
Acceleration/Deceleration Over .................................... 6-36
converted value .............................................................. 5-3
actual position .............................................................. 6-33
current direction ........................................................... 6-39
actual velocity ............................................................... 6-35
Actual Velocity Filter Time Constant ............................. 6-35
allowable value conversion range ........................... 5-3, 5-4
D
AT specification ..................................................... 4-8, 4-17
automatic clock adjustment ............................................ 7-5 deceleration rate
axes group errors changing ................................................................. 6-45
resetting .................................................................. 6-56 deceleration stop of command value ........................... 6-11
axes groups Deceleration Warning Value ......................................... 6-37
enabling and disabling ............................................ 6-55 delay time ..................................................................... 2-12
diagnosis/statistics log ................................................... 8-4
B disconnecting/connecting slaves .................................... 8-4
displacement ................................................................ 6-17
download area ..................................................... 4-11, 4-17
blending ............................................................... 6-50, 6-68
BOOTP client ................................................................. 7-4
Buffer Mode ......................................................... 6-48, 6-66
E
buffered ............................................................... 6-49, 6-68
enable/disable setting for slaves .................................... 8-3
C events ............................................................................. 9-2
I-2 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
Index
immediate stop of command value and servo OFF ......6-11 process data communications ........................................8-2
Input Filter Settings .........................................................2-8 programless communications ........................ 4-4, 4-8, 4-10
input range ......................................................................5-3 program-modified cam data ..........................................6-17
invalid cam data ............................................................6-17
R
J
reading axes group positions ........................................6-56
jerk unit .........................................................................6-38 re-executing instructions ...............................................6-43
re-execution of instructions ...........................................6-65
L resetting axis errors ........................................................6-3
NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579) I-3
Index
travel distance
changing ................................................................. 6-45
I-4 NX-series NX1P2 CPU Unit Built-in I/O and Option Board User’s Manual (W579)
OMRON Corporation Industrial Automation Company Authorized Distributor:
Kyoto, JAPAN
Contact: www.ia.omron.com
Regional Headquarters
OMRON EUROPE B.V. OMRON ELECTRONICS LLC
Wegalaan 67-69, 2132 JD Hoofddorp 2895 Greenspoint Parkway, Suite 200
The Netherlands Hoffman Estates, IL 60169 U.S.A.
Tel: (31)2356-81-300/Fax: (31)2356-81-388 Tel: (1) 847-843-7900/Fax: (1) 847-843-7787
OMRON (CHINA) CO., LTD. © OMRON Corporation 2016-2019 All Rights Reserved.
OMRON ASIA PACIFIC PTE. LTD.
Room 2211, Bank of China Tower, In the interest of product improvement,
No. 438A Alexandra Road # 05-05/08 (Lobby 2),
Alexandra Technopark, 200 Yin Cheng Zhong Road, specifications are subject to change without notice.
Singapore 119967 PuDong New Area, Shanghai, 200120, China
Tel: (65) 6835-3011/Fax: (65) 6835-2711 Tel: (86) 21-5037-2222/Fax: (86) 21-5037-2200 Cat. No. W579-E1-05 1019