W471-E1-01 CP1L OperationManual
W471-E1-01 CP1L OperationManual
W471-E1-01 CP1L OperationManual
Unit version
ix
Using the Unit Version
Labels
The following unit version labels are provided with the CPU Unit.
These labels can be attached to the front of previous CPU Units to differenti-
ate between CPU Units of different unit versions.
Functions Supported by Unit Version for CP-series CPU Units
Functions Supported by Unit Version 1.0 and 1.1
Functionality is the same as that for CS/CJ-series CPU Units with unit version
3.0. The functionality added for CS/CJ-series CPU Unit unit version 4.0 is not
supported.
CP1H CPU Units
CX-Programmer version 6.11 or higher is required to use CP1H-X@@@@-
@/XA@@@@-@ with unit version 1.1 or 1.0.
CX-Programmer version 6.20 or higher is required to use CP1H-Y@@@@-
@ with unit version 1.1.
Note 1. The unit version for the CP1H-X@@@@-@/XA@@@@-@ begins at 1.0.
2. The unit version for the CP1H-X@@@@-@ begins at 1.1.
3. CX-Programmer version 7.11 or higher is required to use CP1L CPU Units
with unit version 1.0.
4. CX-Programmer version 7.22 or higher is required to use CP1L-J CPU Units.
Ver. 1.0
Ver. 1.0
Ver.
Ver.
These Label s can be used
t o manage di f f er ences
i n t he avai l abl e
f unct i ons among t he Uni t s.
Pl ace t he appr opr i at e l abel
on t he f r ont of t he Uni t t o
show what Uni t
ver si on i s actual l y bei ng
used.
CPU Unit CP1H CPU Unit
Model CP1H-@@@@-@
CP1H-XA@@@@-@
(See note 1.)
CP1H-Y@@@@-
@
(See note 2.)
Unit version
Function
Ver. 1.1 or later Ver. 1.0 Ver. 1.1
Pulse
outputs
Allocated built-
in I/O terminals
4 axes at 100 kHz 2 axes at 100 kHz
2 axes at 30 kHz
2 axes at 100 kHz
Special pulse
output terminals
None 2 axes at 1 kHz
x
xi
TABLE OF CONTENTS
PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
1 Intended Audience. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi
5 Application Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii
6 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
SECTION 1
Features and System Configuration . . . . . . . . . . . . . . . . . . . 1
1-1 Features and Main Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-2 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1-3 Connecting the CX-Programmer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1-4 Function Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1-5 Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
SECTION 2
Nomenclature and Specifications . . . . . . . . . . . . . . . . . . . . . 33
2-1 Part Names and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
2-2 Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2-3 CP1L CPU Unit Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
2-4 CPU Unit Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
2-5 CPU Unit Operating Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
2-6 Power OFF Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
2-7 Computing the Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
SECTION 3
Installation and Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
3-1 Fail-safe Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
3-2 Installation Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
3-3 Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
3-4 Wiring CP1L CPU Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
3-5 Wiring CPU Unit I/O. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
3-6 CP/CPM1A-series Expansion I/O Unit Wiring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
SECTION 4
I/O Memory Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
4-1 Overview of I/O Memory Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
4-2 I/O Area and I/O Allocations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
4-3 1:1 Link Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
4-4 Serial PLC Link Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
xii
TABLE OF CONTENTS
4-5 Internal Work Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
4-6 Holding Area (H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
4-7 Auxiliary Area (A). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
4-8 TR (Temporary Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
4-9 Timers and Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
4-10 Data Memory Area (D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
4-11 Index Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
4-12 Data Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
4-13 Task Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
4-14 Condition Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
4-15 Clock Pulses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
SECTION 5
Pulse and Counter Functions. . . . . . . . . . . . . . . . . . . . . . . . . 155
5-1 High-speed Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156
5-2 Pulse Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
5-3 Inverter Positioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
SECTION 6
Advanced Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 315
6-1 Interrupt Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
6-2 Quick-response Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
6-3 Serial Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
6-4 Analog Adjuster and External Analog Setting Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 369
6-5 Battery-free Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
6-6 Memory Cassette Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
6-7 Program Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
6-8 Failure Diagnosis Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389
6-9 Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
SECTION 7
Using Expansion Units and Expansion I/O Units . . . . . . . . 395
7-1 Connecting Expansion Units and Expansion I/O Units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 396
7-2 Analog Input Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
7-3 Analog Output Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
7-4 Analog I/O Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
7-5 Temperature Sensor Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
7-6 CompoBus/S I/O Link Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
7-7 DeviceNet I/O Link Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458
xiii
TABLE OF CONTENTS
SECTION 8
Program Transfer, Trial Operation, and Debugging . . . . . 465
8-1 Program Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466
8-2 Trial Operation and Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466
SECTION 9
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 473
9-1 Error Classification and Confirmation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 474
9-2 Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 476
9-3 Error Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 485
9-4 Troubleshooting Unit Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 486
SECTION 10
Inspection and Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . 489
10-1 Inspections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 490
10-2 Replacing User-serviceable Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 492
Appendices
A Standard Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 497
B Dimensions Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 501
C Auxiliary Area Allocations by Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507
D Auxiliary Area Allocations by Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
E Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577
F Connections to Serial Communications Option Boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579
G PLC Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 605
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 629
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 635
xiv
TABLE OF CONTENTS
xv
About this Manual:
This manual describes installation and operation of the CP-series Programmable Controllers (PLCs)
and includes the sections described below. The CP Series provides advanced package-type PLCs
based on OMRONs advanced control technologies and vast experience in automated control.
Please read this manual carefully and be sure you understand the information provided before
attempting to install or operate a CP-series PLC. Be sure to read the precautions provided in the fol-
lowing section.
Definition of the CP Series
The CP Series is centered around the CP1H and CP1L CPU Units and is designed with the same
basic architecture as the CS and CJ Series. Always use CP-series Expansion Units and CP-series
Expansion I/O Units when expanding I/O capacity.
I/O words are allocated in the same way as the CPM1A/CPM2A PLCs, i.e., using fixed areas for inputs
and outputs.
xvi
Precautions provides general precautions for using the Programmable Controller and related devices.
Section 1 introduces the features of the CP1L and describes its configuration. It also describes the
Units that are available and connection methods for Programming Devices and other peripheral
devices.
Section 2 describes the names and functions of CP1L parts and provides CP1L specifications.
Section 3 describes how to install and wire the CP1L.
Section 4 describes the structure and functions of the I/O Memory Areas and Parameter Areas.
Section 5 describes the CP1Ls interrupt and high-speed counter functions.
Section 6 describes all of the advanced functions of the CP1L that can be used to achieve specific
application needs.
Section 7 describes how to use CP-series Expansion Units and Expansion I/O Units
Section 8 describes the processes used to transfer the program to the CPU Unit and the functions that
can be used to test and debug the program.
Section 9 provides information on hardware and software errors that occur during CP1L operation
Section 10 provides inspection and maintenance information.
The Appendices provide product lists, dimensions, tables of Auxiliary Area allocations, and a memory
map.
xvii
Related Manuals
The following manuals are used for the CP1L CPU Units. Refer to these manuals as required.
Cat. No. Model numbers Manual name Description
W462 CP1L-J14D@-@
CP1L-J20D@-@
CP1L-L14D@-@
CP1L-L20D@-@
CP1L-M30D@-@
CP1L-M40D@-@
SYSMAC CP Series
CP1L CPU Unit Oper-
ation Manual
Provides the following information on the CP Series:
Overview, design, installation, maintenance, and
other basic specifications
Features
System configuration
Mounting and wiring
I/O memory allocation
Troubleshooting
Use this manual together with the CP1L Program-
mable Controllers Programming Manual (W451).
W451 CP1H-X40D@-@
CP1H-XA40D@-@
CP1H-Y20DT-D
CP1L-J14D@-@
CP1L-J20D@-@
CP1L-L14D@-@
CP1L-L20D@-@
CP1L-M30D@-@
CP1L-M40D@-@
SYSMAC CP Series
CP1H /CP1L CPU
Unit Programming
Manual
Provides the following information on programming
the CP Series:
Programming methods
Tasks
Programming instructions
W461 CP1L-J14D@-@
CP1L-J20D@-@
CP1L-L14D@-@
CP1L-L20D@-@
CP1L-M30D@-@
CP1L-M40D@-@
SYSMAC CP Series
CP1L CPU Unit Intro-
duction Manual
Describes basic setup methods of CP1L PLCs:
Basic configuration and component names
Mounting and wiring
Programming, data transfer, and debugging using
the CX-Programmer
Application program examples
W446 WS02-CXPC1-E-V72 SYSMAC CX-Pro-
grammer
Ver. 7.2 Operation
Manual
Provides information on installing and operating the
CX-Programmer for all functions except for function
blocks.
W447 WS02-CXPC1-E-V72 SYSMAC CX-Pro-
grammer Ver. 7.1
Operation Manual
Function Blocks
Provides specifications and operating procedures
for function blocks. Function blocks can be used
with CX-Programmer Ver. 7.1 or higher and a CP1L
CPU Unit. Refer to W446 for operating procedures
for functions other than function blocks.
W463 CXONE-AL@@C-EV2
CXONE-AL@@D-EV2
CX-One Setup Man-
ual
Provides an overview of and describes how to
install the CX-One FA Integrated Tool Package.
W464 CX-Integrator Opera-
tion Manual
Describes operating the CX-Integrator, including
operations to build networks (e.g., setting data links,
routing tables, and Communications Units.
xviii
W344 WS02-PSTC1-E CX-Protocol Opera-
tion Manual
Provides operating procedures for creating protocol
macros (i.e., communications sequences) with the
CX-Protocol and other information on protocol mac-
ros.
The CX-Protocol is required to create protocol mac-
ros for user-specific serial communications or to
customize the standard system protocols.
W342 CS1G/H-CPU@@H
CS1G/H-CPU@@-V1
CS1D-CPU@@H
CS1D-CPU@@S
CS1W-SCU@@-V1
CS1W-SCB@@-V1
CJ1G/H-CPU@@H
CJ1G-CPU@@P
CJ1M-CPU@@
CJ1G-CPU@@
CJ1W-SCU@@-V1
SYSMAC CS/CJ/CP/
NSJ-series Communi-
cations Commands
Reference Manual
Describes commands addressed to CS-series, CJ-
series, and CP-series CPU Units, including C-mode
commands and FINS commands.
Note This manual describes on commands
address to CPU Units regardless of the com-
munications path. (CPU Unit serial ports,
Serial Communications Unit/Board ports, and
Communications Unit ports can be used.)
Refer to the relevant operation manuals for
information on commands addresses to Spe-
cial I/O Units and CPU Bus Units.
Cat. No. Model numbers Manual name Description
xix
Read and Understand this Manual
Please read and understand this manual before using the product. Please consult your OMRON
representative if you have any questions or comments.
Warranty and Limitations of Liability
WARRANTY
OMRON's exclusive warranty is that the products are free from defects in materials and workmanship for a
period of one year (or other period if specified) from date of sale by OMRON.
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, REGARDING NON-
INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR PARTICULAR PURPOSE OF THE
PRODUCTS. ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS
DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR
INTENDED USE. OMRON DISCLAIMS ALL OTHER WARRANTIES, EXPRESS OR IMPLIED.
LIMITATIONS OF LIABILITY
OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT, OR CONSEQUENTIAL DAMAGES,
LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS,
WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT
LIABILITY.
In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which
liability is asserted.
IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS
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 OR REPAIR.
xx
Application Considerations
SUITABILITY FOR USE
OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the
combination of products in the customer's application or use of the products.
At the customer's request, OMRON will provide applicable third party certification documents identifying
ratings and limitations of use that apply to the products. This information by itself is not sufficient for a
complete determination of the suitability of the products in combination with the end product, machine,
system, or other application or use.
The following are some examples of applications for which particular attention must be given. This is not
intended to be an exhaustive list of all possible uses of the products, nor is it intended to imply that the uses
listed may be suitable for the products:
Outdoor use, uses involving potential chemical contamination or electrical interference, or conditions or
uses not described in this manual.
Nuclear energy control systems, combustion systems, railroad systems, aviation systems, medical
equipment, amusement machines, vehicles, safety equipment, and installations subject to separate
industry or government regulations.
Systems, machines, and equipment that could present a risk to life or property.
Please know and observe all prohibitions of use applicable to the products.
NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO
ADDRESS THE RISKS, AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND INSTALLED
FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
PROGRAMMABLE PRODUCTS
OMRON shall not be responsible for the user's programming of a programmable product, or any
consequence thereof.
xxi
Disclaimers
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 model numbers when published ratings or features are changed, or when
significant construction changes are made. However, some specifications of the products may be changed
without any notice. When in doubt, special model numbers may be assigned to fix or establish key
specifications for your application on your request. Please consult with your OMRON representative at any
time to confirm actual specifications of purchased products.
DIMENSIONS AND WEIGHTS
Dimensions and weights are nominal and are not to be used for manufacturing purposes, even when
tolerances are shown.
PERFORMANCE DATA
Performance data given in this manual 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 users must
correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and
Limitations of Liability.
ERRORS AND OMISSIONS
The information in this manual has been carefully checked and is believed to be accurate; however, no
responsibility is assumed for clerical, typographical, or proofreading errors, or omissions.
xxii
xxiii
PRECAUTIONS
This section provides general precautions for using the CP-series Programmable Controllers (PLCs) and related devices.
The information contained in this section is important for the safe and reliable application of Programmable Controllers.
You must read this section and understand the information contained before attempting to set up or operate a PLC system.
1 Intended Audience. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi
5 Application Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii
6 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
6-1 Applicable Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
6-2 Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
6-3 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
6-4 Relay Output Noise Reduction Methods. . . . . . . . . . . . . . . . . . . . . . xxx
6-5 Conditions for Meeting EMC Directives
when Using CPM1A Relay Expansion I/O Units . . . . . . . . . . . . . . . xxxii
xxiv
Intended Audience 1
1 Intended Audience
This manual is intended for the following personnel, who must also have
knowledge of electrical systems (an electrical engineer or the equivalent).
Personnel in charge of installing FA systems.
Personnel in charge of designing FA systems.
Personnel in charge of managing FA systems and facilities.
2 General Precautions
The user must operate the product according to the performance specifica-
tions described in the operation manuals.
Before using the product under conditions which are not described in the
manual or applying the product to nuclear control systems, railroad systems,
aviation systems, vehicles, combustion systems, medical equipment, amuse-
ment machines, safety equipment, and other systems, machines, and equip-
ment that may have a serious influence on lives and property if used
improperly, consult your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide
the systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating the Unit. Be
sure to read this manual before attempting to use the Unit and keep this man-
ual close at hand for reference during operation.
!WARNING It is extremely important that a PLC and all PLC Units be used for the speci-
fied purpose and under the specified conditions, especially in applications that
can directly or indirectly affect human life. You must consult with your OMRON
representative before applying a PLC System to the above-mentioned appli-
cations.
3 Safety Precautions
!WARNING Do not attempt to take any Unit apart while the power is being supplied. Doing
so may result in electric shock.
!WARNING Do not touch any of the terminals or terminal blocks while the power is being
supplied. Doing so may result in electric shock.
!WARNING Do not attempt to disassemble, repair, or modify any Units. Any attempt to do
so may result in malfunction, fire, or electric shock.
!WARNING Provide safety measures in external circuits (i.e., not in the Programmable
Controller), including the following items, to ensure safety in the system if an
abnormality occurs due to malfunction of the PLC or another external factor
affecting the PLC operation. Not doing so may result in serious accidents.
Emergency stop circuits, interlock circuits, limit circuits, and similar safety
measures must be provided in external control circuits.
xxv
Safety Precautions 3
The PLC will turn OFF all outputs when its self-diagnosis function detects
any error or when a severe failure alarm (FALS) instruction is executed.
As a countermeasure for such errors, external safety measures must be
provided to ensure safety in the system.
The PLC or outputs may remain ON or OFF due to deposits on or burning
of the output relays, or destruction of the output transistors. As a counter-
measure for such problems, external safety measures must be provided
to ensure safety in the system.
When the 24-V DC output (service power supply to the PLC) is over-
loaded or short-circuited, the voltage may drop and result in the outputs
being turned OFF. As a countermeasure for such problems, external
safety measures must be provided to ensure safety in the system.
!WARNING Fail-safe measures must be taken by the customer to ensure safety in the
event of incorrect, missing, or abnormal signals caused by broken signal lines,
momentary power interruptions, or other causes. Not doing so may result in
serious accidents.
!WARNING Do not apply the voltage / current outside the specified range to this unit. It
may cause a malfunction or fire.
!Caution Execute online edit only after confirming that no adverse effects will be
caused by extending the cycle time. Otherwise, the input signals may not be
readable.
!Caution Confirm safety at the destination node before transferring a program to
another node or editing the I/O area. Doing either of these without confirming
safety may result in injury.
!Caution Tighten the screws on the terminal block of the AC power supply to the torque
specified in this manual. The loose screws may result in burning or malfunc-
tion.
!Caution Do not touch anywhere near the power supply parts or I/O terminals while the
power is ON, and immediately after turning OFF the power. The hot surface
may cause burn injury.
!Caution Pay careful attention to the polarities (+/-) when wiring the DC power supply. A
wrong connection may cause malfunction of the system.
!Caution When connecting the PLC to a computer or other peripheral device, either
ground the 0 V side of the external power supply or do not ground the external
power supply at all. Otherwise the external power supply may be shorted
depending on the connection methods of the peripheral device. DO NOT
ground the 24 V side of the external power supply, as shown in the following
diagram.
24 V
0 V 0 V
Non-insulated DC power supply
0 V
Peripheral device
FG FG
CPU Unit
FG
Twisted-pair
cable
FG
xxvi
Operating Environment Precautions 4
!Caution After programming (or reprogramming) using the IOWR instruction, confirm
that correct operation is possible with the new ladder program and data before
starting actual operation. Any irregularities may cause the product to stop
operating, resulting in unexpected operation in machinery or equipment.
!Caution The CP1L CPU Units automatically back up the user program and parameter
data to flash memory when these are written to the CPU Unit. I/O memory
(including the DM Area, counter present values and Completion Flags, and
HR Area), however, is not written to flash memory. The DM Area, counter
present values and Completion Flags, and HR Area can be held during power
interruptions with a battery. If there is a battery error, the contents of these
areas may not be accurate after a power interruption. If the contents of the
DM Area, counter present values and Completion Flags, and HR Area are
used to control external outputs, prevent inappropriate outputs from being
made whenever the Battery Error Flag (A402.04) is ON.
4 Operating Environment Precautions
!Caution Do not operate the control system in the following locations:
Locations subject to direct sunlight.
Locations subject to temperatures or humidity outside the range specified
in the specifications.
Locations subject to condensation as the result of severe changes in tem-
perature.
Locations subject to corrosive or flammable gases.
Locations subject to dust (especially iron dust) or salts.
Locations subject to exposure to water, oil, or chemicals.
Locations subject to shock or vibration.
!Caution Take appropriate and sufficient countermeasures when installing systems in
the following locations:
Locations subject to static electricity or other forms of noise.
Locations subject to strong electromagnetic fields.
Locations subject to possible exposure to radioactivity.
Locations close to power supplies.
!Caution The operating environment of the PLC System can have a large effect on the
longevity and reliability of the system. Improper operating environments can
lead to malfunction, failure, and other unforeseeable problems with the PLC
System. Make sure that the operating environment is within the specified con-
ditions at installation and remains within the specified conditions during the
life of the system.
xxvii
Application Precautions 5
5 Application Precautions
Observe the following precautions when using the PLC System.
!WARNING Always heed these precautions. Failure to abide by the following precautions
could lead to serious or possibly fatal injury.
Always connect to 100 or less when installing the Units. Not connecting
to a ground of 100 or less may result in electric shock.
Always turn OFF the power supply to the PLC before attempting any of
the following. Not turning OFF the power supply may result in malfunction
or electric shock.
Mounting or dismounting Expansion Units or any other Units
Connecting or removing the Memory Cassette or Option Board
Setting DIP switches or rotary switches
Connecting or wiring the cables
Connecting or disconnecting the connectors
!Caution Failure to abide by the following precautions could lead to faulty operation of
the PLC or the system, or could damage the PLC or PLC Units. Always heed
these precautions.
Install external breakers and take other safety measures against short-cir-
cuiting in external wiring. Insufficient safety measures against short-cir-
cuiting may result in burning.
Mount the Unit only after checking the connectors and terminal blocks
completely.
Be sure that all the terminal screws and cable connector screws are tight-
ened to the torque specified in the relevant manuals. Incorrect tightening
torque may result in malfunction.
Wire all connections correctly according to instructions in this manual.
Always use the power supply voltage specified in the operation manuals.
An incorrect voltage may result in malfunction or burning.
Take appropriate measures to ensure that the specified power with the
rated voltage and frequency is supplied. Be particularly careful in places
where the power supply is unstable. An incorrect power supply may result
in malfunction.
Leave the label attached to the Unit when wiring. Removing the label may
result in malfunction.
Remove the label after the completion of wiring to ensure proper heat dis-
sipation. Leaving the label attached may result in malfunction.
Use crimp terminals for wiring. Do not connect bare stranded wires
directly to terminals. Connection of bare stranded wires may result in
burning.
Do not apply voltages to the input terminals in excess of the rated input
voltage. Excess voltages may result in burning.
Do not apply voltages or connect loads to the output terminals in excess
of the maximum switching capacity. Excess voltage or loads may result in
burning.
xxviii
Application Precautions 5
Be sure that the terminal blocks, connectors, Option Boards, and other
items with locking devices are properly locked into place. Improper locking
may result in malfunction.
Disconnect the functional ground terminal when performing withstand
voltage tests. Not disconnecting the functional ground terminal may result
in burning.
Wire correctly and double-check all the wiring or the setting switches
before turning ON the power supply. Incorrect wiring may result in burn-
ing.
Check that the DIP switches and data memory (DM) are properly set
before starting operation.
Check the user program for proper execution before actually running it on
the Unit. Not checking the program may result in an unexpected opera-
tion.
Resume operation only after transferring to the new CPU Unit the con-
tents of the DM, HR, and CNT Areas required for resuming operation. Not
doing so may result in an unexpected operation.
Confirm that no adverse effect will occur in the system before attempting
any of the following. Not doing so may result in an unexpected operation.
Changing the operating mode of the PLC (including the setting of the
startup operating mode).
Force-setting/force-resetting any bit in memory.
Changing the present value of any word or any set value in memory.
Do not pull on the cables or bend the cables beyond their natural limit.
Doing either of these may break the cables.
Do not place objects on top of the cables. Doing so may break the cables.
When replacing parts, be sure to confirm that the rating of a new part is
correct. Not doing so may result in malfunction or burning.
Before touching the Unit, be sure to first touch a grounded metallic object
in order to discharge any static buildup. Not doing so may result in mal-
function or damage.
Do not touch the Expansion I/O Unit Connecting Cable while the power is
being supplied in order to prevent malfunction due to static electricity.
Do not turn OFF the power supply to the Unit while data is being trans-
ferred.
When transporting or storing the product, cover the PCBs with electrically
conductive materials to prevent LSIs and ICs from being damaged by
static electricity, and also keep the product within the specified storage
temperature range.
Do not touch the mounted parts or the rear surface of PCBs because
PCBs have sharp edges such as electrical leads.
Double-check the pin numbers when assembling and wiring the connec-
tors.
Wire correctly according to specified procedures.
Do not connect pin 6 (+5V) on the RS-232C Option Board (CP1W-CIF01)
on the CPU Unit to any external device other than the NT-AL001 or
CP1W-CIF11 Conversion Adapter. The external device and the CPU Unit
may be damaged.
xxix
Application Precautions 5
Use the dedicated connecting cables specified in this manual to connect
the Units. Using commercially available RS-232C computer cables may
cause failures in external devices or the CPU Unit.
The user program and parameter area data in the CPU Unit is backed up
in the built-in flash memory. The BKUP indicator will light on the front of
the CPU Unit when the backup operation is in progress. Do not turn OFF
the power supply to the CPU Unit when the BKUP indicator is lit. The data
will not be backed up if power is turned OFF.
Do not turn OFF the power supply to the PLC while the Memory Cassette
is being written. Doing so may corrupt the data in the Memory Cassette.
The BKUP indicator will light while the Memory Cassette is being written.
Wait for the BKUP indicator to go out before turning OFF the power sup-
ply to the PLC.
Before replacing the battery, supply power to the CPU Unit for at least 5
minutes and then complete battery replacement within 5 minutes of turn
OFF the power supply. Memory data may be corrupted if this precaution is
not observed.
Always use the following size wire when connecting I/O terminals:
AWG22 to AWG18 (0.32 to 0.82 mm
2
).
Dispose of the product and batteries according to local ordinances as
they apply.
Have qualified specialists properly dispose of used batteries as industrial
waste.
UL standards required that batteries be replaced only by experienced
technicians. Do not allow unqualified persons to replace batteries. Also,
always follow the replacement procedure provided in the manual.
Never short-circuit the positive and negative terminals of a battery or
charge, disassemble, heat, or incinerate the battery. Do not subject the
battery to strong shocks or deform the barry by applying pressure. Doing
any of these may result in leakage, rupture, heat generation, or ignition of
the battery. Dispose of any battery that has been dropped on the floor or
otherwise subjected to excessive shock. Batteries that have been sub-
jected to shock may leak if they are used.
Always construct external circuits so that the power to the PLC it turned
ON before the power to the control system is turned ON. If the PLC power
supply is turned ON after the control power supply, temporary errors may
result in control system signals because the output terminals on DC Out-
put Units and other Units will momentarily turn ON when power is turned
ON to the PLC.
Fail-safe measures must be taken by the customer to ensure safety in the
event that outputs from Output Units remain ON as a result of internal cir-
cuit failures, which can occur in relays, transistors, and other elements.
If the I/O Hold Bit is turned ON, the outputs from the PLC will not be
turned OFF and will maintain their previous status when the PLC is
switched from RUN or MONITOR mode to PROGRAM mode. Make sure
that the external loads will not produce dangerous conditions when this
occurs. (When operation stops for a fatal error, including those produced
with the FALS(007) instruction, all outputs from Output Unit will be turned
OFF and only the internal output status will be maintained.)
xxx
Conformance to EC Directives 6
6 Conformance to EC Directives
6-1 Applicable Directives
EMC Directives
Low Voltage Directive
6-2 Concepts
EMC Directives
OMRON devices that comply with EC Directives also conform to the related
EMC standards so that they can be more easily built into other devices or the
overall machine. The actual products have been checked for conformity to
EMC standards (see the following note). Whether the products conform to the
standards in the system used by the customer, however, must be checked by
the customer.
EMC-related performance of the OMRON devices that comply with EC Direc-
tives will vary depending on the configuration, wiring, and other conditions of
the equipment or control panel on which the OMRON devices are installed.
The customer must, therefore, perform the final check to confirm that devices
and the overall machine conform to EMC standards.
Note The applicable EMC (Electromagnetic Compatibility) standard is EN61131-2.
Low Voltage Directive
Always ensure that devices operating at voltages of 50 to 1,000 V AC and 75
to 1,500 V DC meet the required safety standards for the PLC (EN61131-2).
6-3 Conformance to EC Directives
The CP1L PLCs comply with EC Directives. To ensure that the machine or
device in which the CP1L PLC is used complies with EC Directives, the PLC
must be installed as follows:
1,2,3... 1. The CP1L PLC must be installed within a control panel.
2. You must use reinforced insulation or double insulation for the DC power
supplies used for I/O Units and CPU Units requiring DC power. The output
holding time must be 10 ms minimum for the DC power supply connected
to the power supply terminals on Units requiring DC power.
3. CP1L PLCs complying with EC Directives also conform to EN61131-2. Ra-
diated emission characteristics (10-m regulations) may vary depending on
the configuration of the control panel used, other devices connected to the
control panel, wiring, and other conditions. You must therefore confirm that
the overall machine or equipment complies with EC Directives.
6-4 Relay Output Noise Reduction Methods
The CP1L PLCs conforms to the Common Emission Standards (EN61131-2)
of the EMC Directives. However, noise generated by relay output switching
may not satisfy these Standards. In such a case, a noise filter must be con-
nected to the load side or other appropriate countermeasures must be pro-
vided external to the PLC.
Countermeasures taken to satisfy the standards vary depending on the
devices on the load side, wiring, configuration of machines, etc. Following are
examples of countermeasures for reducing the generated noise.
xxxi
Conformance to EC Directives 6
Countermeasures
Countermeasures are not required if the frequency of load switching for the
whole system with the PLC included is less than 5 times per minute.
Countermeasures are required if the frequency of load switching for the whole
system with the PLC included is more than 5 times per minute.
Note Refer to EN61131-2 for more details.
Countermeasure Examples
When switching an inductive load, connect an surge protector, diodes, etc., in
parallel with the load or contact as shown below.
Circuit Current Characteristic Required element
AC DC
Yes Yes If the load is a relay or solenoid, there is
a time lag between the moment the cir-
cuit is opened and the moment the load
is reset.
If the supply voltage is 24 or 48 V, insert
the surge protector in parallel with the
load. If the supply voltage is 100 to
200 V, insert the surge protector
between the contacts.
The capacitance of the capacitor must
be 1 to 0.5 F per contact current of
1 A and resistance of the resistor must
be 0.5 to 1 per contact voltage of 1 V.
These values, however, vary with the
load and the characteristics of the
relay. Decide these values from experi-
ments, and take into consideration that
the capacitance suppresses spark dis-
charge when the contacts are sepa-
rated and the resistance limits the
current that flows into the load when
the circuit is closed again.
The dielectric strength of the capacitor
must be 200 to 300 V. If the circuit is an
AC circuit, use a capacitor with no
polarity.
No Yes The diode connected in parallel with
the load changes energy accumulated
by the coil into a current, which then
flows into the coil so that the current will
be converted into Joule heat by the
resistance of the inductive load.
This time lag, between the moment the
circuit is opened and the moment the
load is reset, caused by this method is
longer than that caused by the CR
method.
The reversed dielectric strength value
of the diode must be at least 10 times
as large as the circuit voltage value.
The forward current of the diode must
be the same as or larger than the load
current.
The reversed dielectric strength value
of the diode may be two to three times
larger than the supply voltage if the
surge protector is applied to electronic
circuits with low circuit voltages.
Yes Yes The varistor method prevents the impo-
sition of high voltage between the con-
tacts by using the constant voltage
characteristic of the varistor. There is
time lag between the moment the cir-
cuit is opened and the moment the load
is reset.
If the supply voltage is 24 or 48 V, insert
the varistor in parallel with the load. If
the supply voltage is 100 to 200 V,
insert the varistor between the con-
tacts.
---
CR method
Power
supply
I
n
d
u
c
t
i
v
e
l
o
a
d
C
R
Diode method
Power
supply
I
n
d
u
c
t
i
v
e
l
o
a
d
Varistor method
Power
supply
I
n
d
u
c
t
i
v
e
l
o
a
d
xxxii
Conformance to EC Directives 6
When switching a load with a high inrush current such as an incandescent
lamp, suppress the inrush current as shown below.
6-5 Conditions for Meeting EMC Directives when Using CPM1A Relay
Expansion I/O Units
EN61131-2 immunity testing conditions when using the CP1W-40EDR,
CPM1A-40EDR, CP1W-16ER, or CPM1A-16ER with a CP1W-CN811 I/O
Connecting Cable are given below.
Recommended Ferrite Core
Ferrite Core (Data Line Filter): 0443-164151 manufactured by Nisshin Electric
Minimum impedance: 90 at 25 MHz, 160 at 100 MHz
Recommended Connection Method
1,2,3... 1. Cable Connection Method
OUT
COM
R
OUT
COM
R
Countermeasure 1
Providing a dark current of
approx. one-third of the rated
value through an incandescent
Countermeasure 2
Providing a limiting resistor
lamp
30
32 33
xxxiii
Conformance to EC Directives 6
2. Connection Method
As shown below, connect a ferrite core to each end of the CP1W-CN811
I/O Connecting Cable.
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
CH
NC
NC
NC
NC
NC
NC
COM
COM COM COM COM COM COM 03 06 01 03 06
00 02 04 06 08 10
00 01 02 04 05 07 00 02 04 05 07
00 02 04 06 08 10
01 03 05 07 09 11 01 03 05 07 09 11
IN
40EDR
OUT
CH CH
CH CH EXP
CH
CH
CH
11 10 09 08 07 06 05 04 03 02 01 00
11 10 09 08 07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
xxxiv
Conformance to EC Directives 6
1
SECTION 1
Features and System Configuration
This section introduces the features of the CP1L and describes its configuration. It also describes the Units that are available
and connection methods for the CX-Programmer and other peripheral devices.
1-1 Features and Main Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-1 CP1L Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-2 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1-2 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1-2-1 Basic System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1-2-2 System Expansion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1-2-3 Restrictions on System Configuration . . . . . . . . . . . . . . . . . . . . . . . 17
1-3 Connecting the CX-Programmer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1-3-1 Connecting with a Commercially Available USB Cable . . . . . . . . . 20
1-3-2 Connecting to a Serial Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
1-4 Function Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
1-5 Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1-5-1 Overview of Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1-5-2 Advantages of Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2
Features and Main Functions Section 1-1
1-1 Features and Main Functions
1-1-1 CP1L Overview
The SYSMAC CP1L PLCs are the low end PLCs in the SYSMAC CP Series
of package-type Programmable Controllers. They have the smallest program
and I/O capacity. The CP1L PLCs are the same size as the CPM1A and
CPM2A PLCs, but offer many more features and high performance.
Four high-speed counters for two axes and two pulse outputs for two axes
can be used with the CPU Unit alone.
Using CP-series Expansion Units also allows extra functions (such as
temperature sensor inputs) to be added.
Installing an Option Board enables RS-232C and RS-422A/485 communi-
cations for Programmable Terminals, Bar Code Readers, Inverters, etc.
CPU Units with 40 I/O Points: CP1L-M40D@-@ CPU Units with 30 I/O Points: CP1L-M30D@-@
The CPU Unit has 24 inputs and 16 outputs built
in.
The CPU Unit has 18 inputs and 12 outputs built
in.
The PLC can be expanded to a maximum total of
160 I/O points by using CP-series Expansion I/O
Units.
The PLC can be expanded to a maximum total of
150 I/O points by using CP-series Expansion I/O
Units.
24 built-in inputs (Functions
can be assigned.) (See note.)
Normal inputs (24)
Interrupt inputs (6)
Quick-response inputs (6)
High-speed counter
(4 counters/2 axes)
100 kHz (single phase)
16 built-in outputs (Functions
can be assigned.) (See note.)
Normal outputs (16)
2 pulse outputs
100 kHz
2 PWM outputs
18 built-in inputs (Functions
can be assigned.) (See note.)
Normal inputs (18)
Interrupt inputs (6)
Quick-response inputs (6)
High-speed counter
(4 counters/2 axes)
100 kHz (single phase)
12 built-in outputs (Functions
can be assigned.) (See note.)
Normal outputs (12)
2 pulse outputs
100 kHz
2 PWM outputs
CPU Units with transistor outputs only. CPU Units with transistor outputs only.
3
Features and Main Functions Section 1-1
Note Settings in the PLC Setup determine whether each input point is to be used
as a normal input, interrupt input, quick-response input, or high-speed
counter. The instruction used to control each output point determines whether
it is used as a normal output, pulse output, or PWM output.
Four high-speed counters for two axes and two pulse outputs for two axes
can be used with the CPU Unit alone.
Using CP-series Expansion Units also allows extra functions (such as
temperature sensor inputs) to be added.
Installing an Option Board enables RS-232C and RS-422A/485 communi-
cations for Programmable Terminals, Bar Code Readers, Inverters, etc.
Note Settings in the PLC Setup determine whether each input point is to be used
as a normal input, interrupt input, quick-response input, or high-speed
counter. The instruction used to control each output point determines whether
it is used as a normal output, pulse output, or PWM output.
CPU Units with 20 I/O Points: CP1L-L20D@-@ and
CP1L-J20D@-@
CPU Units with 14 I/O Points: CP1L-L14D@-@ and
CP1L-J14D@-@
The CPU Unit has 12 inputs and 8 outputs built in. The CPU Unit has 8 inputs and 6 outputs built in.
The PLC can be expanded to a maximum total of
60 I/O points by using CP-series Expansion I/O
Units.
The PLC can be expanded to a maximum total of
54 I/O points by using CP-series Expansion I/O
Units.
12 built-in inputs (Functions
can be assigned.) (See note.)
Normal inputs (12)
Interrupt inputs (6)
Quick-response inputs (6)
High-speed counter
(4 counters/2 axes)
100 kHz (single phase) CP1L-L
20 kHz (single phase) CP1L-J
High-speed counter
(4 counters/2 axes)
100 kHz (single phase) CP1L-L
20 kHz (single phase) CP1L-J
8 built-in outputs (Functions
can be assigned.) (See note.)
Normal outputs (8)
2 pulse outputs
100 kHz (CP1L-L)
20 kHz (CP1L-J)
2 pulse outputs
100 kHz (CP1L-L)
20 kHz (CP1L-J)
2 PWM outputs
8 built-in inputs (Functions can
be assigned.) (See note.)
Normal inputs (8)
Interrupt inputs (4)
Quick-response inputs (4)
12 built-in outputs (Functions
can be assigned.) (See note.)
Normal outputs (6)
2 PWM outputs
CPU Units with transistor outputs only. CPU Units with transistor outputs only.
4
Features and Main Functions Section 1-1
CP1L CPU Units
Note (1) Three Expansion I/O Units connected to a CP-series CPU Unit with 40 or
30 I/O Points.
(2) One Expansion I/O Unit connected to a CP-series CPU Unit with 20 or 14
I/O Points.
Interpreting CP1L CPU Unit Model Numbers
Type M CPU Units L CPU Units J CPU Units
Model CP1L-M40DR-A
CP1L-M40DR-D
CP1L-M40DT-D
CP1L-M40DT1-D
CP1L-M30DR-A
CP1L-M30DR-D
CP1L-M30DT-D
CP1L-M30DT1-D
CP1L-L20DR-A
CP1L-L20DR-D
CP1L-L20DT-D
CP1L-L20DT1-D
CP1L-L14DR-A
CP1L-L14DR-D
CP1L-L14DT-D
CP1L-L14DT1-D
CP1L-J20DR-A
CP1L-J20DR-D
CP1L-J20DT1-D
CP1L-J14DR-A
CP1L-J14DR-D
CP1L-J14DT1-D
Power supply Models with AC power (model numbers ending in -A):
100 to 240 V AC, 50/60 Hz
Models with DC power (model numbers ending in -D):
24 V DC
Program capacity 10K steps 5K steps 1K steps
Maximum number of I/O points 160
(See note 1.)
150
(See note 1.)
60
(See note 2.)
54
(See note 2.)
60
(See note 2.)
54
(See note 2.)
Normal
I/O
I/O points 40 30 20 14 20 14
Input points 24 18 12 8 12 8
Input specifications 24 VDC
Interrupt or quick-
response inputs
6 max. 4 max. 6 max 4 max
Output points 16 12 8 6 8 6
Output specifications Relay outputs: Model numbers with R before the final suffix
Transistor outputs, sinking: Model numbers with T before the final suffix
Transistor outputs, sourcing:Model numbers with T1 before the final suffix
High-speed counter inputs 4 counters/2 axes, 100 kHz (single-phase),
100 kHz for up/down pulses or pulse plus direction, 50
kHz for differential phases
4 counters/2 axes, 20 kHz
(single-phase),
20 kHz for up/down pulses
or pulse plus direction, 10
kHz for differential phases
Pulse outputs 2 axes, 100 kHz (transistor outputs) 2 axes, 20 kHz (transistor
outputs)
Program capacity
M: 10K steps
L: 5K steps
J: 1K steps
Number of built-in
normal I/O points
40: 40
30: 30
20: 20
14: 14
Input classification
D: DC inputs
Power supply
A: AC
D: DC
Output classification
R: Relay outputs
T: Transistor outputs (sinking)
T1: Transistor outputs (sourcing)
5
Features and Main Functions Section 1-1
1-1-2 Features
This section describes the main features of the CP1L.
Basic CP1L Configuration
Positioning with an
Inverter
Positioning can be controlled using an inverter. Previously, an internal pulse
output with trapezoidal acceleration/deceleration is created using the PULSE
OUTPUT instruction. The position offset is calculated using an error counter
for the feedback pulse input from a rotary encoder connected to an inductive
motor and the internal pulse output. The error counter is then used to output a
speed command to the inverter to control positioning. This enables positioning
with high-capacity motors, as well as low-cost positioning with small-capacity
motors (in comparison to using a servo).
CX-One CP1L CPU Unit (Example for model with 40 I/O points)
USB port
Battery (CJ1W-BAT01)
Power supply/input terminal block
Peripheral
USB port
Analog adjuster
External analog
settings input
Memory Cassette
CP1W-ME05M
Memory Cassette
Two Option Board slots
Option Board
One RS-232C port
CP1W-CIF01 RS-232C
Option Board
One RS-422A/485 port
CP1W-CIF11 RS-422A/485
Option Board
Output terminal block
USB cable
6
Features and Main Functions Section 1-1
Note If high-precision positioning is required, we recommend using an inverter with
vector control.
Full Complement of
High-speed Counter
Functions
High-speed counter inputs can be enabled by connecting rotary encoders to
the built-in inputs. The ample number of high-speed counter inputs makes it
possible to control a multi-axis device with a single PLC.
Four 100-kHz (single phase)/50-kHz (differential phases) high-speed
counter inputs (4 counters/2 axes) are provided as a standard feature.
(See note.)
For CP1L-J PLCs, four 20-kHz (single phase)/10-kHz (differential phases)
high-speed counter inputs (4 counters/2 axes) are provided as a standard
feature. (See note.)
Note Settings in the PLC Setup determine whether each input point is to
be used as a normal input, interrupt input, quick-response input, or
high-speed counter.
A virtual pulse output is created using a pulse output instruction, the position
offset is calculated using an error counter, and a frequency (i.e., speed)
command is output according to the position offset to control positioning.
Analog output or RS-422A (Modbus-RTU)
Frequency
command
Pulse input
Encoder
Pulse Output
Instruction
Inverter
Motor
24 built-in inputs
(Functions can be assigned.)
High-speed counters
(4 counters/2 axes)
100 kHz (single phase)
7
Features and Main Functions Section 1-1
Full Complement of High-
speed Counter Functions
High-speed Processing for High-speed Counter Present Value (PV)
Target Values or Range Comparison Interrupts
An interrupt task can be started when the count reaches a specified value or
falls within a specified range.
High-speed Counter Input Frequency (Speed) Monitoring
The input pulse frequency can be monitored using the PRV instruction (one
point (counter 0) only, and you must select whether to use input frequency
monitoring or counter 3; you cannot use both).
High-speed Counter PV Holding/Refreshing
It is possible to toggle between holding and refreshing the high-speed counter
PV by turning ON and OFF the High-speed Counter Gate Flag from the ladder
program.
Versatile Pulse
Control (CPU Units
with Transistor
Outputs Only)
Positioning and speed control by a pulse-input servo driver is enabled by out-
putting fixed duty ratio pulse output signals from the CPU Unit's built-in out-
puts.
Pulse outputs for 2 axes at 100 kHz maximum are provided as standard
features. (See note.)
For CP1L-J PLCs, pulse outputs for 2 axes at 20 kHz maximum are pro-
vided as standard features. (See note.)
Note The instruction used to control each output point determines
whether it is used as a normal output, pulse output, or PWM output.
Full Complement of Pulse
Output Functions
Select CW/CCW Pulse Outputs or Pulse Plus Direction Outputs for the
Pulse Outputs
The pulse outputs can be selected to match the pulse input specifications of
the motor driver.
Easy Positioning with Absolute Coordinate System Using Automatic
Direction Setting
For operations in an absolute coordinate system (i.e., when the origin is
established or when the PV is changed by the INI instruction), the CW/CCW
direction can be automatically set when PULSE OUTPUT instructions are
executed according to whether the specified number of output pulses is more
or less than the pulse output PV.
16 built-in outputs
(Functions assigned.)
2 pulse outputs
100 kHz
8
Features and Main Functions Section 1-1
Triangular Control
If the amount of output pulses required for acceleration and deceleration (the
target frequency times the time to reach the target frequency) exceeds the
preset target number of output pulses during positioning (when the ACC
instruction in independent mode or the PLS2 instruction is executed), the
acceleration and deceleration will be shortened and triangular control will be
executed instead of trapezoidal control. In other words, the trapezoidal pulse
output will be eliminated, with no period of constant speed.
Target Position Changes during Positioning (Multiple Start)
While positioning using a PULSE OUTPUT (PLS2) instruction is in progress,
the target position, target speed, acceleration rate, and deceleration rate can
be changed by executing another PLS2 instruction.
Positioning Changes during Speed Control (Interrupt Feeding)
While speed control in continuous mode is in effect, it is possible to change to
positioning in independent mode by executing a PULSE OUTPUT (PLS2)
instruction. By this means, interrupt feeding (moving a specified amount) can
be executed under specified conditions.
Target Speed, Acceleration Rate, and Deceleration Rate Changes during
Acceleration or Deceleration
When a PULSE OUTPUT instruction with trapezoidal acceleration and decel-
eration is executed (for speed control or positioning), the target speed and
acceleration and deceleration rates can be changed during acceleration or
deceleration.
Lighting and Power Control by Outputting Variable Duty Ratio Pulses
Operations, such as lighting and power control, can be handled by outputting
variable duty ratio pulse (PWM) output signals from the CPU Unit's built-in
outputs.
Origin Searches Origin Search and Origin Return Operations Using a Single Instruction
An accurate origin search combining all I/O signals (origin proximity input sig-
nal, origin input signal, positioning completed signal, error counter reset out-
put, etc.) can be executed with a single instruction. It is also possible to move
directly to an established origin using an origin return operation.
Input Interrupts In direct mode, an interrupt task can be started when a built-in input turns ON
or OFF. In counter mode, the rising or falling edges of built-in inputs can be
counted, and an interrupt task started when the count reaches a specified
value. The maximum number of interrupt input points is 6 for CPU Units with
20, 30, or 40 I/O points and 4 for CPU Units with 14 I/O points.
Note For each input point, a selection in the PLC Setup determines whether it is to
be used as a normal input, interrupt input, quick-response input, or high-
speed counter. The interrupt input response frequency in counter mode must
be 5 kHz or less total for all interrupts.
Quick-response
Inputs
By using quick-response inputs, built-in inputs up to a minimum input signal
width of 50 s can be read regardless of the cycle time. The maximum num-
ber of quick-response input points is 6 for CPU Units with 20, 30, or 40 I/O
points and 4 for CPU Units with 14 I/O points.
Note For each input, a PLC Setup parameter determines whether it is to be used as
a normal input, interrupt input, quick-response input, or high-speed counter.
9
Features and Main Functions Section 1-1
Analog Settings
Changing Settings Using
Analog Adjustment
By adjusting the analog adjuster with a Phillips screwdriver, the value in the
Auxiliary Area can be changed to any value between 0 and 255. This makes it
easy to change set values such as timers and counters without Programming
Devices.
Changing Settings Using
External Analog Setting
Inputs
External analog values of 0 to 10 V (resolution: 256) are converted to digital
values and stored in a word in the AR Area. This enables applications that
require on-site adjustment of settings that do not demand a particularly high
degree of accuracy, such as for example, a setting based on changes in out-
door temperatures or potentiometer inputs.
Phillips screwdriver
Analog adjuster
Ladder program
Example: The production quantity could be changed by
changing the counter set value from 100 to 150.
Turning the control on the CP1H changes the
PV in A642 between 0000 and 0255 (00 and
FF hex).
CNTX
A642
External analog setting
input connector
Ladder program
Example: The production quantity could be changed by changing
the timer set value from 100 to 150.
When a voltage (0 to 10 V) is input from a
device such as a potentiometer to the
external analog setting input, the PV in A643
is refreshed between 0000 and 0100 hex (0
to 256).
TIMX
A643
0 to 10 V
Potentiometer, temperature
sensor, etc.
10
Features and Main Functions Section 1-1
Connectability with Various Components
USB Port for
Programming Devices
CX-One Support Software, such as the CX-Programmer, connects from the
USB port on a computer to the CP1L built-in peripheral USB port via commer-
cially available USB cable.
Expansion Capability for
Serial Ports
Up to two Serial Communications Boards each with one RS-232C port or one
RS-422A/485 port can be added to a CPU Unit with 30 or 40 I/O points. One
Serial Communications Boards can be added to a CPU Unit with 20 or 14 I/O
points. With a total of up to three ports, including the USB port, this makes it
possible to simultaneously connect a computer, PT, CP1L, and/or various
components, such as an Inverter, Temperature Controller, or Smart Sensor.
Note (1) The Modbus-RTU easy master (available for all models) makes it easy to
control Modbus Slaves (such as Inverters) with serial communications.
After the Modbus Slave address, function, and data have been preset in
Personal computer
CX-One (ver. 2.0 or higher)
(e.g., CX-Programmer ver. 7.22 or
higher)
USB port
USB cable
Peripheral
USB port
NS-series PT, personal computer, bar code reader, etc.
CP1W-CIF01 RS-232C
Option Board
CP1W-CIF11 RS-422A/485
Option Board
Inverter, etc. (See note 1.)
CP1L
RS-232C
RS-422A
CP1L
11
Features and Main Functions Section 1-1
a fixed memory area (DM), messages can be sent or received indepen-
dently of the program by turning software switches.
(2) By using the serial PLC Links, a maximum of 10 words of data per CPU
Unit can be shared independently of the program among a maximum of
nine CPU Units (CP1L-CP1L-CP1H/CJ1M) using RS-422A/485 Option
Boards.
No-battery Operation Programs, the PLC Setup, and other data can be automatically saved to the
CPU Unit's built-in flash memory. Moreover, DM Area data can be saved to
the flash memory and then used as initial data when the power is turned ON.
This allows programs and initial values (such as recipe setup data) in the DM
Area to be saved in the CPU Unit without the need to maintain a backup bat-
tery.
Modbus-RTU
Inverter
Communications can be executed
independently of the program by setting
a Modbus-RTU command in the DM and
turning ON a software switch.
RS-422A/485
CP1L CPU Unit
(Master)
Data sharing CP1L CPU Unit
(Slave)
CP1L CPU Unit
(Slave)
CJ1M CPU Unit
(Slave)
8 CPU Units max.
12
System Configuration Section 1-2
Memory Cassettes Built-in flash memory data, such as programs and DM initial-value data, can
be stored on a Memory Cassette (optional) as backup data. In addition, pro-
grams and initial-value data can be easily copied to another CPU Unit using
the Memory Cassette to recreate the same system.
Note Memory Cassette cannot be used in CP1L-J CPU Unit.
Security A password registration function is provided for the CPU Unit to prevent unau-
thorized copy of ladder programs. If an attempt is made to read a ladder pro-
gram from a CX-Programmer, access to the program is denied if the password
that is entered does not match the registered password. If incorrect pass-
words are entered for five consecutive attempts, the CPU Unit does not
accept any more passwords for two hours.
1-2 System Configuration
1-2-1 Basic System
CP1L CPU Unit
Data saving capability
without a battery
Programs, DM initial values, etc.
Built-in flash
memory
CP1L CPU Unit Another CP1L CPU Unit
Memory
Cassette
Can be automatically
transferred at startup.
Programs, DM initial values, etc.
Built-in flash
memory
CPU Unit with 40 I/O Points CPU Unit with 30 I/O Points CPU Unit with 20 I/O Points CPU Unit with 14 I/O Points
13
System Configuration Section 1-2
Maximum Number of Normal I/O Points
Optional Products
Serial
Communications
Expansion
When serial communications are required for a CP1L CPU Unit, an RS-232C
or RS-422A/485 Option Board can be added.
Two Option Boards can be mounted with a CPU Units with 30 or 40 I/O points
and one Option Board can be mounted with a CPU Units with 20 or 14 I/O
points.
This enables connection by serial communications to NS-series PTs, Bar
Code Readers, components such as Inverters, and computers without USB
ports (such as when using the CX-Programmer).
Type I/O
capacity
Power supply
voltage
Model Normal built-in
inputs
Normal built-in
outputs
Weight
M 40 points 100 to 240 VAC CP1L-M40DR-A 24 DC inputs 16 relay outputs 675 g max.
24 VDC CP1L-M40DR-D 590 g max.
CP1L-M40DT-D 16 transistor (sinking)
outputs
550 g max.
CP1L-M40DT1-D 16 transistor (sourcing)
outputs
550 g max.
30 points 100 to 240 VAC CP1L-M30DR-A 18 DC inputs 12 relay outputs 610 g max.
24 VDC CP1L-M30DR-D 525 g max.
CP1L-M30DT-D 12 transistor (sinking)
outputs
495 g max.
CP1L-M30DT1-D 12 transistor (sourcing)
outputs
495 g max.
L 20 points 100 to 240 VAC CP1L-L20DR-A 12 DC inputs 8 relay outputs 380 g max.
24 VDC CP1L-L20DR-D 350 g max.
CP1L-L20DT-D 8 transistor (sinking)
outputs
335 g max.
CP1L-L20DT1-D 8 transistor (sourcing)
outputs
335 g max.
14 points 100 to 240 VAC CP1L-L14DR-A 8 DC inputs 6 relay outputs 380 g max.
24 VDC CP1L-L14DR-D 350 g max.
CP1L-L14DT-D 6 transistor (sinking)
outputs
335 g max.
CP1L-L14DT1-D 6 transistor (sourcing)
outputs
335 g max.
J 20 points 100 to 240 VAC CP1L-J20DR-A 12 DC inputs 8 relay outputs 380 g max.
24 VDC CP1L-J20DR-D 350 g max.
CP1L-J20DT1-D 8 transistor (sourcing)
outputs
335 g max.
14 points 100 to 240 VAC CP1L-J14DR-A 8 DC inputs 6 relay outputs 380 g max.
24 VDC CP1L-J14DR-D 350 g max.
CP1L-J14DT1-D 6 transistor (sourcing)
outputs
335 g max.
Item Model Specifications Weight
Memory
Cassette
CP1W-ME05M Can be used to store user programs in
flash memory, parameters, DM initial
values, comment memory, FB pro-
grams, and data in RAM.
10 g max.
14
System Configuration Section 1-2
Option Boards for Serial Communications
1-2-2 System Expansion
CP-series Expansion Units or Expansion I/O Units can be connected to a
CP1L CPU Unit. Up to three Expansion Units or Expansion I/O Units can be
connected to a CPU Unit with 30 or 40 I/O points and one Expansion Unit or
Expansion I/O Unit can be connected to a CPU Unit with 20 or 14 I/O points.
This allows for the expansion of various functions such as I/O points or tem-
perature sensor inputs.
NS-series PT, personal computer, bar code reader, etc.
RS-232C
(Expansion)
CP1W-CIF01 RS-232C
Option Board
CP1W-CIF11 RS-422A/485C
Option Board
RS-422A (Expansion)
Inverter, etc.
Appearance Name Model Port Serial communications modes
RS-232C
Option Board
CP1W-CIF01 One RS-232C port
(D-Sub, 9 pins,
female)
Host Link, NT Link (1: N or 1:1
Link Master, 1:1 Link Slave),
No-protocol, Serial PLC Link
Slave, Serial PLC Link Master,
Serial Gateway (conversion to
CompoWay/F, conversion to Mod-
bus-RTU), peripheral bus
RS-422A/485
Option Board
CP1W-CIF11 One RS-422A/485
port (terminal block
for ferrules)
COMM
COMM
15
System Configuration Section 1-2
Maximum I/O Points
Up to three Expansion Units or Expansion I/O Units can be connected to a
CPU Unit with 30 or 40 I/O points and one Expansion Unit or Expansion I/O
Unit can be connected to a CPU Unit with 20 or 14 I/O points. The maximum
I/O capacity is thus achieved by connecting either one or three Expansion
Units or Expansion I/O Units.
CP1L CPU Unit with 30 or 40 I/O Points
A maximum of three CP-series Expansion
I/O Units or Expansion Units can be added.
CP1L CPU Unit with 20 or 14 I/O Points
One CP-series Expansion I/O Unit or
Expansion Unit can be added.
Type I/O capacity Model Built-in
inputs
Built-in
outputs
Maximum number of
Expansion I/O Units or
Expansion Units
Maximum total I/O
points
M 40 points CP1L-M40DR-A
CP1L-M40DR-D
CP1L-M40DT-D
CP1L-M40DT1-D
24 16 3 Units max.
Inputs: 24 3
Outputs: 16 3
Max.: 160 points
Inputs: 96 points
Outputs: 64 points
30 points CP1L-M30DR-A
CP1L-M30DR-D
CP1L-M30DT-D
CP1L-M30DT1-D
18 12 3 Units max.
Inputs: 24 3
Outputs: 16 3
Max.: 150 points
Inputs: 90 points
Outputs: 60 points
L 20 points CP1L-L20DR-A
CP1L-L20DR-D
CP1L-L20DT-D
CP1L-L20DT1-D
12 8 1 Unit max.
Inputs: 24
Outputs: 16
Max.: 60 points
Inputs: 36 points
Outputs: 24 points
14 points CP1L-L14DR-A
CP1L-L14DR-D
CP1L-L14DT-D
CP1L-L14DT1-D
8 6 1 Unit max.
Inputs: 24
Outputs: 16
Max.: 54 points
Inputs: 32 points
Outputs: 22 points
J 20 points CP1L-J20DR-A
CP1L-J20DR-D
CP1L-J20DT1-D
12 8 1 Unit max.
Inputs: 24
Outputs: 16
Max.: 60 points
Inputs: 36 points
Outputs: 24 points
14 points CP1L-J14DR-A
CP1L-J14DR-D
CP1L-J14DT1-D
8 6 1 Unit max.
Inputs: 24
Outputs: 16
Max.: 54 points
Inputs: 32 points
Outputs: 22 points
16
System Configuration Section 1-2
CP-series Expansion I/O Units
CP-series Expansion Units
Appearance Model Normal
inputs
Normal outputs Weight
CP1W-40EDR
CPM1A-40EDR
24 VDC:
24 inputs
16 relay outputs 380 g max.
CP1W-40EDT
CPM1A-40EDT
16 transistor outputs (sink-
ing)
320 g max.
CP1W-40EDT1
CPM1A-40EDT1
16 transistor outputs (sourc-
ing)
CP1W-20EDR1
CPM1A-20EDR1
24 VDC:
12 inputs
8 relay outputs 300 g max.
CP1W-20EDT
CPM1A-20EDT
8 transistor outputs (sinking)
CP1W-20EDT1
CPM1A-20EDT1
8 transistor outputs (sourc-
ing)
CP1W-16ER
CPM1A-16ER
None 16 relay outputs 280 g max.
CP1W-8ED
CPM1A-8ED
24 VDC:
8 inputs
None 200 g max.
CP1W-8ER
CPM1A-8ER
None 8 relay outputs 250 g max.
CP1W-8ET
CPM1A-8ET
8 transistor outputs (sinking)
CP1W-8ET1
CPM1A-8ET1
8 transistor outputs (sourc-
ing)
Name and
appearance
Model Specifications Weight
Analog I/O Units CPM1A-MAD01 2 analog
inputs
0 to 10 V/1 to 5 V/4
to 20 mA
Resolu-
tion: 256
150 g max.
1 analog
output
0 to 10 V/10 to
+10 V/4 to 20 mA
CP1W-MAD11
CPM1A-MAD11
2 analog
inputs
0 to 5 V/1 to 5 V/0 to
10 V/10 to +10 V/0
to 20 mA/4 to 20 mA
Resolu-
tion: 6,000
1 analog
output
1 to 5/0 to 10 V/10
to +10 V/0 to 20
mA/4 to 20 mA
Analog Input
Units
CP1W-AD041
CPM1A-AD041
4 analog
inputs
0 to 5 V/1 to 5 V/0 to
10 V/10 to +10 V/
0 to 20 mA/
4 to 20 mA
Resolu-
tion: 6,000
200 g max.
Analog Output
Units
CP1W-DA041
CPM1A-DA041
4 analog
outputs
1 to 5 V/0 to 10 V/
10 to +10 V/
0 to 20 mA/
4 to 20 mA
CH
NC
NC
NC
NC
NC
NC
COM
COM COM COM COM COM COM 03 06 01 03 06
00 02 04 06 08 10
00 01 02 04 05 07 00 02 04 05 07
00 02 04 06 08 10
01 03 05 07 09 11 01 03 05 07 09 11
IN
OUT
CH CH
CH CH EXP
CH
CH
CH
11 10 09 08 07 06 05 04 03 02 01 00
11 10 09 08 07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
IN CH
CH
OUT
00 01 02 03
08 09 10 11
04 05 06 07
00 01 02 03 04 05 06 07 CH
CH EXP
COM 01 03 05 07 09 11
NC 00 02 04 06 08 10
NC 00 01 02 04 05 07
NC COM COM COM 03 COM 06
IN
00 02
01 COM 03
COM 05 07
04 06
CH 00 01 02 03
08 09 10 11
EXP
IN OUT
V OUT COM I IN1 V IN2 COM2
I OUT V IN1 COM1 I IN2
MAD01
CH CH EXP
NC NC
CH
I IN1 I IN3
I IN2 VIN1
VIN2
VIN3 COM1
COM2
I IN4
VIN4 COM4
NC
AG
COM3
IN
CH
I OUT1 I OUT3
I OUT2 VOUT1
VOUT2
VOUT3 COM1
COM2
I OUT4
VOUT4 COM4
NC
AG
COM3
OUT
17
System Configuration Section 1-2
1-2-3 Restrictions on System Configuration
The following restrictions apply to the CP-series Expansion Units and CP-
series Expansion I/O Units that can be connected to CP1L CPU Units.
Number of Expansion Units and Expansion I/O Units Connected
A maximum of three Units can be connected to a CPU Unit with 30 or 40 I/O
points and one Unit can be connected to a CPU Unit with 20 or 14 I/O points.
Mounting Restriction
When connecting CP-series or CPM1A-series Expansion Units or Expansion
I/O Units to a CPU Unit with AC power, provide a space of approximately 10
mm between the CPU Unit and the first Expansion Unit or Expansion I/O Unit.
If sufficient space cannot be provided between the CPU Unit and the first
Expansion Unit or Expansion I/O Unit, use the PLC in an ambient temperature
of 0 to 50C.
Restrictions in the External Power Supply Capacity
The following restrictions apply when using the external power supply from a
CPU Unit with AC power.
Temperature
Sensor Units
CP1W-TS001
CPM1A-TS001
2 inputs Thermocouple input
K, J
250 g max.
CP1W-TS002
CPM1A-TS002
4 inputs
CP1W-TS101
CPM1A-TS101
2 inputs Platinum resistance thermometer
input
Pt100, JPt100
CP1W-TS102
CPM1A-TS102
4 inputs
DeviceNet I/O
Link Unit
CPM1A-DRT21 As a DeviceNet Slave, 32 inputs and 32 out-
puts are allocated.
200 g max.
CompoBus/S
I/O Link Unit
CP1W-SRT21
CPM1A-SRT21
As a CompoBus/S slave, 8 inputs and 8 out-
puts are allocated.
200 g max.
Name and
appearance
Model Specifications Weight
BD L NC(BS-) NC
BD H NC(BS+)
S
COMM
ERR
No.
SRT21
EXP
10 mm
CP1L CPU Unit
Expansion I/O Units or Expansion Units
18
System Configuration Section 1-2
CPU Units with 30 or 40 I/O Points and AC Power (CP1L-M@@DR-A)
When CP1W or CPM1A Expansion Units or Expansion I/O Units are con-
nected to a CPU Unit with 30 or 40 I/O Points and AC Power (CP1L-M@@DR-
A), it may not be possible to use the entire 300 mA from the external power
supply due to restrictions in the power supply capacity. The entire 300 mA
from the external power supply can be used if Expansion Units and Expansion
I/O Units are not connected.
Calculation Examples of Restrictions in External Power Supply Capacity
Calculate the external power supply capacity using the following calculation
example.
CPU Units with 14 or 20 I/O Points and AC Power (CP1L-L@@DR-A)
When CP1W or CPM1A Expansion Units or Expansion I/O Units are con-
nected to a CPU Unit with 14 or 20 I/O Points and AC Power (CP1L-L@@DR-
A), the external power supply cannot be used. If no Expansion Units or
Expansion I/O Units are connected, up to 200 mA can be used.
CPU Units with DC Power
CPU Units with DC power do not have an external power supply.
Restrictions Imposed by Ambient Temperature
There are restrictions in the power supply voltage and output load current
imposed by the ambient temperature for CPU Units with DC power. Use the
CPU Unit within the following ranges of power supply voltage and output load
current.
CPU Units with Relay Outputs (CP1L-@@@DR-D)
Relay Output Load Current Derating Curves for CPU Units and Expansion I/O
Units
Note The above restrictions, apply to the relay output load current from the CPU
Unit even if Expansion I/O Units are not connected.
Item CPU Unit Expansion Unit Total Restriction
1st Unit 2nd Unit 3rd Unit
CP1L-M40DR-A CP1W-DA041 CP1W-DA041 CP1W-DA041
5 V 0.22 A 0.08 A 0.08 A 0.08 A 0.46 A
24 V 0.08 A 0.124 A 0.124 A 0.124 A 0.452 A
Power con-
sumption
5 V 0.46 A = 2.3 W
24 V 0.452 A = 10.848 W
13.148 W 18.5 W
Applicable
external power
supply capacity
18.5 W (total external power supply capacity) 13.148 W = 5.352 W
5.352 W/24V = 0.223 A
0.223 A 0.3 A
Note If the results exceeds 0.3 A, reduce the current consumption to 0.3 A or less.
CP1L-L14DR-D
CP1L-L20DR-D
CP1L-J14DR-D
CP1L-J20DR-D
CP1L-M30DR-D CP1L-M40DR-D
50%
100%
55C 40 45
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
0%
Ambient temperature
50%
100%
55C 45 35
0%
Power voltage:
21.6 VDC
Power voltage:
20.4 VDC
Ambient temperature
50%
100%
55C 45
35
0%
50
Power
voltage:
21.6 VDC
Power
voltage:
20.4 VDC
Ambient temperature
19
System Configuration Section 1-2
Using CP1W-8ER/16ER/20EDR1/40EDR or
CPM1A-8ER/16ER/20EDR1/40EDR Expansion I/O Units with
CPU Units with Transistor Outputs (CP1L-@@@DT@-D)
Relay Output Load Current Derating Curves for Expansion I/O Units
Note There are no restrictions on the transistor output load current from the CPU
Unit.
CPU Units with AC Power
There are no restrictions on the output load current from CPU Units with AC
power.
Expansion I/O Units added
to the
CP1L-L14DT@-D or
CP1L-L20DT@-D
CP1L-J14DT@-D or
CP1L-J20DT@-D
Expansion I/O Units added
to the
CP1L-M30DT@-D
Expansion I/O Units added
to the
CP1L-M40DT@-D
50%
100%
55C 40 45
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
50%
100%
55C 45 35
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
50%
100%
55C 45 35
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
20
Connecting the CX-Programmer Section 1-3
1-3 Connecting the CX-Programmer
The CX-Programmer (version 7.1 or higher), which runs on Windows, can be
used with CP-series CP1L L or M model PLCs. The CX-Programmer (Version
7.22 or higher), which runs on Windows, can be used with CP-series CP1L J
model PLCs. Computers running Support Software (e.g., the CX-Program-
mer) can be connected to the USB port or to a serial port.
Note A Programming Console cannot be used with CP1L PLCs.
1-3-1 Connecting with a Commercially Available USB Cable
Connect the computer running the CX-One Support Software (e.g., the CX-
Programmer) using a commercially available USB cable to the peripheral USB
port on the CPU Unit.
Restrictions when
Connecting by USB
In conformity with USB specifications, the following restrictions apply when
connecting a computer running Support Software.
A USB connection is possible for only one CP-series PLC from a single
computer. It is not possible to connect multiple PLCs simultaneously.
Do not disconnect the USB cable while the Support Software is con-
nected online. Before disconnecting the USB cable, be sure to place the
application in offline status. If the USB cable is disconnected while online,
the situations described below will occur as a result of OS error.
Windows Me, 2000, or XP:
The Support Software cannot be returned to online status by simply re-
connecting the USB cable. First return the Support Software to offline
status, and then reconnect the USB cable. Then perform the online
connection procedure for the Support Software.
Windows 98:
If the USB cable is disconnected while online, an error message may
be displayed on a blue screen. If that occurs, it will be necessary to re-
boot the computer.
The peripheral USB port (conforming to USB 1.1, B connector) is a dedicated
port for connecting Support Software, such as the CX-Programmer.
Items Required for USB Connection
Personal computer
CX-One (CX-Programmer, etc.)
USB port
USB cable
Peripheral
USB port
Operating system Windows 98, Me, 2000, or XP
Support Software CX-Programmer Ver. 6.1 (CX-One Ver. 1.1)
USB driver Included with above Support Software.
USB cable USB 1.1(or 2.0) cable (A connector-B connector), 5 m max.
21
Connecting the CX-Programmer Section 1-3
Installing the USB Driver The procedure for first connecting a computer to the CP1L peripheral USB
port is described below.
It is assumed that the Support Software has already been installed in the
computer.
Windows XP
Turn ON the power supply to the CP1L, and connect USB cable between the
USB port of the computer and the peripheral USB port of the CP1L.
After the cable has been connected, the computer will automatically recognize
the device and the following message will be displayed.
1,2,3... 1. If the following window appears, select the No, not this time Option and
then click the Next Button. This window is not always displayed.
2. The following window will be displayed. Select the Install from a list of spe-
cific location Option and then click the Next Button.
22
Connecting the CX-Programmer Section 1-3
3. The following window will be displayed. Click the Browse Button for the In-
clude this location in the search Field, specify C:\Program Files\
OMRON\CX-Server\USB\win2000_XP\Inf, and then click the Next Button.
The driver will be installed. (C:\ indicates the installation drive and may
be different on your computer.)
4. Ignore the following window if it is displayed and click the Continue Any-
way Button.
23
Connecting the CX-Programmer Section 1-3
5. The following window will be displayed if the installation is completed nor-
mally. Click the Finish Button.
Windows 2000
Turn ON the power supply to the CP1L, and connect USB cable between the
USB port of the computer and the peripheral USB port of the CP1L.
After the cable has been connected, the computer will automatically recognize
the device and the following message will be displayed.
1,2,3... 1. The following message will be displayed. Click the Next Button.
24
Connecting the CX-Programmer Section 1-3
2. The following window will be displayed.
3. Select the Search for a suitable driver for the device (recommended) Op-
tion and then click the Next Button. The following window will be displayed.
From the list in the window, select the Specify location Checkbox and then
click the Next Button.
4. Click the Browse Button, specify C:\Program Files\OMRON\CX-Serv-
er\USB\win2000_XP\Inf, and then click the Next Button. (C:\ indicates
the installation drive and may be different on your computer.)
25
Connecting the CX-Programmer Section 1-3
5. A search will be made for the driver and the following window will be dis-
played. Click the Next Button. The driver will be installed.
6. After the driver has been successfully installed, the following window will
be displayed. Click the Finish Button.
Connection Setup Using the CX-Programmer
1,2,3... 1. Select CP1L as the device type in the Change PLC Dialog Box and confirm
that USB is displayed in the Network Type Field.
26
Connecting the CX-Programmer Section 1-3
2. Click the OK Button to finish setting the PLC model. Then connect to the
CP1L by executing the CX-Programmer's online connection command.
Checking after Installation
1,2,3... 1. Display the Device Manager at the computer.
2. Click USB (Universal Serial Bus) Controller, and confirm that OMRON
SYSMAC PLC Device is displayed.
Re-installing the USB
Driver
If the USB driver installation fails for some reason or is cancelled in progress,
the USB driver must be reinstalled.
Checking USB Driver Status
1,2,3... 1. Display the Device Manager on the computer.
2. If USB Device is displayed for Other devices, it means that the USB driver
installation has failed.
27
Connecting the CX-Programmer Section 1-3
Reinstalling the USB Driver
1,2,3... 1. Right-click USB Device and select Delete from the pop-up menu to delete
the driver.
2. Reconnect the USB cable. The USB Driver Installation Window will be dis-
played.
3. Reinstall the USB driver.
1-3-2 Connecting to a Serial Port
Mounting a CP1W-CIF01 RS-232C Option Board in a CP1L Option Board slot
makes it possible to connect Support Software with serial communications,
just as with previous models.
Connect the CX-Programmer to the RS-232C port of the CP1W-CIF01 Option
Board by XW2Z-200S-CV/500S-CV RS-232C cable.
Connection Method Connect the Programming Device using the Connecting Cable that is appro-
priate for the serial communications mode of the computer and CPU Unit.
Personal computer
CX-One (e.g., CX-Programmer)
D-Sub connector
(9-pin, female)
D-Sub connector
(9-pin, male)
Recommended cable
XW2Z-200S-CV (2 m) or
XW2Z-500S-CV (5 m)
CP1W-CIF01
RS-232C Option Board
Computer Connecting Cable CP1L CPU Unit
Model Connector Model Length Connector Serial
communications
mode
IBM PC/AT or
compatible
D-Sub 9 pin,
male
XW2Z-200S-CV 2 m D-Sub 9 pin, female
(With a CP1W-CIF01 RS-
232C Option Board
mounted in Option Board
Slot 1 or 2.)
Peripheral bus or Host
Link (SYSWAY)
XW2Z-500S-CV 5 m
28
Connecting the CX-Programmer Section 1-3
Serial Communications Mode
Note When a Serial Communications Option Board is mounted in Option Board
Slot 1, it is called Serial Port 1. When mounted in Option Board Slot 2, it is
called Serial Port 2.
Serial
communications
mode
Features CPU Unit setting method
Peripheral bus
(toolbus)
This is the faster mode, so it is
generally used for CX-Pro-
grammer connections.
Only 1: 1 connections are
possible.
When a CP1L CPU Unit is
used, the baud rate is auto-
matically detected by the Sup-
port Software.
Turn ON pins SW4 (Serial Port
1) and SW5 (Serial Port 2) on
the DIP switch on the front
panel of the CPU Unit. These
settings enable connection by
peripheral bus regardless of the
serial port settings in the PLC
Setup.
Host Link
(SYSWAY)
A standard protocol for host
computers with either 1: 1 or 1:
N connections.
Slower than the peripheral
bus mode.
Allows modem or optical
adapter connections, or long-
distance or 1: N connections
using RS-422A/485.
Turn OFF pins SW4 (Serial Port
1) and SW5 (Serial Port 2) on
the DIP switch on the front
panel of the CPU Unit.
The mode will then be deter-
mined by the serial port set-
tings in the PLC Setup. The
default settings are for Host
Link with a baud rate of 9,600
bits/s, 1 start bit, data length of
7 bits, even parity, and 2 stop
bits.
29
Function Charts Section 1-4
1-4 Function Charts
Selected in PLC Setup.
Target value comparison interrupts
Range comparison interrupts
Selected by instructions.
Execute the ORG instruction to move from any position to the origin.
Built-in I/O functions Built-in input functions Normal inputs
Interrupt inputs
High-speed counter inputs
Quick-response inputs
Built-in output functions
Normal outputs
Pulse outputs
Variable duty ratio pulse outputs
(PWM outputs)
Origin functions
Origin search
Origin return
Inverter positioning functions
Interrupt inputs (Direct mode)
Interrupt inputs (Counter mode)
No interrupts
High-speed counter interrupts
No-battery operation
User memory, parameters (such as PLC Setup), DM initial
values, comment memory, etc., can be saved in the CPU
Unit's built-in flash memory.
Memory Cassette
Data saved in the CPU Unit's built-in flash memory can be saved to a
Memory Cassette (purchased separately) and transferred automatically
from the Memory Cassette when the power supply is turned ON.
Memory Cassette cannot be used in CP1L-J CPU Unit.
Clock
Functions using Option Boards
Serial
communications
Functions using CP-
series or CPM1A
Expansion Units
Analog I/O functions
Temperature sensor
input functions
CompoBus/S Slave
function
CompoBus/S I/O Link Unit
Data exchanged with Master Unit: 8 inputs and 8 outputs
DeviceNet Slave function
DeviceNet I/O Link Unit
Data exchanged with DeviceNet Master: 32 inputs
and 32 outputs
Analog setting functions
Analog adjustment
1 input
Set value: 0 to 255
External analog setting
input
1 input, 0 to 10 V
Resolution: 256
30
Function Blocks Section 1-5
1-5 Function Blocks
Function blocks can be used in programming SYSMAC CP-series PLCs.
Note Function blocks cannot be used in CP1L-J PLCs.
1-5-1 Overview of Function Blocks
A function block is a basic program element containing a standard processing
function that has been defined in advance. Once the function block has been
defined, the user just has to insert the function block in the program and set
the I/O in order to use the function.
As a standard processing function, a function block is not created with actual
physical addresses, but local variables. The user sets parameters (addresses
or values) in those variables to use the function block. The addresses used for
the variables themselves are automatically assigned by the system (CX-Pro-
grammer) each time they are placed in the program.
In particular, each function block is saved by the CX-Programmer as an indi-
vidual file that can be reused with programs for other PLCs. This makes it pos-
sible to create a library of standard processing functions.
1-5-2 Advantages of Function Blocks
Function blocks allow complex programming units to be reused easily. Once
standard program sections have been created as function blocks and saved in
files, they can be reused just by placing a function block in a program and set-
ting the parameters for the function block's I/O. Reusing standardized function
blocks reduces the time required for programming/debugging, reduces coding
errors, and makes programs easier to understand.
Structured
Programming
Structured programs created with function blocks have better design quality
and required less development time.
Easy-to-read Block Box
Design
The I/O operands are displayed as local variable names in the program, so
the program is like a black box when entering or reading the program and no
extra time is wasted trying to understand the internal algorithm.
cc aa
bb
#0000
MOV
dd
Standard program
section written
with variables
Function block A
Define in advance.
Insert in program.
Save function
block as file.
Library
Function
block A
Reuse
To another PLC program
Program 1
Copy of function block A
Input Variable Variable Output
Setting Setting
Copy of function block A
Input Variable Variable Output
Program 2
Copy of function block A
Variable Output
31
Function Blocks Section 1-5
Different Processes Easily
Created from a Single
Function Block
Many different processes can be created easily from a single function block by
using input variables for the parameters (such as timer SVs, control con-
stants, speed settings, and travel distances) in the standard process.
Reduced Coding Errors Coding mistakes can be reduced, because blocks that have already been
debugged can be reused.
Data Protection The local variables in the function block cannot be accessed directly from the
outside, so the data can be protected. (Data cannot be changed unintention-
ally.)
Improved Reusability
through Programming
with Variables
The function block's I/O is entered as local variables, so the data addresses in
the function block do not have to be changed as they do when copying and
reusing a program section.
Creating Libraries Processes that are independent and reusable (such as processes for individ-
ual steps, machinery, equipment, or control systems) can be saved as func-
tion block definitions and converted to library functions.
The function blocks are created with local variable names that are not tied to
physical addresses, so new programs can be developed easily just by reading
the definitions from the file and placing them in a new program.
Nesting Multiple
Languages
Mathematical expressions can be entered in structured text (ST) language.
Nesting function blocks is supported for CX-Programmer Ver. 6.0 or higher.
For example, it is possible to express only special operations in ST language
within a function block in a ladder diagram.
For details on using function blocks, refer to the CX-Programmer Ver. 7.@
Operation Manual: Function Blocks (Cat. No. W447).
Function block (ladder language)
Call (Nesting)
Function block (ST language)
32
Function Blocks Section 1-5
33
SECTION 2
Nomenclature and Specifications
This section describes the names and functions of CP1L parts and provides CP1L specifications.
2-1 Part Names and Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
2-1-1 CP1L CPU Units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
2-1-2 CP1W-CIF01 RS-232C Option Boards . . . . . . . . . . . . . . . . . . . . . . 37
2-1-3 CP1W-CIF11 RS-422A/485 Option Boards. . . . . . . . . . . . . . . . . . . 38
2-2 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2-2-1 CP1L CPU Units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2-2-2 I/O Memory Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
2-2-3 I/O Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
2-2-4 CP/CPM1A-series Expansion I/O Unit I/O Specifications . . . . . . . 59
2-3 CP1L CPU Unit Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
2-3-1 Overview of CPU Unit Configuration . . . . . . . . . . . . . . . . . . . . . . . 62
2-3-2 Flash Memory Data Transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
2-3-3 Memory Cassette Data Transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
2-4 CPU Unit Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
2-4-1 General Flow. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
2-4-2 I/O Refreshing and Peripheral Servicing . . . . . . . . . . . . . . . . . . . . . 70
2-4-3 I/O Refresh Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
2-4-4 Initialization at Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
2-5 CPU Unit Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
2-5-1 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
2-5-2 Status and Operations in Each Operating Mode. . . . . . . . . . . . . . . . 73
2-5-3 Operating Mode Changes and I/O Memory . . . . . . . . . . . . . . . . . . . 74
2-5-4 Startup Mode Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
2-6 Power OFF Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
2-6-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
2-6-2 Instruction Execution for Power Interruptions . . . . . . . . . . . . . . . . . 76
2-7 Computing the Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
2-7-1 CPU Unit Operation Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
2-7-2 Cycle Time Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
2-7-3 Functions Related to the Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . 79
2-7-4 I/O Refresh Times for PLC Units . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
2-7-5 Cycle Time Calculation Example . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
2-7-6 Online Editing Cycle Time Extension . . . . . . . . . . . . . . . . . . . . . . . 82
2-7-7 I/O Response Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
2-7-8 Interrupt Response Times . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
2-7-9 Serial PLC Link Response Performance . . . . . . . . . . . . . . . . . . . . . 85
2-7-10 Pulse Output Start Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
2-7-11 Pulse Output Change Response Time. . . . . . . . . . . . . . . . . . . . . . . . 86
34
Part Names and Functions Section 2-1
2-1 Part Names and Functions
2-1-1 CP1L CPU Units
(1) Battery Cover
Covers the location where the battery is stored.
(2) Operation Indicators
Show CP1L operation status.
Front Back
(1) Battery cover
(2) Operation indicators
(3) Peripheral USB port
(4) Analog adjuster
(5) External analog settings
input connector
(6) DIP switch
(8) Power supply, ground,
and input terminal block
(9) Option Board slots
(10) Input indicators
(11) Expansion I/O
Unit connector
(12) Output indicators
(7) Memory
Cassette slot
(13) External power supply,
and output terminal
block
POWER
(Green)
Lit Power is ON.
Not lit Power is OFF.
RUN
(Green)
Lit The CP1L is executing a program in either RUN or
MONITOR mode.
Not lit Operation is stopped in PROGRAM mode or due to
a fatal error.
ERR/ALM
(Red)
Lit A fatal error (including FALS execution) or a hard-
ware error (WDT error) has occurred. CP1L opera-
tion will stop and all outputs will be turned OFF.
Flashing A non-fatal error has occurred (including FAL execu-
tion). CP1L operation will continue.
Not lit Operation is normal.
INH
(Yellow)
Lit The Output OFF Bit (A500.15) has turned ON. All
outputs will be turned OFF.
Not lit Operation is normal.
PRPHL
(Yellow)
Flashing Communications (either sending or receiving) are in
progress through the peripheral USB port.
Not lit Other than the above.
BKUP
(Yellow)
Lit A user program, parameters, or Data Memory is
being written or accessed in the built-in flash mem-
ory (backup memory).
A user program, parameters, Data Memory, DM ini-
tial values, or comment memory is being written or
accessed in a Memory Cassette.
The BKUP indicator also lights while user programs,
parameters, and Data Memory are being restored
when the PLC power supply is turned ON.
Note Do not turn OFF the PLC power supply while
this indicator is lit.
Not lit Other than the above.
POWER
ERR/ALM
BKUP
RUN
INH
PRPHL
35
Part Names and Functions Section 2-1
(3) Peripheral USB Port
Used for connecting to a personal computer for programming and moni-
toring by the CX-Programmer.
(4) Analog Adjuster
By turning the analog adjuster, it is possible to adjust the value of A642
within a range of 0 to 255. (Refer to 6-4 Analog Adjuster and External
Analog Setting Input.)
(5) External Analog Setting Input Connector
By applying 0 to 10 V of external voltage, it is possible to adjust the value
of A643 within a range of 0 to 256. This input is not isolated. (Refer to 6-
4 Analog Adjuster and External Analog Setting Input.)
(6) DIP Switch
CPU Units with 30 or 40 I/O Points
Note The following data will be write-protected if pin SW1 is turned ON:
The entire user program (all tasks)
All data in parameter areas (such as the PLC Setup)
When SW1 is turned ON, the user program and the data in the pa-
rameter areas will not be cleared even if the All Clear operation is
performed from a Peripheral Device (i.e., the CX-Programmer).
CPU Units with 14 or 20 I/O Points
No. Setting Description Application Default
SW1 ON User memory write-
protected (See note.)
Used to prevent pro-
grams from being inad-
vertently overwritten.
OFF
OFF User memory not
write-protected.
SW2 ON Data automatically
transferred from
Memory Cassette at
startup.
Used to enable pro-
grams, Data Memory, or
parameters saved on a
Memory Cassette to be
opened by the CPU Unit
at startup.
OFF
OFF Data not transferred.
SW3 ON A395.12 ON This pin enables control-
ling a bit in memory with-
out using an input relay.
OFF
OFF A395.12 OFF
SW4 ON Used for peripheral
bus.
Used to enable a Serial
Communications Option
Board mounted in Option
Board Slot 1 to be used
by the peripheral bus.
OFF
OFF According to PLC
Setup.
SW5 ON Used for peripheral
bus.
Used to enable a Serial
Communications Option
Board mounted in Option
Board Slot 2 to be used
by the peripheral bus.
OFF
OFF According to PLC
Setup.
SW6 OFF Keep turned OFF. --- OFF
No. Setting Description Application Default
SW1 ON User memory write-
protected (See note.)
Used to prevent pro-
grams from being inad-
vertently overwritten.
OFF
OFF User memory not
write-protected.
O
N
1
2
3
4
5
6
O
N
1
2
3
4
36
Part Names and Functions Section 2-1
Note The following data will be write-protected if pin SW1 is turned ON:
The entire user program (all tasks)
All data in parameter areas (such as the PLC Setup)
When SW1 is turned ON, the user program and the data in the pa-
rameter areas will not be cleared even if the All Clear operation is
performed from a Peripheral Device (i.e., the CX-Programmer).
(7) Memory Cassette Slot
Used for mounting a CP1W-ME05M Memory Cassette. When mounting
a Memory Cassette, remove the dummy cassette.
Data, such as CP1L CPU Unit programs, parameters, and data memory,
can be transferred to the Memory Cassette to be saved.
Note Memory Cassette cannot be used in CP1L-J CPU Unit.
(8) Power Supply, Ground, and Input Terminal Block
(9) Option Board Slots
The following Option Boards can be mounted in either slot 1 or slot 2.
CP1W-CIF01 RS-232C Option Board
CP1W-CIF11 RS-422A/485 Option Board
!Caution Always turn OFF the power supply to the PLC before mounting or removing
an Option Board.
(10) Input Indicators
The input indicators light when input terminal contacts turn ON.
SW2 ON Data automatically
transferred from
Memory Cassette at
startup.
Used to enable pro-
grams, Data Memory, or
parameters saved on a
Memory Cassette to be
opened by the CPU Unit
at startup.
Memory Cassette cannot
be used in CP1L-J CPU
Unit.
OFF
OFF Data not transferred.
SW3 ON A395.12 ON This pin enables control-
ling a bit in memory with-
out using an input relay.
OFF
OFF A395.12 OFF
SW4 ON Used for peripheral
bus.
Used to enable a Serial
Communications Option
Board mounted in Option
Board Slot 1 to be used
by the peripheral bus.
OFF
OFF According to PLC
Setup.
Power supply ter-
minals
Used to provide a 100- to 240-VAC or 24-VDC power
supply.
Ground terminals
Functional ground ( ):
Connect this ground to strengthen noise immunity and to
prevent electric shock.
(AC power supply models only.)
Protective ground ( ):
To prevent electric shock, ground to 100 or less.
Input terminals Used to connect input devices.
No. Setting Description Application Default
37
Part Names and Functions Section 2-1
(11) Expansion I/O Unit Connector
CP-series Expansion I/O Units and Expansion Units (Analog I/O Units,
Temperature Sensor Units, CompoBus/S I/O Link Units, or DeviceNet I/O
Link Units) can be connected. Up to three Expansion Units or Expansion
I/O Units can be connected to a CPU Unit with 30 or 40 I/O points and
one Expansion Unit or Expansion I/O Unit can be connected to a CPU
Unit with 20 or 14 I/O points. (For details on using Expansion Units and
Expansion I/O Units, refer to SECTION 7 Using Expansion Units and
Expansion I/O Units.)
(12) Output Indicators
The output indicators light when output terminal contacts turn ON.
(13) External Power Supply and Output Terminal Block
2-1-2 CP1W-CIF01 RS-232C Option Boards
An RS-232C Option Board can be mounted to an Option Board slot on the
CPU Unit. With a CPU Unit with 30 or 40 I/O points, either Option Board slot
may be used.
When mounting an Option Board, first remove the slot cover. Grasp both of
the cover's up/down lock levers at the same time to unlock the cover, and then
pull the cover out.
Then to mount the Option Board, check the alignment and firmly press it in
until it snaps into place.
!Caution Always turn OFF the power supply to the PLC before mounting or removing
an Option Board.
External power
supply terminals
CPU Units with AC power supply specifications have
external 24-VDC, 300-mA, power supply terminals.
(except for the CP1L-L@DR-A, which has a 200-mA
power supply terminals). They can be used as service
power supplies for input devices.
Output terminals Used for connecting output devices.
COMM
Front Back
(1) Communications Status Indicator
(2) RS-232 Connector
(3) CPU Unit Connector
38
Part Names and Functions Section 2-1
RS-232C Connector
2-1-3 CP1W-CIF11 RS-422A/485 Option Boards
An RS-422A/485 Option Board can be mounted to an Option Board slot on
the CPU Unit. With a CPU Unit with 30 or 40 I/O points, either Option Board
slot may be used.
When mounting an Option Board, first remove the slot cover. Grasp both of
the cover's up/down lock levers at the same time to unlock the cover, and then
pull the cover out.
Then to mount the Option Board, check the alignment and firmly press it in
until it snaps into place.
!Caution Always turn OFF the power supply to the PLC before mounting or removing
an Option Board.
RS-422A/485 Terminal Block
Pin Abbr. Signal name Signal direction
1 FG Frame Ground ---
2 SD (TXD) Send Data Output
3 RD (RXD) Receive Data Input
4 RS (RTS) Request to Send Output
5 CS (CTS) Clear to Send Input
6 5V Power Supply ---
7 DR (DSR) Data Set Retry Input
8 ER (DTR) Equipment Ready Output
9 SG (0V) Signal Ground ---
Connector hood FG Frame Ground ---
5
6
1
9
COMM
RDA RDB+ SDA SDB+ FG
Front Back
(1) Communications Status Indicator
(2) RS-422A/485 Connector
(3) CPU Unit Connector
(4) DIP Switch for
Operation Settings
RDB+
RDA
SDA SDB+
FG
Tighten the terminal block screws to
a torque of 0.28 Nm (2.5 Lb In.).
39
Specifications Section 2-2
DIP Switch for Operation Settings
Note (1) Set both pins 2 and 3 to either ON (2-wire) or OFF (4-wire).
(2) To disable the echo-back function, set pin 5 to ON (RS control enabled).
(3) When connecting to a device on the N side in a 1: N connection with the
4-wire method, set pin 6 to ON (RS control enabled).
Also, when connecting by the 2-wire method, set pin 6 to ON (RS control
enabled).
2-2 Specifications
2-2-1 CP1L CPU Units
General Specifications
Pin Settings
1 ON ON (both ends) Terminating resistance selection
OFF OFF
2 ON 2-wire 2-wire or 4-wire selection (See
note 1.)
OFF 4-wire
3 ON 2-wire 2-wire or 4-wire selection (See
note 1.)
OFF 4-wire
4 --- --- Not used.
5 ON RS control enabled RS control selection for RD (See
note 2.)
OFF RS control disabled (Data
always received.)
6 ON RS control enabled RS control selection for SD (See
note 3.)
OFF RS control disabled (Data
always sent.)
ON
123456
Power supply classification AC power supply DC power supply
Model
numbers
40 I/O points CP1L-M40DR-A CP1L-M40DR-D, CP1L-M40DT-D, or
CP1L-M40DT1-D
30 I/O points CP1L-M30DR-A CP1L-M30DR-D, CP1L-M30DT-D, or
CP1L-M30DT1-D
20 I/O points CP1L-L20DR-A
CP1L-J20DR-A
CP1L-L20DR-D, CP1L-L20DT-D,
CP1L-L20DT1-D, CP1L-J20DR-D, or
CP1L-J20DT1-D
14 I/O points CP1L-L14DR-A
CP1L-J14DR-A
CP1L-L14DR-D, CP1L-L14DT-D,
CP1L-L14DT1-D, CP1L-J14DR-D, or
CP1L-J14DT1-D
Power supply 100 to 240 VAC
50/60 Hz
24 VDC
Operating voltage range 85 to 264 VAC 20.4 to 26.4 VDC
Power consumption 50 VA max. (CP1L-M@DR-A)
30 VA max. (CP1L-L@DR-A)
30 VA max. (CP1L-J@DR-A)
See note 3.
20 W max. (CP1L-M@DT@-D)
13 W max. (CP1L-L@DT@-D)
13 W max. (CP1L-J@DT@-D)
Inrush current
(See note 1.)
100 to 120 VAC inputs:
20 A max.(for cold start at room tem-
perature.)
8 ms max.
200 to 240 VAC inputs:
40 A max.(for cold start at room tem-
perature.)
8 ms max.
30 A max.(for cold start.)
20 ms max.
40
Specifications Section 2-2
Note (1) The above values are for a cold start at room temperature for an AC pow-
er supply, and for a cold start for a DC power supply.
A thermistor (with low-temperature current suppression characteris-
tics) is used in the inrush current control circuitry for the AC power sup-
ply. The thermistor will not be sufficiently cooled if the ambient
temperature is high or if a hot start is performed when the power sup-
ply has been OFF for only a short time, so in those cases the inrush
current values may be higher (as much as two times higher) than those
shown above.
A capacitor delay circuit is used in the inrush current control circuitry
for the DC power supply. The capacitor will not be charged if a hot start
is performed when the power supply has been OFF for only a short
time, so in those cases the inrush current values may be higher (as
much as two times higher) than those shown above.
Always allow for this when selecting fuses and breakers for external cir-
cuits.
(2) Use the external power supply to power input devices. Do not use it to
drive output devices.
(3) This is the rated value for the maximum system configuration. Use the fol-
lowing formula to calculate DC power consumption for CPU Units with DC
power.
External power supply (See note 2.) 300 mA at 24 VDC (CP1L-M@DR-A)
200 mA at 24 VDC (CP1L-L@DR-A)
None
Insulation resistance 20 M min. (at 500 VDC) between the
external AC terminals and GR terminals
No insulation between primary and sec-
ondary DC power supplies.
Dielectric strength 2,300 VAC 50/60 Hz for 1 min between
the external AC and GR terminals, leak-
age current: 5 mA max.
No insulation between primary and sec-
ondary DC power supplies.
Noise resistance Conforms to IEC 61000-4-4 2 kV (power supply line)
Vibration resistance
10 to 57 Hz, 0.075-mm amplitude, 57 to 150 Hz, acceleration: 9.8 m/s
2
in X, Y, and
Z directions for 80 minutes each (time coefficient of 8 minutes coefficient factor
of 10 = total time of 80 minutes)
Shock resistance
147 m/s
2
three times each in X, Y, and Z directions
Ambient operating temperature 0 to 55C
Ambient humidity 10% to 90% (with no condensation)
Atmosphere No corrosive gas.
Ambient storage temperature 20 to 75C (excluding battery)
Terminal screw size M3
Power interrupt time 10 ms min. 2 ms min.
Weight CP1L-M40D@-@: 675 g max.
CP1L-M30D@-@: 610 g max.
CP1L-L20D@-@: 380 g max.
CP1L-L14D@-@: 380 g max.
CP1L-J20D@-@: 380 g max.
CP1L-J14D@-@: 380 g max.
Power supply classification AC power supply DC power supply
Model
numbers
40 I/O points CP1L-M40DR-A CP1L-M40DR-D, CP1L-M40DT-D, or
CP1L-M40DT1-D
30 I/O points CP1L-M30DR-A CP1L-M30DR-D, CP1L-M30DT-D, or
CP1L-M30DT1-D
20 I/O points CP1L-L20DR-A
CP1L-J20DR-A
CP1L-L20DR-D, CP1L-L20DT-D,
CP1L-L20DT1-D, CP1L-J20DR-D, or
CP1L-J20DT1-D
14 I/O points CP1L-L14DR-A
CP1L-J14DR-A
CP1L-L14DR-D, CP1L-L14DT-D,
CP1L-L14DT1-D, CP1L-J14DR-D, or
CP1L-J14DT1-D
41
Specifications Section 2-2
Formula:
DC-powered CP1L power consumption = 5-V current consumption 5 V/
70% (CP1L internal power efficiency) + 24-V current consumption 1.1
(current fluctuation factor)
Calculation Example
CP1L Power Consumption
= (0.39 A 5 V/70% + 0.139 A 24 V) 1.1
= 6.73 W
The above calculation results show that a power supply with a capacity of
7 W or greater is required.
Current Consumption
CPU Units
Note (1) The current consumption of the CP1W-ME05M Memory Cassette and
CP1W-CIF01/11 Option Boards are included in the current consumption
of the CPU Unit.
(2) CPU Units with DC power do not provide an external power supply.
(3) The current consumptions given in the following table must be added to
the current consumption of the CPU Unit if an Expansion Unit or Expan-
sion I/O Unit is connected.
(4) The external power supply cannot be used if an Expansion Unit or Expan-
sion I/O Unit is connected to a CPU Unit with 14 or 20 I/O points.
System
CPU Unit Expansion Unit or Expansion I/O Unit Total
1st Unit 2nd Unit 3rd Unit
CP1L-M40DR-D CP1W-DA041 CP1W-DA041 CP1W-DA041
5 V 0.220 A 0.130 A 0.040 A 0.000 A 0.390 A
24 V 0.080 A 0.000 A 0.059 A 0.000 A 0.139 A
Type I/O capacity Model Current consumption External power
supply
5 VDC 24 VDC 24 VDC
M 40 I/O points CP1L-M40DR-A 0.22 A 0.08 A 0.3 A max.
CP1L-M40DR-D 0.22 A 0.08 A ---
CP1L-M40DT-D 0.31 A 0.03 A ---
CP1L-M40DT1-D 0.31 A 0.03 A ---
30 I/O points CP1L-M30DR-A 0.21 A 0.07 A 0.3 A max.
CP1L-M30DR-D 0.21 A 0.07 A ---
CP1L-M30DT-D 0.28 A 0.03 A ---
CP1L-M30DT1-D 0.28 A 0.03 A ---
L 20 I/O points CP1L-L20DR-A 0.20 A 0.05 A 0.2 A max.
CP1L-L20DR-D 0.20 A 0.05 A ---
CP1L-L20DT-D 0.24 A 0.03 A ---
CP1L-L20DT1-D 0.24 A 0.03 A ---
14 I/O points CP1L-L14DR-A 0.18 A 0.04 A 0.2 A max.
CP1L-L14DR-D 0.18 A 0.04 A ---
CP1L-L14DT-D 0.21 A 0.03 A ---
CP1L-L14DT1-D 0.21 A 0.03 A ---
J 20 I/O points CP1L-J20DR-A 0.20 A 0.05 A 0.2 A max.
CP1L-J20DR-D 0.20 A 0.05 A ---
CP1L-J20DT1-D 0.24 A 0.03 A ---
14 I/O points CP1L-J14DR-A 0.18 A 0.04 A 0.2 A max.
CP1L-J14DR-D 0.18 A 0.04 A ---
CP1L-J14DT1-D 0.21 A 0.03 A ---
42
Specifications Section 2-2
Expansion Units and
Expansion I/O Units
Characteristics
Unit name Model Current consumption
5 VDC 24 VDC
Expansion I/O Units 40 I/O points
24 inputs
16 outputs
CP1W/CPM1A-40EDR 0.080 A 0.090 A
CP1W/CPM1A-40EDT 0.160 A ---
CP1W/CPM1A-40EDT1
20 I/O points
12 inputs
8 outputs
CP1W/CPM1A-20EDR1 0.103 A 0.044 A
CP1W/CPM1A-20EDT 0.130 A ---
CP1W/CPM1A-20EDT1
16 outputs CP1W/CPM1A-16ER 0.042 A 0.090 A
8 inputs CP1W/CPM1A-8ED 0.018 A ---
8 outputs CP1W/CPM1A-8ER 0.026 A 0.044 A
CP1W/CPM1A-8ET 0.075 A ---
CP1W/CPM1A-8ET1
Expansion
Units
Analog Input Unit 4 inputs CP1W/CPM1A-AD041 0.100 A 0.090 A
Analog Output
Unit
4 outputs CP1W/CPM1A-DA041 0.080 A 0.124 A
Analog I/O Units 2 inputs
1 output
CP1W/CPM1A-MAD01 0.066 A 0.066 A
CP1W/CPM1A-MAD11 0.083 A 0.110 A
Temperature Sen-
sor Units
K or J thermocou-
ples
CP1W/CPM1A-TS001 0.040 A 0.059 A
CP1W/CPM1A-TS002
Pt or JPt platinum
resistance ther-
mometers
CP1W/CPM1A-TS101 0.054 A 0.073 A
CP1W/CPM1A-TS102
CompoBus/S I/O
Link Unit
8 inputs
8 outputs
CP1W/CPM1A-SRT21 0.029 A ---
DeviceNet I/O Link
Unit
32 inputs
32 outputs
CPM1A-DRT21 0.048 A ---
Type M CPU Units L CPU Units J CPU Units
Model CP1L-M40DR-A
CP1L-M40DR-D
CP1L-M40DT-D
CP1L-M40DT1-D
CP1L-M30DR-A
CP1L-M30DR-D
CP1L-M30DT-D
CP1L-M30DT1-D
CP1L-L20DR-A
CP1L-L20DR-D
CP1L-L20DT-D
CP1L-L20DT1-D
CP1L-L14DR-A
CP1L-L14DR-D
CP1L-L14DT-D
CP1L-L14DT1-D
CP1L-J20DR-A
CP1L-J20DR-D
CP1L-J20DT1-D
CP1L-J14DR-A
CP1L-J14DR-D
CP1L-J14DT1-D
Program capacity 10 Ksteps 5 Ksteps 1 Ksteps
Control method Stored program method
I/O control method Cyclic scan with immediate refreshing
Program language Ladder diagram
Function blocks Maximum number of function block definitions: 128
Maximum number of instances: 256
Languages usable in function block definitions: Ladder dia-
grams, structured text (ST)
Unusable
Instruction length 1 to 7 steps per instruction
Instructions Approx. 500 (function codes: 3 digits)
Instruction execution time Basic instructions: 0.61 s min.
Special instructions: 4.1 s min.
Common processing time 0.38 ms
Number of connectable
Expansion Units and Expan-
sion I/O Units
3 Units (CP Series or
CPM1A)
1 Unit (CP Series or CPM1A)
Maximum number of I/O
points
160 points
(40 built in,
40 3
expansion)
150 points
(30 built in,
40 3
expansion)
60 points
(20 built in,
40 1
expansion)
54 points
(14 built in,
40 1
expansion)
60 points
(20 built in,
40 1
expansion)
54 points
(14 built in,
40 1
expansion)
43
Specifications Section 2-2
Built-in
terminals
(Functions
can be
assigned.)
Built-in I/O 40 terminals
(24 inputs
and 16
outputs)
30 terminals
(18 inputs
and 12
outputs)
20 terminals
(12 inputs
and 8
outputs)
14 terminals
(8 inputs and
6 outputs)
20 terminals
(12 inputs
and 8
outputs)
14 terminals
(8 inputs and
6 outputs)
Inter-
rupt
inputs
Direct
mode
6 inputs 4 inputs 6 inputs 4 inputs
Response time: 0.3 ms
Counter
mode
6 inputs 4 inputs 6 inputs 4 inputs
Response frequency: 5 kHz total, 16 bits
Incrementing counter or decrementing counter
Quick-response
inputs
6 points 4 inputs 6 inputs 4 inputs
Min. input pulse width: 50 s max.
High-speed
counters
4 inputs/2 axes (24 VDC)
Single phase (pulse plus direction, up/down, increment),
100 kHz
Differential phases (4), 50 kHz
Value range: 32 bits, Linear mode or ring mode
Interrupts: Target value comparison or range comparison
4 inputs/2 axes (24 VDC)
Single phase (pulse plus
direction, up/down, incre-
ment), 20 kHz
Differential phases (4), 10
kHz
Value range: 32 bits, Linear
mode or ring mode
Interrupts: Target value com-
parison or range comparison
Pulse
outputs
(Transistor
output
models
only)
Pulse outputs 2 outputs, 1 Hz to 100 kHz
(CCW/CW or pulse plus direction)
Trapezoidal or S-curve acceleration and deceleration (Duty
ratio: 50% fixed)
2 outputs, 1 Hz to 20 kHz
(CCW/CW or pulse plus
direction)
Trapezoidal or S-curve
acceleration and decelera-
tion (Duty ratio 50% fixed)
PWM outputs 2 outputs, 0.1 to 6,553.5 Hz or 1 to 32,800 Hz
Variable duty ratio: 0.0% to 100.0% (in increments of 0.1% or 1%)
(Accuracy: 5% at 1 kHz)
Analog
settings
Analog adjuster 1 (Setting range: 0 to 255)
External ana-
log setting input
1 input (Resolution: 1/256, Input range: 0 to 10 V)
Serial port Peripheral USB
port
Supported. (1-port USB connector, type B): Special for a Peripheral Device such as the
CX-Programmer. (Set the network classification to USB in the Peripheral
Device's PLC model setting.)
Serial communications standard: USB 1.1
RS-232C port,
RS-422A/485
port
Ports not provided as standard equipment. (M-type CPU Unit: 2 ports max., L-type
CPU Unit: 1 port)
The following Option Boards can be mounted:
CP1W-CIF01: One RS-232C port
CP1W-CIF11: One RS-422A/485 port
Applicable communications modes (same for all of the above ports): Host Link, NT
Link (1: N mode), No-protocol, Serial PLC Link Slave, Serial PLC Link Master, Serial
Gateway (conversion to CompoWay/F, conversion to Modbus-RTU), peripheral bus
(See note.)
Number of
tasks
288 (32 cycle execution tasks and 256 interrupt tasks)
Scheduled
interrupt tasks
1 (interrupt task 2, fixed)
Input interrupt
tasks
6 (interrupt tasks 140 to 145, fixed) 4 (interrupt
tasks 140 to
143, fixed)
6 (interrupt
tasks 140 to
145, fixed)
4 (interrupt
tasks 140 to
143, fixed)
High-speed counter interrupts and interrupt tasks specified by external interrupts
can also be executed.)
Maximum subroutine number 256
Maximum jump number 256
Scheduled interrupts 1
Type M CPU Units L CPU Units J CPU Units
Model CP1L-M40DR-A
CP1L-M40DR-D
CP1L-M40DT-D
CP1L-M40DT1-D
CP1L-M30DR-A
CP1L-M30DR-D
CP1L-M30DT-D
CP1L-M30DT1-D
CP1L-L20DR-A
CP1L-L20DR-D
CP1L-L20DT-D
CP1L-L20DT1-D
CP1L-L14DR-A
CP1L-L14DR-D
CP1L-L14DT-D
CP1L-L14DT1-D
CP1L-J20DR-A
CP1L-J20DR-D
CP1L-J20DT1-D
CP1L-J14DR-A
CP1L-J14DR-D
CP1L-J14DT1-D
44
Specifications Section 2-2
Note Can be used as Modbus-RTU easy master function.
2-2-2 I/O Memory Details
Clock function Supported.
Accuracy (monthly deviation): 4.5 min to 0.5 min (ambient temperature: 55C),
2.0 min to +2.0 min (ambient temperature: 25C),
2.5 min to +1.5 min (ambient temperature: 0C)
Memory
Backup
Built-in flash
memory
User programs and parameters (such as the PLC Setup) are automatically saved to the
flash memory. It is also possible to save and read data memory initial data.
The data is automatically transferred to RAM when the power supply is turned ON.
(Data memory initial data, however, may or may not be transferred, depending on the
selection in the PLC Setup.
Battery backup The HR Area, DM Area, and counter values (flags, PV) are backed up by a battery.
Battery model: CJ1W-BAT01 (Built into the CP1L CPU Unit.)
Maximum battery service life: 5 years
Guaranteed (ambient temperature: 55C): 13,000 hours (approx. 1.5 years)
Effective value (ambient temperature: 25C): 43,000 hours (approx. 5 years)
Memory Cassette function A CP1W-ME05M Memory Cassette (512K words, optional)
can be mounted. It can be used to back up the following
data on the CPU Unit's RAM and to transfer the data at
startup.
Data saved on Memory Cassette: User programs,parame-
ters (such as the PLC Setup), DM Area, data memory ini-
tial data, comment memory (CX-Programmer conversion
tables, comments, program indices), and FB program
memory.
Writing to Memory Cassette: By operations from the CX-
Programmer.
Reading from Memory Cassette: At startup or by opera-
tions from the CX-Programmer.
Unusable
Type M CPU Units L CPU Units J CPU Units
Model CP1L-M40DR-A
CP1L-M40DR-D
CP1L-M40DT-D
CP1L-M40DT1-D
CP1L-M30DR-A
CP1L-M30DR-D
CP1L-M30DT-D
CP1L-M30DT1-D
CP1L-L20DR-A
CP1L-L20DR-D
CP1L-L20DT-D
CP1L-L20DT1-D
CP1L-L14DR-A
CP1L-L14DR-D
CP1L-L14DT-D
CP1L-L14DT1-D
CP1L-J20DR-A
CP1L-J20DR-D
CP1L-J20DT1-D
CP1L-J14DR-A
CP1L-J14DR-D
CP1L-J14DT1-D
I/O
Areas
Input bits 24 bits
CIO 0.00 to
CIO 0.11
CIO 1.00 to
CIO 1.11
18 bits
CIO 0.00 to
CIO 0.11
CIO 1.00 to
CIO 1.05
12 bits
CIO 0.00 to
CIO 0.11
8 bits
CIO 0.00 to
CIO 0.07
12 bits
CIO 0.00 to
CIO 0.11
8 bits
CIO 0.00 to
CIO 0.07
Output bits 16 bits
CIO 100.00 to
CIO 100.07
CIO 101.00 to
CIO 101.11
12 bits
CIO 100.00 to
CIO 100.07
CIO 101.00 to
CIO 100.03
8 bits
CIO 100.00 to
CIO 100.07
6 bits
CIO 100.00 to
CIO 100.05
8 bits
CIO 100.00 to
CIO 100.07
6 bits
CIO 100.00 to
CIO 100.05
1:1 Link Bit
Area
1024 bits (64 words): CIO 3000.00 to CIO 3063.15 (words CIO 3000 to CIO 3063)
Serial PLC
Link Area
1,440 bits (90 words): CIO 3100.00 to CIO 3189.15 (words CIO 3100 to CIO 3189)
Work bits 4,800 bits (300 words): CIO 1200.00 to CIO 1499.15 (words CIO 1200 to CIO 1499)
6,400 bits (400 words): CIO 1500.00 to CIO 1899.15 (words CIO 1500 to CIO 1899)
15,360 bits (960 words): CIO 2000.00 to CIO 2959.15 (words CIO 2000 to CIO 2959)
9,600 bits (600 words): CIO 3200.00 to CIO 3799.15 (words CIO 3200 to CIO 3799)
37,504 bits (2,344 words): CIO 3800.00 to CIO 6143.15 (words CIO 3800 to CIO 6143)
Work bits 8,192 bits (1,536 words): W000.00 to W511.15 (words W0 to W511)
TR Area 16 bits: TR0 to TR15
Type M CPU Units L CPU Units J CPU Units
Model CP1L-M40DR-A
CP1L-M40DR-D
CP1L-M40DT-D
CP1L-M40DT1-D
CP1L-M30DR-A
CP1L-M30DR-D
CP1L-M30DT-D
CP1L-M30DT1-D
CP1L-L20DR-A
CP1L-L20DR-D
CP1L-L20DT-D
CP1L-L20DT1-D
CP1L-L14DR-A
CP1L-L14DR-D
CP1L-L14DT-D
CP1L-L14DT1-D
CP1L-J20DR-A
CP1L-J20DR-D
CP1L-J20DT1-D
CP1L-J14DR-A
CP1L-J14DR-D
CP1L-J14DT1-D
45
Specifications Section 2-2
2-2-3 I/O Specifications
I/O Terminal Blocks of CPU Units with 40 I/O Points
Input Terminal Block (Top Block)
HR Area 24,576 bits (512 words): H0.00 to H1535.15 (words H0 to H1535)
AR Area Read-only (Write-prohibited) 7,168 bits (448 words): A0.00 to A447.15 (words A0 to A447)
Read/Write 8,192 bits (512 words): A448.00 to A959.15 (words A448 to A959)
Timers 4,096 bits: T0 to T4095
Counters 4,096 bits: C0 to C4095
DM Area 32 Kwords: D0 to D32767
Note Initial data can be trans-
ferred to the CPU Unit's
built-in flash memory
using the data memory
initial data transfer func-
tion. A setting in the PLC
Setup can be used so that
the data in flash memory
is transferred to RAM at
startup.
DM fixed allocation words for
Modbus-RTU Easy Master
D32200 to D32249 for Serial
Port 1, D32300 to D32349 for
Serial Port 2
10 Kwords: D0 to D9999 and D32000 to D32767
Note Initial data can be transferred to the CPU Unit's built-in flash
memory using the data memory initial data transfer function.
A setting in the PLC Setup can be used so that the data in
flash memory is transferred to RAM at startup.
DM fixed allocation words for Modbus-RTU Easy Master
D32300 to D32349 for Serial Port 1
Data Register Area 16 registers (16 bits): DR0 to DR15
Index Register Area 16 registers (16 bits): IR0 to IR15
Task Flag Area 32 flags (32 bits): TK0 to TK31
Trace Memory 4,000 words (500 samples for the trace data maximum of 31 bits and 6 words.)
Type M CPU Units L CPU Units J CPU Units
Model CP1L-M40DR-A
CP1L-M40DR-D
CP1L-M40DT-D
CP1L-M40DT1-D
CP1L-M30DR-A
CP1L-M30DR-D
CP1L-M30DT-D
CP1L-M30DT1-D
CP1L-L20DR-A
CP1L-L20DR-D
CP1L-L20DT-D
CP1L-L20DT1-D
CP1L-L14DR-A
CP1L-L14DR-D
CP1L-L14DT-D
CP1L-L14DT1-D
CP1L-J20DR-A
CP1L-J20DR-D
CP1L-J20DT1-D
CP1L-J14DR-A
CP1L-J14DR-D
CP1L-J14DT1-D
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
AC Power Supply Models
Inputs (CIO 0) Inputs (CIO 1)
DC Power Supply Models
Inputs (CIO 0) Inputs (CIO 1)
COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 10 00 04 06 08 10 02 08
+
NC
46
Specifications Section 2-2
Setting Input Functions Using PLC Setup
Address Input operation settings High-speed counters Origin searches
Word Bit Normal
inputs
Interrupt
inputs
(See note.)
Quick-
response
inputs
Operation settings:
High-speed counters enabled
Phase-Z reset
Origin searches
enabled for pulse
outputs 0 and 1
Single-phase
(increment
pulse input)
Two-phase (differential
phase x4, up/down, or
pulse/direction)
CIO 0 00 Normal
input 0
--- --- Counter 0, incre-
ment input
Counter 0, A phase, up,
or count input
---
01 Normal
input 1
--- --- Counter 1, incre-
ment input
Counter 0, B phase,
down, or direction input
---
02 Normal
input 2
--- --- Counter 2, incre-
ment input
Counter 1, A phase, up,
or count input
---
03 Normal
input 3
--- --- Counter 3, incre-
ment input
Counter 1, B phase,
down, or direction input
---
04 Normal
input 4
Interrupt
input 0
Quick-
response
input 0
Counter 0,
phase-Z/reset
input
Counter 0, phase-Z reset
input
---
05 Normal
input 5
Interrupt
input 1
Quick-
response
input 1
Counter 1,
phase-Z reset
input
Counter 1, phase-Z reset
input
---
06 Normal
input 6
Interrupt
input 2
Quick-
response
input 2
Counter 2,
phase-Z reset
input
--- Pulse output 0: Origin
input signal
07 Normal
input 7
Interrupt
input 3
Quick-
response
input 3
Counter 3,
phase-Z reset
input
--- Pulse output 1: Origin
input signal
08 Normal
input 8
Interrupt
input 4
Quick-
response
input 4
--- --- ---
09 Normal
input 9
Interrupt
input 5
Quick-
response
input 5
--- --- ---
10 Normal
input 10
--- --- --- --- Pulse output 0: Origin
proximity input signal
11 Normal
input 11
--- --- --- --- Pulse output 1: Origin
proximity input signal
47
Specifications Section 2-2
Output Terminal Block Arrangement (Bottom Block)
CIO 1 00 Normal
input 12
--- --- --- --- ---
01 Normal
input 13
--- --- --- --- ---
02 Normal
input 14
--- --- --- --- ---
03 Normal
input 15
--- --- --- --- ---
04 Normal
input 16
--- --- --- --- ---
05 Normal
input 17
--- --- --- --- ---
06 Normal
input 18
--- --- --- --- ---
07 Normal
input 19
--- --- --- --- ---
08 Normal
input 20
--- --- --- --- ---
09 Normal
input 21
--- --- --- --- ---
10 Normal
input 22
--- --- --- --- ---
11 Normal
input 23
--- --- --- --- ---
Address Input operation settings High-speed counters Origin searches
Word Bit Normal
inputs
Interrupt
inputs
(See note.)
Quick-
response
inputs
Operation settings:
High-speed counters enabled
Phase-Z reset
Origin searches
enabled for pulse
outputs 0 and 1
Single-phase
(increment
pulse input)
Two-phase (differential
phase x4, up/down, or
pulse/direction)
COM
01 03
05 07
01 03
05 07
00 02 04 06 00
02
04 06
AC Power Supply Models
DC Power Supply Models
COM
+
NC
CIO 100 CIO 101
NC
COM COM COM COM
COM
01 03
05 07
01 03
05 07
00 02 04 06 00
02
04 06
COM
CIO 100 CIO 101
COM COM COM COM
48
Specifications Section 2-2
Setting Output Functions Using Instructions and PLC Setup
I/O Terminal Blocks of CPU Units with 30 I/O Points
Input Terminal Block (Top Block)
Address When the
instructions to
the right are not
executed
When a pulse output
instruction (SPED, ACC,
PLS2, or ORG) is executed
When origin searches are
enabled in the PLC Setup,
and an origin search is
executed with ORG
instruction
When the PWM
instruction is
executed
Word Bit Normal outputs Fixed duty ratio pulse output Variable duty ratio
pulse output
CW/CCW Pulse plus
direction
+ When the origin search
function is used
PWM output
CIO 100 00 Normal output 0 Pulse output 0
(CW)
Pulse output 0
(pulse)
--- ---
01 Normal output 1 Pulse output 0
(CCW)
Pulse output 0
(direction)
--- PWM output 0
02 Normal output 2 Pulse output 1
(CW)
Pulse output 1
(pulse)
--- ---
03 Normal output 3 Pulse output 1
(CCW)
Pulse output 1
(direction)
--- PWM output 1
04 Normal output 4 --- --- Origin search 0 (Error counter
reset output)
---
05 Normal output 5 --- --- Origin search 1 (Error counter
reset output)
---
06 Normal output 6 --- --- --- ---
07 Normal output 7 --- --- --- ---
CIO 101 00 Normal output 8 --- --- --- ---
01 Normal output 9 --- --- --- ---
02 Normal output 10 --- --- --- ---
03 Normal output 11 --- --- --- ---
04 Normal output 12 --- --- --- ---
05 Normal output 13 --- --- --- ---
06 Normal output 14 --- --- --- ---
07 Normal output 15 --- --- --- ---
L1 L2/N COM 01 03 05 07 09 11 01 03 05
00 02 04 06 08 10 00 02 04 NC
AC Power Supply Models
Inputs (CIO 0) Inputs (CIO 1)
DC Power Supply Models
Inputs (CIO 0) Inputs (CIO 1)
COM 01 03 05 07 09 11 01 03 05
00 02 04 06 10 00 04 NC 02 08
+
NC
49
Specifications Section 2-2
Setting Input Functions Using PLC Setup
Address Input operation settings High-speed counters Origin searches
Word Bit Normal
inputs
Interrupt
inputs
(See note.)
Quick-
response
inputs
Operation settings:
High-speed counters enabled
Phase-Z reset
Origin searches
enabled for pulse
outputs 0 and 1
Single-phase
(increment
pulse input)
Two-phase (differential
phase x4, up/down, or
pulse/direction)
CIO 0 00 Normal
input 0
--- --- Counter 0,
increment input
Counter 0, A phase, up,
or count input
---
01 Normal
input 1
--- --- Counter 1,
increment input
Counter 0, B phase,
down, or direction input
---
02 Normal
input 2
--- --- Counter 2,
increment input
Counter 1, A phase, up,
or count input
---
03 Normal
input 3
--- --- Counter 3,
increment input
Counter 1, B phase,
down, or direction input
---
04 Normal
input 4
Interrupt
input 0
Quick-
response
input 0
Counter 0,
phase-Z/reset
input
Counter 0, phase-Z reset
input
---
05 Normal
input 5
Interrupt
input 1
Quick-
response
input 1
Counter 1,
phase-Z reset
input
Counter 1, phase-Z reset
input
---
06 Normal
input 6
Interrupt
input 2
Quick-
response
input 2
Counter 2,
phase-Z reset
input
--- Pulse output 0: Origin
input signal
07 Normal
input 7
Interrupt
input 3
Quick-
response
input 3
Counter 3,
phase-Z reset
input
--- Pulse output 1: Origin
input signal
08 Normal
input 8
Interrupt
input 4
Quick-
response
input 4
--- ---
09 Normal
input 9
Interrupt
input 5
Quick-
response
input 5
--- ---
10 Normal
input 10
--- --- --- Pulse output 0: Origin
proximity input signal
11 Normal
input 11
--- --- --- Pulse output 1: Origin
proximity input signal
CIO 1 00 Normal
input 12
--- --- ---
01 Normal
input 13
--- --- ---
02 Normal
input 14
--- --- ---
03 Normal
input 15
--- --- ---
04 Normal
input 16
--- --- ---
05 Normal
input 17
--- --- ---
50
Specifications Section 2-2
Output Terminal Block (Bottom Block)
Setting Output Functions Using Instructions and PLC Setup
Address When the
instructions to
the right are not
executed
When a pulse output
instruction (SPED, ACC, PLS2,
or ORG) is executed
When origin searches are
enabled in the PLC Setup,
and an origin search is
executed with ORG
instruction
When the PWM
instruction is
executed
Word Bit Normal outputs Fixed duty ratio pulse output Variable duty
ratio pulse output
CW/CCW Pulse plus
direction
+ When the origin search
function is used
PWM output
CIO 100 00 Normal output 0 Pulse output 0
(CW)
Pulse output 0
(pulse)
--- ---
01 Normal output 1 Pulse output 0
(CCW)
Pulse output 0
(direction)
--- PWM output 0
02 Normal output 2 Pulse output 1
(CW)
Pulse output 1
(pulse)
--- ---
03 Normal output 3 Pulse output 1
(CCW)
Pulse output 1
(direction)
--- PWM output 1
04 Normal output 4 --- --- Origin search 0 (Error counter
reset output)
---
05 Normal output 5 --- --- Origin search 1 (Error counter
reset output)
---
06 Normal output 6 --- --- --- ---
07 Normal output 7 --- --- --- ---
CIO 101 00 Normal output 8 --- --- --- ---
01 Normal output 9 --- --- --- ---
02 Normal output 10 --- --- --- ---
03 Normal output 11 --- --- --- ---
01
03
05 07
01 03
00 02
04
06
00 02
AC Power Supply Models
DC Power Supply Models
COM
+
NC
CIO 100
CIO 101
NC
COM COM COM COM
COM
CIO 100 CIO 101
COM COM
01
03
00 02
05 07
01 03
04
06
00 02
COM
COM
51
Specifications Section 2-2
I/O Terminal Blocks of CPU Units with 20 I/O Points
Input Terminal Block (Top Block)
Setting Input Functions Using PLC Setup
Address Input operation settings High-speed counters Origin searches
Word Bit Normal
inputs
Interrupt
inputs
(See note.)
Quick-
response
inputs
Operation settings:
High-speed counters enabled
Phase-Z reset
Origin searches
enabled for pulse
outputs 0 and 1
Single-phase
(increment
pulse input)
Two-phase (differential
phase x4, up/down, or
pulse/direction)
CIO 0 00 Normal
input 0
--- --- Counter 0,
increment input
Counter 0, A phase, up,
or count input
---
01 Normal
input 1
--- --- Counter 1,
increment input
Counter 0, B phase,
down, or direction input
---
02 Normal
input 2
--- --- Counter 2,
increment input
Counter 1, A phase, up,
or count input
---
03 Normal
input 3
--- --- Counter 3,
increment input
Counter 1, B phase,
down, or direction input
---
04 Normal
input 4
Interrupt
input 0
Quick-
response
input 0
Counter 0,
phase-Z/reset
input
Counter 0, phase-Z
reset input
---
05 Normal
input 5
Interrupt
input 1
Quick-
response
input 1
Counter 1,
phase-Z reset
input
Counter 1, phase-Z
reset input
---
06 Normal
input 6
Interrupt
input 2
Quick-
response
input 2
Counter 2,
phase-Z reset
input
--- Pulse output 0: Origin
input signal
07 Normal
input 7
Interrupt
input 3
Quick-
response
input 3
Counter 3,
phase-Z reset
input
--- Pulse output 1: Origin
input signal
08 Normal
input 8
Interrupt
input 4
Quick-
response
input 4
--- ---
09 Normal
input 9
Interrupt
input 5
Quick-
response
input 5
--- ---
10 Normal
input 10
--- --- --- Pulse output 0: Origin
proximity input signal
11 Normal
input 11
--- --- --- Pulse output 1: Origin
proximity input signal
L1 L2/N
COM 01 03 05 07 09 11
00 02 04 06 08 10
AC Power Supply Models
Inputs (CIO 0)
DC Power Supply Models
COM 01 03 05 07 09 11
00 02 04 06 10 08
+
NC
Inputs (CIO 0)
52
Specifications Section 2-2
Output Terminal Block (Bottom Block)
Setting Output Functions Using Instructions and PLC Setup
Address When the
instructions to
the right are
not executed
When a pulse output
instruction (SPED, ACC,
PLS2, or ORG) is executed
When origin searches are
enabled in PLC Setup, and an
origin search is executed
with ORG instruction
When the PWM
instruction is
executed
Word Bit Normal outputs Fixed duty ratio pulse output Variable duty ratio
pulse output
CW/CCW Pulse plus
direction
+ When the origin search
function is used
PWM output
CIO 100 00 Normal output 0 Pulse output 0
(CW)
Pulse output 0
(pulse)
--- ---
01 Normal output 1 Pulse output 0
(CCW)
Pulse output 0
(direction)
--- PWM output 0
02 Normal output 2 Pulse output 1
(CW)
Pulse output 1
(pulse)
--- ---
03 Normal output 3 Pulse output 1
(CCW)
Pulse output 1
(direction)
--- PWM output 1
04 Normal output 4 --- --- Origin search 0 (Error counter
reset output)
---
05 Normal output 5 --- --- Origin search 1 (Error counter
reset output)
---
06 Normal output 6 --- --- --- ---
07 Normal output 7 --- --- --- ---
COM
07
05
06
AC Power Supply Models DC Power Supply Models
COM
+
NC
CIO 100
NC COM COM 03 COM
CIO 100
COM COM
01 04 00 02
COM
07
03
05
06
01 04 00 02
53
Specifications Section 2-2
I/O Terminal Blocks of CPU Units with 14 I/O Points
Input Terminal Block (Top Block)
Setting Input Functions Using PLC Setup
Address Input operation settings High-speed counters Origin searches
Word Bit Normal
inputs
Interrupt
inputs
(See note.)
Quick-
response
inputs
Operation settings:
High-speed counters enabled
Phase-Z reset
Origin searches
enabled for pulse
outputs 0 and 1
Single-phase
(increment
pulse input)
Two-phase (differential
phase x4, up/down, or
pulse/direction)
CIO 0 00 Normal
input 0
--- --- Counter 0, incre-
ment input
Counter 0, A phase, up,
or count input
---
01 Normal
input 1
--- --- Counter 1, incre-
ment input
Counter 0, B phase,
down, or direction input
---
02 Normal
input 2
--- --- Counter 2, incre-
ment input
Counter 1, A phase, up,
or count input
Pulse output 0: Ori-
gin proximity input
signal
03 Normal
input 3
--- --- Counter 3, incre-
ment input
Counter 1, B phase,
down, or direction input
Pulse output 1: Ori-
gin proximity input
signal
04 Normal
input 4
Interrupt
input 0
Quick-
response
input 0
Counter 0,
phase-Z/reset
input
Counter 0, phase-Z or
reset input
---
05 Normal
input 5
Interrupt
input 1
Quick-
response
input 1
Counter 1,
phase-Z reset
input
Counter 1, phase-Z or
reset input
---
06 Normal
input 6
Interrupt
input 2
Quick-
response
input 2
Counter 2,
phase-Z reset
input
--- Pulse output 0: Ori-
gin input signal
07 Normal
input 7
Interrupt
input 3
Quick-
response
input 3
Counter 3,
phase-Z reset
input
--- Pulse output 1: Ori-
gin input signal
L1 L2/N
COM 01 03 05 07
00 02 04 06
AC Power Supply Models
Inputs (CIO 0)
DC Power Supply Models
COM 01 03 05 07
00 02 04 06
+
NC
Inputs (CIO 0)
NC NC
NC NC
NC NC
NC NC
54
Specifications Section 2-2
Output Terminal Block (Bottom Block)
Setting Functions Using Instructions and PLC Setup
Input Specifications
Normal Inputs
Address When the
instructions to
the right are not
executed
When a pulse output
instruction (SPED, ACC,
PLS2, or ORG) is executed
When origin searches are
enabled in PLC Setup, and an
origin search is executed with
ORG instruction
When the PWM
instruction is
executed
Word Bit Normal outputs Fixed duty ratio pulse output Variable duty ratio
pulse output
CW/CCW Pulse plus
direction
+ When the origin search
function is used
PWM output
CIO 100 00 Normal output 0 Pulse output
0 (CW)
Pulse output
0 (pulse)
--- ---
01 Normal output 1 Pulse output
0 (CCW)
Pulse output
0 (direction)
--- PWM output 0
02 Normal output 2 Pulse output
1 (CW)
Pulse output
1 (pulse)
--- ---
03 Normal output 3 Pulse output
1 (CCW)
Pulse output
1 (direction)
--- PWM output 1
04 Normal output 4 --- --- Origin search 0 (Error counter
reset output)
---
05 Normal output 5 --- --- Origin search 1 (Error counter
reset output)
---
COM
05
AC Power Supply Models DC Power Supply Models
COM
+
NC
CIO 100
NC COM COM 03
COM
CIO 100
COM COM
01 04 00 02
COM 03
05 01 04 00 02
NC
NC
NC
NC
Item Specification
High-speed Counter Inputs Interrupt Inputs and
Quick-response Inputs
Normal inputs
CIO 0.00 to CIO 0.03 CIO 0.04 to CIO 0.09 (See
note 1.)
CIO 0.10 to CIO 0.11 and
CIO 1.00 to 1.11 (See note 2.)
Input voltage
24 VDC
+10%
/
15%
Applicable inputs 2-wire and 3-wire sensors
Input impedance 3.0 k 3.0 k 4.7 k
Input current 7.5 mA typical 7.5 mA typical 5 mA typical
ON voltage 17.0 VDC min. 17.0 VDC min. 14.4 VDC min.
OFF voltage/current 1 mA max. at 5.0 VDC max. 1 mA max. at 5.0 VDC max. 1 mA max. at 5.0 VDC max.
ON delay 2.5 s max. 50 s max. 1 ms max. (See note 3.)
55
Specifications Section 2-2
Note (1) HIgh-speed counter inputs, interrupt inputs, and quick-response inputs
can also be used as normal inputs.
(2) The bits that can be used depend on the model of CPU Unit.
(3) The response time is the hardware delay value. The delay set in the PLC
Setup (0 to 32 ms, default: 8 ms) must be added to this value.
High-speed Counter Inputs
OFF delay 2.5 s max. 50 s max. 1 ms max. (See note 3.)
Circuit configuration
Item Specification
High-speed Counter Inputs Interrupt Inputs and
Quick-response Inputs
Normal inputs
CIO 0.00 to CIO 0.03 CIO 0.04 to CIO 0.09 (See
note 1.)
CIO 0.10 to CIO 0.11 and
CIO 1.00 to 1.11 (See note 2.)
IN
IN
COM
3.0 k
4
.
3
k
1000 pF
3.0 k
1000 pF
IN
IN
COM
9
1
0
IN
IN
COM
4.7 k
7
5
0
1
0
4
)
Contact current (A)
125 VAC resistive load
30 VDC/250 VAC resistive load
30 VDC = 7 ms
125 VAC cos = 0.4
250 VAC cos = 0.4
50%
100%
55C 40 45
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
0%
Ambient temperature
50%
100%
55C 45 35
0%
Power voltage:
21.6 VDC
Power voltage:
20.4 VDC
Ambient temperature
50%
100%
55C 45
35
0%
50
Power
voltage:
21.6 VDC
Power
voltage:
20.4 VDC
Ambient temperature
58
Specifications Section 2-2
Transistor Outputs (Sinking or Sourcing)
Normal Outputs
Note (1) The fuse cannot be replaced by the user.
(2) Also do not exceed 0.9 A for the total for CIO 100.00 to CIO 100.03.
(3) The bits that can be used depend on the model of the CPU Unit.
!Caution Do not connect a load to an output terminal or apply a voltage in excess of the
maximum switching capacity.
Pulse Outputs (CIO 100.00 to CIO 100.03)
Item Specification
CIO 100.00 to CIO 100.03 CIO 100.04 to CIO 100.07 (See note 3.)
Max. switching capac-
ity
4.5 to 30 VDC, 300 mA/output, 0.9 A/common, M40D@-D 3.6 A/Unit
M30D@-D 2.7 A/Unit
L20D@-D 1.8 A/Unit
L14D@-D 1.4 A/Unit (See note 2.)
J20D@-D 1.8 A/Unit
J14D@-D 1.4 A/Unit
Min. switching capacity 4.5 to 30 VDC, 1 mA
Leakage current 0.1 mA max.
Residual voltage 0.6 V max. 1.5 V max.
ON delay 0.1 ms max.
OFF delay 0.1 ms max. 1 ms max.
Fuse 1 fuse/output (See note 1.)
Circuit configuration Normal outputs CIO 100.00 to CIO 100.03
(Sinking Outputs)
Normal outputs CIO 100.00 to CIO 100.03
(Sourcing Outputs)
Normal outputs CIO 100.04 to CIO 101.07
(Sinking Outputs)
Normal outputs CIO 100.04 to CIO 101.07
(Sourcing Outputs)
OUT
OUT
COM ()
L
L
Internal
circuits
Internal
circuits
24 VDC/
4.5 to
30 VDC
OUT
OUT
COM (+)
L
L
Internal
circuits
Internal
circuits
24 VDC/
4.5 to
30 VDC
OUT
OUT
COM ()
L
L
Internal
circuits
24 VDC/4.5
to 30 VDC
OUT
OUT
COM (+)
L
L
Internal
circuits
24 VDC/4.5
to 30 VDC
Item Specification
Max. switching capacity 30 mA/4.75 to 26.4 VDC
Min. switching capacity 7 mA/4.75 to 26.4 VDC
Max. output frequency 100 kHz
Output waveform
4 s min. 2 s min.
ON
90%
10%
OFF
59
Specifications Section 2-2
Note (1) The load for the above values is assumed to be the resistance load, and
does not take into account the impedance for the connecting cable to the
load.
(2) Due to distortions in pulse waveforms resulting from connecting cable im-
pedance, the pulse widths in actual operation may be smaller than the
values shown above.
PWM Outputs (CIO 100.01 and CIO 100.03)
2-2-4 CP/CPM1A-series Expansion I/O Unit I/O Specifications
Input Specifications (CP1W-40EDR/40EDT/40EDT1/20EDR1/20EDT/20EDT1/8ED)
Note (1) The response time is the hardware delay value. The delay set in the PLC
Setup (0 to 32 ms, default: 8 ms) must be added to this value. For the
CP1W-40EDR/EDT/EDT1 and CPM1A-40EDR/EDT/EDT1, a fixed value
of 16 ms must be added.
(2) Do not apply voltage in excess of the rated voltage to the input terminal.
Output Specifications
Relay Outputs (CP1W-40EDR/20EDR1/16ER/8ER)
Item Specification
Max. switching capacity 30 mA/4.75 to 26.4 VDC
Max. output frequency 1 kHz
PWM output accuracy For ON duty +1%, 0%:10 kHz output
For ON duty +5%, 0%: 0 to 32.8 kHz output
Output waveform
Item Specification
Input voltage
24 VDC
+10%
/
15%
Input impedance 4.7 k
Input current 5 mA typical
ON voltage 14.4 VDC min.
OFF voltage 5.0 VDC max.
ON delay 1 ms max. (See note 1.)
OFF delay 1 ms max. (See note 1.)
Circuit configuration
ON
tON
T
OFF
100%
tON
T
ON duty =
IN
IN
COM
4.7 k
7
5
0
Input LED
Internal
circuits
Item Specification
Max. switching capacity 2 A, 250 VAC (cos = 1),
2 A, 24 VDC (4 A/common)
Min. switching capacity 5 VDC, 10 mA
60
Specifications Section 2-2
Note (1) Under the worst conditions, the service life of output contacts is as shown
above. The service life of relays is as shown in the following diagram as
a guideline.
(2) There are restrictions imposed by the ambient temperature.
Relay Output Load Current Derating Curves for Expansion I/O Units
(CP1W-8ER/16ER/20EDR1/40EDR and CPM1A-8ER/16ER/20EDR1/
40EDR)
Service life
of relay
(See note.)
Electrical Resistive
load
150,000 operations (24 VDC)
Inductive
load
100,000 operations (240 VAC, cos = 0.4)
Mechanical 20,000,000 operations
ON delay 15 ms max.
OFF delay 15 ms max.
Circuit configuration
Item Specification
COM
OUT
OUT
Output LED
Internal
circuits
Maximum
250 VAC: 2 A
24 VDC: 2 A
Added to CP1L-L14DR-D,
CP1L-L20DR-D,
CP1L-J14DR-D or
CP1L-J20DR-D
Added to CP1L-M30DR-D Added to CP1L-M40DR-D
300
200
100
50
30
20
5
3
2
10
0.1 0.2 0.3 0.5 0.7 1 2 3 5
L
i
f
e
(
1
0
4
)
Contact current (A)
120 VAC resistive load
24 VDC = 7 ms
120 VAC cos = 0.4
240 VAC cos = 0.4
24 VDC/240 VAC resistive load
Switching rate: 1,800 operations/hour
50%
100%
55C 40 45
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
0%
Ambient temperature
50%
100%
55C 45 35
0%
Power voltage:
21.6 VDC
Power voltage:
20.4 VDC
Ambient temperature
50%
100%
55C 45
35
0%
50
Power
voltage:
21.6 VDC
Power
voltage:
20.4 VDC
Ambient temperature
61
Specifications Section 2-2
Transistor Outputs (Sinking or Sourcing)
Note (1) The fuse cannot be replaced by the user.
(2) If the ambient temperature is maintained below 50C, up to 0.9 A/com-
mon can be used.
!Caution Do not connect a load to an output terminal or apply a voltage in excess of the
maximum switching capacity.
Added to CP1L-L14DT@-D,
CP1L-L20DT@-D,
CP1L-J14DT@-D or
CP1L-J20DT@-D
Added to CP1L-M30DT@-D Added to CP1L-M40DT@-D
50%
100%
55C 40 45
Power voltage:
20.4 VDC
Power voltage:
21.4 VDC
0%
Ambient temperature
50%
100%
55C 45 35
0%
Power voltage:
21.6 VDC
Power voltage:
20.4 VDC
Ambient temperature
50%
100%
55C 45 35
0%
Power
voltage:
21.6 VDC
Power
voltage:
20.4 VDC
Ambient temperature
Item Specification
CP1W/CPM1A-40EDT
CP1W/CPM1A-40EDT1
CP1W/CPM1A-20EDT
CP1W/CPM1A-20EDT1
CP1W/CPM1A-8ET
CP1W/CPM1A-8ET1
Max. switching
capacity (See note
2.)
4.5 to 30 VDC
0.3 A/output
24 VDC
+10%
/5%
0.3 A/output
OUT00/01
4.5 to 30 VDC, 0.2 A/output
OUT02 to 07
4.5 to 30 VDC, 0.3 A/output
0.9 A/common
3.6 A/Unit
0.9 A/common
1.8 A/Unit
0.9 A/common
1.8 A/Unit
Leakage current 0.1 mA max. 0.1 mA max. 0.1 mA max.
Residual voltage 1.5 V max. 1.5 V max. 1.5 V max.
ON delay 0.1 ms max. 0.1 ms 0.1 ms max.
OFF delay 1 ms max.
24 VDC
+10%
/5%
5 to 300 mA
1 ms max.
24 VDC
+10%
/5%
5 to 300 mA
1 ms max.
24 VDC
+10%
/5%
5 to 300 mA
Fuse (See note 1.) 1 fuse/common
Circuit configuration
COM ()
OUT
OUT
L
L
COM (+)
OUT
OUT
L
L
Sinking Outputs Sourcing Outputs
Output LED
Output LED
Internal
circuits
Internal
circuits
24 VDC/4.5
to 30 VDC
24 VDC/4.5
to 30 VDC
0.9
0.8
(A)
0 (C) 50 55
Ambient temperature
T
o
t
a
l
c
u
r
r
e
n
t
f
o
r
c
o
m
m
o
n
62
CP1L CPU Unit Operation Section 2-3
2-3 CP1L CPU Unit Operation
2-3-1 Overview of CPU Unit Configuration
The CP1L CPU Unit memory consists of the following blocks.
(1) Data is backed up from RAM to the built-in flash memory when
changes are made, e.g., from the CX-Programmer.
When the power supply is turned ON, data is transferred from the built-
in flash memory to RAM.
(2) A CX-Programmer operation can be used to transfer DM Area initial
values from RAM to the built-in flash memory.
The PLC Setup can be set so that DM Area initial values are trans-
ferred from the built-in flash memory to RAM when the power supply
is turned ON.
(3) CX-Programmer operations can be used to transfer data from RAM to
the Memory Cassette or from the built-in flash memory to the Memory
Cassette.
RAM
DM Area
(2)
(3)
(1)
(1)
(3)
(3)
(3)
(3)
(3)
Built-in inputs
CPU Unit
User program
I/O memory
AR Area
PLC Setup
and other
parameters
Flash memory
User
program
Comment
memory
FB program
memory
DM Area
initial values
PLC Setup
and other
parameters
Memory
Cassette
Analog adjuster
External analog
setting input
Built-in outputs
Access
63
CP1L CPU Unit Operation Section 2-3
When the power supply is turned ON, data is transferred from the
Memory Cassette to the built-in flash memory and RAM. Data can also
be transferred from the Memory Cassette to the built-in flash memory
and RAM using the CX-Programmer.
User Program The user program consists of up to 288 tasks, including interrupt tasks. Each
task is programmed from the CX-Programmer and then transferred to the
CPU Unit.
There are two types of tasks: cyclic tasks and interrupt tasks. Cyclic tasks are
executed once each cycle and interrupt tasks are executed only when the
interrupt conditions are met. There can be up to 32 cyclic tasks and up to 256
interrupt tasks. Cyclic tasks are executed in the order of the task numbers.
Instructions programmed in the tasks are executed in order from the first
instruction and then I/O memory is refreshed. When all cyclic tasks have been
executed, I/O refreshing with PLC Units is performed and then the cyclic tasks
are executed again starting from the one with the lowest task number. This is
called the cyclic scan method.
I/O Memory The I/O memory area is a RAM area read and written by the user. Some parts
of the I/O memory are cleared when the power is interrupted. Other parts are
maintained. There are parts that used for data exchange with PLC Units and
parts that are used internally.
There are two ways to refresh the parts of I/O memory used for data
exchange with PLC Units: Once each program execution cycle and immedi-
ately when needed when executing specific instructions.
Parameter Area In addition to the I/O memory used as instructions operands by the user, there
is also a separate memory area that can be manipulated only from the CX-
Programmer. This area, called the parameter area, contains the following.
PLC Setup
Routing tables
PLC Setup The PLC Setup contains configuration parameters that can be set by the user
to define the basic specifications of the CPU Unit. Included are serial port set-
tings, a minimum cycle time setting, and other parameters. For details, refer to
the CX-Programmer Operation Manual.
64
CP1L CPU Unit Operation Section 2-3
Routing Tables Tables specifying the communications paths from the Communications Units
on the local PLC to remote PLCs connected on other networks must be regis-
tered in all the CPU Units in network PLCs to send and receive data between
networks. These tables are called the routing tables. The routing tables con-
sist of the relay network table and local network table.
Routing tables are created from the CX-Programmer or Support Software for
Communications Units (e.g., CX-Integrator) and then transferred to each CPU
Unit.
Remote Network Table
The remote network tables lists the node number and network address of the
first relay node that must be passed through to reach any remote network to
which the PLC is not directly connected. Once the routing tables have been
registered, any remote network can be reached by passing through relay
nodes.
Local Network Table
The local network table contains the unit number and network address of all
Communications Units that are part of the local PLC.
Built-in Flash Memory Flash memory is built into the CP1L CPU Units. Data in the following areas is
automatically backed up to the flash memory whenever it is written in any way
other than by instructions in the user program, e.g., when the CX-Programmer
or PT is used to transfer or edit data, edit the program online, or transfer data
from a Memory Cassette.
User program area
Parameter area (PLC Setup and routing tables)
The next time the power supply is turned ON, the data in the built-in flash
memory is automatically transferred to user memory (i.e., the user program
area and parameter area).
It is also possible to save data from data areas in I/O memory in the built-in
flash memory using operations from the CX-Programmer.
The symbol table, comment file, and program index file can be stored in the
comment memory in flash memory. When the program is transferred from the
CX-Programmer to the CPU Unit, function block program information is also
stored automatically in flash memory.
Note The BKUP indicator on the front of the CPU Unit will light whenever the built-in
flash memory is being written or the Memory Cassette is being accessed.
3 N
3 M
PLC 1 PLC 2 PLC 3
PLC 4
3
1
2
n
Node M
Unit number n
Network 1
Network 2
Network 3
Node N
Relay Network Table for PLC 1
Relay Network Table for PLC 2
Local Network Table for PLC 3
Remote
network
Relay
network
Relay
node
Remote
network
Relay
network
Relay
node
Local
network
Unit
number
65
CP1L CPU Unit Operation Section 2-3
Never turn OFF the power supply to the CPU Unit when the BKUP indicator is
lit.
Memory Cassette Memory Cassettes can be used as required in system operation and mainte-
nance. For example, they can be used to save programs, data memory con-
tents, PLC Setup data, or I/O comments from the CX-Programmer. The
contents of a Memory Cassette can also be automatically transferred if
desired.
Note Memory Cassettes cannot be used in CP1L-J CPU Unit.
2-3-2 Flash Memory Data Transfers
Built-in Flash Memory
Writing to Flash Memory
Data Transfer method
User program and
parameter data
This data is automatically transferred from RAM to flash mem-
ory when a project is transferred from the CX-Programmer,
when the data is written to RAM from a PT or other external
device, or when the data is transferred from a Memory Cas-
sette.
DM Area data This data is transferred to flash memory only when the trans-
fer is specified from the CX-Programmer.
Comment memory
data
This data is written to flash memory when a project is trans-
ferred from the CX-Programmer and transferring comment
memory is specified.
Function block
source data
This data is written to flash memory when a project containing
one or more function blocks is transferred from the CX-Pro-
grammer.
RAM
Write operation from CX-Programmer
or automatic transfer from Memory
Cassette at startup.
Write
Write
User program
area
Parameter area
I/O memory area
DM Area
Battery
Backup
Write (comment memory specified)
Write
Automatic write
Automatic write
Write
Built-in flash memory
User program
area
Parameter area
DM Area initial
values
Comment memory
area
FB source memory
area
CPU Unit
FB = Function block
Write operation
to flash memory
66
CP1L CPU Unit Operation Section 2-3
Reading from Flash
Memory
Data Read method
User program and
parameter data
This data is automatically read to RAM when power is turned
ON.
DM Area data Reading this data when power is turned ON can be enabled or
disabled in the PLC Setup.
Comment memory
data
When the project is transferred from the CX-Programmer,
comment memory can be specified as a destination to transfer
the comment memory data to built-in flash memory.
Function block
source data
When a project that contains function blocks is transferred
from the CX-Programmer, the function block source data is
transferred to built-in flash memory.
RAM
User program area
Parameter area
I/O memory area
DM Area
Battery
Backup
Built-in flash memory
User program
area
Parameter area
DM Area initial
values
Comment
memory area
FB source
memory area
Power
ON
Auto read
Power
ON
Auto read
Auto read
CPU Unit
FB = Function block
When power-ON
transfer is specified
in PLC Setup.
67
CP1L CPU Unit Operation Section 2-3
2-3-3 Memory Cassette Data Transfers
Note Memory Cassette cannot be used in CP1L-J CPU Unit.
Writing to a Memory Cassette
Data Method Source
User program and
parameter data
Data is written to a Memory
Cassette using write opera-
tions from the CX-Program-
mer.
Data in the built-in flash mem-
ory is written to the Memory
Cassette.
Comment memory
and function block
source data
Either of both of the following
can be transferred to the
Memory Cassette.
Data in the built-in flash
memory.
Data in RAM.
DM Area data
RAM
DM Area
data from RAM
User program
area
Parameter area
I/O memory
area
DM Area
Battery
Backup
Built-in flash memory
User program
area
Parameter area
DM Area initial
values
Comment
memory area
FB source
memory area
Memory Cassette
User program
area
Parameter area
DM Area initial
values
Comment
memory area
FB source
memory area
Memory
Cassette write
operation from
CX-Programmer CPU Unit
FB = Function block
68
CP1L CPU Unit Operation Section 2-3
Reading from a Memory Cassette
Data Method Destination
User program and
parameter data
This data is transferred by
turning SW2 on the DIP
switch to ON and turning ON
the power supply.
Data in the Memory Cassette
is transferred to RAM and
then automatically transferred
to the built-in flash memory.
Comment memory
and function block
source data
Data is transferred to the built-
in flash memory.
DM Area data DM Area data originally from
the built-in flash memory is
transferred back to the flash
memory and DM Area data
originally from RAM is trans-
ferred to RAM.
RAM
DM Area
data from RAM
User program
area
Parameter
area
I/O memory area
DM Area
Battery
Backup
Built-in flash memory
Power turned ON with SW2 turned ON
Parameter area
DM Area initial
values
Comment
memory area
FB source
memory area
Memory Cassette
User program
area
Parameter area
DM Area initial
values
Comment
memory area
FB source
memory area
CPU Unit
FB = Function block
User program
area
69
CPU Unit Operation Section 2-4
2-4 CPU Unit Operation
2-4-1 General Flow
The following flowchart shows the overall operation of the CPU Unit. First the
user program is executed and then I/O is refreshed and peripheral servicing is
performed. These processes are then repeated in cyclic fashion.
Startup
initialization
I/O refreshing
(even in
PROGRAM
mode)
Peripheral
servicing
Cycle time
Initialize hardware
memory and system work
area.
Detect I/O.
Automatically transfer data
from Memory Cassette.
Clear I/O memory.
Check user memory.
Clear forced status, etc.
Check the Battery.
Read DIP switch settings.
Check I/O bus.
Check user program
memory.
Overseeing
processing
Program
execution Operation processing: Execute the user program.
Error processing: Turn OFF outputs. (Reset Units
for bus errors.)
After error: Clear I/O memory if an error occurs
(unless a FALS(007) instruction created the error).
Refresh data for the following Units.
CP-series Expansion Units and Expansion I/O Units
Perform the following servicing if any events have occurred.
Peripheral USB port servicing
Serial port servicing
Communications port servicing
Built-in flash memory access servicing
Memory Cassette access servicing
Online editing
Power ON
70
CPU Unit Operation Section 2-4
2-4-2 I/O Refreshing and Peripheral Servicing
I/O Refreshing I/O refreshing involves cyclically transferring data with external devices using
preset words in memory. I/O refreshing includes the following:
Refreshing between I/O words in the CIO Area and CPU Unit built-in I/O,
CP/CPM1A-series Expansion Units, and CP/CPM1A-series Expansion
I/O Units
All I/O refreshing is performed in the same cycle (i.e., time slicing is not used).
I/O refreshing is always performed after program execution.
Peripheral Servicing Peripheral servicing involves servicing non-scheduled events for external
devices. This includes both events from external devices and service requests
to external devices.
Most peripheral servicing involves FINS commands. The specific amount of
time set in the system is allocated to each type of servicing and executed
every cycle. If all servicing cannot be completed within the allocated time, the
remaining servicing is performed the next cycle.
Note Peripheral USB port, serial port, and communications port servicing is allo-
cated 8% of the previous cycle time by default (the default can be changed)
for each service. If servicing is separated over many cycles, delaying comple-
tion of the servicing, set the same allocated time (same time for all services)
rather than a percentage under execute time settings in the PLC Setup.
2-4-3 I/O Refresh Methods
I/O for CPU Unit built-in I/O and I/O on CP/CPM1A-series Expansion Units
and Expansion I/O Units is performed at the following times.
1,2,3... 1. Cyclic refresh period
2. When instructions with an immediate refresh variation are executed
3. When IORF(097) is executed
Units Max. data exchange Data exchange area
CPU Unit built-in I/O 2 input words
2 output words
I/O Bit Area
CP/CPM1A-series Expansion
Units and Expansion I/O Units
Fixed depending on Units I/O Bit Area
Service Description
USB port servicing Non-scheduled servicing for FINS or Host Link
commands received via a USB port or serial port
from the CX-Programmer, PTs, or host computers
(e.g., requests for program transfers, monitoring,
forced-set/reset operations, or online editing)
Non-scheduled servicing from the CPU Unit trans-
mitted from a serial port (non-solicited communica-
tions)
Communications port servic-
ing
Communications port servic-
ing
Servicing to execute network communications or
serial communications for the SEND, RECV, CMND
or PMCR instructions using communications ports
0 to 7 (internal logical ports)
Servicing to execute background execution using
communications ports 0 to 7 (internal logical ports)
Built-in flash memory access
servicing
Read/write processing for built-in flash memory
Memory Cassette access ser-
vicing
Read/write processing for a Memory Cassette
71
CPU Unit Operation Section 2-4
Cyclic Refreshing I/O is refreshed after all the instructions in executable tasks have been exe-
cuted.
Immediate Refreshing When the immediate refreshing variation of an instruction is specified and the
instructions operand is an input bit or word in the Built-in I/O Area, the word
containing the bit or the word itself will be refreshed.
Note (1) Immediate refreshing is possible only for the Built-in I/O Area. Use
IORF(097) for I/O on CP/CPM1A-series Expansion Units and Expansion
I/O Units.
(2) Refreshing Range
Bit Operands
The ON/OFF status of the 16 I/O points allocated to the word contain-
ing the specified bit will be refreshed.
Word Operands
The ON/OFF status of the 16 I/O points allocated to the specified word
will be refreshed.
(3) Refresh Timing
Input or source operands are read just before the instruction is execut-
ed.
Output or destination (results) operands are written just after the in-
struction is executed.
(4) Using instructions with the immediate refresh option, instruction execu-
tion time will be increased, increasing the overall cycle time. Be sure to
confirm that this will not adversely affect system operation.
IORF(097) Refreshing When IORF(097) (I/O REFRESH) is executed, the I/O bits in the specified
range of words are refreshed. IORF(097) can be used for CP/CPM1A-series
Expansion Units and CP/CPM1A-series Expansion I/O Units.
END(001)
END(001)
END(001)
Task
Task
Task
I/O refresh period
Cycle
I/O terminal
status
15 0
!LD 0.00
0 15
!OUT 100.00
0 15
!MOV 1 101
11
7
11
7
Immediate refresh
I/O terminal status (built-in I/O)
CIO 0
CIO 101
CIO 1
CIO 100
72
CPU Unit Operation Section 2-4
If high-speed response is required from input to output, execute IORF(097)
before and after the relevant instructions.
Note IORF(097) has a relatively long execution time which increases with the num-
ber of words being refreshed. Be sure to consider the affect of this time on the
overall cycle time. Refer to the CP Series Programmable Controllers Program-
ming Manual for instruction execution times.
2-4-4 Initialization at Startup
The following initializing processes will be performed once each time the
power is turned ON.
Confirm mounted Units and I/O allocations.
Clear the non-holding areas of I/O memory according to the status of the
IOM Hold Bit. (See note 1.)
Clear forced status according to the status of the Forced Status Hold Bit.
(See note 2.)
Automatically transfer data from the Memory Cassette if one is mounted
and automatic transfer at startup is specified.
Perform self-diagnosis (user memory check).
Restore the user program. (See note 3.)
Note (1) The I/O memory is held or cleared according to the status of the IOM Host
Bit and the setting for IOM Hold Bit Status at Startup in the PLC Setup
(read only when power is turned ON).
Note When the mode is changed between PROGRAMMING mode and
RUN or MONITOR mode, I/O memory initialization is according to
the status of the IOM Hold Bit at that time.
(2) The forced status held or cleared according to the status of the Force Sta-
tus Hold Bit and the setting for Forced Status Hold Bit Status at Startup
in the PLC Setup (read only when power is turned ON).
IORF
St
E
IORF
2
5
Example
St: Starting word
E: End word
All the words from St to E, inclusive
are refreshed.
Here, the four words from CIO 2
to CIO 5 are refreshed.
Auxiliary bit
PLC Setup setting
IOM Hold Bit (A500.12)
Clear (OFF) Hold (ON)
IOM Hold Bit Status
at Startup
Clear
(OFF)
At power ON: Clear
At mode change: Clear
At power ON: Clear
At mode change: Hold
Hold
(ON)
At power ON: Hold
At mode change: Hold
Auxiliary bit
PLC Setup setting
Forced Status Hold Bit (A500.13)
Clear (OFF) Hold (ON)
Forced Status Hold
Bit Status at Startup
Clear
(OFF)
At power ON: Clear
At mode change: Clear
At power ON: Clear
At mode change: Hold
Hold
(ON)
At power ON: Hold
At mode change: Hold
73
CPU Unit Operating Modes Section 2-5
Note When the mode is changed between PROGRAMMING mode and
RUN or MONITOR mode, forced status initialization is according to
the status of the Forced Status Hold Bit at that time.
(3) User program recovery is performed if online editing is performed but the
power supply to the PLC is turned OFF before the CPU Unit can complete
backup processing. The BKUP indicator will light during backup process-
ing.
2-5 CPU Unit Operating Modes
2-5-1 Operating Modes
The CPU Unit has three operating modes that control the entire user program
and are common to all tasks.
PROGRAM: Programs are not executed and preparations, such as initial-
izing the PLC Setup and other settings, transferring pro-
grams, checking programs, force-setting and force-resetting
can be executed prior to program execution.
MONITOR: Programs are executed, but some operations, such as online
editing, forced-set/reset, and changes to present values in I/O
memory, are enabled for trial operation and other adjust-
ments.
RUN: Programs are executed and some operations are disabled.
2-5-2 Status and Operations in Each Operating Mode
The following table lists status and operations for each mode.
Note The following table shows the relationship of operating modes to tasks.
Operation PROGRAM mode RUN mode MONITOR mode
Program execution Stopped Executed Executed
I/O refreshing Executed Executed Executed
External I/O status OFF According to program According to program
I/O memory Non-holding memory Cleared According to program According to program
Holding memory Held
CX-Programmer
operations
I/O memory monitoring OK OK OK
Program monitoring OK OK OK
Program
transfers
From CPU Unit OK OK OK
To CPU Unit OK X X
Checking program OK X X
Setting PLC Setup OK X X
Changing program OK X OK
Force-setting/resetting OK X OK
Changing timer/counter SV OK X OK
Changing timer/counter PV OK X OK
Change I/O memory PV OK X OK
Mode Cyclic task status Interrupt task
status
PROGRAM Disabled status (INI) Stopped
74
CPU Unit Operating Modes Section 2-5
2-5-3 Operating Mode Changes and I/O Memory
Operating Mode Changes and I/O Memory
Note 1. The following processing is performed if the I/O Memory Hold Bit is ON.
Outputs from Output Units will be turned OFF when operation stops even
if I/O bit status is held in the CPU Unit.
2. The cycle time will increase by approximately 10 ms when the operating
mode is changed from MONITOR to RUN mode. This will not, however,
cause an error for exceeding the maximum cycle time limit.
Note Refer to SECTION 4 I/O Memory Allocation.
2-5-4 Startup Mode Setting
This setting in the PLC Setup determines the operating mode that will be used
by the CPU Unit when the power supply is turned ON.
PLC Setup
Note A Programming Console cannot be connected to the CP1L.
RUN Any task that has not yet been executed, will be in disabled status (INI).
A task will go to READY status if the task is set to go to READY status at star-
tup or the TASK ON (TKON) instruction has been executed for it.
A task in READY status will be executed (RUN status) when it obtains the
right to execute.
A status will go to Standby status (WAIT) if a READY task is put into Standby
status by a TASK OFF (TKOF) instruction.
Executed if inter-
rupt condition is
met.
MONITOR
Mode Changes Non-holding areas Holding Areas
I/O bits
Data Link bits
Work bits
Timer PV/Completion Flags
Index Registers
Data Registers
Task Flags
Auxiliary Area bits/words are holding or
non-holding depending on the address.
HR Area
DM Area
Counter PV and Completion Flags
Auxiliary Area bits/words are holding or
non-holding depending on the address.
RUN or MONITOR to PROGRAM Cleared (See note 1.) Held
PROGRAM to RUN or MONITOR Cleared (See note 1.) Held
RUN to MONITOR or
MONITOR to RUN
Held (See note 2.) Held
I/O Memory
Hold Bit status
(A500.12)
I/O Memory Output bits allocated to Output Units
Mode changed
between
PROGRAM
and RUN/
MONITOR
Operation stopped Mode changed
between
PROGRAM
and RUN/
MONITOR
Operation stopped
Fatal error
other than
FALS
FALS
executed
Fatal error
other than
FALS
FALS
executed
OFF Cleared Cleared Held OFF OFF OFF
ON Held Held Held Held OFF OFF
Name Description Settings Default
Startup Mode Specifies the
CPU Unit oper-
ating mode at
startup
Program (See note.)
Monitor
Run
Use programming console
Use program-
ming console
(See note.)
75
Power OFF Operation Section 2-6
Note A Programming Console cannot be connected to a CP1L CPU Unit. If Use
programming console is set, the CPU Unit will start in RUN mode.
2-6 Power OFF Operation
2-6-1 Overview
The following processing is performed when CPU Unit power is turned OFF.
Power OFF processing will be performed if the power supply voltage falls
below the specified value while the CPU Unit is in RUN or MONITOR mode.
1,2,3... 1. The CPU Unit will stop.
2. Outputs from all Output Units will be turned OFF.
Note (1) All outputs will turn OFF despite the status of the I/O Memory Hold Bit or
I/O Memory Hold Bit at power ON settings in the PLC Setup.
(2) AC Power
85% of the rated voltage: 85 V or less for a 100 to 240 V AC system
(3) DC Power
90% of rated voltage: 20.4 V DC or less
The following processing will be performed if power drops only momentarily
(momentary power interruption).
1,2,3... 1. The system will continue to run unconditionally if the momentary power in-
terruption lasts less than 10 ms for AC power or 2 ms for DC power, i.e.,
the time it takes the rated voltage at 85% or less to return to 85% or higher
is less than 10 ms for AC power or the time it takes the rated voltage at 90%
or less to return to 90% or higher is less than 2 ms for DC power.
76
Power OFF Operation Section 2-6
2. A momentary power interruption that lasts more than 10 ms for AC power
or more than 2 ms for DC power may or may not be detected.
The following timing chart shows the CPU Unit power OFF operation in more
detail.
Power OFF Timing Chart
Description of Operation
Power OFF will be detected if the 100 to 240 V AC power supply falls below
85% of the rated voltage or the DC power supply falls below 90% of the rated
voltage for the power OFF detection time (10 ms minimum for AC power and
2 ms minimum for DC power). The CPU reset signal will turn ON while the
internal power supply is being held and the CPU Unit will be reset.
2-6-2 Instruction Execution for Power Interruptions
If power is interrupted and the interruption is detected when the CPU Unit is
operating in RUN or MONITOR mode, the instruction currently being executed
will be completed and then the CPU Unit will be reset.
10 ms
0
85% of the rated voltage or less for AC power
90% of the rated voltage or less or DC power
0 to 10 ms for AC
0 to 2 ms for DC
Momentary power
interruption not detected
and operation continues.
Greater than 10 ms for AC
Greater than 2 ms for DC
Operation will continue or stop
depending on whether or not a
momentary power interruption is
detected.
Power supply
voltage
Power supply
voltage
Time
Power OFF detection time:
The time from when the power supply voltages drops to 85% or less of the rated
voltage for AC power or 90% for DC power until the power OFF condition is detected.
Holding time for 5 V internal power supply after power OFF detection:
The maximum time that the 5 V internal power supply voltage will be maintained after
the power OFF condition is detected. The holding time is fixed at 1 ms.
AC: 85% of rated voltage
DC: 90% of rated voltage
Operation always stopped
at this point regardless.
Power OFF detected signal
Program execution status
CPU reset signal
Cyclic tasks or interrupt tasks Stopped
Power OFF detected
Power OFF Detection
Delay Time
AC: 10 ms
DC: 2 ms
Holding time for 5 V internal
power supply after power
OFF detection: 1 ms
77
Computing the Cycle Time Section 2-7
2-7 Computing the Cycle Time
2-7-1 CPU Unit Operation Flowchart
The CPU Unit processes data in repeating cycles from the overseeing pro-
cessing up to peripheral servicing as shown in the following diagram.
NO
YES
Power ON
Checks Unit connection status.
Checks hardware and user
program memory.
Executes user program (i.e.,
executes READY cyclic tasks).
Waits until the set cycle time
has elapsed.
Calculates cycle time.
Sets error flags.
Performs I/O refreshing.
Services peripheral devices.
Peripheral
servicing
I/O
refreshing
Cycle time
calculation
Program
execution
Overseeing
processing
PLC
cycle
time
Startup
initialization
Check OK?
ERR/ALM
indicator ON or
flashing?
End of program?
Flashing
(nonfatal error)
ON (fatal error)
Error
Normal
78
Computing the Cycle Time Section 2-7
2-7-2 Cycle Time Overview
The cycle time depends on the following conditions.
Type and number of instructions in the user program (in all cyclic tasks
that are executed during a cycle, and within interrupt tasks for which the
execution conditions have been satisfied)
Type and number of CP/CPM1A-series Expansion Units and Expansion I/
O Units
Use of protocol macros and the largest communications message
Fixed cycle time setting in the PLC Setup
Use of USB and serial ports
Fixed peripheral servicing time in the PLC Setup
Note 1. The cycle time is not affected by the number of tasks that are used in the
user program. The tasks that affect the cycle time are those cyclic tasks
that are READY in the cycle.
2. When the mode is switched from MONITOR mode to RUN mode, the cycle
time will be extended by 10 ms (this will not, however, take the cycle time
over its limit).
The cycle time is the total time required for the PLC to perform the five opera-
tions given in the following tables.
Cycle time = (1) + (2) + (3) + (4) + (5)
1: Overseeing
2: Program Execution
3: Cycle Time Calculation
4: I/O Refreshing
Details Processing time and fluctuation cause
Checks the I/O bus and user program memory, checks for
battery errors, etc.
0.4 ms
Details Processing time and fluctuation cause
Executes the user program, and calculates the total time
time taken for the instructions to execute the program.
Total instruction execution time
Details Processing time and fluctuation cause
Waits for the specified cycle time to elapse when a minimum
(fixed) cycle time has been set in the PLC Setup.
Calculates the cycle time.
When the cycle time is not fixed, the time for step 3 is
approximately 0.
When the cycle time is fixed, the time for step 3 is the preset
fixed cycle time minus the actual cycle time ((1) + (2) + (4) +
(5)).
Details Processing time and fluctuation cause
CPU Unit built-
in I/O and I/O
on CP/
CPM1A-series
Expansion
Units and
Expansion I/O
Units
Outputs from the CPU Unit to the actual
outputs are refreshed first for each Unit,
and then inputs.
I/O refresh time for each Unit multiplied by the number of
Units used.
79
Computing the Cycle Time Section 2-7
5: Peripheral Servicing
2-7-3 Functions Related to the Cycle Time
Minimum Cycle Time Set the minimum cycle time to a non-zero value to eliminate inconsistencies in
I/O responses. A minimum cycle time can be set in the PLC Setup between 1
and 32,000 ms in 1-ms increments.
This setting is effective only when the actual cycle time is shorter than the
minimum cycle time setting. If the actual cycle time is longer than the mini-
mum cycle time setting, the actual cycle time will remain unchanged.
PLC Setup
Details Processing time and fluctuation cause
Services USB port. If a uniform peripheral servicing time hasnt been set in the PLC Setup for
this servicing, 8% of the previous cycles cycle time (calculated in step (3))
will be allowed for peripheral servicing.
If a uniform peripheral servicing time has been set in the PLC Setup, servic-
ing will be performed for the set time. Servicing will be performed for at
least 0.1 ms, however, whether the peripheral servicing time is set or not.
If the ports are not connected, the servicing time is 0 ms.
Services serial ports
Services communications ports. If a uniform peripheral servicing time hasnt been set in the PLC Setup for
this servicing, 8% of the previous cycles cycle time (calculated in step (3))
will be allowed for peripheral servicing.
If a uniform peripheral servicing time has been set in the PLC Setup, servic-
ing will be performed for the set time. Servicing will be performed for at
least 0.1 ms, however, whether the peripheral servicing time is set or not.
If no communications ports are used, the servicing time is 0 ms.
Services built-in flash memory access. If a uniform peripheral servicing time hasnt been set in the PLC Setup for
this servicing, 8% of the previous cycles cycle time (calculated in step (3))
will be allowed for peripheral servicing.
If a uniform peripheral servicing time has been set in the PLC Setup, servic-
ing will be performed for the set time. Servicing will be performed for at
least 0.1 ms, however, whether the peripheral servicing time is set or not.
If there is no access, the servicing time is 0 ms.
Serves Memory Cassette access.
Minimum cycle time
(effective)
Minimum cycle time
(effective)
Minimum cycle time
(effective)
Actual cycle
time
Actual cycle
time
Actual cycle
time
Minimum cycle time
Actual cycle
time
Minimum cycle time
Actual cycle
time
Minimum cycle time (effective)
Actual cycle
time
Name Settings Default
Minimum cycle time 0000 to 7D00 hex
(1 to 32,000 ms in 1-ms incre-
ments)
0000 hex: Variable cycle time
80
Computing the Cycle Time Section 2-7
Watch Cycle Time
If the cycle time exceeds the watch (maximum) cycle time setting, the Cycle
Time Too Long Flag (A401.08) will be turned ON and PLC operation will be
stopped.
PLC Setup
Related Flags
Cycle Time
Monitoring
The maximum cycle time is stored in A262 and A263 and the present cycle
time is stored in A264 and A265 every cycle.
Related Words
The average cycle time for the past eight cycles can be read from the CX-Pro-
grammer.
Note The following methods are effective in reducing the cycle time.
Place tasks that do not need to be executed on standby.
Use JMP-JME instructions to skip instructions that do not need to be exe-
cuted.
Name Settings Default
Enable Watch Cycle
Time Setting
0: Default (1 s)
1: User setting
0000 hex: Watch cycle time of
1 s
Watch Cycle Time 001 to FA0: 10 to 40,000 ms
(10-ms increments)
Name Address Description
Cycle Time Too Long
Flag
A401.08 Turns ON if the present cycle time exceeds the
Watch Cycle Time set in the PLC Setup.
Name Addresses Description
Maximum Cycle
Time
A262 and
A263
These words contain the maximum cycle time in
increments of 0.1 ms. The time is updated every
cycle and is recorded in 32-bit binary (0 to FFFF
FFFF hex, or 0 to 429,496,729.5 ms). (A263 is
the leftmost word.)
Present Cycle Time A264 and
A265
These words contain the present cycle time in
increments of 0.1 ms. The time is updated every
cycle and is recorded in 32-bit binary (0 to FFFF
FFFF, or 0 to 429,496,729.5 ms). (A265 is the
leftmost word.)
81
Computing the Cycle Time Section 2-7
2-7-4 I/O Refresh Times for PLC Units
CP-series Expansion Unit and Expansion I/O Unit I/O Refresh Times
Note The I/O refresh time for CPU Unit built-in I/O is included in overhead process-
ing.
2-7-5 Cycle Time Calculation Example
The following example shows the method used to calculate the cycle time
when CP-series Expansion I/O Units only are connected to a CP1L CPU Unit.
Name Model I/O refresh time per Unit
Expansion I/O Units CP1W-40EDR
CPM1A-40EDR
0.39 ms
CP1W-40EDT
CPM1A-40EDT
0.39 ms
CP1W-40EDT1
CPM1A-40EDT1
0.39 ms
CP1W-40ETR1
CPM1A-40ETR1
0.18 ms
CP1W-20EDT
CPM1A-20EDT
0.18 ms
CP1W-20EDT1
CPM1A-20EDT1
0.18 ms
CP1W-16ER
CPM1A-16ER
0.25 ms
CP1W-8ED
CPM1A-8ED
0.13 ms
CP1W-8ER
CPM1A-8ER
0.08 ms
CP1W-8ET
CPM1A-8ET
0.08 ms
CP1W-8ET1
CPM1A-8ET1
0.08 ms
Analog Input Units CP1W-AD041
CPM1A-AD041
0.61 ms
Analog Output Units CP1W-DA041
CPM1A-DA041
0.33 ms
Analog I/O Units CPM1A-MAD01 0.29 ms
CP1W-MAD11
CPM1A-MAD11
0.32 ms
Temperature Sensor Units CP1W-TS001
CPM1A-TS001
0.25 ms
CP1W-TS002
CPM1A-TS002
0.52 ms
CP1W-TS101
CPM1A-TS101
0.25 ms
CP1W-TS102
CPM1A-TS102
0.52 ms
DeviceNet I/O Link Unit CPM1A-DRT21 0.38 ms
CompoBus/S I/O Link Unit CP1W-SRT21
CPM1A-SRT21
0.21 ms
82
Computing the Cycle Time Section 2-7
Conditions
Calculation Example
2-7-6 Online Editing Cycle Time Extension
When online editing is executed to change the program from the CX-Program-
mer while the CPU Unit is operating in MONITOR mode, the CPU Unit will
momentarily suspend operation while the program is being changed. The
period of time that the cycle time is extended is determined by the following
conditions.
Number of steps changed
Editing operations (insert/delete/overwrite)
Types of instructions
The cycle time extension for online editing is negligibly affected by the size of
task programs. If the maximum program size for a task is 10 Ksteps, the
online editing cycle time extension will be as follows:
When editing online, the cycle time will be extended by according to the edit-
ing that is performed. Be sure that the additional time will not adversely affect
system operation.
Note When there is one task, online editing is processed all in the cycle time follow-
ing the cycle in which online editing is executed (written). When there are mul-
tiple tasks (cyclic tasks and interrupt tasks), online editing is separated, so
that for n tasks, processing is executed over n to n 2 cycles max.
Item Details
CP1L CP1W-40EDR
40-pt I/O Unit
1 Unit
User program 5 K steps LD instructions: 2.5 Ksteps,
OUT instructions: 2.5 Ksteps
USB port connection Yes and no
Fixed cycle time processing No
Serial port connection No
Other peripheral servicing No
Process name Calculation Processing time
USB port
connected
USB port not
connected
(1) Overseeing --- 0.4 ms 0.4 ms
(2) Program execution 0.55 s 2,500 + 1.1 s
2,500
4.1 ms 4.1 ms
(3) Cycle time calculation (Minimum cycle time not
set)
0 ms 0 ms
(4) I/O refreshing 0.39 ms 0.39 ms 0.39 ms
(5) Peripheral servicing (Only USB port con-
nected)
0.1 ms 0 ms
Cycle time (1) + (2) + (3) + (4) + (5) 4.99 ms 4.89 ms
CPU Unit Increase in cycle time for online editing
CP1L CPU Unit Maximum: 16 ms, Normal: 12 ms
(for a program size of 10 Ksteps)
83
Computing the Cycle Time Section 2-7
2-7-7 I/O Response Time
The I/O response time is the time it takes from when an input turns ON, the
data is recognized by the CPU Unit, and the user program is executed, up to
the time for the result to be output to an output terminal. The length of the I/O
response time depends on the following conditions.
Timing of Input Bit turning ON.
Cycle time.
Minimum I/O
Response Time
The I/O response time is shortest when data is retrieved immediately before I/
O refresh of the CPU Unit. The minimum I/O response time is calculated as
follows:
Minimum I/O response time = Input ON delay + Cycle time + Output ON delay
Note The input and output ON delays depend on the type of terminals used on the
CPU Unit or the model number of the Unit being used.
Maximum I/O Response
Time
The I/O response time is longest when data is retrieved immediately after I/O
refresh period of the CPU Unit. The maximum I/O response time is calculated
as follows:
Maximum I/O response time = Input ON delay + (Cycle time 2) + Output ON
delay
Input
I/O refresh
Input ON delay
Output ON delay
Cycle time Cycle time
(Interrupt to
CPU Unit)
Output
Minimum I/O
response time
Instruction
execution
Instruction
execution
Instruction
execution
Input
I/O refresh
Input ON delay
Output ON delay
Cycle time
Cycle time
(Interrupt to
CPU Unit)
Output
Maximum I/O
response time
Instruction
execution
Instruction
execution
Instruction
execution
84
Computing the Cycle Time Section 2-7
Calculation Example
Conditions: Input ON delay 1 ms (normal input with input
constant set to 0 ms)
Output ON delay 0.1 ms (transistor output)
Cycle time 20 ms
Minimum I/O response time = 1 ms + 20 ms + 0.1 ms = 21.1 ms
Maximum I/O response time = 1 ms + (20 ms 2) + 0.1 ms = 41.1 ms
Input Response
Times
Input response times can be set in the PLC Setup. Increasing the response
time reduces the effects of chattering and noise. Decreasing the response
time allows reception of shorter input pulses, (but the pulse width must be
longer than the cycle time).
PLC Setup
2-7-8 Interrupt Response Times
Input Interrupt Tasks The interrupt response time for I/O interrupt tasks is the time taken from when
a built-in input has turned ON (or OFF) until the I/O interrupt task has actually
been executed. The length of the interrupt response time for I/O interrupt
tasks depends on the following conditions.
Note (1) The wait time occurs when there is competition with other interrupts. As
a guideline, the wait time will be 6 to 169 s.
(2) I/O interrupt tasks can be executed during execution of the user program
(even while an instruction is being executed by stopping the execution of
an instruction), I/O refresh, peripheral servicing, or overseeing. The inter-
rupt response time is not affected by which of the above processing op-
erations during which the interrupt inputs turns ON. I/O interrupts,
however, are not executed during execution of other interrupt tasks even
if the I/O interrupt conditions are satisfied. Instead, the I/O interrupts are
Input
Input response time
Input
I/O refresh
CPU Unit
CPU Unit
Input response time
The pulse width is
less than the input
response time, so
it is not detected.
I/O refresh
Name Description Settings Default
Input constants Input response times 00 hex: 8 ms
10 hex: 0 ms
11 hex: 0.5 ms
12 hex: 1 ms
13 hex: 2 ms
14 hex: 4 ms
15 hex: 8 ms
16 hex: 16 ms
17 hex: 32 ms
00 hex (8 ms)
Item Interrupt response time Counter interrupts
Hardware response Rise time: 50 s ---
Fall time: 50 s ---
Software interrupt
response
Minimum: 134 s Minimum: 236 s
Maximum: 234 s + Wait
time (See note 1.)
Maximum: 336 s + Wait time
(See note1.)
85
Computing the Cycle Time Section 2-7
executed in order of priority after the current interrupt task has completed
execution and the software interrupt response time has elapsed.
The interrupt response time of input interrupt tasks is calculated as follows:
Interrupt response time = Input ON delay + Software interrupt response time
Scheduled Interrupt Tasks The interrupt response time of scheduled interrupt tasks is the time taken
from after the scheduled time specified by the MSKS(690) instruction has
elapsed until the interrupt task has actually been executed. The length of the
interrupt response time for scheduled interrupt tasks is 1 ms max. There is
also an error of 80 s in the time to the first scheduled interrupt (0.5 ms min.).
Note Scheduled interrupt tasks can be executed during execution of the user pro-
gram (even while an instruction is being executed by stopping the execution of
an instruction), I/O refresh, peripheral servicing, or overseeing. The interrupt
response time is not affected by which of the above processing operations
during which the scheduled interrupt time occurs. Scheduled interrupts, how-
ever, are not executed during execution of other interrupt tasks even if the
interrupt conditions are satisfied. Instead, the interrupts are executed in order
of priority after the current interrupt task has completed execution and the
software interrupt response time has elapsed.
2-7-9 Serial PLC Link Response Performance
The response times for CPU Units connected via a Serial PLC Link (master to
slave or slave to master) can be calculated as shown below. If a PT is in the
Serial PLC Link, however, the amount of communications data will not be
fixed and the values will change.
Maximum I/O response time (not including hardware delay) =
Master cycle time + Communications cycle time + Slave cycle time + 4 ms
Minimum I/O response time (not including hardware delay) =
Slave communications time + 0.8 ms
Input
(Interrupt signal retrieval)
Interrupt task execution
Input interrupt task
response time
Software interrupt response time
Input ON delay
Cyclic task execution
(main program)
Ladder program
execution time
Return time from
input interrupt task
Next interrupt signal
can be accepted.
The time from completing the ladder program in the input
interrupt task until returning to cyclic task execution is 60 s.
Software interrupt response time
Internal timer
Scheduled interrupt task
Scheduled interrupt time
86
Computing the Cycle Time Section 2-7
Here,
2-7-10 Pulse Output Start Time
The pulse output start time is the time required from executing a pulse output
instruction until pulses are output externally. This time depends on the pulse
output instruction that is used and operation that is performed.
2-7-11 Pulse Output Change Response Time
The pulse output change response time is the time for any change made by
executing an instruction during pulse output to actually affect the pulse output
operation.
Number of partici-
pating slave nodes
The number of slaves to which links have been established
within the maximum unit number set in the master.
Number of non-par-
ticipating slave
nodes
The number of slaves not participating in the links within the
maximum unit number set in the master
Communications
cycle time (ms)
Slave communications time Number of participating slave
nodes + 10 Number of non-participating slave nodes
Slave communica-
tions time (ms)
Communications time set to Standard
0.4 + 0.286 ((No. of slaves + 1) No. of link words 2 + 12)
Communications time set to Fast
0.4 + 0.0955 ((No. of slaves + 1) No. of link words 2 +
12)
Pulse output instruction Start time
SPED: continuous 86 s
SPED: independent 98 s
ACC: continuous 103 s
ACC: independent, trapezoidal 122 s
ACC: independent, triangular 123 s
PLS2: trapezoidal 145 s
PLS2: triangular 146 s
Start time
Instruction execution
Pulse output
Pulse output instruction Change response time
INI: immediate stop 63 s + 1 pulse output time
SPED: immediate stop 106 s + 1 pulse output time
ACC: deceleration stop 1 control cycle (4 ms) minimum,
2 control cycles (8 ms) maximum
PLS2: deceleration stop
SPED: speed change
ACC: speed change
PLS2: target position change in
reverse direction
PLS2: target position change in
same direction at same speed
PLS2: target position change in
same direction at different speed
87
SECTION 3
Installation and Wiring
This section describes how to install and wire the CP1L.
3-1 Fail-safe Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
3-2 Installation Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
3-2-1 Installation and Wiring Precautions . . . . . . . . . . . . . . . . . . . . . . . . . 89
3-3 Mounting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
3-3-1 Mounting in a Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
3-3-2 Connecting Expansion Units and Expansion I/O Units . . . . . . . . . . 94
3-3-3 DIN Track Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
3-4 Wiring CP1L CPU Units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
3-4-1 Wiring Power Supply and Ground Lines . . . . . . . . . . . . . . . . . . . . . 98
3-4-2 Wiring Built-in I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
3-4-3 Wiring Safety and Noise Controls . . . . . . . . . . . . . . . . . . . . . . . . . . 103
3-5 Wiring CPU Unit I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
3-5-1 I/O Wiring for CPU Units with 40 I/O Points . . . . . . . . . . . . . . . . . 105
3-5-2 I/O Wiring for CPU Units with 30 I/O Points . . . . . . . . . . . . . . . . . 106
3-5-3 I/O Wiring for CPU Units with 20 I/O Points . . . . . . . . . . . . . . . . . 108
3-5-4 I/O Wiring for CPU Units with 14 I/O Points . . . . . . . . . . . . . . . . . 110
3-5-5 Pulse Input Connection Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 111
3-5-6 Pulse Output Connection Examples . . . . . . . . . . . . . . . . . . . . . . . . . 112
3-6 CP/CPM1A-series Expansion I/O Unit Wiring . . . . . . . . . . . . . . . . . . . . . . . 114
88
Fail-safe Circuits Section 3-1
3-1 Fail-safe Circuits
Always set up safety circuits outside of the PLC to prevent dangerous condi-
tions in the event of errors in the CP1L CPU Unit or external power supply. In
particular, be careful of the following points.
Supply Power to the
CP1L CPU Unit before
the Controlled
System
If the PLC's power supply is turned ON after the controlled system's power
supply, outputs in Units such as DC Output Units may malfunction momen-
tarily. To prevent any malfunction, add an external circuit that prevents the
power supply to the controlled system from going ON before the power supply
to the PLC itself.
Managing CPU Unit
Errors
When any of the following errors occurs, PLC operation (program execution)
will stop and all outputs from Output Units will be turned OFF.
A CPU error (watchdog timer error) or CPU on standby
A fatal error (memory error, I/O bus error, duplicate number error, too
many I/O points error, I/O setting error, program error, cycle time too long
error, or FALS(007) error) (See note.)
Always add any circuits necessary outside of the PLC to ensure the safety of
the system in the event of an error that stops PLC operation.
Note When a fatal error occurs, all outputs from Output Units will be turned OFF
even if the IOM Hold Bit has been turned ON to protect the contents of I/O
memory. (When the IOM Hold Bit is ON, the outputs will retain their previous
status after the PLC has been switched from RUN/MONITOR mode to PRO-
GRAM mode.)
Managing Output
Malfunctions
It is possible for an output to remain ON due to a malfunction in the internal
circuitry of the Output Unit, such as a relay or transistor malfunction. Always
add any circuits necessary outside of the PLC to ensure the safety of the sys-
tem in the event that an output fails to go OFF.
Interlock Circuits When the PLC controls an operation such as the clockwise and counterclock-
wise operation of a motor and if there is any possibility of an accident or
mechanical damage due to faulty PLC operation, provide an external interlock
such as the one shown below to prevent both the forward and reverse outputs
from turning ON at the same time.
Example
This circuit prevents outputs MC1 and MC2 from both being ON at the same
time even if both PLC outputs CIO 100.00 and CIO 100.01 are both ON, so
the motor is protected even if the PLC is programmed improperly or malfunc-
tions.
CP1H
MC2
CIO
100.00
MC1
CIO
100.01
MC1
MC2
Interlock circuit
Motor clockwise
Motor counterclockwise
89
Installation Precautions Section 3-2
3-2 Installation Precautions
3-2-1 Installation and Wiring Precautions
Always consider the following factors when installing and wiring the PLC to
improve the reliability of the system and make the most of the CP1L functions.
Ambient Conditions Do not install the PLC in any of the following locations.
Locations subject to ambient temperatures lower than 0C or higher than
55C.
Locations subject to drastic temperature changes or condensation.
Locations subject to ambient humidity lower than 10% or higher than
90%.
Locations subject to corrosive or flammable gases.
Locations subject to excessive dust, salt, or metal filings.
Locations that would subject the PLC to direct shock or vibration.
Locations exposed to direct sunlight.
Locations that would subject the PLC to water, oil, or chemical reagents.
Always enclose or protect the PLC sufficiently in the following locations.
Locations subject to static electricity or other forms of noise.
Locations subject to strong electromagnetic fields.
Locations subject to possible exposure to radioactivity.
Locations close to power lines.
Installation in
Cabinets or Control
Panels
When the CP1L is being installed in a cabinet or control panel, always provide
proper ambient conditions as well as access for operation and maintenance.
Temperature Control The ambient temperature within the enclosure must be within the operating
range of 0C to 55C. When necessary, take the following steps to maintain
the proper temperature.
Provide enough space for good air flow.
Do not install the PLC above equipment that generates a large amount of
heat, such as heaters, transformers, or high-capacity resistors.
If the ambient temperature exceeds 55C, install a cooling fan or air con-
ditioner.
SYSMAC
CP1H
Control
panel
Fan
Louver
90
Installation Precautions Section 3-2
Accessibility for
Operation and
Maintenance
To ensure safe access for operation and maintenance, separate the PLC
as much as possible from high-voltage equipment and moving machinery.
The PLC will be easiest to install and operate if it is mounted at a height of
about 1,000 to 1,600 mm.
!Caution Do not touch the power supply or the area around the I/O terminals while
power is being supplied or immediately after power has been turned OFF.
Doing so may result in burns.
!Caution After the power supply has been turned OFF, wait until the PLC has suffi-
ciently cooled before touching it.
Improving Noise
Resistance
Do not mount the PLC in a control panel containing high-voltage equip-
ment.
Install the PLC at least 200 mm from power lines.
Ground the mounting plate between the PLC and the mounting surface.
Mounting in a Panel The CP1L must be installed in the orientation shown below to ensure ade-
quate cooling.
SYSMAC CP1L
200 mm min.
200 mm
min.
Power lines
91
Mounting Section 3-3
Do not install the CP1L in any of the following orientations.
3-3 Mounting
3-3-1 Mounting in a Panel
When mounting the CP1L CPU Unit in a panel, use either surface installation
or DIN Track installation.
Surface Installation Even if a DIN Track is not used, a CP1L CPU Unit and CP/CPM1A-series
Expansion Units or Expansion I/O Units can be mounted using M4 screws.
For restrictions on the number of Expansion Units and Expansion I/O Units
that can be connected, refer to 1-2 System Configuration.
CP1L CPU Unit
Expansion I/O Units or Expansion Units
92
Mounting Section 3-3
DIN Track Installation The CP1L CPU Unit, Expansion Units, and Expansion I/O Units can be
mounted to DIN Track. Secure the DIN Track with screws in at least three
places.
Using I/O Connecting
Cable
When using Expansion Units and Expansion I/O Units, it is possible to use
CP1W-CN811 Connecting Cable to arrange the Units in upper and lower
rows. The following restrictions apply:
I/O Connecting Cable can be used in one place only, and not in multiple
places.
Wiring Ducts Whenever possible, route I/O wiring through wiring ducts. Install the duct so
that it is easy to wire from the I/O Units through the duct. It is handy to have
the duct at the same height as the PLC.
Note Tighten terminal block screws and cable screws to the following torque.
M4: 1.2 Nm
M3: 0.5 Nm
DIN Track
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
CH
NC
NC
NC
NC
NC
NC
COM
COM COM COM COM COM COM 03 06 01 03 06
00 02 04 06 08 10
00 01 02 04 05 07 00 02 04 05 07
00 02 04 06 08 10
01 03 05 07 09 11 01 03 05 07 09 11
IN
40EDR
OUT
CH CH
CH CH EXP
CH
CH
CH
11 10 09 08 07 06 05 04 03 02 01 00
11 10 09 08 07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
CH
NC
NC
NC
NC
NC
NC
COM
COM COM COM COM COM COM 03 06 01 03 06
00 02 04 06 08 10
00 01 02 04 05 07 00 02 04 05 07
00 02 04 06 08 10
01 03 05 07 09 11 01 03 05 07 09 11
IN
40EDR
OUT
CH CH
CH CH EXP
CH
CH
CH
11 10 09 08 07 06 05 04 03 02 01 00
11 10 09 08 07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
CH
NC
NC
NC
NC
NC
NC
COM
COM COM COM COM COM COM 03 06 01 03 06
00 02 04 06 08 10
00 01 02 04 05 07 00 02 04 05 07
00 02 04 06 08 10
01 03 05 07 09 11 01 03 05 07 09 11
IN
40EDR
OUT
CH CH
CH CH EXP
CH
CH
CH
11 10 09 08 07 06 05 04 03 02 01 00
11 10 09 08 07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
20 mm min.
20 mm min.
40 mm
30 mm
30 mm
81.6 to 89.0 mm
Duct
Unit
Duct
DIN Track
Duct
CPU
Rack
Mounting
bracket
93
Mounting Section 3-3
Routing Wiring Ducts Install the wiring ducts at least 20 mm between the tops of the PLC and any
other objects, (e.g., ceiling, wiring ducts, structural supports, devices, etc.) to
provide enough space for air circulation and replacement of Units.
Dimensions
External Dimensions
SYSMAC CP1H IN
BATTERY
AC100-240V0CH
1CH
101CH
100CH DC24V 0.3A OUTPUT
EXP
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 07 COM 05 07 OUT
POWER ERR/ALM BKUP
RUN INH PRPHL
PERIPHERAL
200 mm min.
CP1L
Input duct Output duct Power duct
Breakers
and fuses
Power
equipment,
such as
transformers
and magnetic
relays
Fuses, relays,
timers, etc. (not
heat-generating
equipment,
power
equipment,
etc.)
Terminal
blocks for
PLC
Terminal blocks
for power
equipment
Model W1 W2
CP1L-M40D@-@ 150 140
CP1L-M40D@-@ 130 120
CP1L-L20D@-@ 86 76
CP1L-L14D@-@ 86 76
Four, 4.5 dia.
90 100 110
W2
W1
8
85
94
Mounting Section 3-3
Mounting Height The mounting height is approximately 90 mm.
When a cable is connected to an Option Board, however, the additional height
must be factored in. Always allow for the additional height when considering
the depth of the control panel in which the PLC is to be mounted.
3-3-2 Connecting Expansion Units and Expansion I/O Units
Leave approximately 10 mm of space between the CPU Unit and the Expan-
sion Units or Expansion I/O Units.
Mounting Method
10 mm
CP1L CPU Unit
Expansion I/O Units or Expansion Units
Unit A (mm)
CP1L CPU Unit 40 I/O points 140 0.5
30 I/O points 120 0.5
20 I/O points 76 0.5
14 I/O points 76 0.5
Expansion I/O Unit 40 I/O points 140 0.2
20 I/O points 76 0.2
16 outputs 76 0.2
8 inputs 56 0.2
8 outputs 56 0.2
Analog I/O Unit MAD01 56 0.2
MAD11
AD041
DA041
76 0.2
Temperature Sensor Unit 76 0.2
CompoBus/S I/O Link Unit 56 0.2
DeviceNet I/O Link Unit 56 0.2
100 mm
A
A
CP1L CPU Unit
with 30 or 40 I/O points
Expansion I/O Unit
with 40 I/O points
8 mm
100 mm
CP1L CPU Unit
with 14 or 20 I/O points
Expansion I/O Unit
with 8, 16, or 20 I/O
points
Expansion Unit
8 mm
95
Mounting Section 3-3
Space between Units When Expansion I/O Units Are Connected
1,2,3... 1. Remove the cover from the CPU Unit's or the Expansion I/O Unit's expan-
sion connector. Use a flat-blade screwdriver to remove the cover from the
Expansion I/O Connector.
2. Insert the Expansion I/O Unit's connecting cable into the CPU Unit's or the
Expansion I/O Unit's expansion connector.
3. Replace the cover on the CPU Unit's or the Expansion I/O Unit's expansion
connector.
100 mm
20 mm min.
25 mm max.
10 mm min.
15 mm max.
CP1L CPU Unit
Expansion I/O Unit
Expansion Unit
Expansion I/O Unit
Expansion Unit
Expansion
connector cover
CH
NC
NC
NC
NC
NC
NC
COM
COM COM COM COM COM
COM
03 06 01 03 06
00 02 04 06 08 10
00 01 02 04 05 07 00 02 04 05 07
00 02 04 06 08 10
01 03 05 07 09 11 01 03 05 07 09 11
IN
40EDR
OUT
CH
CH
CH
CH
EXP
CH
CH
CH
11 10 09 08 07 06 05 04 03 02 01 00
11 10 09 08 07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
CH
NC
NC
NC
NC
NC
NC
COM
COM COM COM COM COM
COM
03 06 01 03 06
00 02 04 06 08 10
00 01 02 04 05 07 00 02 04 05 07
00 02 04 06 08 10
01 03 05 07 09 11 01 03 05 07 09 11
IN
40EDR
OUT
CH
CH
CH
CH
EXP
CH
CH
CH
11 10 09 08 07 06 05 04 03 02 01 00
11 10 09 08 07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
07 06 05 04 03 02 01 00
96
Mounting Section 3-3
3-3-3 DIN Track Installation
1,2,3... 1. Use a screwdriver to pull down the DIN Track mounting pins from the back
of the Units, and mount the Units to the DIN Track.
2. Lower the Units so that they catch on the top of the DIN Track, and then
press them forward all the way to the DIN Track at the bottom.
3. Press in all of the DIN Track mounting pins to securely lock the Units in
place.
DIN Track Mount the DIN Track in the control panel with screws in at least three places.
DIN Track: PFP-50N (50 cm), PFP-100N (100 cm), or PFP-100N2
(100 cm)
97
Wiring CP1L CPU Units Section 3-4
Secure the DIN Track to the control panel using M4 screws separated by
210 mm (6 holes). The tightening torque is 1.2 Nm.
3-4 Wiring CP1L CPU Units
Note (1) Do not remove the protective label from the top of the Unit until wiring has
been completed. This label prevents wire strands and other foreign mat-
ter from entering the Unit during wiring procedures.
(2) Remove the label after the completion of wiring to ensure proper heat dis-
sipation.
15
10
4.5
25 25 25
10
25 15
1000
1000 (500)
(See note.)
PFP-100N2
PFP-100N/50N
15
10
4.5
25 25 25
10
25 15 (5)
(See note.)
1
16
1.5 1
29.2 24 27 30 0.3
7.3 0.15
35 0.3 27 0.15
28.25 4.5 oblong holes
Note: PFP-50N dimensions are given in parentheses.
98
Wiring CP1L CPU Units Section 3-4
3-4-1 Wiring Power Supply and Ground Lines
CPU Units with AC Power Supply
Wiring the AC Power Supply and Ground Lines
Wire a separate circuit for the power supply circuit so that there is no volt-
age drop from the inrush current that flows when other equipment is
turned ON.
When several CP1L PLCs are being used, it is recommended to wire the
PLCs on separate circuits to prevent a voltage drop from the inrush cur-
rent or incorrect operation of the circuit breaker.
Use twisted-pair power supply cables to prevent noise from the power
supply lines. Adding a 1:1 isolating transformer reduces electrical noise
even further.
Consider the possibility of voltage drops and the allowable current, and
always use thick power lines.
Use round crimp terminals for AC power supply wiring.
AC Power Supply
Provide a power supply of 100 to 240 VAC.
Use a power supply within the following voltage fluctuation range.
Note (1) Before connecting the power supply, make sure that the CPU Unit re-
quires an AC power supply and not a DC power supply. The CPU Unit's
internal circuitry will be damaged if AC power is mistakenly supplied to a
CPU Unit that requires a DC power supply.
(2) The power supply input terminals are at the top of the CPU Unit; the ter-
minals at the bottom of the CPU Unit output 24-VDC power for external
devices. The CPU Unit's internal circuitry will be damaged if AC power is
mistakenly supplied to a CPU Unit's power supply output terminals.
!Caution Tighten the terminal block screws for the AC power supply to the torque of
0.5 Nm. Loose screws may result in fire or malfunction.
Always ground the ground terminal to 100 or less to protect against
electric shock and incorrect operation from electrical noise.
MCCB
S R
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
100 to 240 VAC at 50/60 Hz
Upper terminal block
Ground (100 or less)
GR: Protective ground terminal LG: Functional ground terminal
Power supply voltage Allowable voltage fluctuation range
100 to 240 VAC 85 to 264 VAC
6.2 mm max.
99
Wiring CP1L CPU Units Section 3-4
If one phase of the power supply is grounded, connect the grounded
phase to the L2/N terminal.
The GR terminal is a ground terminal. To prevent electrical shock, use a
dedicated ground line (2 mm
2
min.) of 100 or less.
The line ground terminal (LG) is a noise-filtered neutral terminal. If noise
is a significant source of errors or if electrical shocks are a problem, con-
nect the line ground terminal (LG) to the ground terminal (GR) and ground
both with a ground resistance of 100 or less.
To prevent electrical shock when short-circuiting between the LG and GR
terminals, always use a ground of 100 or less.
Do not connect ground lines to other devices or to the frame of a building.
Doing so will reverse the effectiveness of the ground and instead have a
bad influence.
Isolating Transformer The PLC's internal noise control is sufficient for the general noise to which
power supply lines are subjected. Ground noise can be further reduced by
providing the power supply through a 1:1 isolating transformer. Leave the iso-
lating transformer's secondary side ungrounded.
CPU Units with DC Power Supply
DC Power Supply Wiring
Use crimp terminals or solid wire for wiring the power supply. Do not con-
nect bare stranded wires directly to terminals.
M3 self-rising terminal screws are used. Tighten the terminal screws to
the torque of 0.5 Nm.
To prevent noise, use a ground of 100 or less.
DC Power Supply
Provide a power supply of 20.4 to 26.4 VDC.
The maximum current consumption is 20 W for CPU Units with 30 or 40
I/O points and 13 W for CPU Units with 14 or 20 I/O points.
When the power supply is turned ON, the inrush current is approximately
five times the normal current.
The GR terminal is a ground terminal. To prevent electrical shock, use a
dedicated ground line (2 mm
2
min.) of 100 or less.
Note (1) Never reverse the positive and negative leads when wiring the power sup-
ply terminals.
+ COM 01 03 05 07 09 11 01 03 05 07 09 11
NC 00 02 04 06 08 10 00 02 04 06 08 10
+
24 VDC
Circuit protector
Upper terminal block
Ground (100 or less)
GR: Protective ground terminal
6.2 mm max. 6.2 mm max.
100
Wiring CP1L CPU Units Section 3-4
(2) Supply all power to the power supply terminals from the same source.
3-4-2 Wiring Built-in I/O
Wiring Precautions
Double-checking I/O
Specifications
Double-check the specifications for the I/O Units. In particular, do not apply a
voltage that exceeds the input voltage for Input Units or the maximum switch-
ing capacity for Output Units. Doing so may result in breakdown, damage, or
fire.
When the power supply has positive and negative terminals, always wire them
correctly.
Electric Wires AWG22 to AWG18 (0.32 to 0.82 mm
2
) power lines are recommended.
Use cable with a maximum diameter of 1.61 mm including the insulation
covering.
The current capacity of electric wire depends on factors such as the ambi-
ent temperature and insulation thickness, as well as the gauge of the con-
ductor.
M3 self-rising screws are used for all screw terminals including terminal
screws for crimp terminal power supply wiring.
Use crimp terminals or solid wire for wiring.
Do not connect bare stranded wires directly to terminals.
Tighten the terminal block screws to the torque of 0.5 Nm.
Use crimp terminals (M3) having the dimensions shown below.
Wiring Wire the Units so that they can be easily replaced.
Make sure that the I/O indicators are not covered by the wiring.
Do not place the I/O wiring in the same conduits or ducts as high-voltage
or power lines. Inductive noise can cause errors or damage.
Tighten the terminal screws to the torque of 0.5 Nm.
Note (1) Never apply a voltage that exceeds the input voltage for Input Units or the
maximum switching capacity for Output Units.
(2) When the power supply has positive and negative terminals, always wire
them correctly.
(3) When required by EC Low Voltage Directive, use reinforced insulation or
double insulation on the DC power supply connected to DC-power-supply
CPU Units and I/O.
For the DC power supply connected to a DC-power-supply CPU Unit, use
a power supply with a minimum output holding time of 10 ms.
(4) Do not pull on the cables or bend the cables beyond their natural limit. Do-
ing either of these may break the cables.
6.2 mm max. 6.2 mm max.
6.2 mm max. 6.2 mm max.
101
Wiring CP1L CPU Units Section 3-4
Connecting I/O
Devices
Use the following information for reference when selecting or connecting input
devices.
DC Input Devices Connectable DC Input Devices (for DC Output Models)
The circuit below should not be used for I/O devices with a voltage output.
Precautions when
Connecting a Two-wire DC
Sensor
When using a two-wire sensor with a 24-V DC input device, check that the fol-
lowing conditions have been met. Failure to meet these conditions may result
in operating errors.
1,2,3... 1. Relation between voltage when the PLC is ON and the sensor residual
voltage:
V
ON
V
CC
V
R
2. Relation between current when the PLC is ON and sensor control output
(load current):
I
OUT
(min) I
ON
I
OUT
(max)
I
ON
= (V
CC
V
R
1.5 [PLC internal residual voltage]*)/R
IN
When I
ON
is smaller than I
OUT
(min), connect a bleeder resistor R. The
bleeder resistor constant can be calculated as follows:
R (V
CC
V
R
)/(I
OUT
(min) I
ON
)
Power W (V
CC
V
R
)
2
/R 4 [allowable margin]
IN
COM
CP1L
+
+
IN
CP1L
5 mA/
7 mA
+
COM
+
IN
COM
CP1L
+
CP1L
COM
IN
IN
COM
CP1L
0 V
+
+
IN
COM
CP1L
+
+
Contact output Two-wire DC output
Sensor
power supply
NPN open-collector output
Sensor
power supply
Output
NPN current output
Current
regulator Output
Sensor
power supply
PNP current output
Output
Sensor
power supply
Voltage output
Output
Sensor
power supply
0 V
5 mA/
7 mA
0 V
5 mA/
7 mA
0 V
IN
CP1L
0 V
+
COM
Output
Sensor
power supply
102
Wiring CP1L CPU Units Section 3-4
3. Relation between current when the PLC is OFF and sensor leakage cur-
rent:
I
OFF
I
leak
Connect a bleeder resistor if I
leak
is greater than I
OFF
. Use the following
equation to calculate the bleeder resistance constant.
R R
IN
V
OFF
/(I
leak
R
IN
V
OFF
)
Power W (V
CC
V
R
)
2
/R 4 (allowable margin)
Vcc: Power voltage Vr: Sensor output residual current
Von: PLC ON voltage Iout: Sensor control output (load current)
Voff: PLC OFF voltage
Ion: PLC ON current Ileak: Sensor leakage current
Ioff: PLC OFF current R: Bleeder resistance
Rin: PLC input impedance
4. Precautions on Sensor Inrush Current
An incorrect input may occur due to sensor inrush current if a sensor is
turned ON after the PLC has started up to the point where inputs are pos-
sible. Determine the time required for sensor operation to stabilize after the
sensor is turned ON and take appropriate measures, such as inserting into
the program a timer delay after turning ON the sensor.
Program Example
In this example, the sensor's power supply voltage is provided to input bit CIO
0.00 and a 100-ms timer delay (the time required for an OMRON Proximity
Sensor to stabilize) is created in the program. After the Completion Flag for
the timer turns ON, the sensor input on input bit CIO 0.01 will cause output bit
CIO 100.00 to turn ON.
Output Wiring Precautions
Output Short-circuit
Protection
If a load connected to the output terminals is short-circuited, output compo-
nents and the printed circuit boards may be damaged. To guard against this,
incorporate a fuse in the external circuit. Use a fuse with a capacity of about
twice the rated output.
Connecting to a TTL
Circuit
A TTL circuit cannot be connected directly to a transistor output because of
the transistor's residual voltage. It is necessary to connect a pull-up resistor
and a CMOS IC between the two.
Inrush Current
Considerations
When connecting a transistor or triac output to a load having a high inrush
current (such as an incandescent lamp), steps must be taken to avoid dam-
age to the transistor or triac. Use either of the following methods to reduce the
inrush current.
R VR
VCC
RIN
Two-wire Sensor
DC Input Unit
TIM
100
#0001
0.00
100.00
0.01 T100
103
Wiring CP1L CPU Units Section 3-4
3-4-3 Wiring Safety and Noise Controls
I/O Signal Wiring Whenever possible, place I/O signal lines and power lines in separate ducts or
conduits both inside and outside of the control panel.
If the I/O wiring and power wiring must be routed in the same duct, use
shielded cables and connect the shields to the GR terminal to reduce noise.
Inductive Loads When an inductive load is connected to an I/O Unit, connect a surge suppres-
sor or diode in parallel with the load as shown below.
Note Use surge suppressors and diodes with the following specifications.
OUT
R
COM
L
+
OUT
R
COM
L
+
SYSMAC CP1L
SYSMAC CP1L
Example Method 1
Example Method 2
Use a dark current of approximately 1/3 the rated current of the incandescent lamp.
Install a limit resistance.
(1)
(2)
(1) (2)
(1) (2)
Suspended duct
In-floor duct
(1) = I/O cables
(2) = Power cables
Conduits
L
IN
COM
OUT
COM
OUT
COM
L
+
Diode
DC input Relay output
Surge suppressor
Relay output or
transistor output
Diode
104
Wiring CP1L CPU Units Section 3-4
Noise from External
Wiring
Take the following points into account when externally wiring I/O, power sup-
ply, and power lines.
When multi-conductor signal cable is being used, avoid combining I/O
wires and other control wires in the same cable.
If wiring racks are parallel, allow at least 300 mm between them.
If the I/O wiring and power cables must be placed in the same duct, they
must be shielded from each other using grounded steel sheet metal.
Surge Suppressor Specifications
Resistance: 50
Capacitance: 0.47F
Voltage: 200 V
Diode Specifications
Breakdown voltage: 3 times load voltage min.
Mean rectification current: 1 A
300 mm min.
300 mm min.
PLC I/O wiring
PLC power supply
cable and general
control circuit wiring
Power lines
Low-current cables
Control cables
Power cables
Ground to 100 or less
200 mm min.
PLC I/O wiring
PLC power
supply cable
and general
control circuit
wiring Power lines
Steel sheet metal
Ground to 100 or less
105
Wiring CPU Unit I/O Section 3-5
3-5 Wiring CPU Unit I/O
3-5-1 I/O Wiring for CPU Units with 40 I/O Points
Input Wiring (Upper Terminal Block)
The input circuits have 24 points/common. Use power lines with sufficient cur-
rent capacity for the COM terminals.
Output Wiring (Lower Terminal Block)
Relay Outputs
(CP1L-M40DR-A and
CP1L-M40DR-D)
AC-power-supply models have a 24-VDC output terminals (+/) on the lower
terminal block. They can be used as a DC power supply for the input circuit.
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
24 VDC
CIO 0 CIO 1
CIO 0 CIO 1
+ 00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
CIO 100 CIO 101
CIO 100
CIO 101
L
L L L
L L L L L L L L
L
L
L
L
106
Wiring CPU Unit I/O Section 3-5
Sinking Transistor
Outputs (CP1L-M40DT-D)
Sourcing Transistor
Outputs (CP1L-M40DT1-D)
3-5-2 I/O Wiring for CPU Units with 30 I/O Points
Input Wiring (Upper Terminal Block)
The input circuits have 18 points/common. Use power lines with sufficient cur-
rent capacity for the COM terminals.
NC 00 01 02 03 04 06 00 01 03 04 06
NC COM COM COM COM 05 07 COM 02 COM 05 07
CIO 100 CIO 101
CIO 100 CIO 101
L L L L L L L L L L L
L L L L L
NC 00 01 02 03 04 06 00 01 03 04 06
NC COM COM COM COM 05 07 COM 02 COM 05 07
CIO 100 CIO 101
CIO 100 CIO 101
L L L L L L L L L L L
L L L L L
24 VDC
CIO 0
CIO 1
CIO 0
CIO 1
L1 L2/N COM 01
00
03
02
05
04
07
06
09
08
11
10
01
00
03
02
05
04
107
Wiring CPU Unit I/O Section 3-5
Output Wiring (Lower Terminal Block)
Relay Outputs
(CP1L-M30DR-A)
Relay Outputs
(CP1L-M30DR-D)
AC-power-supply models have a 24-VDC output terminals (+/) on the lower
terminal block. They can be used as a DC power supply for the input circuit.
Sinking Transistor
Outputs (CP1L-M30DT-D)
CIO 100
L L L L L L
L L
+ 00 01 02 04 05 07 00 02
- COM COM COM 03 COM 06 COM 01 03
CIO 100
L L
L L
CIO 101
CIO 101
CIO 100
L L L L L L
L L
NC 00 01 02 04 05 07 00 02
NC COM COM COM 03 COM 06 COM 01 03
CIO 100
L L
L L
CIO 101
CIO 101
CIO 100 CIO 101
L L L L L L L L
NC 00 01 02 04 05 07 00 02
NC COM COM COM 03 COM 06 COM 01 03
L
L L
L
CIO 100 CIO 101
108
Wiring CPU Unit I/O Section 3-5
Sourcing Transistor
Outputs (CP1L-M30DT1-D)
3-5-3 I/O Wiring for CPU Units with 20 I/O Points
Input Wiring (Upper Terminal Block)
The input circuits have 12 points/common. Use power lines with sufficient cur-
rent capacity for the COM terminals.
Output Wiring (Lower Terminal Block)
Relay Outputs
(CP1L-L20DR-A and
CP1L-J20DR-A)
L L L L L L L L
NC 00 01 02 04 05 07 00 02
NC COM COM COM 03 COM 06 COM 01 03
L
L L
L
CIO 100
CIO 100 CIO 101
CIO 101
24 VDC
CIO 0
CIO 0
L1 L2/N COM 01
00
03
02
05
04
07
06
09
08
11
10
CIO 100
L L L L L L
L L
+ 00 01 02 04 05 07
- COM COM COM 03 COM 06
CIO 100
109
Wiring CPU Unit I/O Section 3-5
Relay Outputs
(CP1L-L20DR-D and
CP1L-J20DR-D)
AC-power-supply models have a 24-VDC output terminals (+/) on the lower
terminal block. They can be used as a DC power supply for the input circuit.
Sinking Transistor
Outputs (CP1L-L20DT-D)
Sourcing Transistor
Outputs (CP1L-L20DT1-D
and CP1L-J20DT1-D)
CIO 100
L L L L L L
L L
NC 00 01 02 04 05 07
NC COM COM COM 03 COM 06
CIO 100
CIO 100
L L L L L L
L L
NC 00 01 02 04 05 07
NC COM COM COM 03 COM 06
CIO 100
CIO 100
L L L L L L
L L
NC 00 01 02 04 05 07
NC COM COM COM 03 COM 06
CIO 100
110
Wiring CPU Unit I/O Section 3-5
3-5-4 I/O Wiring for CPU Units with 14 I/O Points
Input Wiring (Upper Terminal Block)
The input circuits have 8 points/common. Use power lines with sufficient cur-
rent capacity for the COM terminals.
Output Wiring (Lower Terminal Block)
Relay Outputs
(CP1L-L14DR-A and
CP1L-J14DR-A)
Relay Outputs
(CP1L-L14DR-D and
CP1L-J14DR-D)
AC-power-supply models have a 24-VDC output terminals (+/) on the lower
terminal block. They can be used as a DC power supply for the input circuit.
24 VDC
CIO 0
CIO 0
L1 L2/N COM 01
00
03 05
04
07
06
NC
NC
NC
NC 02
CIO 100
L L L L L
L
+ 00 01 02 04 05 NC
- COM COM COM 03 COM NC
CIO 100
CIO 100
L L L L L
L
NC 00 01 02 04 05 NC
NC COM COM COM 03 COM NC
CIO 100
111
Wiring CPU Unit I/O Section 3-5
Sinking Transistor
Outputs (CP1L-L14DT-D)
Sourcing Transistor
Outputs (CP1L-L14DT1-D
and CP1L-J14DT1-D)
3-5-5 Pulse Input Connection Examples
For a 24-VDC Open-
collector Encoder
This example shows the connections to an encoder with phase-A, phase-B,
and phase Z inputs.
CIO 100
L L L L L
L
NC 00 01 02 04 05 NC
NC COM COM COM 03 COM NC
CIO 100
CIO 100
L L L L L
L
NC 00 01 02 04 05 NC
NC COM COM COM 03 COM NC
CIO 100
Black
White
Orange
+Vcc Brown
0 V (COM)
Blue
0 V
+24 V
008
009
003
COM (COM 24 V)
Encoder
(Power supply: 24 VDC)
Example: E6B2-CWZ6C
NPN open-
collector output
Phase A
Phase B
Phase Z
24-V DC power supply
CP1L CPU Unit
(Differential phase input mode)
(High-speed counter 0:
Phase A 0 V)
(High-speed counter 0:
Phase B 0 V)
(High-speed counter 0:
Phase Z 0 V)
Encoder
Power provided.
(Do not use the same I/O power supply as other equipment.)
Phase A
Phase B
Phase Z
Shielded twisted-pair cable
0.00
0.01
0.04
COM
0V
24V 0V
IA
IB
IZ
CP1L CPU Unit
Power
supply
112
Wiring CPU Unit I/O Section 3-5
3-5-6 Pulse Output Connection Examples
This example shows a connection to a motor driver. Always check the specifi-
cations of the motor driver before actually connecting it.
For open-collector output, use a maximum of 3 m of wiring between the CP1L
CPU Unit and the motor driver.
No pulses are output while the pulse output transistor is OFF. For a direction
output, OFF indicates that CCW output is in progress.
Do not use the same power supply for both pulse output 24-VDC/5-VDC
power and other I/O power.
CW/CCW Pulse Output and Pulse Plus Direction Output
Using a 24-VDC Photocoupler Input Motor Driver (CP1L-@@@DT-D)
ON
OFF
CW
CW
CCW
CCW
CW CCW
Output transistor
Pulse output in progress
CW and CCW Pulse Outputs
Pulse and Direction Outputs
Pulses
Direction
Output ON Output OFF
(+)
()
(+)
()
+
CP1L CPU Unit
24-VDC
power supply
for outputs
CW pulse
output
(Pulse
output)
CCW pulse
output
(Direction
output)
24-V DC power supply
Motor driver (for 24-V input)
113
Wiring CPU Unit I/O Section 3-5
Using a 5-VDC
Photocoupler Input Motor
Driver (CP1L-@@@DT-D)
Connection Example 1
In this example, a 5-V input motor driver is used with a 24-VDC power supply.
Be careful to ensure that the Position Control Unit output current does not
damage the input circuit at the motor driver and yet is sufficient to turn it ON.
Take into account the power derating for the 1.6-k resistance.
Connection Example 2
1.6 k
Approx. 12 mA
100.02
1.6 k
Approx. 12 mA
COM
100.03
(+)
()
(+)
()
+
CP1L CPU Unit
24-VDC
power supply
for outputs
CW pulse
output
(Pulse
output)
CCW pulse
output
(Direction
output)
24-V DC power supply
Motor driver (for 5-V input)
(Example: R = 220 )
100.02
100.03
COM
Motor driver (for 5-V input)
5-V DC power supply
()
()
(+)
(+)
+
CP1L CPU Unit
CW pulse
output
(Pulse
output)
CCW pulse
output
(Direction
output)
114
CP/CPM1A-series Expansion I/O Unit Wiring Section 3-6
3-6 CP/CPM1A-series Expansion I/O Unit Wiring
CP-series Expansion I/O Units
For details on wiring Expansion Units, refer to SECTION 7 Using Expansion
Units and Expansion I/O Units.
40-point I/O Units (CP1W-40ED@@/CPM1A-40ED@@)
Input Wiring
Model Inputs Outputs
40-point I/O
Units
CP1W-40EDR
CPM1A-40EDR
24 24-VDC
inputs
16 relay outputs
CP1W-40EDT
CPM1A-40EDT
16 transistor outputs (sinking)
CP1W-40EDT1
CPM1A-40EDT1
16 transistor outputs (sourcing)
20-point I/O
Units
CP1W-20EDT1
CPM1A-20EDR1
12 24-VDC
inputs
8 relay outputs
CP1W-20EDT
CPM1A-20EDT
8 transistor outputs (sinking)
CP1W-20EDT1
CPM1A-20EDT1
8 transistor outputs (sourcing)
16-point
Output Units
CP1W-16ER
CPM1A-16ER
None 16 relay outputs
8-point Input
Units
CP1W-8ED
CPM1A-8ED
8 24-VDC
inputs
None
8-point Out-
put Units
CP1W-8ER
CPM1A-8ER
None 8 relay outputs
CP1W-8ET
CPM1A-8ET
8 transistor outputs (sinking)
CP1W-8ET1
CPM1A-8ET1
8 transistor outputs (sourcing)
+
+
CIO m+1 CIO m+2
24 VDC
NC NC COM 01 03 05 07 09 11 01 03 05 07 09 11
NC NC 00 02 04 06 08 10 00 02 04 06 08 10
CIO m+1 CIO m+2
115
CP/CPM1A-series Expansion I/O Unit Wiring Section 3-6
Output Wiring CP1W-40EDR/CPM1A-40EDR (Relay Outputs)
CP1W-40EDT/CPM1A-40EDT (Sinking Transistor Outputs)
CP1W-40EDT1/CP1A-40EDT1 (Sourcing Transistor Outputs)
NC 00 01 02 04 05 07 00 02 04 05 07
NC COM COM COM 03 COM 06 COM 01 03 COM 06
L L L L L L L L L L L
L L L L L
NC 00 01 02 04 05 07 00 02 04 05 07
NC COM COM COM 03 COM 06 COM 01 03 COM 06
L L L L L L L L L L L
4.5 to 30 VDC
L
L L L L
NC 00 01 02 04 05 07 00 02 04 05 07
NC COM COM COM 03 COM 06 COM 01 03 COM 06
L L L L L L L L L L L
4.5 to 30 VDC L
L L L L
116
CP/CPM1A-series Expansion I/O Unit Wiring Section 3-6
20-point I/O Units (CP1W-20ED@@/CPM1A-20ED@@)
Input Wiring CP1W-20ED@@/CPM1A-20ED@@
Output Wiring CP1W-20EDR1/CPM1A-20EDR1 (Relay Outputs)
CP1W-20EDT/CPM1A-20EDT (Sinking Transistor Outputs)
COM 01 03 05 07 09 11
NC 00 02 04 06 08 10
+
+
CIO m+1
CIO m+1
24 VDC
250 VAC
24 VDC
00 01 02 04 05 07
COM COM COM 03 COM 06
L L L L L L
L L
00 01 02 04 05 07
COM COM COM 03 COM 06
L L L L L L
L L
117
CP/CPM1A-series Expansion I/O Unit Wiring Section 3-6
CP1W-20EDT1/CP1A-20EDT1 (Sourcing Transistor Outputs)
16-point Output Units (CP1W-16ER/CPM1A-16ER)
Output Wiring CP1W-16ER/CPM1A-16ER (Relay Outputs)
8-point Input Units (CP1W-8ED/CPM1A-8E)
Input Wiring
00 01 02 04 05 07
COM COM COM 03 COM 06
L L L L L L
L L
Unit Upper Terminal Block
Unit Lower Terminal Block
NC COM COM COM 04 06 COM
NC 00 01 02 03 05 07
NC 00 02 04 05 07 NC
NC COM 01 03 COM 06 NC
L L L L L
L L
L L L L L L
L L L
+
+
+
+
+
L L
L L
Unit Upper Terminal Block Unit Lower Terminal Block
COM 01 03
00 02
04 06
COM 05 07
+
L L
4.5 to
30 VDC
+
L L L L
4.5 to
30 VDC
L L
119
SECTION 4
I/O Memory Allocation
This section describes the structure and functions of the I/O Memory Areas and Parameter Areas.
4-1 Overview of I/O Memory Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
4-1-1 I/O Memory Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
4-1-2 Overview of the Data Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
4-1-3 Clearing and Holding I/O Memory. . . . . . . . . . . . . . . . . . . . . . . . . . 125
4-1-4 Hot Start/Hot Stop Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
4-2 I/O Area and I/O Allocations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
4-2-1 I/O Bits Allocated to CPU Units . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
4-2-2 I/O Bits Allocated to Expansion I/O Units . . . . . . . . . . . . . . . . . . . . 129
4-2-3 I/O Allocation Examples with Expansion I/O Units . . . . . . . . . . . . 130
4-2-4 I/O Word Allocations to Expansion Units . . . . . . . . . . . . . . . . . . . . 132
4-3 1:1 Link Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
4-4 Serial PLC Link Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
4-5 Internal Work Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
4-6 Holding Area (H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
4-7 Auxiliary Area (A) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
4-8 TR (Temporary Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
4-9 Timers and Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
4-9-1 Timer Area (T) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
4-9-2 Counter Area (C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
4-9-3 Changing the BCD or Binary Mode for Counters and Timers . . . . . 140
4-10 Data Memory Area (D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
4-11 Index Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
4-11-1 Using Index Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
4-11-2 Precautions for Using Index Registers . . . . . . . . . . . . . . . . . . . . . . . 147
4-12 Data Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
4-13 Task Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
4-14 Condition Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
4-15 Clock Pulses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153
120
Overview of I/O Memory Area Section 4-1
4-1 Overview of I/O Memory Area
4-1-1 I/O Memory Area
This region of memory contains the data areas that can be accessed as
instruction operands. I/O memory includes the CIO Area, Work Area, Holding
Area, Auxiliary Area, DM Area, Timer Area, Counter Area, Task Flag Area,
Data Registers, Index Registers, Condition Flag Area, and Clock Pulse Area.
Note 1. A0 to A447 are read only and cannot be written. A448 to A959 are
read/write.
2. Bits can be manipulated using TST(350), TSTN(351), SET, SETB(532),
RSTB(533), and OUTB(534).
Instruction
I/O Memory
Area Size Range Task usage Allocation Bit
access
Word
access
Access Change
from CX-
Programmer
Forcing
bit
status
Read Write
CIO
Area
I/O Area Input
Area
1,600 bits
(100
words)
CIO 0 to
CIO 99
Shared by
all tasks
CP1L CPU
Units and CP-
series Expan-
sion Units or
Expansion I/O
Units
OK OK OK OK OK OK
Output
Area
1,600 bits
(100
words)
CIO 100
to CIO
199
OK OK OK OK OK OK
1:1 Link Area 1,024 bits
(64 words)
CIO 3000
to CIO
3063
1:1 Links OK OK OK OK OK OK
Serial PLC Link Area 1,440 bits
(90 words)
CIO 3100
to CIO
3189
Serial PLC
Links
OK OK OK OK OK OK
Work Area 14,400
bits (900
words)
CIO 3800
to CIO
6143
--- OK OK OK OK OK OK
Work Area 8,192 bits
(512
words)
W000 to
W511
--- OK OK OK OK OK OK
Holding Area 8,192 bits
(512
words)
H000 to
H511
(Note 6)
--- OK OK OK OK OK OK
Auxiliary Area 15,360
bits (960
words)
A000 to
A959
--- OK --- OK Note 1 Note 1 No
TR Area 16 bits TR0 to
TR15
--- OK OK OK OK No No
Data Memory Area 32,768
words
D00000
to
D32767
(Note 7)
--- No
(Note
2)
OK OK OK OK No
Timer Completion Flags 4,096 bits T0000 to
T4095
--- OK --- OK OK OK OK
Counter Completion Flags 4,096 bits C0000 to
C4095
--- OK --- OK OK OK OK
Timer PVs 4,096
words
T0000 to
T4095
--- --- OK OK OK OK No
(Note 4)
Counter PVs 4,096
words
C0000 to
C4095
--- --- OK OK OK OK No
(Note 5)
Task Flag Area 32 bits TK0 to
TK31
--- OK --- OK No No No
Index Registers 16 regis-
ters
IR0 to
IR15
Function
separately in
each task
(Note 3)
--- OK OK Indirect
address-
ing only
Specific
instruc-
tions only
No No
Data Registers 16 regis-
ters
DR0 to
DR15
--- No OK OK OK No No
121
Overview of I/O Memory Area Section 4-1
3. Index registers and data registers can be used either individually by task
or they can be shared by all the tasks (the default is individual use by task).
4. Timer PVs can be refreshed indirectly by force-setting/resetting the Timer
Completion Flags.
5. Counter PVs can be refreshed indirectly by force-setting/resetting the
Counter Completion Flags.
6. H512 to H1535 are used as a Function Block Holding Area. These words
can be used only for function block instances (internally allocated variable
area).
7. Data Memory Area for CPU Units with 14 or 20 I/O Points: D0 to D9999
and D32000 to D32767.
4-1-2 Overview of the Data Areas
CIO Area
It is not necessary to input the CIO acronym when specifying an address in
the CIO Area. The CIO Area is generally used for data exchanges, such as
I/O refreshing with PLC Units. Words that are not allocated to Units may be
used as work words and work bits in the program.
Note The parts of the CIO Area that are labelled not used may be used in pro-
gramming as work bits. In the future, however, unused CIO Area bits may be
used when expanding functions. Always use Work Area bits first.
I/O Area (Inputs: CIO 0 to CIO 99, Outputs: CIO 100 to CIO 199)
These words are allocated to built-in I/O terminals of CP1L CPU Units and
CP-series Expansion Units or Expansion I/O Units. Input words and output
bits that arent allocated may be used in programming.
Input Area
Output Area
Not used (see note).
1:1 Link Area
Work Area
CIO 0
Reserved for system.
CIO 3063
CIO 3800
CIO 1999
CIO 3189
CIO 6143
CIO 100
CIO 99
CIO 199
15
00
Bit
Not used (see note).
Not used (see note).
Not used (see note).
Serial PLC Link Area
CIO 3100
CIO 3000
Word
CIO 1900
122
Overview of I/O Memory Area Section 4-1
1:1 Link Area
These bits are used by the 1:1 Link Master and Slave. They are used for data
links between CP1L CPU Units and CPM2@ CPU Units.
Serial PLC Link Area
These words are allocated for use for data links (Serial PLC Links) with other
CP1L CPU Units or CP1H CPU Units. Addresses not used for Serial PLC
Links can be used in programming.
Internal I/O Area
These words can be used in programming; they cannot be used for I/O
exchange with external I/O terminals. Be sure to use the work words provided
in the Work Area before using words in the Internal I/O Area or other unused
words in the CIO Area. It is possible that these words will be assigned to new
functions in future versions of the CPU Units. The parts of the CIO Area that
are labelled Not used are functionally identical to the Internal I/O Area.
Work Area (W) Words in the Work Area can be used in programming; they cannot be used for
I/O exchange with external I/O terminals. Use this area for work words and
bits before any words in the CIO Area.
Note These words should be used first in programming be assigned to new func-
tions in future versions of CP1L CPU Units.
Holding Area (H) Words in the Holding Area can be used in programming. These words retain
their content when the PLC is turned ON or the operating mode is switched
between PROGRAM mode and RUN or MONITOR mode.
Note H512 to H1535 are used as a Function Block Holding Area. These words can
be used only for function block instances (internally allocated variable area).
These words cannot be specified as instruction operands in the user program.
15
W511
Word Bit
15
H511
Word Bit
123
Overview of I/O Memory Area Section 4-1
Auxiliary Area (A) These words are allocated to specific functions in the system.
Refer to Appendix C Auxiliary Area Allocations by Function and Appendix D
Auxiliary Area Allocations by Address for details on the Auxiliary Area.
Temporary Relay Area
(TR)
The TR Area contains bits that record the ON/OFF status of program
branches. Refer to the CP1H/CP1L Programming Manual for details.
Data Memory Area (D) The DM Area is a multi-purpose data area that is normally accessed only in
word-units. These words retain their content when the PLC is turned ON or
the operating mode is switched between PROGRAM mode and RUN or MON-
ITOR mode.
Timer Area (T) There are two parts to the Timer Area: the Timer Completion Flags and the
timer Present Values (PVs). Up to 4,096 timers with timer numbers T0 to
T4095 can be used.
Timer Completion Flags
These flags are read as individual bits. A Completion Flag is turned ON by the
system when the corresponding timer times out (i.e., when the set time
elapses).
Timer PVs
The PVs are read and written as words (16 bits). The PVs count up or down
as the timer operates.
Counter Area (C) There are two parts to the Counter Area: the Counter Completion Flags and
the Counter Present Values (PVs). Up to 4,096 counters with counter num-
bers C0 to C4095 can be used.
Counter Completion Flags
These flags are read as individual bits. A Completion Flag is turned ON by the
system when the corresponding counter counts out (i.e., when the set value is
reached).
A447
A448
A959
15
Read-write area
Read-only area
Word Bit
D0
D32767
15
0
Bit
D0
D32767
15
0
Bit
D9999
D32000
CPU Unit with 14 or 20 I/O Points CPU Unit with 30 or 40 I/O Points
124
Overview of I/O Memory Area Section 4-1
Counter PVs
The PVs are read and written as words (16 bits). The PVs count up or down
as the counter operates.
Condition Flags These flags include the Arithmetic Flags, such as the Error Flag and Equals
Flag, which indicate the results of instruction execution as well as the Always
ON and Always OFF Flags. The Condition Flags are specified with symbols
rather than addresses.
Clock Pulses The Clock Pulses are turned ON and OFF by the CPU Units internal timer.
These bits are specified with symbols rather than addresses.
Task Flag Area (TK) A Task Flag will be ON when the corresponding cyclic task is in executable
(RUN) status and OFF when the cyclic task hasnt been executed (INI) or is in
standby (WAIT) status.
Index Registers (IR) Index registers (IR0 to IR15) are used to store PLC memory addresses (i.e.,
absolute memory addresses in RAM) to indirectly address words in I/O mem-
ory. The Index Registers can be used separately in each task or they can be
shared by all tasks.
Data Registers (DR) Data registers (DR0 to DR15) are used together with Index Registers. When a
Data Register is input just before an Index Register, the content of the Data
Register is added to the PLC memory address in the Index Register to offset
that address. The Data Registers can be used separately in each task or they
can be shared by all tasks.
125
Overview of I/O Memory Area Section 4-1
4-1-3 Clearing and Holding I/O Memory
Note 1. Mode changed from PROGRAM to RUN/MONITOR or vice-versa.
2. The PLC Setups IOM Hold Bit Status at Startup setting determines wheth-
er the IOM Hold Bits status is held or cleared when the PLC is turned ON.
4-1-4 Hot Start/Hot Stop Functions
Operating Mode Changes
Hot Start
Turn ON the IOM Hold Bit to retain all data* in I/O memory when the CPU Unit
is switched from PROGRAM mode to RUN/MONITOR mode to start program
execution.
Hot Stop
When the IOM Hold Bit is ON, all data* in I/O memory will also be retained
when the CPU Unit is switched from RUN or MONITOR mode to PROGRAM
mode to stop program execution.
Note *The following areas of I/O memory will be cleared during mode changes
(between PROGRAM and RUN/MONITOR) unless the IOM Hold Bit is ON:
the CIO Area (I/O Area, Data Link Area, CPU Bus Unit Area, Special I/O Unit
Area, DeviceNet (CompoBus/D) Area, and Internal I/O Areas), Work Area,
Timer Completion Flags, and Timer PVs.
Area
Mode changed
1 Fatal error generated
PLC power turned ON
Execution of FALS Other fatal errors PLC Setup set to
clear IOM Hold Bit
status
2
PLC Setup set to
hold IOM Hold Bit
status
2
IOM Hold
Bit OFF
IOM Hold
Bit ON
IOM Hold
Bit OFF
IOM Hold
Bit ON
IOM Hold
Bit OFF
IOM Hold
Bit ON
IOM Hold
Bit OFF
IOM Hold
Bit ON
IOM Hold
Bit OFF
IOM Hold
Bit ON
CIO
Area
I/O Area Cleared Retained Retained Retained Cleared Retained Cleared Cleared Cleared Retained
Serial PC Link Area
Internal I/O Area
Work Area (W) Cleared Retained Retained Retained Cleared Retained Cleared Cleared Cleared Retained
Holding Area (H) Retained Retained Retained Retained Retained Retained Retained Retained Retained Retained
Auxiliary Area (A) Status treatment depends on address.
Data Memory Area (D) Retained Retained Retained Retained Retained Retained Retained Retained Retained Retained
Timer Completion Flags (T) Cleared Retained Retained Retained Cleared Retained Cleared Cleared Cleared Retained
Timer PVs (T) Cleared Retained Retained Retained Cleared Retained Cleared Cleared Cleared Retained
Counter Completion Flags (C) Retained Retained Retained Retained Retained Retained Retained Retained Retained Retained
Counter PVs (C) Retained Retained Retained Retained Retained Retained Retained Retained Retained Retained
Task Flags (TK) Cleared Cleared Retained Retained Cleared Cleared Cleared Cleared Cleared Cleared
Index Registers (IR) Cleared Retained Retained Retained Cleared Retained Cleared Cleared Cleared Retained
Data Registers (DR) Cleared Retained Retained Retained Cleared Retained Cleared Cleared Cleared Retained
PROGRAM
Retain
I/O memory
CIO and
other areas
MONITOR or RUN
PROGRAM
Retain
MONITOR or RUN I/O memory
CIO and
other areas
126
Overview of I/O Memory Area Section 4-1
Auxiliary Area Flags and Words
When the IOM Hold Bit is ON, all outputs from Output Units will be maintained
when program execution stops. When the program starts again, outputs will
have the same status that they had before the program was stopped and
instructions will be executed. (When the IOM Hold Bit is OFF, instructions will
be executed after the outputs have been cleared.)
PLC Power ON In order for all data* in I/O memory to be retained when the PLC is turned ON,
the IOM Hold Bit must be ON and it must be protected in the PLC Setup using
the IOM Hold Bit Status at Startup parameter.
Auxiliary Area Flags and Words
PLC Setup
Name Address Description
IOM Hold Bit A500.12 Specifies whether the I/O memory will be retained or not
when the CPU Unit operating mode is changed
(between PROGRAM and RUN/MONITOR) or when the
power is cycled.
OFF: I/O memory is cleared to 0 when the operating
mode is changed.
ON: I/O memory is retained when the operating mode
is changed between PROGRAM and RUN or
MONITOR.
Name Address Description
IOM Hold Bit A500.12 Specifies whether the I/O memory will be retained or
not when the CPU Unit operating mode is changed
(between PROGRAM and RUN/MONITOR) or when
the power is cycled.
OFF: I/O memory is cleared to 0 when the operating
mode is changed.
ON: I/O memory is retained when the operating
mode is changed between PROGRAM and
RUN or MONITOR.
Name Description Setting Default
IOM Hold
Bit Status
at Startup
To retain all data in I/O
memory when the PLC
is turned ON, set the
IOM Hold Bit at startup
parameter to hold the
status of the I/O Hold Bit.
OFF: The IOM Hold Bit is cleared
to 0 when power is cycled.
ON: The status of the IOM Hold
Bit is retained when power is
cycled.
OFF
(Cleared)
Retained
Power ON
I/O memory
CIO and
other areas
127
I/O Area and I/O Allocations Section 4-2
4-2 I/O Area and I/O Allocations
Input Bits: CIO 0.00 to CIO 99.15 (100 words)
Output Bits: CIO 100.00 to CIO 199.15 (100 words)
The starting words for inputs and outputs are predetermined for CP1L CPU
Unit. Input bits in CIO 0 and CIO 1 and output bits in CIO 100 and CIO 101
are automatically allocated to the built-in I/O on the CPU Unit. CP-series
Expansion Units and CP-series Expansion I/O Units are automatically allo-
cated input bits in words starting from CIO 2 and output bits in words starting
from CIO 102.
Allocated Words and Number of Expansion Units and Expansion I/O
Units
For example, with a CPU Unit with 40 I/O points, the input bits in CIO 0 and
CIO 1 and the outputs bits in CIO 100 and CIO 101 would be allocated to the
built-in I/O of the CPU Unit. Input bits in CIO 2 and higher and outputs bits in
CIO 102 and higher would be automatically allocated in order to any Expan-
sion Units or Expansion I/O Units connected to the CPU Unit.
When the power to the CPU Unit is turned ON, the CPU Unit checks for any
Expansion Units and Expansion I/O Units connected to it and automatically
allocates I/O bits. If the order in which the Units are connected is changed, the
the bits used in the ladder program will no longer match the bits allocated to
the actual Units. Always review the ladder program whenever changing the
order in which Units are connected.
4-2-1 I/O Bits Allocated to CPU Units
CPU Unit with 14 I/O Points
CPU Unit Allocated words Number of
Expansion Units
and Expansion I/O
Units connected
Input bits Output bits
CPU Unit with
14 I/O points
CIO 0 CIO 100 1
CPU Unit with
20 I/O points
CIO 0 CIO 100 1
CPU Unit with
30 I/O points
CIO 0 and CIO 1 CIO 100 and CIO 101 3
CPU Unit with
40 I/O points
CIO 0 and CIO 1 CIO 100 and CIO 101 3
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Output bits
Input bits
8 inputs
CIO 0
(CIO 0. 00 to CIO 0.07)
CIO 100
(CIO 100. 00 to CIO 100.05)
6 outputs
CIO 0
Do not use.
Can be used as work bits.
8 input bits
6 output bits
CIO 100
128
I/O Area and I/O Allocations Section 4-2
CPU Unit with 20 I/O Points
CPU Unit with 30 I/O Points
CPU Unit with 40 I/O Points
For a CPU Unit with 40 I/O points (shown above), a total of 24 input bits are
allocated to the input terminal block. The bits that are allocated are input bits
CIO 0.00 to CIO 0.11 (i.e., bits 00 to 11 in CIO 0) and input bits CIO 1.00 to
CIO 1.11 (i.e., bits 00 to 11 in CIO 1).
In addition, a total of 16 output bits are allocated to the output terminal block.
The bits that are allocated are output bits CIO 100.00 to CIO 100.07 (i.e., bits
00 to 07 in CIO 0) and output bits CIO 101.00 to CIO 101.07 (i.e., bits 00 to 07
in CIO 1).
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
12 inputs bits
8 output bits
8 outputs
CIO 0
(CIO 0.00 to CIO 0.11)
CIO 100
(CIO 100.00 to CIO 100.07)
Input bits
Output bits
CIO 0
CIO 100
12 inputs
Do not use.
Can be used as work bits.
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
18 inputs bits
12 output bits
8 outputs
CIO 0 (CIO 0.00 to CIO 0.11)
CIO 1 (CIO 1.00 to CIO 1.05)
CIO 100 (CIO 100.00 to CIO 100.07)
CIO 101 (CIO 101.00 to CIO 101.03)
Input bits
Output bits
CIO 0
CIO 100
18 inputs
Do not use.
Can be used as work bits.
CIO 1
CIO 101
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
24 inputs bits
16 output bits
16 outputs
CIO 0 (CIO 0.00 to CIO 0.11)
CIO 1 (CIO 1.00 to CIO 1.11)
CIO 100 (CIO 100.00 to CIO 100.07)
CIO 101 (CIO 101.00 to CIO 101.07)
Input bits
Output bits
CIO 0
CIO 100
24 inputs
Do not use.
Can be used as work bits.
CIO 1
CIO 101
129
I/O Area and I/O Allocations Section 4-2
The upper bits (bits 12 to 15) not used in the input words cannot be used as
work bits. Only the bits not used in the output words can be used as work bits.
4-2-2 I/O Bits Allocated to Expansion I/O Units
There are Expansion I/O Units for expanding inputs, for expanding outputs,
and for expanding both input and outputs. I/O bits starting from bit 00 in the
next word after the word allocated to the previous Expansion Unit, Expansion
I/O Unit, or CPU Unit are automatically allocated. This word is indicated as
CIO m for input words and as CIO n for output words.
I/O Bit Addresses
Units 8 Input Points (CP1W-8ED/CPM1A-8ED)
Eight input bits are allocated in one word (bits 00 to 07 in CIO m).
Only one word (8 bits) is allocated to an 8-input Expansion Input Unit. No out-
put words are allocated. Input bits 08 to 15 are always cleared by the system
and cannot be used as work bits.
Units with 8 Output Points (CP1W-8E@@/CPM1A-8E@@)
Eight output bits are allocated in one word (bits 00 to 07 in CIO n+1).
Only one word (8 bits) is allocated to an 8-output Expansion Output Unit. No
input words are allocated. Output bits 08 to 15 can be used as work bits.
Unit Input bits Output bits
No. of
bits
No. of
words
Addresses No. of
bits
No. of
words
Addresses
Unit with 8 inputs CP1W-8ED
CPM1A-8ED
8 bits 1 word CIO m (bits 00 to 07) --- None None
Unit with
8 outputs
Relays CP1W-8ER
CPM1A-8ER
--- None None 8 bits 1 word CIO n (bits 00 to 07)
Sinking
transistors
CP1W-8ET
CPM1A-8ET
--- None None 8 bits 1 word CIO n (bits 00 to 07)
Sourcing
transistors
CP1W-8ET1
CPM1A-8ET1
--- None None 8 bits 1 word CIO n (bits 00 to 07)
Unit with 16 relay out-
puts
CP1W-16ER
CPM1A-16ER
--- None None 16 bits 2 words CIO n (bits 00 to 07)
CIO n+1 (bits 00 to 07)
Unit with
20 I/O
Relays CP1W-20EDR1
CPM1A-20EDR1
12 bits 1 word CIO m (bits 00 to 11) 8 bits 1 word CIO n (bits 00 to 07)
Sinking
transistors
CP1W-20EDT
CPM1A-20EDT
12 bits 1 word CIO m (bits 00 to 11) 8 bits 1 word CIO n (bits 00 to 07)
Sourcing
transistors
CP1W-20EDT1
CPM1A-20EDT1
12 bits 1 word CIO m (bits 00 to 11) 8 bits 1 word CIO n (bits 00 to 07)
Unit with
40 I/O
Relays CP1W-40EDR
CPM1A-40EDR
24 bits 2 words CIO m (bits 00 to 11)
CIO m+1 (bits 00 to 11)
16 bits 2 words CIO n (bits 00 to 07)
CIO n+1 (bits 00 to 07)
Sinking
transistors
CP1W-40EDT
CPM1A-40EDT
24 bits 2 words CIO m (bits 00 to 11)
CIO m+1 (bits 00 to 11)
16 bits 2 words CIO n (bits 00 to 07)
CIO n+1 (bits 00 to 07)
Sourcing
transistors
CP1W-40EDT1
CPM1A-40EDT1
24 bits 2 words CIO m (bits 00 to 11)
CIO m+1 (bits 00 to 11)
16 bits 2 words CIO n (bits 00 to 07)
CIO n+1 (bits 00 to 07)
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
m
Do not use. Inputs
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
n
Can be used as work bits.
Outputs
130
I/O Area and I/O Allocations Section 4-2
Units with 8 Output Points (CP1W-16ER/CPM1A-16ER)
Sixteen output bits in two words are allocated in one word (bits 00 to 07 in CIO
n and bits 00 to 07 in CIO n+1). Eight output bits are allocated in one word
(bits 00 to 07 in CIO n+1).
Two words (16 bits) are allocated to a 16-output Expansion Output Unit. No
input words are allocated. Output bits 08 to 15 can be used as work bits.
Units with 20 I/O Points (CPM1A-20ED@@/20EDT/20ED@@)
Twelve input bits are allocated in one word (bits 00 to 11 in CIO m). Eight out-
put bits are allocated in one word (bits 00 to 07 in CIO n).
One input word (12 bits) and one output word (8 bits) are allocated for a 20-
point Expansion I/O Unit.
Input bits 12 to 15 are always cleared by the system and cannot be used as
work bits. Output bits 08 to 15, however, can be used as work bits.
Units with 40 I/O Points (CPM1A-40ED@@/40EDT/40ED@@)
Twenty-four input bits in two words are allocated (bits 00 to 11 in CIO m and
bits 00 to 11 CIO m+1). Sixteen output bits in two words are allocated (bits 00
to 07 in CIO n and bits 00 to 07 in CIO n+1).
Two input words (24 bits) and two output words (16 bits) are allocated to a 40-
point Expansion I/O Unit. Input bits 12 to 15 cannot be used as work bits. Out-
put bits 08 to 15, however, can be used as work bits.
4-2-3 I/O Allocation Examples with Expansion I/O Units
Example 1: Maximum I/O Capacity
The configuration shown in this example is for the maximum I/O capacity. It
consists of a CPU Unit with 40 I/O points and three Expansion I/O Units, each
with 40 I/O points. Up to three Expansion I/O Units can be connected to a
CPU Unit with either 30 or 40 I/O points.
When Expansion I/O Units with 40 I/O points are connected, control is possi-
ble for up to 160 I/O points, including 96 inputs and 64 outputs.
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
n
n+1
Output
bits
Can be used as work bits.
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
n
Do not use.
Can be used as work bits.
Output bits
Input bits m
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
m
m+1
Do not use.
n
n+1
Can be used as work bits.
Input
bits
Output
bits
131
I/O Area and I/O Allocations Section 4-2
Example 2: Connecting Expansion I/O Units with Only Inputs or Only
Outputs
If Expansion I/O Units with only inputs or only outputs are connected, the
input or output word not used by an Expansion I/O Unit is allocated to the next
Unit that requires it.
24 input points
16 output points
24 input points
16 output points
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
CIO 0
CIO 1
CIO 2
CIO 3
CIO 4
CIO 5
CIO 6
CIO 7
Do not use.
Can be used as work bits.
CIO 0.00 to CIO 0.11
CIO 1.00 to CIO 1.11
CIO 2.00 to CIO 2.11
CIO 3.00 to CIO 3.11
CIO 4.00 to CIO 4.11
CIO 5.00 to CIO 5.11
CIO 6.00 to CIO 6.11
CIO 7.00 to CIO 7.11
CIO 106.00 to CIO 106.07
CIO 107.00 to CIO 107.07
CIO 104.00 to CIO 106.07
CIO 105.00 to CIO 105.07
24 input points 24 input points
16 output points 16 output points
CIO 102.00 to CIO 102.07
CIO 103.00 to CIO 103.07
CIO 100.00 to CIO 100.07
CIO 101.00 to CIO 101.07
CPU Unit
(40 I/O points)
Three Expansion I/O Units, each with 40 I/O points
CPU Unit with 40 I/O points
First Expansion I/O Unit with 40 I/O points
Second Expansion I/O Unit with 40 I/O points
Third Expansion I/O Unit with 40 I/O points
CPU Unit with 40 I/O points
First Expansion I/O Unit with 40 I/O points
Second Expansion I/O Unit with 40 I/O points
Third Expansion I/O Unit with 40 I/O points
CIO 100
CIO 101
CIO 102
CIO 103
CIO 104
CIO 105
CIO 106
CIO 107
Input bits
Input bits
Output bits
Output bits
Bit
104.00 104.07
Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
CIO 0
CIO 1
CIO 2
CIO 3
CIO 100
CIO 101
CIO 102
CIO 103
CIO 104
Do not use.
Can be used as work bits.
18 input points
12 output points
CPU Unit
(30 I/O points)
8 input points
CIO 0.00 to CIO 0.11
CIO 1.00 to CIO 1.05
CIO 100.00 to CIO 100.07
CIO 101.00 to CIO 101.03
CIO 2.00 to CIO 2.07
CIO 102.00 to CIO 102.07
CIO 103.00 to CIO 103.07
No outputs
16 output points
No inputs
12 input points
8 output points
CIO 3.00 to CIO 3.11
CIO 104.00 to CIO 104.07
First Expansion I/O Unit:
Unit with 8 inputs
Second Expansion I/O Unit:
Unit with 16 outputs
Third Expansion I/O Unit:
Unit with 20 I/O
CPU Unit with 30 I/O points
First Expansion I/O Unit: Unit with 8 inputs
Third Expansion I/O Unit: Unit with 20 I/O
CPU Unit with 30 I/O
points
Second Expansion I/O Unit:
Unit with 16 outputs
Third Expansion I/O Unit: Unit with 20 I/O
Input bits
Input bits
Output bits
Output bits
132
I/O Area and I/O Allocations Section 4-2
4-2-4 I/O Word Allocations to Expansion Units
m: Indicates the next input word after the input word allocated to the
Expansion Unit, Expansion I/O Unit, or CPU Unit to the left of the cur-
rent Unit.
n: Indicates the next output word after the output word allocated to the
Expansion Unit, Expansion I/O Unit, or CPU Unit to the left of the cur-
rent Unit.
Unit Input words Output words
Analog I/O Units CP1W-MAD11
CPM1A-MAD11
CPM1A-MAD01
2 words CIO m to CIO m+1 1 word CIO n
Analog Input Units CP1W-AD041 4 words CIO m to CIO m+3 1 word CIO n
CPM1A-AD041 2 words CIO n to CIO n+1
Analog Output Units CP1W-DA041
CPM1A-DA041
None --- 4 words CIO n to CIO n+3
Temperature Sensor Units CP1W-TS001
CPM1A-TS001
2 words CIO m to CIO m+1 None ---
CP1W-TS002
CPM1A-TS002
4 words CIO m to CIO m+3 None ---
CP1W-TS101
CPM1A-TS101
2 words CIO m to CIO m+1 None ---
CP1W-TS102
CPM1A-TS102
4 words CIO m to CIO m+3 None ---
DeviceNet I/O Link Units CPM1A-DRT21 2 words CIO m to CIO m+1 2 words CIO n to CIO n+1
CompoBus/S I/O Link
Units
CP1W-SRT21
CPM1A-SRT21
1 word CIO m 1 word CIO n
133
1:1 Link Area Section 4-3
I/O Word Allocations to Expansion Units
CPU Unit with 40 I/O Points + TS002 + DA041 + 40ED
4-3 1:1 Link Area
The 1:1 Link Area contains 1,024 bits (64 words) with addresses ranging from
CIO 3000.00 to CIO 3063.15 (CIO 3000 to CIO 3063).
These bits are used to create 1:1 links (i.e., shared data link areas) by con-
necting the RS-232C ports of two PLCs, including the CP1L, CPM1A,
CPM2A, CPM2B, CPM2C, SRM1(-V2), CQM1H, and C200HX/HG/HE(-Z).
Refer to 6-3-6 1:1 Links for information on using 1:1 links.
DA041
TS002
Bit 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
CIO 0
CIO 1
CIO 2
CIO 3
CIO 4
CIO 5
CIO 6
CIO 7
CIO 100
CIO 101
CIO 102
CIO 103
CIO 104
CIO 105
CIO 106
CIO 107
Do not use.
Can be used as work bits.
Can be used as work bits.
Do not use.
CIO 0.00 to CIO 0.11
CIO 1.00 to CIO 1.11
CIO 100.00 to CIO 100.07
CIO 101.00 to CIO 101.07
CPU Unit
(40 I/O points)
CIO 2 to CIO 5
No outputs
No inputs
CIO 2 to CIO 6.11
CIO 7 to CIO 7.11
24 input points
16 output points
24 input points
16 output points
CIO 102 to CIO 105
CIO 106.00 to CIO 106.07
CIO 107.00 to CIO 107.07
CPU Unit with 40 I/O points
First Unit: Temperature Sensor Unit
Third Unit: Expansion I/O Unit with 40
CPU Unit with 40 I/O points
Second Unit: Analog Output Unit
Third Unit: Expansion I/O Unit with 40 I/O points
First Unit:
Temperature Sensor Unit
Second Unit:
Analog Input Unit
Third Unit:
Expansion I/O Unit with 40 I/O points
Input bits
Input bits
Output bits
Output bits
RS-232C
CIO 3000
CIO 3031
CIO 3032
CIO 3063
Master
Slave
1:1 Links
CIO 3000
CIO 3031
CIO 3032
CIO 3063
Write words
Write words
Read words
Read words
CP1L,
CPM1A,
CPM2A,
CPM2B,
CPM2C,
SRM1(-V2),
CQM1H,
C200HX/HG/HE(-Z),
Other C-series PLCs
134
Serial PLC Link Area Section 4-4
4-4 Serial PLC Link Area
The Serial PLC Link Area contains 1,440 bits (90 words) with addresses rang-
ing from CIO 3100.00 to CIO 3189.15 (CIO 3100 to CIO 3189).
Words in the Serial PLC Link Area can be used for data links with other PLCs.
Serial PLC Links exchange data among CPU Units via the built-in RS-232C
ports, with no need for special programming.
The Serial PLC Link allocations are set automatically by means of the follow-
ing PLC Setup in the Polling Unit.
Serial PLC Link Mode
Number of Serial PLC Link transfer words
Maximum Serial PLC Link unit number
Addresses not used for Serial PLC Links can be used in programming, the
same as the Work Area.
Forcing Bit Status Bits in the Serial PLC Link Area can be force-set and force-reset.
Serial PLC Link Area
Initialization
The contents of the Serial PLC Link Area will be cleared in the following
cases:
1. When the operating mode is changed from PROGRAM mode to
RUN/MONITOR mode or vice-versa and the IOM Hold Bit is OFF
2. When the power is cycled
3. When the Serial PLC Link Area is cleared from the CX-Programmer
4. When PLC operation is stopped when a fatal error other than an
FALS(007) error occurs (The contents of the Serial PLC Link Area will be
retained when FALS(007) is executed.)
4-5 Internal Work Area
The Internal Work Area contains 512 words with addresses ranging from W0
to W511. These words can be used in programming as work words.
There are unused words in the CIO Area (CIO 3800 to CIO 6143) that can
also be used in the program, but use any available words in the Work Area
first because the unused words in the CIO Area may be allocated to other
applications when functions are expanded.
Forcing Bit Status Bits in the Work Area can be force-set and force-reset.
Work Area Initialization The contents of the Work Area will be cleared in the following cases:
1. When the operating mode is changed from PROGRAM to RUN or MONI-
TOR mode or vice-versa and the IOM Hold Bit is OFF
2. When the power is cycled
3. When the Work Area is cleared from the CX-Programmer.
CP1L CPU
Unit
CP1L CPU
Unit
CJ1M CPU
Unit
RS-232C
port
RS-232C
port
Serial PLC Link
Serial PLC
Link Area
RS-232C
port
135
Holding Area (H) Section 4-6
4. When PLC operation is stopped when a fatal error other than an
FALS(007) error occurs. (The contents of the Work Area will be retained
when FALS(007) is executed.)
4-6 Holding Area (H)
The Holding Area contains 512 words with addresses ranging from H0 to
H511 (bits H0.00 to H511.15). These words can be used in programming.
Holding Area Initialization Data in the Holding Area is not cleared when the power is cycled or the PLCs
operating mode is changed from PROGRAM mode to RUN or MONITOR
mode or vice-versa.
A Holding Area bit will be cleared if it is programmed between IL(002) and
ILC(003) and the execution condition for IL(002) is OFF. To keep a bit ON
even when the execution condition for IL(002) is OFF, turn ON the bit with the
SET instruction just before IL(002).
Self-maintaining Bits When a self-maintaining bit is programmed with a Holding Area bit, the self-
maintaining bit wont be cleared even when the power is reset.
Note 1. If a Holding Area bit is not used for the self-maintaining bit, the bit will be
turned OFF and the self-maintaining bit will be cleared when the power is
reset.
2. If a Holding Area bit is used but not programmed as a self-maintaining bit
as in the following diagram, the bit will be turned OFF by execution condi-
tion A when the power is reset.
3. H512 to H1535 are used as a Function Block Holding Area. These words
can be used only for function block instances (internally allocated variable
area). These words cannot be specified as instruction operands in the user
program.
Precautions When a Holding Area bit is used in a KEEP(011) instruction, never use a nor-
mally closed condition for the reset input if the input device uses an AC power
supply. When the power supply goes OFF or is temporarily interrupted, the
input will go OFF before the PLCs internal power supply and the Holding Area
bit will be reset.
H0.00
H0.00
A
H0.00
Input
Unit
Set input
Reset input
H1.00
136
Auxiliary Area (A) Section 4-7
Instead, use a configuration like the one shown below.
There are no restrictions in the order of using bit address or in the number of
N.C. or N.O. conditions that can be programmed.
4-7 Auxiliary Area (A)
The Auxiliary Area contains 960 words with addresses ranging from A0 to
A959). These words are preassigned as flags and control bits to monitor and
control operation.
A0 through A447 are read-only, but A448 through A959 can be read or written
from the program or the CX-Programmer.
Refer to Appendix C Auxiliary Area Allocations by Function and Appendix D
Auxiliary Area Allocations by Address for Auxiliary Area functions.
Forcing Bit Status Read/write bits in the Auxiliary Area cannot be force-set and force-reset con-
tinuously.
4-8 TR (Temporary Relay) Area
The TR Area contains 16 bits with addresses ranging from TR0 to TR15.
These temporarily store the ON/OFF status of an instruction block for branch-
ing and are used only with mnemonics. TR bits are useful when there are sev-
eral output branches and interlocks cannot be used.
The TR bits can be used as many times as required and in any order required
as long as the same TR bit is not used twice in the same instruction block.
TR bits can be used only with the OUT and LD instructions. OUT instructions
(OUT TR0 to OUT TR15) store the ON OFF status of a branch point and LD
instructions recall the stored ON OFF status of the branch point.
Forcing Bit Status TR bits cannot be changed from the CX-Programmer.
Examples In this example, a TR bit is used when two outputs have been directly con-
nected to a branch point.
Input
Unit
Set input
Reset input
H1.00
LD
OR
OUT
AND
OUT
LD
AND
OUT
0.00
0.01
TR 0
0.02
0.03
TR 0
0.04
0.05
Instruction Operand
TR0 0.00
0.05 0.01
0.02
0.04
0.03
137
Timers and Counters Section 4-9
In this example, a TR bit is used when an output is connected to a branch
point without a separate execution condition.
Note A TR bit is not required when there are no execution conditions after the
branch point or there is an execution condition only in the last line of the
instruction block.
4-9 Timers and Counters
4-9-1 Timer Area (T)
The 4,096 timer numbers (T0000 to T4095) are shared by the TIM,
TIMX(550), TIMH(015), TIMHX(551), TMHH(540), TIMHHX(552), TTIM(087),
TTIMX(555), TIMW(813), TIMWX(816), TMHW(815), and TIMHWX(817)
instructions. Timer Completion Flags and present values (PVs) for these
instructions are accessed with the timer numbers.
The TIML(542), TIMLX(553), MTIM(543), and MTIMX(554) instructions do not
use timer numbers.
When a timer number is used in an operand that requires bit data, the timer
number accesses the Completion Flag of the timer. When a timer number is
used in an operand that requires word data, the timer number accesses the
PV of the timer. Timer Completion Flags can be used as often as necessary
as normally open and normally closed conditions and the values of timer PVs
can be read as normal word data.
The refresh method for timer PVs can be set from the CX-Programmer to
either BCD or binary.
Note It is not recommended to use the same timer number in two timer instructions
because the timers will not operate correctly if they are timing simultaneously.
(If two or more timer instructions use the same timer number, an error will be
generated during the program check, but the timers will operate as long as the
instructions are not executed in the same cycle.)
LD
OUT
AND
OUT
LD
OUT
0.00
TR 0
0.01
0.02
TR 0
0.03
Instruction
Operand
TR0 0.00 0.01 0.02
0.03
LD 0.00
OUT 0.01
AND
OUT
0.02
0.03
LD 0.00
OUT
OUT
0.01
0.02
Instruction Operand
Instruction Operand
0.00 0.01
0.02
0.00 0.01
0.03 0.02
138
Timers and Counters Section 4-9
The following table shows when timers will be reset or maintained.
Note 1. If the IOM Hold Bit (A500.12) is ON, the PV and Completion Flag will be
retained when a fatal error occurs (including execution of FALS instruc-
tions) or the operating mode is changed from PROGRAM mode to RUN or
MONITOR mode or vice-versa. The PV and Completion Flag will be
cleared when power is cycled.
2. If the IOM Hold Bit (A50012) is ON and the PLC Setups IOM Hold Bit Sta-
tus at Startup setting is set to protect the IOM Hold Bit, the PV and Com-
pletion Flag will be retained when the PLCs power is cycled.
3. Since the TIML(542), TIMLX(553), MTIM(543), and MTIMX(554) instruc-
tions do not use timer numbers, they are reset under different conditions.
Refer to the descriptions of these instructions for details.
4. The present value of TIM, TIMX(550), TIMH(015), TIMHX(551), TM-
HH(540), TMHHX(552), TIMW(813), TIMWX(816), TMHW(815) and TMH-
WX(817) timers programmed with timer numbers 0000 to 2047 will be
updated even when jumped between JMP and JME instructions or when
in a task that is on standby. The present value of timers programmed with
timer numbers 2048 to 4095 will be held when jumped or when in a task
that is on standby.
Forcing Bit Status Timer Completion Flags can be force-set and force-reset.
Timer PVs cannot be force-set or force-reset, although the PVs can be
refreshed indirectly by force-setting/resetting the Completion Flag.
Restrictions There are no restrictions in the order of using timer numbers or in the number
of N.C. or N.O. conditions that can be programmed. Timer PVs can be read as
word data and used in programming.
4-9-2 Counter Area (C)
The 4,096 counter numbers (C0000 to C4095) are shared by the CNT,
CNTX(546), CNTR(012), CNTRX(548), CNTW(814), and CNTWX(818)
instructions. Counter Completion Flags and present values (PVs) for these
instructions are accessed with the counter numbers.
When a counter number is used in an operand that requires bit data, the
counter number accesses the Completion Flag of the counter. When a
counter number is used in an operand that requires word data, the counter
number accesses the PV of the counter.
Instruction name Effect on PV and Completion Flag Operation in
Jumps and Interlocks
Mode change
1
PLC start-up
2
CNR(545)/CN
RX(547)
Jumps
(JMP-JME) or
Tasks on
standby
4
Interlocks
(IL-ILC)
TIMER: TIM/TIMX(550) PV 0
Flag OFF
PV 0
Flag OFF
PV 9999
Flag OFF
PVs refreshed in
operating timers
PV SV
(Reset to SV.)
Flag OFF
HIGH-SPEED TIMER:
TIMH(015)/TIMHX(551)
ONE-MS TIMER:
TMHH(540)/TMHHX(552)
ACCUMULATIVE TIMER:
TTIM(087)/TTIMX(555)
PV Maintained PV Maintained
TIMER WAIT:
TIMW(813)TIMWX(816)
PVs refreshed in
operating timers
---
HIGH-SPEED TIMER WAIT:
TMHW(815)/TMHWX(817)
---
139
Timers and Counters Section 4-9
The refresh method for counter PVs can be set from the CX-Programmer to
either BCD or binary. (Refer to the previous page).
It is not recommended to use the same counter number in two counter
instructions because the counters will not operate correctly if they are count-
ing simultaneously. If two or more counter instructions use the same counter
number, an error will be generated during the program check, but the counters
will operate as long as the instructions are not executed in the same cycle.
The following table shows when counter PVs and Completion Flags will be
reset.
Forcing Bit Status Counter Completion Flags can be force-set and force-reset.
Counter PVs cannot be force-set or force-reset, although the PVs can be
refreshed indirectly by force-setting/resetting the Completion Flag.
Restrictions There are no restrictions in the order of using counter numbers or in the num-
ber of N.C. or N.O. conditions that can be programmed. Counter PVs can be
read as word data and used in programming.
Instruction name Effect on PV and Completion Flag
Reset Mode
change
PLC startup Reset Input CNR(545)/CN
RX(547)
Interlocks
(IL-ILC)
COUNTER:
CNT/CNTX(546)
PV 0
Flag OFF
Maintained Maintained Reset Reset Maintained
REVERSIBLE
COUNTER:
CNTR(012)/CNTRX(548)
COUNTER WAIT:
CNTW(814)/CNTWX(818)
140
Timers and Counters Section 4-9
4-9-3 Changing the BCD or Binary Mode for Counters and Timers
The refresh method for set values and present values for timers and counters
can be changed from BCD mode (0000 to 9999) to binary method (0000 to
FFFF) using the CX-Programmer
This setting is made in common for all tasks for all timers and counters.
1. Right-click New PLC in the project tree and select Properties.
2. Select the Execute Timer/Counter as Binary Option in the PLC Properties
Dialog Box. The timers and counters for all tasks will be executed in binary
mode.
141
Data Memory Area (D) Section 4-10
4-10 Data Memory Area (D)
CPU Units with 30 or 40 I/O points: D0 to D32767
CPU Units with 14 or 20 I/O points: D0 to D9999 and D32000 to D32767
This data area is used for general data storage and manipulation and is
accessible only by word.
Data in the DM Area is retained when the PLCs power is cycled or the PLCs
operating mode is changed from PROGRAM mode to RUN/MONITOR mode
or vice-versa.
Although bits in the DM Area cannot be accessed directly, the status of these
bits can be accessed with the BIT TEST instructions, TST(350) and
TSTN(351).
Forcing Bit Status Bits in the DM Area cannot be force-set or force-reset.
Indirect Addressing Words in the DM Area can be indirectly addressed in two ways: binary-mode
and BCD-mode.
Binary-mode Addressing (@D)
When a @ character is input before a DM address, the content of that DM
word is treated as binary and the instruction will operate on the DM word at
that binary address. The entire DM Area (D0 to D32767) can be indirectly
addressed with hexadecimal values 0000 to 7FFF.
BCD-mode Addressing (*D)
When a * character is input before a DM address, the content of that DM
word is treated as BCD and the instruction will operate on the DM word at that
BCD address. Only part of the DM Area (D0 to D09999) can be indirectly
addressed with BCD values 0000 to 9999.
Note (1) If an address between D10000 and D31999 is specified as an operand
for a CPU Unit with 14 or 20 I/O Points, an illegal area access error will
occur.
D32200
D32000
D32399
D9999
D0
D32199
D32399
D32200
D32199
D32767
D32400
D0
D32767
D32400
D10000
D31999
CPU Unit with 30 or 40 I/O Points
CPU Unit with 14 or 20 I/O Points
DM Fixed Allocation
Words for Modbus-RTU
Easy Master
DM Fixed Allocation
Words for Modbus-RTU
Easy Master
Do not use.
@D100
D256 0100
COM
05 07
CIO 100
CIO 101
CIO 100
CIO 101
PL1: OK indicator
PL2: NG indicator
Bottom
terminal block
PL1 PL2
COM COM COM
COM COM
03
02
04 06 01 02 03 04 00
05 07
Word Setting Function
D10000 7430 Rightmost 4 digits of range 1 lower limit Lower limit value:
30,000
D10001 0000 Leftmost 4 digits of range 1 lower limit
D10002 765C Rightmost 4 digits of range 1 upper limit Upper limit value:
30,300
D10003 0000 Leftmost 4 digits of range 1 upper limit
D10004 000A Range 1 interrupt task number = 10 (A hex)
D10005 to
D10008
All 0000 Range 2 lower and upper limit values
(Not used and dont need to be set.)
Range 2 settings
D10009 FFFF Disables range 2.
~
171
High-speed Counters Section 5-1
Creating the Ladder Program
Programming in Cyclic Task
Use CTBL(882) to start the comparison operation with high-speed counter 0
and interrupt task 10.
Programming in Interrupt Task 10
Create the processing performed by interrupt task 10.
5-1-8 Additional Capabilities and Restrictions
Restrictions on High-
speed Counter Inputs
The Phase-Z signal + Software reset method cannot be used when the
high speed counters are operating in Differential Phase or Pulse + Direc-
tion Input Modes and the origin search function is enabled for the pulse
output (in the PLC Setup). The Phase-Z signal + Software reset method
can be used when the high speed counters are operating in Incrementing
or Up/Down Input Modes.
When a high-speed counter is being used (enabled in the PLC Setup), the
input cannot be used as a general-purpose (normal) input, interrupt input,
or quick-response input.
D10014
D10019
D10024
D10029
D10034
FFFF Set the fifth word for ranges 3 to 7 (listed at left) to FFFF to dis-
able those ranges.
:
D10035 to
D10038
All 0000 Range 8 lower and upper limit values
(Not used and dont need to be set.)
Range 8 settings
D10039 FFFF Disables range 8.
Word Setting Function
@CTBL(882)
#0000
#0001
D10000
0.01
W0.00
A531.00
W0.00
W0.01
W0.01
A531.00 W0.00
Use high-speed counter 0.
First comparison table word
Register a range comparison table and
start comparison operation.
0.00 (Measurement start input)
W0.01
END(001)
100.00 (Pass inspection: PL1 indicator)
A274.00 (in range)
A274.00 (in range)
100.01 (Fail inspection: PL2 indicator)
172
High-speed Counters Section 5-1
Starting Interrupt Tasks based on Comparison Conditions
Data registered in advance in a comparison table can be compared with the
actual counter PVs during operation. The specified interrupt tasks (registered
in the table) will be started when the corresponding comparison condition is
met.
There are two comparison methods available: Target value comparison and
range comparison.
Use the CTBL(882) instruction to register the comparison table.
Use either the CTBL(882) instruction or INI(880) instruction to start the
comparison operation.
Use the INI(880) instruction to stop the comparison operation.
Target Value Comparison The specified interrupt task is executed when the high-speed counter PV
matches a target value registered in the table.
The comparison conditions (target values and counting directions) are
registered in the comparison table along with the corresponding interrupt
task number. The specified interrupt task will be executed when the high-
speed counter PV matches the registered target value.
Up to 48 target values (between 1 and 48) can be registered in the com-
parison table.
A different interrupt task can be registered for each target value.
The target value comparison is performed on all of the target values in the
table, regardless of the order in which the target values are registered.
If the PV is changed, the changed PV will be compared with the target
values in the table, even if the PV is changed while the target value com-
parison operation is in progress.
Restrictions
A comparison condition (target value and count direction) cannot appear in
the table more than once. An error will occur if a comparison condition is
specified two or more times.
Note When the count direction (incrementing/decrementing) changes at a PV that
matches a target value, the next target value cannot be matched in that direc-
tion.
No. 001 No. 015 No. 000 No. 020
High-speed counter PV
Comparison is
executed without
regard to the order
of the values in the
table.
Target value 1
Target value 2
Target value 3
Target value 4
Interrupt task that is started.
Time
Comparison table
Number of values = 4
Target value 1 (Incrementing)
Interrupt task = 000
Target value 2 (Incrementing)
Interrupt task = 001
Target value 3 (Decrementing)
Interrupt task = 020
Target value 4 (Incrementing)
Interrupt task = 015
173
High-speed Counters Section 5-1
Set the target values so that they do not occur at the peak or trough of count
value changes.
Range Comparison The specified interrupt task is executed when the high-speed counter PV is
within the range defined by the upper and lower limit values.
The comparison conditions (upper and lower limits of the range) are regis-
tered in the comparison table along with the corresponding interrupt task
number. The specified interrupt task will be executed once when the high-
speed counter PV is in the range (Lower limit PV Upper limit).
A total of 8 ranges (upper and lower limits) are registered in the compari-
son table.
The ranges can overlap.
A different interrupt task can be registered for each range.
The counter PV is compared with the 8 ranges once each cycle.
The interrupt task is executed just once when the comparison condition
goes from unmet to met.
Restrictions
When more than one comparison condition is met in a cycle, the first interrupt
task in the table will be executed in that cycle. The next interrupt task in the
table will be executed in the next cycle.
Note The range comparison table can be used without starting an interrupt task
when the comparison condition is met. The range comparison function can be
useful when you just want to know whether or not the high-speed counter PV
is within a particular range.
Use the Range Comparison Condition Met Flags to determine whether the
high-speed counter PV is within a registered range.
Pausing Input Signal Counting (Gate Function)
If the High-speed Counter Gate Bit is turned ON, the corresponding high-
speed counter will not count even if pulse inputs are received and the counter
PV will be maintained at its current value. Bits A53108 to A53111 are the
High-speed Counter Gate Bits for high-speed counters 0 to 3.
Target value 1
Target value 2
Target value 1
Target value 2
Match not recognized.
Match
Match
Match
No. 255 No. 000 No. 000 No. 255
High-speed counter PV
Comparison is executed
without regard to the
order of the ranges in
the table.
Upper limit 1
Lower limit 1
Upper limit 2
Lower limit 2
Interrupt task that is started.
Time
Comparison table
Upper limit 1
Lower limit 1
Interrupt task = 000
Upper limit 2
Lower limit 2
Interrupt task = 255
174
High-speed Counters Section 5-1
When the High-speed Counter Gate Bit is turned OFF again, the high-speed
counter will resume counting and the counter PV will be refreshed.
Restrictions The Gate Bit will be disabled if the high-speed counter's reset method is
set to Phase-Z signal + Software reset and the Reset Bit is ON (waiting
for the phase-Z input to reset the counter PV.)
High-speed Counter Frequency Measurement
This function measures the frequency of the high-speed counter (input
pulses.)
The input pulse frequency can be read by executing the PRV(881) instruction.
The measured frequency is output in 8-digit hexadecimal and expressed in
Hz. The frequency measurement function can be used with high-speed
counter 0 only.
The frequency can be measured while a high-speed counter 0 comparison
operation is in progress. Frequency measurement can be performed at the
same time as functions such as the high-speed counter and pulse output with-
out affecting the performance of those functions.
Procedure
1,2,3... 1. High-speed Counter Enable/Disable Setting (Required)
Select the Use high speed counter 0 Option in the PLC Setup.
2. Pulse Input Mode Setting (Required)
Set the High-speed Counter 0 Pulse Input Mode (Input Setting) in the PLC
Setup.
3. Counting Mode Setting (Required)
Set the High-speed Counter 0 Counting Mode in the PLC Setup.
If ring mode counting is selected, set the High-speed Counter 0 Circular
Max. Count (max. ring count) in the PLC Setup.
4. Reset Method Setting (Required)
Set the High-speed Counter 0 Reset Method in the PLC Setup.
5. PRV(881) Instruction Execution (Required)
N: Specify the high-speed counter number. (High-speed counter 0: 0010)
C: 0003 (Read frequency)
D: Destination word for frequency data
Restrictions The frequency measurement function can be used with high-speed
counter 0 only.
Specifications
Item Specifications
Number of frequency
measurement inputs
1 input (high-speed counter 0 only)
Frequency measurement
range
High-speed counter 0:
Differential phase inputs: 0 to 50 kHz
(J models: 0 to 10 kHz)
All other input modes: 0 to 100 kHz
(J models: 0 to 20 kHz)
Note: If the frequency exceeds the maximum value, the
maximum value will be stored.
Measurement method Execution of the PRV(881) instruction
Output data range Units: Hz
Range:
Differential phase input: 0000 0000 to 0003 0D40 hex
(Y models: 0000 0000 to 0007 A120 hex)
All other input modes: 0000 0000 to 0001 86A0 hex
(Y models: 0000 0000 to 000F 4240 hex)
175
Pulse Outputs Section 5-2
Pulse Frequency Conversion
The pulse frequency input to a high-speed counter can be converted to a rota-
tional speed (r/min) or the PV of the counter can be converted to the total
number of rotations. The converted value is output as 8-digit hexadecimal.
This function is supported only for high-speed counter 0.
FrequencyRotational Speed Conversion
The rotational speed in r/min is calculated from the pulse frequency input to a
high-speed counter and the number of pulses per rotation.
Counter PVTotal Number of Rotations Conversion
The total number of rotations is calculated from the present value of the
counter and the number of pulses per rotation.
Procedure
1,2,3... 1. High-speed Counter Enable/Disable Setting (Required)
Select the Use high speed counter 0 Option in the PLC Setup.
2. Pulse Input Mode Setting (Required)
Set the High-speed Counter 0 Pulse Input Mode (Input Setting) in the PLC
Setup.
3. Counting Mode Setting (Required)
Set the High-speed Counter 0 Counting Mode in the PLC Setup.
If ring mode counting is selected, set the Circular Max. Count (max. ring
count) in the PLC Setup.
4. Reset Method Setting (Required)
Set the High-speed Counter 0 Reset Method in the PLC Setup.
5. Execute PRV2(883) as described below (required).
Converting the Frequency to a Rotational Speed
Execute PRV2(883) with the following operands.
C: Control data (Set to 0000 for frequency-rotational speed conversion.)
P: Coefficient (pulses/rotation (hex))
D: First word for result
Converting the Counter PV to the Total Number of Rotations
Execute PRV2(883) with the following operands.
C: Control data (Set to 0001 for counter PV-total number of rotations con-
version.)
P: Coefficient (pulses/rotation (hex))
D: First word for result
Restrictions Pulse frequency conversion is possible only for high-speed counter 0.
5-2 Pulse Outputs
5-2-1 Overview
Fixed duty factor pulses can be output from the CPU Unit's built-in outputs to
perform positioning or speed control with a servo driver that accepts pulse
inputs.
CW/CCW Pulse Outputs or Pulse + Direction Outputs
The pulse output mode can be set to match the motor driver's pulse input
specifications.
176
Pulse Outputs Section 5-2
Automatic Direction Selection for Easy Positioning with Absolute
Coordinates
When operating in absolute coordinates (origin defined or PV changed with
the INI(880) instruction), the CW/CCW direction will be selected automatically
when the pulse output instruction is executed. (The CW/CCW direction is
selected by determining whether the number of pulses specified in the
instruction is greater than or less than the pulse output PV.)
Triangular Control
Triangular control (trapezoidal control without a constant-speed plateau) will
be performed during positioning executed by an ACC(888) instruction (inde-
pendent) or PLS2(887) instruction if the number of output pulses required for
acceleration/deceleration exceeds the specified target pulse Output Amount.
Change Target Position during Positioning (Multiple Start)
When positioning was started with a PULSE OUTPUT (PLS2(887)) instruc-
tion and the positioning operation is still in progress, another PLS2(887)
instruction can be executed to change the target position, target speed, accel-
eration rate, and deceleration rate.
Switch from Speed Control to Positioning (Fixed Distance Feed Interrupt)
A PLS2(887) instruction can be executed during a speed control (continuous
mode) operation to change to positioning mode (independent mode). This
feature allows a fixed distance feed interrupt (moving a specified amount) to
be executed when specific conditions occur.
Change Target Speed and Acceleration/Deceleration Rate during
Acceleration or Deceleration
When trapezoidal acceleration/deceleration is being executed according to a
pulse output instruction (speed control or positioning), the target speed and
acceleration/deceleration rate can be changed during acceleration or deceler-
ation.
Use Variable Duty Factor Pulse Outputs for Lighting, Power Control, Etc.
The PULSE WITH VARIABLE DUTY FACTOR instruction (PWM(891)) can be
used to output variable duty factor pulses from the CPU Unit's built-in outputs
for applications such as lighting and power control.
Controlling Pulse Outputs
Purpose Function Description
Perform simple posi-
tioning by outputting
pulses to a motor driver
that accepts pulse-train
inputs.
Pulse output functions
Single-phase pulse output without
acceleration/deceleration
Controlled by SPED.
Single-phase pulse output with
acceleration/deceleration (equal
acceleration and deceleration
rates for trapezoidal form)
Controlled by ACC.
Single-phase pulse output with
trapezoidal acceleration/decelera-
tion (Supports a startup fre-
quency and different acceleration/
deceleration rates.)
Controlled by PLS2(887).
Built-in outputs can be used as pulse outputs 0 and 1.
Target frequency ranges: 1 Hz to 100 kHz (J models:
1 Hz to 20 kHz)
Duty factor: 50%
The pulse output mode can be set to CW/CCW pulse
control or Pulse plus direction control, but the same out-
put mode must be used for pulse outputs 0 and 1.
Note The pulse output PVs are stored in the Auxiliary
Area.
177
Pulse Outputs Section 5-2
Perform origin search
and origin return opera-
tions.
Origin functions (Origin search and
origin return)
Origin search and origin return operations can be exe-
cuted through pulse outputs.
Origin search:
To start the origin search, set the PLC Setup to
enable the origin search operation, set the various
origin search parameters, and execute the ORIGIN
SEARCH instruction (ORG(889)). The Unit will deter-
mine the location of the origin based on the Origin
Proximity Input Signal and Origin Input Signal. The
coordinates of the pulse output's PV will automatically
be set as the absolute coordinates.
Origin return:
To return to the predetermined origin, set the various
origin return parameters and execute the ORIGIN
SEARCH instruction (ORG(889)).
Change the target posi-
tion during positioning.
(For example, perform
an emergency avoid
operation with the Multi-
ple Start feature.)
Positioning with the PLS2(887)
instruction
When a positioning operation started with the PULSE
OUTPUT (PLS2(887)) instruction is in progress, another
PLS2(887) instruction can be executed to change the
target position, target speed, acceleration rate, and
deceleration rate.
Change speed in steps
(polyline approxima-
tion) during speed con-
trol.
Use the ACC(888) instruction (con-
tinuous) to change the acceleration
rate or deceleration rate.
When a speed control operation started with the
ACC(888) instruction (continuous) is in progress,
another ACC(888) instruction (continuous) can be exe-
cuted to change the acceleration rate or deceleration
rate.
Change speed in steps
(polyline approxima-
tion) during positioning.
Use the ACC(888) instruction (inde-
pendent) or PLS2(887) to change the
acceleration rate or deceleration rate.
When a positioning operation started with the ACC(888)
instruction (independent) or PLS2(887) instruction is in
progress, another ACC(888) (independent) or
PLS2(887) instruction can be executed to change the
acceleration rate or deceleration rate.
Perform fixed distance
feed interrupt.
Execute positioning with the
PLS2(887) instruction during an
operation started with SPED(885)
(continuous) or ACC(888) (continu-
ous).
When a speed control operation started with the
SPED(885) instruction (continuous) or ACC(888)
instruction (continuous) is in progress, the PLS2(887)
instruction can be executed to switch to positioning, out-
put a fixed number of pulses, and stop.
After determining the
origin, perform position-
ing simply in absolute
coordinates without
regard to the direction
of the current position
or target position.
The positioning direction is selected
automatically in the absolute coordi-
nate system.
When operating in absolute coordinates (with the origin
determined or INI(880) instruction executed to change
the PV), the CW or CCW direction is selected automati-
cally based on the relationship between the pulse output
PV and the pulse Output Amount specified when the
pulse output instruction is executed.
Perform triangular con-
trol.
Positioning with the ACC(888)
instruction (independent) or
PLS2(887) instruction.
When a positioning operation started with the ACC(888)
instruction (independent) or PLS2(887) instruction is in
progress, triangular control (trapezoidal control without
the constant-speed plateau) will be performed if the
number of output pulses required for acceleration/decel-
eration exceeds the specified target pulse Output
Amount.
(The number of pulses required for acceleration/deceler-
ation equals the time required to reach the target fre-
quency x the target frequency.)
Use variable duty factor
outputs for time-propor-
tional temperature con-
trol.
Control with analog inputs and the
variable duty factor pulse output func-
tion (PWM(891)).
Two built-in outputs can be used as PWM(891) outputs 0
and 1 by executing the PWM(891) instruction.
Purpose Function Description
178
Pulse Outputs Section 5-2
5-2-2 Pulse Output Specifications
Specifications
Pulse Output Modes
There are two pulse output modes. In independent mode the number of out-
put pulses is specified and in continuous mode the number of output pulses is
not specified.
Item Specifications
Output mode Continuous mode (for speed control) or independent mode (for position control)
Positioning (independent mode)
instructions
PULS(886) and SPED(885), PULS(886) and ACC(888), or PLS2(887)
Speed control (continuous mode)
instructions
SPED(885) or ACC(888)
Origin (origin search and origin
return) instructions
ORG(889)
Output frequency Pulse outputs 0, 1: 1 Hz to 100 kHz (1 Hz units)
(J models: 1 Hz to 20 kHz (1 Hz units))
Frequency acceleration and decel-
eration rates
Set in 1 Hz units for acceleration/deceleration rates from 1 Hz to 65,635 Hz (every 4
ms). The acceleration and deceleration rates can be set independently only with
PLS2(887).
Changing SVs during instruction
execution
The target frequency, acceleration/deceleration rate, and target position can be
changed.
Duty factor Fixed at 50%
Pulse output method CW/CCW inputs or Pulse + direction inputs
The method is selected with an instruction operand. The same method must be used
for pulse outputs 0 and 1.
Number of output pulses Relative coordinates: 0000 0000 to 7FFF FFFF hex
(Each direction accelerating or decelerating: 2,147,483,647)
Absolute coordinates: 8000 0000 to 7FFF FFFF hex
(2147483648 to 2147483647)
Pulse output PV's relative/absolute
coordinate specification
Absolute coordinates are specified automatically when the origin location has been
determined by setting the pulse output PV with INI(880) or performing an origin
search with ORG(889). Relative coordinates are used when the origin location is
undetermined.
Relative pulse specification/
Absolute pulse specification
The pulse type can be specified with an operand in PULS(886) or PLS2(887).
Note The absolute pulse specification can be used when absolute coordinates are specified for
the pulse output PV, i.e. the origin location has been determined.
The absolute pulse specification cannot be used when relative coordinates are specified,
i.e. the origin location is undetermined. An instruction error will occur.
Pulse output PV's storage location The following Auxiliary Area words contain the pulse output PVs:
Pulse output 0: A277 (leftmost 4 digits) and A276 (rightmost 4 digits)
Pulse output 1: A279 (leftmost 4 digits) and A278 (rightmost 4 digits)
The PVs are refreshed during regular I/O refreshing.
Acceleration/deceleration curve
specification
Trapezoidal or S-curve acceleration/deceleration
Mode Description
Independent mode This mode is used for positioning.
Operation stops automatically when the preset num-
ber of pulses has been output. It is also possible to
stop the pulse output early with INI(880).
Continuous mode This mode is used for speed control.
The pulse output will continue until it is stopped by
executing another instruction or switching the PLC to
PROGRAM mode.
179
Pulse Outputs Section 5-2
5-2-3 Pulse Output Terminal Allocations
The following diagrams show the terminals that can be used for pulse outputs
in each CPU Unit.
CPU Unit with 14 I/O Points
CPU Unit with 20 I/O Points
CPU Unit with 30 I/O Points
Lower Terminal Block
(Example: Transistor Outputs)
Pulse output 0 (CCW/direction/PWM output 0)
Pulse output 0 (CW/pulse)
CIO 100
Origin search 0
(Error counter reset output)
Pulse output 1 (CW/pulse)
Origin search 1
(Error counter reset output)
Pulse output 1 (CCW/direction/PWM output 1)
NC
00 01 02
03
04 NC
COM COM COM
05
COM
NC
NC
Lower Terminal Block
(Example: Transistor Outputs)
Pulse output 0 (CCW/direction/PWM output 0)
Pulse output 0 (CW/pulse)
CIO 100
Origin search 0
(Error counter reset output)
Pulse output 1 (CW/pulse)
Origin search 1
(Error counter reset output)
Pulse output 1 (CCW/direction/PWM output 1)
NC
00 01 02
03
04 NC
COM COM COM
05
COM 06
07
Lower Terminal Block
(Example: Transistor Outputs)
Pulse output 0 (CCW/direction/PWM output 0)
Pulse output 0 (CW/pulse)
CIO 100
Origin search 0 (Error counter reset output)
Pulse output 1 (CW/pulse)
Origin search 1 (Error counter reset output)
Pulse output 1 (CCW/direction/PWM output 1)
CIO 101
NC
00 01 02
03
04 NC
COM COM COM
05
COM
07
06
00 02
COM 01
03
180
Pulse Outputs Section 5-2
CPU Unit with 40 I/O Points
Setting Functions Using Instructions and PLC Setup
Input Terminal Block Arrangements
CPU Unit with 14 I/O Points
Input
terminal
block
When the
instructions to
the right are not
executed
When a pulse output instruction
(SPED, ACC, PLS2, or ORG) is executed
When the origin search
function is enabled in
the PLC Setup, and an
origin search is
executed by the ORG
instruction
When the PWM
instruction is
executed
Word Bit Normal output Fixed duty factor pulse output Variable duty
factor pulse output
CW/CCW Pulse plus direction When the origin search
function is used
PWM output
CIO
100
00 Normal output 0 Pulse output 0 (CW)
fixed
Pulse output 0 (pulse)
fixed
--- ---
01 Normal output 1 Pulse output 0 (CCW)
fixed
Pulse output 0 (direction)
fixed
--- PWM output 0
02 Normal output 2 Pulse output 1 (CW)
fixed
Pulse output 1 (pulse)
fixed
--- ---
03 Normal output 3 Pulse output 1 (CCW)
fixed
Pulse output 1 (direction)
fixed
--- PWM output 1
04 Normal output 4 --- --- Origin search 0 (Error
counter reset output)
---
05 Normal output 5 --- --- Origin search 1 (Error
counter reset output)
---
06 Normal output 6 --- --- --- ---
07 Normal output 7 --- --- --- ---
CIO
101
00 to
07
Normal output 8
to 15
--- --- ---
Lower Terminal Block
(Example: Transistor Outputs)
Pulse output 0 (CCW/direction/PWM output 0)
Pulse output 0 (CW/pulse)
CIO 100
Pulse output 1 (CW/pulse)
Origin search 1 (Error counter reset output)
Pulse output 1 (CCW/direction/PWM output 1)
CIO 101
Pulse output 1 (CCW/direction/PWM output 1)
NC
00 01 02 03 NC
COM COM COM
04
COM
06
02
00 01
COM 05 07
03 04 06
07 05 COM
Upper Terminal Block
(Example: DC Power
Supply Models)
Pulse 0: Origin proximity input signal
Pulse 1: Origin proximity input signal
Pulse output 0: Origin input signal
Pulse output 1: Origin input signal
COM 01 03 05 07
00 02 04 06 NC
+
NC NC
NC NC
181
Pulse Outputs Section 5-2
CPU Unit with 20 I/O Points
CPU Unit with 30 I/O Points
CPU Unit with 40 I/O Points
Upper Terminal Block
(Example: DC Power
Supply Models)
Pulse 0: Origin proximity input signal
Pulse 1: Origin proximity input signal
Pulse output 0: Origin input signal
Pulse output 1: Origin input signal
COM 01 03 05 07
00 02 04 06 NC
+
09 11
NC 10
COM 01 03 05 07
00 02 04 06 NC
+
09 11
NC 10
01 03 05
00 02 04 NC
Upper Terminal Block
(Example: DC Power
Supply Models)
Pulse 0: Origin proximity input signal
Pulse 1: Origin proximity input signal
Pulse output 0: Origin input signal
Pulse output 1: Origin input signal
Upper Terminal Block
(Example: DC Power
Supply Models)
Pulse 0: Origin proximity input signal
Pulse 1: Origin proximity input signal
Pulse output 0: Origin input signal
Pulse output 1: Origin input signal
COM 01 03 05 07
00 02 04 06 NC
+
09 11
08 10
01 03 05
00 02 04
07 09 11
06 08 10
182
Pulse Outputs Section 5-2
Setting Functions Using Instructions and PLC Setup
CPU Units with 14 I/O Points
Input terminal
block
Default setting High-speed counter operation setting Origin search
setting
Word Bit Single-phase
(increment pulse input)
Two-phase (differential
phases x4, up/down, or
pulse/direction)
CIO 0 00 Normal input 0 High-speed counter 0
(Increment)
High-speed counter 0
(Phase A, Increment, or
Count input)
---
01 Normal input 1 High-speed counter 1
(Increment)
High-speed counter 0
(Phase B, Decrement, or
Direction input)
---
02 Normal input 2 High-speed counter 2
(Increment)
High-speed counter 1
(Phase A, Increment, or
Count input)
Pulse output 0:
Origin proximity input
signal
03 Normal input 3 High-speed counter 3
(Increment)
High-speed counter 0
(Phase B, Decrement, or
Direction input)
Pulse output 1:
Origin proximity input
signal
04 Normal input 4 High-speed counter 0
(Phase Z or reset input)
High-speed counter 0
(Phase Z or reset input)
---
05 Normal input 5 High-speed counter 1
(Phase Z or reset input)
High-speed counter 1
(Phase Z or reset input)
---
06 Normal input 6 High-speed counter 2
(Phase Z or reset input)
--- Pulse output 0:
Origin input signal
07 Normal input 7 High-speed counter 3
(Phase Z or reset input)
--- Pulse output 1:
Origin input signal
183
Pulse Outputs Section 5-2
CPU Units with 20, 30, or 40 I/O Points
Auxiliary Area Data Allocation
Input terminal
block
Default setting High-speed counter operation settings Origin search
setting
Word Bit CPU Units
with 40 I/O
Points
CPU Units
with 30 I/O
Points
CPU Units
with 20 I/O
Points
Single-phase
(increment pulse
input)
Two-phase
(differential phases
x4, up/down, or
pulse/direction)
CIO 0 00 Normal
input 0
Normal
input 0
Normal
input 0
High-speed counter
0 (Increment)
High-speed counter
0 (Phase A, Incre-
ment, or Count
input)
---
01 Normal
input 1
Normal
input 1
Normal
input 1
High-speed counter
1 (Increment)
High-speed counter
0 (Phase B, Decre-
ment, or Direction
input)
---
02 Normal
input 2
Normal
input 2
Normal
input 2
High-speed counter
2 (Increment)
High-speed counter
1 (Phase A, Incre-
ment, or Count
input)
---
03 Normal
input 3
Normal
input 3
Normal
input 3
High-speed counter
3 (Increment)
High-speed counter
0 (Phase B, Decre-
ment, or Direction
input)
---
04 Normal
input 4
Normal
input 4
Normal
input 4
High-speed counter
0 (Phase Z or reset
input)
High-speed counter
0 (Phase Z or reset
input)
---
05 Normal
input 5
Normal
input 5
Normal
input 5
High-speed counter
1 (Phase Z or reset
input)
High-speed counter
1 (Phase Z or reset
input)
---
06 Normal
input 6
Normal
input 6
Normal
input 6
High-speed counter
2 (Phase Z or reset
input)
--- Pulse output 0:
Origin input sig-
nal
07 Normal
input 7
Normal
input 7
Normal
input 7
High-speed counter
3 (Phase Z or reset
input)
--- Pulse output 1:
Origin input sig-
nal
08 Normal
input 8
Normal
input 8
Normal
input 8
--- --- ---
09 Normal
input 9
Normal
input 9
Normal
input 9
--- --- ---
10 Normal
input 10
Normal
input 10
Normal
input 10
--- --- Pulse output 0:
Origin proximity
input signal
11 Normal
input 11
Normal
input 11
Normal
input 11
--- --- Pulse output 1:
Origin proximity
input signal
CIO 1 00 to
05
Normal
input 12 to
17
Normal
input 12 to
17
--- --- --- ---
06 to
11
Normal in
18 to 23
--- --- --- --- ---
Function Pulse output number
0 1
Pulse output PV storage words
PV range: 8000 0000 to 7FFF FFFF hex
(2,147,483,648 to 2,147,483,647)
Leftmost 4 digits A277 A279
Rightmost 4 digits A276 A278
184
Pulse Outputs Section 5-2
Reset Bits
The pulse output PV will be cleared when this bit is
turned from OFF to ON.
0: Not cleared.
1: Clear PV.
A540.00 A541.00
CW Limit Input Signal Flags
This is the CW limit input signal, which is used in the
origin search.
ON when turned ON from an external
input.
A540.08 A541.08
CCW Limit Input Signal Flags
This is the CCW limit input signal, which is used in
the origin search.
ON when turned ON from an external
input.
A540.09 A541.09
Positioning completed input signals
This is the positioning completed input signal, which
is used in the origin search.
ON when turned ON from an external
input.
A540.10 A541.10
Accel/Decel Flags
ON when pulses are being output according to an
ACC(888) or PLS2(887) instruction and the output
frequency is being changed in steps (accelerating or
decelerating).
0: Constant speed
1: Accelerating or decelerating
A280.00 A281.00
Overflow/Underflow Flags
ON when an overflow or underflow has occurred in
the pulse output PV.
0: Normal
1: Overflow or underflow
A280.01 A281.01
Output Amount Set Flags
ON when the number of output pulses has been set
with the PULS instruction.
0: No setting
1: Setting made
A280.02 A281.02
Output Completed Flags
ON when the number of output pulses set with the
PULS(886)/PLS2(887) instruction has been output.
0: Output not completed.
1: Output completed.
A280.03 A281.03
Output In-progress Flags
ON when pulses are being output from the pulse
output.
0: Stopped
1: Outputting pulses.
A280.04 A281.04
No-origin Flags
ON when the origin has not been determined for the
pulse output.
0: Origin established.
1: Origin not established.
A280.05 A281.05
At-origin Flags
ON when the pulse output PV matches the origin
(0).
0: Not stopped at origin.
1: Stopped at origin.
A280.06 A281.06
Output Stopped Error Flags
ON when an error occurred while outputting pulses
in the origin search function.
0: No error
1: Stop error occurred.
A280.07 A281.07
Stop Error Codes
When a Pulse Output Stop Error occurs, the error
code is stored in that pulse outputs corresponding
Stop Error Code word.
--- A444 A445
Function Pulse output number
0 1
185
Pulse Outputs Section 5-2
5-2-4 Pulse Output Patterns
The following tables show the kinds of pulse output operations that can be
performed by combining various pulse output instructions.
Continuous Mode (Speed Control)
Starting a Pulse Output
Changing Settings
Operation Example
application
Frequency changes Description Procedure
Instruction Settings
Output with
specified
speed
Changing the
speed (frequency)
in one step
Outputs pulses at a
specified frequency.
SPED(885)
(Continuous)
Port
CW/CCW
or Pulse +
direction
Continuous
Target fre-
quency
Output with
specified
acceleration
and speed
Accelerating the
speed (frequency)
at a fixed rate
Outputs pulses and
changes the fre-
quency at a fixed
rate.
ACC(888)
(Continuous)
Port
CW/CCW
or Pulse +
direction
Continuous
Accelera-
tion/decel-
eration rate
Target fre-
quency
Pulse frequency
Target frequency
Execution of SPED(885)
Time
Pulse frequency
Target frequency
Acceleration/
deceleration
rate
Execution of
ACC(888)
Time
Operation Example applica-
tion
Frequency changes Description Procedure
Instruction Settings
Change
speed in
one step
Changing the
speed during oper-
ation
Changes the fre-
quency (higher or
lower) of the pulse
output in one step.
SPED(885)
(Continu-
ous)
SPED(885)
(Continu-
ous)
Port
Continuous
Target fre-
quency
Change
speed
smoothly
Changing the
speed smoothly
during operation
Changes the fre-
quency from the
present frequency
at a fixed rate. The
frequency can be
accelerated or
decelerated.
ACC(888) or
SPED(885)
(Continu-
ous)
ACC(888)
(Continu-
ous)
Port
Continuous
Target fre-
quency
Accelera-
tion/decel-
eration rate
Changing the
speed in a polyline
curve during opera-
tion
Changes the accel-
eration or decelera-
tion rate during
acceleration or
deceleration.
ACC(888)
(Continu-
ous)
ACC(888)
(Continu-
ous)
Port
Continuous
Target fre-
quency
Accelera-
tion/decel-
eration rate
Change
direction
Not supported.
Change
pulse out-
put method
Not supported.
Pulse frequency
Target frequency
Present frequency
Execution of
SPED(885)
Time
Pulse frequency
Target frequency
Present frequency
Acceleration/
deceleration
rate
Execution of
ACC(888)
Time
Pulse frequency
Target frequency
Present frequency
Acceleration rate n
Acceleration
rate 2
Acceleration
rate 1
Execution of ACC(888)
Execution of ACC(888)
Execution of ACC(888)
Time
186
Pulse Outputs Section 5-2
Stopping a Pulse Output
Operation Example
application
Frequency changes Description Procedure
Instruction Settings
Stop pulse
output
Immediate
stop
Stops the pulse out-
put immediately.
SPED(885)
or ACC(888)
(Continu-
ous)
INI(880)
Port
Stop pulse
output
Stop pulse
output
Immediate
stop
Stops the pulse out-
put immediately.
SPED(885)
or ACC(888)
(Continu-
ous)
SPED(885)
(Continu-
ous)
Port
Continuous
Target fre-
quency=0
Stop pulse
output
smoothly
Decelerate
to a stop
Decelerates the
pulse output to a
stop.
Note If ACC(888)
started the
operation, the
original
acceleration/
deceleration
rate will
remain in
effect.
If SPED(885)
started the
operation, the
acceleration/
deceleration
rate will be
invalid and
the pulse out-
put will stop
immediately.
SPED(885)
or ACC(888)
(Continu-
ous)
ACC(888)
(Continu-
ous)
Port
Continuous
Target fre-
quency=0
Pulse frequency
Present frequency
Execution of INI(880)
Time
Pulse frequency
Present frequency
Execution of SPED(885)
Time
Pulse frequency
Present frequency
Execution of ACC(888)
Acceleration/
deceleration rate
(Rate set at the
start of the
operation.)
Target frequency = 0
Time
187
Pulse Outputs Section 5-2
Independent Mode (Positioning)
Starting a Pulse Output
Note Triangular Control
If the specified number of pulses is less than the number required just to
reach the target frequency and return to zero, the function will automatically
reduce the acceleration/deceleration time and perform triangular control
(acceleration and deceleration only.) An error will not occur.
Operation Example
application
Frequency changes Description Procedure
Instruction Settings
Output with
specified
speed
Positioning
without accel-
eration or
deceleration
Starts outputting
pulses at the speci-
fied frequency and
stops immediately
when the specified
number of pulses
has been output.
Note The target
position
(specified
number of
pulses) can-
not be
changed dur-
ing position-
ing.
PULS(886)
SPED(885)
Number of
pulses
Relative or
absolute
pulse spec-
ification
Port
CW/CCW
or Pulse +
direction
Indepen-
dent
Target fre-
quency
Simple trap-
ezoidal con-
trol
Positioning
with trapezoi-
dal accelera-
tion and
deceleration
(Same rate
used for
acceleration
and decelera-
tion; no start-
ing speed)
The number
of pulses can-
not be
changed dur-
ing position-
ing.
Accelerates and
decelerates at the
same fixed rate and
stops immediately
when the specified
number of pulses
has been output.
(See note.)
Note The target
position
(specified
number of
pulses) can-
not be
changed dur-
ing position-
ing.
PULS(886)
ACC(888)
(Indepen-
dent)
Number of
pulses
Relative or
absolute
pulse spec-
ification
Port
CW/CCW
or Pulse +
direction
Indepen-
dent
Accelera-
tion and
decelera-
tion rate
Target fre-
quency
Complex
trapezoidal
control
Positioning
with trapezoi-
dal accelera-
tion and
deceleration
(Separate
rates used for
acceleration
and decelera-
tion; starting
speed)
The number
of pulses can
be changed
during posi-
tioning.
Accelerates and
decelerates at a
fixed rates. The
pulse output is
stopped when the
specified number of
pulses has been
output. (See note.)
Note The target
position
(specified
number of
pulses) can
be changed
during posi-
tioning.
PLS2(887) Number of
pulses
Relative or
absolute
pulse spec-
ification
Port
CW/CCW
or Pulse +
direction
Accelera-
tion rate
Decelera-
tion rate
Target fre-
quency
Starting
frequency
Pulse frequency
Target
frequency
Specified number of
pulses (Specified with
PULS(886).)
Execution of
SPED(885)
Outputs the specified
number of pulses
and then stops.
Time
Pulse frequency
Target
frequency
Specified number of
pulses (Specified
with PULS(886).)
Acceleration/
deceleration
rate
Execution of
ACC(888)
Outputs the specified
number of pulses and
then stops.
Time
Pulse frequency
Target
frequency
Starting
frequency
Acceler-
ation
rate
Specified number
of pulses
Deceleration
rate
Execution of
PLS2(887)
Target
frequency
reached.
Deceleration point
Output stops.
Stop
frequency
Time
Pulse frequency
Target
frequency
Specified number
of pulses
(Specified with
PULS(886).)
Execution of
ACC(888)
Time
Pulse frequency
Target
frequency
Specified number
of pulses
(Specified with
PULS(887).)
Execution of
PLS2(887)
188
Pulse Outputs Section 5-2
Changing Settings
Operation Example
application
Frequency changes Description Procedure
Instruction Settings
Change
speed in
one step
Changing
the speed in
one step dur-
ing operation
SPED(885) can be
executed during
positioning to
change (raise or
lower) the pulse
output frequency in
one step.
The target position
(specified number
of pulses) is not
changed.
PULS(886)
SPED(885)
(Indepen-
dent)
SPED(885)
(Indepen-
dent)
Number of
pulses
Relative or
absolute
pulse spec-
ification
Port
CW/CCW
or Pulse +
direction
Indepen-
dent
Target fre-
quency
Change
speed
smoothly
(with accel-
eration rate
= decelera-
tion rate)
Changing
the target
speed (fre-
quency) dur-
ing
positioning
(accelera-
tion rate =
deceleration
rate)
ACC(888) can be
executed during
positioning to
change the acceler-
ation/deceleration
rate and target fre-
quency.
The target position
(specified number
of pulses) is not
changed.
PULS(886)
ACC(888) or
SPED(885)
(Indepen-
dent)
ACC(888)
(Indepen-
dent)
Number of
pulses
Relative or
absolute
pulse spec-
ification
Port
CW/CCW
or Pulse +
direction
Indepen-
dent
Accelera-
tion and
decelera-
tion rate
Target fre-
quency
PLS2(887)
ACC(888)
(Indepen-
dent)
Change
speed
smoothly
(with
unequal
acceleration
and deceler-
ation rates)
Changing
the target
speed (fre-
quency) dur-
ing
positioning
(different
acceleration
and deceler-
ation rates)
PLS2(887) can be
executed during
positioning to
change the acceler-
ation rate, decelera-
tion rate, and target
frequency.
Note To prevent
the target
position from
being
changed
intentionally,
the original
target posi-
tion must be
specified in
absolute
coordinates.
PULS(886)
ACC(888)
(Indepen-
dent)
PLS2(887)
Number of
pulses
Relative or
absolute
pulse spec-
ification
Port
CW/CCW
or Pulse +
direction
Accelera-
tion rate
Decelera-
tion rate
Target fre-
quency
Starting
frequency
PLS2(887)
PLS2(887)
Pulse
frequency
New target
frequency
Original target
frequency
Specified number
of pulses
(Specified with
PULS(886).)
Number of pulses
specified with
PULS(886) does
not change.
Execution of SPED(885)
(independent mode)
SPED(885) (independent
mode) executed again to
change the target
frequency. (The target
position is not changed.)
Time
New target
frequency
Original target
frequency
Specified
number of
pulses
(Specified with
PULS(886).)
Number of
pulses specified
with PULS(886)
does not
change.
Pulse
frequency
Execution of
ACC(888)
(independent
mode)
ACC(888) (independent
mode) executed again to
change the target
frequency. (The target
position is not changed,
but the
acceleration/deceleration
rate is changed.)
Time
Acceleration/
deceleration
rate
Pulse
frequency
New target
frequency
Original target
frequency
Specified number of
pulses (Specified
with PULS(886).)
Acceleration/
deceleration
rate
Execution of
ACC(888)
(independent
mode)
PLS2(887) executed to
change the target frequen-
cy and acceleration/decel-
eration rates.
(The target position is not
changed. The original tar-
get position is specified
again.)
Time
189
Pulse Outputs Section 5-2
Change tar-
get position
Change the
target posi-
tion during
positioning
(multiple
start func-
tion)
PLS2(887) can be
executed during
positioning to
change the target
position (number of
pulses).
Note When the tar-
get position
cannot be
changed
without main-
taining the
same speed
range, an
error will
occur and the
original oper-
ation will con-
tinue to the
original tar-
get position.
PULS(886)
ACC(888)
(Indepen-
dent)
PLS2(887)
Number of
pulses
Relative or
absolute
pulse spec-
ification
Port
CW/CCW
or Pulse +
direction
Accelera-
tion rate
Decelera-
tion rate
Target fre-
quency
Starting
frequency
PLS2(887)
PLS2(887)
PLS2(887)
PLS2(887)
Change tar-
get position
and speed
smoothly
Change the
target posi-
tion and tar-
get speed
(frequency)
during posi-
tioning (mul-
tiple start
function)
PLS2(887) can be
executed during
positioning to
change the target
position (number of
pulses), accelera-
tion rate, decelera-
tion rate, and target
frequency.
Note When the
settings can-
not be
changed
without main-
taining the
same speed
range, an
error will
occur and the
original oper-
ation will con-
tinue to the
original tar-
get position.
PULS(886)
ACC(888)
(Indepen-
dent)
PLS2(887)
Number of
pulses
Relative or
absolute
pulse spec-
ification
Port
CW/CCW
or Pulse +
direction
Accelera-
tion rate
Decelera-
tion rate
Target fre-
quency
Starting
frequency
Change the
acceleration
and deceler-
ation rates
during posi-
tioning (mul-
tiple start
function)
PLS2(887) can be
executed during
positioning (accel-
eration or decelera-
tion) to change the
acceleration rate or
deceleration rate.
PULS(886)
ACC(888)
(Indepen-
dent)
PLS2(887)
Number of
pulses
Accelera-
tion rate
Decelera-
tion rate
PLS2(887)
PLS2(887)
Operation Example
application
Frequency changes Description Procedure
Instruction Settings
Pulse
frequency
Target
frequency Acceleration/
deceleration
rate
Specified
number of
pulses
Number of pulses
changed with
PLS2(887).
Execution of
PLS2(887)
PLS2(887) executed to
change the target position.
(The target frequency and
acceleration/deceleration
rates are not changed
Time
Pulse
frequency
Target frequency
Acceleration/
deceleration
rate
Number of
pulses specified
with PLS2(887).
Execution of
PLS2(887)
ACC(888) executed to change the
target frequency. (The target position is
not changed, but the acceleration/
deceleration rates are changed.)
Time
Number of pulses
not change with
PLS2(887).
Changed target
frequency
Pulse
frequency
New target
frequency
Original target
frequency
Acceleration rate n
Acceleration
rate 3
Acceleration
rate 2
Acceleration
rate 1
Number of pulses
specified by
PLS2(887) #N.
Execution of
PLS2(887) #1
Execution of
PLS2(887) #2
Execution of PLS2(887) #3
Execution of PLS2(887) #N
Time
190
Pulse Outputs Section 5-2
Stopping a Pulse Output
Change
direction
Change the
direction dur-
ing position-
ing
PLS2(887) can be
executed during
positioning with rel-
ative pulse specifi-
cation to change to
absolute pulses and
reverse direction.
PULS(886)
ACC(888)
(Indepen-
dent)
PLS2(887)
Number of
pulses
Absolute
pulse spec-
ification
Port
CW/CCW
or Pulse +
direction
Accelera-
tion rate
Decelera-
tion rate
Target fre-
quency
Starting
frequency
PLS2(887)
PLS2(887)
Change
pulse out-
put method
Not supported.
Operation Example
application
Frequency changes Description Procedure
Instruction Settings
Pulse
frequency
Target
frequency
Specified
number of
pulses
Change of direction at the
specified deceleration rate
Number of pulses
(position) changed
by PLS2(887)
Execution
of PLS2
(887) Execution of
PLS2(887)
Time
Operation Example applica-
tion
Frequency changes Description Procedure
Instruction Settings
Stop pulse
output
(Number of
pulses set-
ting is not
preserved.)
Immediate stop Stops the pulse out-
put immediately
and clears the num-
ber of output pulses
setting.
PULS(886)
ACC(888) or
SPED(885)
(Indepen-
dent)
INI(880)
Stop pulse
output
PLS2(887)
INI(880)
Stop pulse
output
(Number of
pulses set-
ting is not
preserved.)
Immediate stop Stops the pulse out-
put immediately
and clears the num-
ber of output pulses
setting.
PULS(886)
SPED(885)
(Indepen-
dent)
SPED(885)
Port
Indepen-
dent
Target fre-
quency = 0
Stop sloped
pulse out-
put
smoothly.
(Number of
pulses set-
ting is not
preserved.)
Decelerate to a
stop
Decelerates the
pulse output to a
stop.
Note If ACC(888)
started the
operation, the
original
acceleration/
deceleration
rate will
remain in
effect.
If SPED(885)
started the
operation, the
acceleration/
deceleration
rate will be
invalid and
the pulse out-
put will stop
immediately.
PULS(886)
ACC(888) or
SPED(885)
(Indepen-
dent)
ACC(888)
(Indepen-
dent)
Port
Indepen-
dent
Target fre-
quency = 0
PLS2(887)
ACC(888)
(Indepen-
dent)
Pulse frequency
Present
frequency
Execution of
SPED(885)
Execution
of INI(880)
Time
Pulse frequency
Present frequency
Execution of
SPED(885)
Execution of
SPED(885)
Time
Pulse frequency
Present
frequency
Target
frequency = 0
Execution of
ACC(888)
Original
deceleration
rate
Time
191
Pulse Outputs Section 5-2
Switching from Continuous Mode (Speed Control) to Independent Mode (Positioning)
Relative Pulse Outputs and Absolute Pulse Outputs
Selecting Relative or
Absolute Coordinates
The pulse output PV's coordinate system (absolute or relative) is selected
automatically, as follows:
When the origin is undetermined, the system operates in relative coordi-
nates.
When the origin has been determined, the system operates in absolute
coordinates.
Example applica-
tion
Frequency changes Description Procedure
Instruction Settings
Change from speed
control to fixed dis-
tance positioning
during operation
PLS2(887) can be
executed during a
speed control oper-
ation started with
ACC(888) to
change to position-
ing operation.
Note An error will
occur if a
constant
speed can-
not be
achieved
after switch-
ing the mode.
If this hap-
pens, the
instruction
execution will
be ignored
and the previ-
ous opera-
tion will be
continued.
ACC(888)
(Continu-
ous)
PLS2(887)
Port
Acceleration rate
Deceleration rate
Target frequency
Number of pulses
Note The starting fre-
quency is ignored.
Fixed distance feed
interrupt
Pulse frequency
Target
frequency
Outputs the number of
pulses specified in
PLS2(887) (Both relative
and absolute pulse
specification can be used.)
Execution of
ACC(888)
(continuous) Execution of
PLS2(887)
Time
Pulse
frequency
Present
frequency
Execution of
ACC(888)
(continuous) Execution of
PLS2(887) with the
following settings
Number of pulses = number
of pulses until stop
Relative pulse specification
Target frequency = present
frequency
Acceleration rate = Not 0
Deceleration rate = target
deceleration rate
Time
Conditions Origin has been
determined by an ori-
gin search
Origin has been
determined by exe-
cuting INI(880) to
change the PV
Origin not estab-
lished (Origin search
has not been per-
formed and PV has
not been changed
with INI(880).)
Pulse output
PV's coordi-
nate system
Absolute coordinates Relative coordinates
192
Pulse Outputs Section 5-2
Relationship between the
Coordinate System and
Pulse Specification
The following table shows the pulse output operation for the four possible
combinations of the coordinate systems (absolute or relative) and the pulse
output (absolute or relative) specified when PULS(886) or PLS2(887) is exe-
cuted.
Pulse output
specified in
PULS(886) or
PLS2(887)
Coordinate system
Relative coordinate system Absolute coordinate system
Origin not established:
The No-origin Flag will be ON in this case.
Origin established:
The No-origin Flag will be OFF in this case.
Relative pulse speci-
fication
Positions the system to another position relative to the current position.
Number of movement pulses = number of pulses setting
The pulse output PV after instruction execution
= Number of movement pulses = Number of
pulses setting
Note The pulse output PV is reset to 0 just before
pulses are output. After that, the specified num-
ber of pulses is output.
The following example shows the number of
pulses setting = 100 counterclockwise.
Pulse output PV range:
8000 0000 to 7FFF FFFF hex
Number of pulses setting range:
0000 0000 to 7FFF FFFF hex
The pulse output PV after instruction execution
= PV + Number of movement pulses.
The following example shows the number of
pulses setting = 100 counterclockwise.
Pulse output PV range:
8000 0000 to 7FFF FFFF hex
Number of pulses setting range:
0000 0000 to 7FFF FFFF hex
100
Number of pulses
setting
II
Number of
movement pulses
Target
position
Current
position=0
Pulse
output PV
100
0
Number of pulses
setting
II
Number of
movement pulses
Target
position
Current
position
Pulse
output PV
Origin
193
Pulse Outputs Section 5-2
Operations Affecting the Origin Status (Established/Not Established Status)
The following table shows the operations that can affect the origin status (ori-
gin established or no-origin), such as changing the operating mode and exe-
cuting certain instructions.
The No-origin Flag will be ON when the corresponding pulse output's origin is
not established and OFF when the origin is established.
Absolute pulse
specification
The absolute pulse specification cannot be
used when the origin location is undetermined,
i.e., when the system is operating in the relative
coordinate system. An instruction execution
error will occur.
Positions the system to an absolute position rel-
ative to the origin.
The number of movement pulses and move-
ment direction are calculated automatically from
the current position (pulse output PV) and target
position.
The following example shows the number of
pulses setting = +100.
Number of movement pulses = Number of
pulses setting - Pulse output PV when instruc-
tion is executed
The movement direction is determined automat-
ically.
Pulse output PV when instruction is executed =
Number of pulses setting
Pulse output PV range:
8000 0000 to 7FFF FFFF hex
Number of pulses setting range:
8000 0000 to 7FFF FFFF hex
Pulse output
specified in
PULS(886) or
PLS2(887)
Coordinate system
Relative coordinate system Absolute coordinate system
Origin not established:
The No-origin Flag will be ON in this case.
Origin established:
The No-origin Flag will be OFF in this case.
+100
+200
0
Number of pulses
setting
II
Number of
movement pulses
Target
position =
number of
pulses
setting
Current
position
Pulse
output PV
Origin
Current status PROGRAM mode RUN mode or MONITOR
mode
Operation Origin
established
Origin not
established
Origin
established
Origin not
established
Operat-
ing mode
change
Switch to
RUN or
MONITOR
Status
changes to
Origin not
established.
Origin not
established
status contin-
ues.
--- ---
Switch to
PROGRAM
--- --- Origin
established
status contin-
ues.
Origin not
established
status contin-
ues.
194
Pulse Outputs Section 5-2
Movement Direction when Using Absolute Pulse Specification
When operating with the absolute pulse specification, the movement direction
is selected automatically based on the relationship between the pulse output
PV when the instruction is executed and the specified target position. The
direction (CW/CCW) specified in an ACC(888) or SPED(885) instruction is not
effective.
Using CW/CCW Limit Inputs for Pulse Output Functions Other than Origin Searches
Pulse outputs will stop when either the CW or CCW limit input signals turns
ON. It is also possible to select whether or not the established origin will be
cleared when a CW or CCW limit input signal turns ON for an origin search or
other pulse output function.
S-curve Acceleration/Deceleration
S-curve acceleration/deceleration can be used for pulse output instructions
involving acceleration/deceleration. When there is leeway in the maximum
allowable speed, S-curve accelerations/decelerations will help control shock
and vibration by reducing the initial acceleration rate in comparison with linear
acceleration/deceleration.
Note The setting for S-curve acceleration/deceleration applies to all pulse outputs.
Instruc-
tion exe-
cution
Origin search
performed by
ORG(889)
--- --- Status
changes to
Origin
established.
Status
changes to
Origin
established.
PV changed
by INI(880)
--- --- Origin
established
status contin-
ues.
Status
changes to
Origin
established.
The Pulse Output Reset
Bit (A54000 or A54100)
goes from OFF to ON.
Status
changes to
Origin not
established.
Origin not
established
status contin-
ues.
Status
changes to
Origin not
established.
Origin not
established
status contin-
ues.
Current status PROGRAM mode RUN mode or MONITOR
mode
Operation Origin
established
Origin not
established
Origin
established
Origin not
established
195
Pulse Outputs Section 5-2
Output Pattern The output pattern for S-curve acceleration/deceleration is shown below.
Example for PLS2(887)
The same type of S-curve acceleration/deceleration can be used for
ACC(888) as well.
Note The curve for S-curve acceleration/deceleration is formed by applying a cubic
equation to the straight line of the set acceleration/deceleration rates (a cubic
polynomial approximation). The curves parameters cannot be changed.
The maximum acceleration will be 1.5 times that of trapezoidal acceleration/
deceleration for the same acceleration/deceleration rate.
Stop frequency
Time
Starting
frequency
Target
frequency
Pulse frequency
Set
acceleration
Specified
number of
pulses
PLS2
executed
Target frequency
reached
Deceleration point
Set
deceleration
Output stops
Acceleration
specified
for S-curve
acceleration
Deceleration
specified
for S-curve
deceleration
Max. acceleration
is 1.5 times
set acceleration
196
Pulse Outputs Section 5-2
Procedure Make the following settings in the PLC Setup.
Pulse Output 0 to 3
Restrictions The following restrictions apply when using S-curve acceleration/deceleration.
Starting Frequency
The starting frequency must be 100 Hz or greater. If the starting frequency is
set to less than 100 Hz, it will automatically be increased to 100 Hz if S-curve
acceleration/deceleration is set.
Target Frequency
S-curve acceleration/deceleration will not be performed if the target frequency
is less than 100 Hz.
Precautions when
using the Pulse
Output Function
The CP1L CPU Units pulse output frequency is determined by dividing the
source clock frequency by an integer ratio. (The source clock frequency for
ports 0 and 1 is 20 MHz and the frequency for ports 2 and 3 is 16.4 MHz.)
Consequently, there may be a slight difference between the set frequency and
the actual frequency, and that difference increases as the frequency
increases. The actual frequency can be calculated from the following equa-
tions.
Pulse Output System
Speed Curve Trapezium When a pulse output is executed with accelera-
tion/deceleration, this setting determines
whether the acceleration/deceleration rate is lin-
ear (trapezium) or S-shaped.
S-shaped
50 Hz
100 Hz
Automatically
increased
to 100 Hz.
Pulse frequency
Time
50 Hz
No
acceleration/deceleration
Time
Pulse frequency
Frequency
divider
Output pulses (actual frequency)
Integer dividing ratio calculated
from user's set frequency
Source
clock
16.4 MHz
197
Pulse Outputs Section 5-2
Equations
The INT function extracts an integer from the fraction. The non-integer
remainder is rounded.
Differences between Set Frequencies and Actual Frequencies
5-2-5 Origin Search and Origin Return Functions
The CP1L CPU Units have two functions that can be used to determine the
machine origin for positioning.
1,2,3... 1. Origin Search
The ORG instruction outputs pulses to turn the motor according to the pat-
tern specified in the origin search parameters. As the motor turns, the ori-
gin search function determines the machine origin from the following 3
kinds of position input signals.
Origin input signal
Origin proximity input signal
CW limit input signal and CCW limit input signal
Source clock frequency
Dividing ratio
(Clock frequency x 2) + Set frequency
Set frequency (Hz) x 2
Actual frequency (Hz) =
Dividing ratio = INT
Source clock frequency: 16.4 MHz
Set frequency (kHz) Actual frequency (kHz)
99.696 to 100.000 100.000
99.093 to 99.696 99.393
98.498 to 99.093 98.795
: :
50.076 to 50.229 50.152
49.923 to 50.076 50.000
49.772 to 49.923 49.848
: :
20.012 to 20.036 20.024
19.987 to 20.012 20.000
19.963 to 19.987 19.975
: :
10.003 to 10.009 10.006
9.996 to 10.003 10.000
9.990 to 9.996 9.993
: :
5.000 to 5.002 5.001
4.999 to 5.000 5.000
4.997 to 4.999 4.998
: :
3.001 to 3.001 3.001
3.000 to 3.000 3.000
2.998 to 2.999 2.999
198
Pulse Outputs Section 5-2
2. Changing the Pulse Output PV
When you want to set the current position as the origin, execute INI(880)
to reset the pulse output PV to 0.
The origin location can be determined after using either method.
The CP1L CPU Units are also equipped with the origin return function, which
can be executed to return the system to the origin after the origin location has
been determined by one of the methods above.
Origin Return
If the motor is stopped, ORG(889) can be executed to perform an origin
return operation that moves the motor back to the origin position. The ori-
gin position must be determined in advance by performing an origin
search or changing the pulse output PV.
Note The motor can be moved even if the origin position has not been determined,
but positioning operations will be limited as follows:
Origin return: Cannot be used.
Positioning with absolute pulse specification: Cannot be used.
Positioning with relative pulse specification: Outputs the specified number
of pulses after setting the current position to 0.
5-2-5-1 Origin Search
When ORG(889) executes an origin search, it outputs pulses to actually move
the motor and determines the origin position using the input signals that indi-
cate the origin proximity and origin positions.
The input signals that indicate the origin position can be received from the
servomotor's built-in phase-Z signal or external sensors such as photoelectric
sensors, proximity sensors, or limit switches.
Several origin search patterns can be selected.
In the following example, the motor is started at a specified speed, acceler-
ated to the origin search high speed, and run at that speed until the origin
proximity position is detected. After the Origin Proximity Input is detected, the
motor is decelerated to the origin search low speed and run at that speed until
the origin position is detected. The motor is stopped at the origin position.
Pulse frequency
Origin search
initial speed
Origin search
acceleration rate
Origin search
high speed
Deceleration
point
Origin search
deceleration rate
Origin search
proximity speed
Start
Execution of ORG(889)
Decelerate from high to low speed.
Indicated by the Origin
Proximity Input Signal
Stop
Indicated by the
Origin Input Signal
Time
199
Pulse Outputs Section 5-2
Procedure
Restrictions The Phase-Z signal + Software reset method cannot be used for a high-
speed counter when the origin search function has been enabled in the
PLC Setup.
PLC Setup
Origin Search Function Enable/Disable Settings
These PLC Setup indicate whether or not the origin search function will be
used for each pulse output.
Wire the pulse output
and input signals.
Output: Connect the outputs using the CW/CCW
method or pulse + direction method. The same
method must be used for all of the pulse outputs.
Power supply for outputs: 24 V DC
Inputs: Connect the Origin input Signal, Near Origin
Input Signal, and Positioning Complete Signal to the
built-in input terminals allocated to the pulse output
being used.
The limit inputs must be connected to available normal
input terminals or terminals and output from the ladder
program.
PLC Setup settings
Enable the origin search function for pulse output 0 to 3 by setting
the Origin Search Function Enable/Disable setting to 1.
Limit Input Signal Settings
Limit Input Signal Operation and Undefine Origin Settings
Acceleration/Deceleration Curve Setting
Other Parameter Settings
1. Operation Mode
Set the best operation mode for the driver being used (servomotor
or stepping motor.)
Set "mode 0" when driving a stepping motor. Set "mode 1" or
"mode 2" when driving a servomotor.
2. Set the origin search operation setting.
3. Set the origin detection method.
4. Set the origin search direction (CW or CCW.)
5. Set the origin search speeds:
Initial speed for origin search/origin return, origin search high
speed, origin search proximity speed, origin search acceleration
rate, and origin search deceleration rate
6. Origin Compensation
After the origin has been determined, the origin compensation can
be set to compensate for a shift in the Proximity Sensor's ON
position, motor replacement, or other change.
7. Set the Origin Proximity Input Signal type, Origin Input Signal
type, and Limit Input Signal type.
8. Set the Positioning Monitor Time.
Ladder program
Output the status of the Limit Signal Inputs and Positioning
Completed Signal to Auxiliary Area bits.
Execute ORG(889).
Specify the origin search operation by setting the third
operand to 0000.
200
Pulse Outputs Section 5-2
Limit Input Signal Setting
Specify in the following PLC Setup whether to use the CW/CCW limit input
signals only for origin searches or for all pulse output functions. These set-
tings affect all pulse outputs.
(This setting is called the Limited Input Signal Operation setting.)
Pulse Output 0 Undefined Origin Setting
Acceleration/Deceleration Curve Settings
Note The acceleration/deceleration curve setting applies to all pulse outputs, not
just to origin searches. Refer to S-curve Acceleration/Deceleration on
page 194 for details.
Origin Search Parameters The various origin search parameters are set in the PLC Setup.
Name Settings Time when
read
Operating mode Operating mode 0, 1, or 2 Start of
operation
Origin search operation
setting
0: Reversal mode 1
1: Reversal mode 2
Start of
operation
Origin detection method 0: Read the Origin Input Signal after the
Origin Proximity Input Signal goes
from OFFONOFF.
1: Read the Origin Input Signal after the
Origin Proximity Input Signal goes
from OFFON.
2: Just read the Origin Input Signal with-
out using the Origin Proximity Input
Signal.
Start of
operation
Origin search direction 0: CW direction
1: CCW direction
Start of
operation
Origin
search
speed
(See
note.)
Origin search/
return initial
speed
Pulse outputs 0,1:
00000001 to 000186A0 hex
(1 Hz to 100 kHz)
J models: 00000001 to 00004E20 hex
(1 Hz to 20 kHz)
Start of
operation
Origin search
high speed
Same as above. Start of
operation
Origin search
proximity speed
Same as above. Start of
operation
Origin search
acceleration rate
0001 to FFFF hex (1 to 65,535 Hz/4 ms) Start of
operation
Origin search
deceleration rate
0001 to FFFF hex (1 to 65,535 Hz/4 ms) Start of
operation
Origin compensation 8000 0000 to 7FFF FFFF hex
(2147483648 to 2147483647)
Start of
operation
I/O settings Limit Input Signal type
0: Normally closed (NC)
1: Normally open (NO)
Start of
operation
Origin Proximity Input Signal type
0: Normally closed (NC)
1: Normally open (NO)
Start of
operation
Origin Input Signal type
0: Normally closed (NC)
1: Normally open (NO)
When power
is turned ON
Positioning monitor time 0000 to 270F hex
(0 to 9,999 ms)
Start of
operation
201
Pulse Outputs Section 5-2
Note An origin search will not be started unless the origin search proximity speed is
less than the origin search high speed and unless the origin search/return ini-
tial speed is less than the origin search proximity speed.
Explanation of the Origin Search Parameters
Operating Mode The operating mode parameter specifies the kind of I/O signals that are used
in the origin search. The 3 operating modes indicate whether the Error
Counter Reset Output and Positioning Completed Input are used.
The following table shows the proper operating mode settings for different
drivers and applications.
Note There are stepping motor drivers that are equipped with a positioning com-
pleted signal like a Servo driver. Operating modes 1 and 2 can be used with
these stepping motor drivers.
Remarks: Operations Detecting the Origin During Deceleration from High
Speed
Operating Mode 0 (without Error Counter Reset Output, without
Positioning Completed Input)
Connect the sensor's open collector output signal to the Origin Input Signal.
The Origin Input Signal's response time is 0.1 ms when set as a NO contact.
When the Origin Proximity Input Signal is received, the motor will begin decel-
erating from the origin search high speed to the origin search proximity speed.
In this operating mode, the Origin Input Signal will be detected if it is received
during this deceleration and an Origin Input Signal Error (error code 0202) will
be generated. In this case, the motor will decelerate to a stop.
Operating
mode
I/O signal Remarks
Origin Input
Signal
Error Counter
Reset Output
Positioning Completed
Input
Operation when the origin is
detected during deceleration from
the origin search's high speed
0 The origin position
is determined
when the Origin
Input Signal goes
from OFF to ON.
Not used.
The origin search
operation ends
after the origin is
detected.
Not used. The Origin Input Signal will be
detected during deceleration. An Ori-
gin Input Signal Error (error code
0202) will occur and the motor will
decelerate to a stop.
1 Goes ON for 20 to
30 ms when the
origin is detected.
The Origin Input Signal will not be
detected during deceleration. When
the Origin Input Signal is detected
after the motor has reached the prox-
imity speed for origin search, the
motor will be stopped and the origin
search operation will end.
2 After the origin is
detected, the origin
search will not be end
until the Positioning
Completed Input is
received from the driver.
Driver Remarks Operating mode
Stepping motor driver (See note.) 0
Servo driver Use this mode when you want to
reduce the processing time, even at the
expense of positioning accuracy. (The
Servo Driver's positioning complete
signal is not used.)
1
Use this mode when you want high
positioning accuracy. (The Servo
Driver's positioning complete signal is
used.)
2
202
Pulse Outputs Section 5-2
Operating Mode 1 (with Error Counter Reset Output, without Positioning
Completed Input)
Connect the phase-Z signal from the Servo Driver to the Origin Input Signal.
When the Origin Input Signal is received, the pulse output will be stopped and
the Error Counter Reset Signal will be output for about 20 to 30 ms.
When the Origin Proximity Input Signal is received, the motor will begin decel-
erating from the origin search high speed to the origin search proximity speed.
In this operating mode, the motor will stop at the Origin Input Signal after
deceleration is completed.
Operating Mode 1 with Origin Proximity Input Signal Reverse (Origin
Detection Method Setting = 0)
When the deceleration time is short, the Origin Input Signal can be detected
immediately after the Origin Proximity Input Signal goes from ON to OFF. Set
1
1
0
0
CCW CW
Origin Proximity
Input Signal
Origin Input
Signal
Pulse output
Starts when
ORG(889) is
executed.
Origin Input Signal goes from OFF
to ON while motor is decelerating.
Original pulse output
pattern
Origin Input Signal
Error (error code
0202)
1
1
0
0
Approx. 20 to 30 ms
Origin Input Signal
(Phase-Z signal)
Pulse output
Error Counter Reset
Signal
203
Pulse Outputs Section 5-2
a Origin Proximity Input Signal dog setting that is long enough (longer than
the deceleration time.)
Operating Mode 1 without Origin Proximity Input Signal Reverse (Origin
Detection Method Setting = 1)
Depending on the length of the deceleration time, the stopping position may
change when the Origin Input Signal is detected during deceleration.
Operating Mode 2 (with Error Counter Reset Output, with Positioning
Completed Input)
This operating mode is the same as mode 1, except the Positioning Com-
pleted Signal (INP) from the Servo Driver is used. Connect the Positioning
Completed Signal from the Servo Driver to a normal input (origin search 0 to 3
input).
1
1
0
0
CCW
CCW
CW
CW
Origin Proximity
Input Signal
Origin Input Signal
(Phase-Z signal)
Pulse output
Verify that the Origin Proximity Input
Signal's dog setting is long enough
(longer than the deceleration time.)
Origin Input
Signal is
ignored during
deceleration.
Motor stopped by an Origin
Input Signal received after
deceleration.
Starts when
ORG(889) is
executed.
Stop
Ideal time for the Origin Proximity Input
Signal to go OFF.
(Settings when the
deceleration time is short)
Stop (See note.)
Starts when ORG(889)
is executed.
Note: The Origin Input Signal can be detected immediately
after the Origin Proximity Input Signal goes from ON
to OFF if the deceleration time is short, e.g., starting
from within the Origin Proximity Input Signal.
1
1
0
0
CCW
CCW CW
CW
Origin Proximity
Input Signal
Origin Input Signal
(Phase-Z signal)
(The deceleration time is
relatively long in this case.)
Pulse output
(The deceleration time is short
in this case.)
Origin Input
Signal is
ignored during
deceleration. Motor stopped by an Origin
Input Signal received after
deceleration.
Starts when
ORG(889) is
executed.
Stop
Motor stopped by an
Origin Input Signal
received after
deceleration.
Starts when
ORG(889)
is executed.
Stop
204
Pulse Outputs Section 5-2
If origin compensation is not being applied, the Positioning Completed Signal
is checked after the Error Counter Reset Output. If origin compensation is
being applied, the Positioning Completed Signal is checked after the compen-
sation operation is completed.
Origin Search Operation
Setting
Select either of the following two reverse modes for the origin search opera-
tion pattern.
Origin Detection Method The origin detection method depends on the Origin Proximity Input Signal set-
tings. Select one of the following three methods in each ports parameters.
Origin Detection Method 0: Origin Proximity Input Signal Reversal
Required
1
1
0
0
Pulse output
Error Counter
Reset Output
Positioning
Completed
Signal
Stop
Time
Setting Description
0: Reversal mode 1 When the limit input signal is received in the origin search
direction, reverse and continue operation.
1: Reversal mode 2 When the limit input signal is received in the origin search
direction, generate an error and stop operation.
Setting Description
0: Origin Proximity Input Signal
reversal required.
Reads the first Origin Input Signal after the Ori-
gin Proximity Input Signal goes
OFFONOFF.
1: Origin Proximity Input Signal
reversal not required.
Reads the first Origin Input Signal after the Ori-
gin Proximity Input Signal goes OFFON.
2: Origin Proximity Input Signal not
used.
Just read the Origin Input Signal without using
the Origin Proximity Input Signal.
1
1
0
0
CCW
CW
Origin Proximity
Input Signal
Origin Input
Signal
Pulse output
Deceleration starts when
Origin Proximity Input
Signal goes OFFON.
After the Origin Proximity Input Signal has gone
from OFFONOFF, the motor is stopped
when the Origin Input Signal goes OFFON.
Initial
speed
Acceleration
High speed for
origin search
Deceler-
ation
Proximity speed for origin search
Start when
ORG(889) is
executed.
Stop
205
Pulse Outputs Section 5-2
Origin Detection Method 1: Origin Proximity Input Signal Reversal Not
Required
Origin Detection Method 2: Origin Proximity Input Signal Reversal Not
Used
Origin Search Operating
Mode and Origin
Detection Method Settings
The following examples explain how the operation patterns are affected by the
origin search operation and origin detection method settings.
These examples have a CW origin search direction. (The search direction and
limit input signal direction would be different for an origin search in the CCW
direction.)
1
1
0
0
CCW CW
Origin Proximity
Input Signal
Origin Input
Signal
Pulse output
Deceleration starts when
Origin Proximity Input
Signal goes OFFON.
After the Origin Proximity Input Signal has gone
from OFFONOFF, the motor is stopped when
the Origin Input Signal goes OFFON.
Initial
speed
Acceleration
High speed for
origin search
Deceler-
ation
Proximity speed for origin search
Start when
ORG(889) is
executed.
Stop
1
0
Origin Input
Signal
Pulse output
Deceleration starts when
Origin Proximity Input
Signal goes OFFON.
Initial
speed
Acceleration
Proximity speed
for origin search
Start when
ORG(889) is
executed.
Stop
206
Pulse Outputs Section 5-2
Using Reversal Mode 1
Origin search
operation
Origin
detection
method
0: Reversal mode 1
0: Origin Prox-
imity Input Sig-
nal reversal
required.
Note When the limit input signal is received, the motor stops without decel-
eration, reverses direction, and accelerates.
1: Origin Prox-
imity Input Sig-
nal reversal not
required.
Note When the limit input signal is received, the motor stops without decel-
eration, reverses direction, and accelerates.
2: Origin Prox-
imity Input Sig-
nal not used.
Note When the direction of operation is reversed, it is reversed immediately
without deceleration or acceleration.
1
1
0
0
CCW
CCW
CCW
CW
CW
CW
Origin Proximity
Input Signal
Origin Input
Signal
Pulse output
High speed for origin search
Proximity speed for origin search
Stop
CW limit input signal (See note.)
Stop
Start
Start
Start Stop
1
1
0
0
CCW
CCW
CCW
CW
CW
CW
Origin Proximity
Input Signal
Origin Input
Signal
Pulse output
Start
Stop
CW limit input signal
(See note.)
Stop
Start
Start Stop
1
0
CCW
CCW
CCW
CW
CW
CW
Origin Input
Signal
Pulse output
Proximity speed for origin search
Start
Stop
Start
CW limit input signal
(See note.)
Stop Start
Stop
207
Pulse Outputs Section 5-2
Using Reversal Mode 2
Origin search
operation
Origin detection
method
1: Reversal mode 2
0: Origin Proximity Input
Signal reversal required.
Note When the limit input signal is received, the motor stops without deceleration.
1: Origin Proximity Input
Signal reversal not
required.
Note When the limit input signal is received, the motor stops without deceleration.
1
1
0
0
CCW
CCW
CCW
CW
CW
CW
Origin Proximity
Input Signal
Origin Input
Signal
Pulse output
Start
Stop
CW limit input signal
(See note.)
Start
Stop
Limit stop
(error code 0200)
Start
1
1
0
0
CCW
CCW
CCW
CW
CW
CW
Origin Proximity
Input Signal
Origin Input
Signal
Pulse output
Stop
Start
Start
Stop
Start Limit stop
(error code 0200)
CW limit input signal
(See note.)
208
Pulse Outputs Section 5-2
Specifying the Origin
Search Direction (CW or
CCW Direction)
Sets the direction to move when detecting the Origin Input Signal.
Typically, the origin search is performed so that the Origin Input Signal's rising
edge is detected when moving in the origin search direction.
Origin Search Speed These are the motor speed settings used in the origin search.
Note The origin search will not be performed in these cases:
Origin search high speed Origin search proximity speed
Origin search proximity speed Origin search initial speed
Origin Search/Return Initial Speed
Sets the motor's starting speed when the origin search is executed. Specify
the speed in the number of pulses per second (pps).
Origin Search High Speed
Sets the motor's target speed when the origin search is executed. Specify the
speed in the number of pulses per second (pps).
Origin Search Proximity Speed
Sets the motor's speed after the Origin Proximity Input Signal is detected.
Specify the speed in the number of pulses per second (pps).
Origin Search Acceleration Rate
Sets the motor's acceleration rate when the origin search is executed. Specify
the amount to increase the speed (Hz) per 4-ms interval.
Origin Search Deceleration Rate
Sets the motor's acceleration rate when the origin search function is deceler-
ating. Specify the amount to decrease the speed (Hz) per 4-ms interval.
Origin Compensation After the origin has been determined, the origin compensation can be set to
compensate for a shift in the Proximity Sensor's ON position, motor replace-
ment, or other change.
2: Origin Proximity Input
Signal not used.
Note When the limit input signal is received, the motor stops without deceleration.
Origin search
operation
Origin detection
method
1: Reversal mode 2
1
0
CCW
CCW
CCW
CW
CW
CW
Origin Input
Signal
Pulse output
Proximity speed for origin search
Start
Stop
CW limit input signal (See note.)
Start Stop
Start
Limit stop (error code 0201)
Setting Description
0 CW direction
1 CCW direction
209
Pulse Outputs Section 5-2
Once the origin has been detected in an origin search, the number of pulses
specified in the origin compensation is output, the current position is reset to
0, and the pulse output's No-origin Flag is turned OFF.
Setting range: 8000 0000 to 7FFF FFFF hex (2,147,483,648 to
2,147,483,647) pulses
I/O Settings Limit Input Signal Type (NC/NO)
Specifies the type of input signal (normally closed or normally open) being
used for the limit inputs.
0: NC
1: NO
Origin Proximity Input Signal Type (NC/NO)
Specifies the type of input signal (normally closed or normally open) being
used for the Origin Proximity Input Signal.
0: NC
1: NO
Origin Input Signal Type (NC/NO)
Specifies the type of input signal (normally closed or normally open) being
used for the Origin Input Signal.
0: NC
1: NO
Positioning Monitor Time When the operating mode is set to mode 2, this setting specifies how long to
wait (in ms) for the Positioning Completed Signal after the positioning opera-
tion has been completed, i.e., the pulse output has been completed. A Posi-
tioning Timeout Error (error code 0300) will be generated if the motor driver's
Positioning Completed Signal does not come ON within the specified time.
Setting range: 0000 to 270F hex (0 to 9,999 ms)
The actual monitoring time will be the Positioning Monitor Time rounded up to
the nearest 10-ms unit + 10 ms max.
If the Positioning Monitor Time is set to 0, the function will be disabled and the
Unit will continue waiting for the Positioning Completed Signal to come ON. (A
Positioning Timeout Error will not be generated.)
Executing an Origin Search
Execute ORG(889) in the ladder program to perform an origin search with the
specified parameters.
Restrictions
The motor can be moved even if the origin position has not been determined
with the origin search function, but positioning operations will be limited as fol-
lows:
P
C
ORG(889) P: Port specifier
Pulse output 0: #0000
Pulse output 1: #0001
C: Control data; Origin search and CW/CCW method: #0000
Origin search and pulse + direction method: #0001
Function Operation
Origin return Cannot be used.
210
Pulse Outputs Section 5-2
An origin search will not be started unless the origin search proximity speed is
less than the origin search high speed and unless the origin search/return ini-
tial speed is less than the origin search proximity speed.
Origin Search Error Processing
The CP1L CPU Unit's pulse output function performs a basic error check
before starting to output pulses (when the instruction is executed) and will not
output pulses if the settings are incorrect. There are other errors that can
occur with the origin search function during pulse output, which may stop the
pulse output.
If an error occurs that stops pulse output, the pulse output's Output Stopped
Error Flag will be turned ON and the Pulse Output Stop Error Code will be
written to Error Code word. Use these flags and error codes to identify the
cause of the error.
The Pulse Output Stop Errors will not affect the CPU Unit's operating status.
(The Pulse Output Stop Errors do not cause a fatal or non-fatal error in the
CPU Unit.)
Related Auxiliary Area Flags
Pulse Output Stop Error Codes
Positioning with absolute
pulse specification
Cannot be used.
Positioning with relative
pulse specification
Outputs the specified number of pulses after setting the
current position to 0.
Function Operation
Function Pulse output number
0 1
Output Stopped Error Flags
ON when an error occurred while outputting pulses in the ori-
gin search function.
0: No error
1: Stop error occurred.
A280.07 A281.07
Stop Error Codes
When a Pulse Output Stop Error occurs, the error code is stored in that pulse outputs corre-
sponding Stop Error Code word.
A444 A445
Error name Error code Likely cause Corrective action Operation after
error
CW Limit Stop Input
Signal
0100 Stopped due to a CW limit signal
input.
Move in the CCW direction. Immediate stop,
No effect on
other port CCW Limit Stop
Input Signal
0101 Stopped due to a CCW limit sig-
nal input.
Move in the CW direction.
No Origin Proximity
Input Signal
0200 The parameters indicate that the
Origin Proximity Input Signal is
being used, but a Origin Proxim-
ity Input Signal was not received
during the origin search.
Check the wiring of the Origin
Proximity Input Signal as well as
the PLC Setup's Origin Proxim-
ity Input Signal Type setting (NC
or NO) and execute the origin
search again. Turn the power
supply OFF and then ON if the
signal type setting was changed.
No effect on
other port
No Origin Input Sig-
nal
0201 The Origin Input Signal was not
received during the origin
search.
Check the wiring of the Origin
Input Signal as well as the PLC
Setup's Origin Input Signal Type
setting (NC or NO) and execute
the origin search again. Turn the
power supply OFF and then ON
if the signal type setting was
changed.
211
Pulse Outputs Section 5-2
Origin Input Signal
Error
0202 During an origin search in oper-
ating mode 0, the Origin Input
Signal was received during the
deceleration started after the
Origin Proximity Input Signal
was received.
Take one or both of the following
steps so that the Origin Input
Signal is received after deceler-
ation is completed.
Increase the distance between
the Origin Proximity Input Sig-
nal sensor and Origin Input Sig-
nal sensor.
Decrease the difference
between the origin search's
high speed and proximity
speed settings.
Decelerates to a
stop,
No effect on
other port
Limit Inputs in Both
Directions
0203 The origin search cannot be per-
formed because the limit signals
for both directions are being
input simultaneously.
Check the wiring of the limit sig-
nals in both directions as well as
the PLC Setup's Limit Signal
Type setting (NC or NO) and
execute the origin search again.
Turn the power supply OFF and
then ON if the signal type setting
was changed.
Operation will
not start.
No effect on
other port
Simultaneous Origin
Proximity and Limit
Inputs
0204 The Origin Proximity Input Sig-
nal and the Limit Input Signal in
the search direction are being
input simultaneously during an
origin search.
Check the wiring of the Origin
Proximity Input Signal and the
Limit Input Signal. Also check
the PLC Setup's Origin Proxim-
ity Input Signal Type and Limit
Signal Type settings (NC or NO)
and then execute the origin
search again. Turn the power
supply OFF and then ON if a
signal type setting was changed.
Immediate stop,
No effect on
other port
Limit Input Signal
Already Being Input
0205 When an origin search in one
direction is being performed,
the Limit Input Signal is already
being input in the origin search
direction.
When a non-regional origin
search is being performed, the
Origin Input Signal and the
Limit Input Signal in the oppo-
site direction (from the search
direction) are being input simul-
taneously.
Check the wiring of the Limit
Input Signal and the PLC
Setup's I/O settings. Also check
the PLC Setup's Limit Signal
Type setting (NC or NO) and
then execute the origin search
again. Turn the power supply
OFF and then ON if the signal
type setting was changed.
Immediate stop,
No effect on
other port
Origin Proximity
Input Signal Origin
Reverse Error
0206 When an origin search with
reversal at the limit is being per-
formed, the Limit Input Signal in
the search direction was input
while the Origin Proximity Input
Signal was reversing.
When an origin search with
reversal at the limit is being per-
formed and the Origin Proximity
Input Signal is not being used,
the Limit Input Signal in the
search direction was input
while the Origin Input Signal
was reversing.
Check the installation positions
of the Origin Proximity Input Sig-
nal, Origin Input Signal, and
Limit Input Signal as well as the
PLC Setup's I/O settings. Also
check the PLC Setup's Signal
Type settings (NC or NO) for
each input signal and then exe-
cute the origin search again.
Turn the power supply OFF and
then ON if a signal type setting
was changed.
Immediate stop,
No effect on
other port
Positioning Timeout
Error
0300 The Servo Driver's Positioning
Completed Signal does not
come ON within the Positioning
Monitor Time specified in the
PLC Setup.
Adjust the Positioning Monitor
Time setting or Servo system
gain setting. Check the Position-
ing Completed Signal wiring,
correct it if necessary, and then
execute the origin search again.
Decelerates to a
stop,
No effect on
other port
Error name Error code Likely cause Corrective action Operation after
error
212
Pulse Outputs Section 5-2
Origin Search Examples
Operation Connect a Servo Driver and execute an origin search based on the Servomo-
tor's built-in encoder phase-Z signal and a Origin Proximity Input Signal.
Conditions Operating mode: 1
(Uses the Servomotor encoder's phase-Z signal as the Origin Input Sig-
nal.)
Origin search operation setting: 0
(Sets reverse mode 1. Reverses direction when the limit input signal is
input in the origin search direction.)
Origin detection method: 0
(Reads the Origin Input Signal after the Origin Input Signal goes
OFFONOFF.)
Origin search direction: 0 (CW direction)
System Configuration
Instructions Used ORG(889)
CW limit
detection
sensor
Origin Proximity
Input sensor
Workpiece
CCW limit
detection
sensor
Servomotor
Encoder
Servomotor Driver
Pulse output from built-in
outputs OUT0
0.00: Servomotor encoder's
phase-Z input; Origin input
0.10: Origin proximity input sensor
0.00: CW limit detection sensor
0.01: CCW limit detection sensor
213
Pulse Outputs Section 5-2
I/O Allocations
(Example: CP1L-M40/30
DT@-D, CP1L-L20D@-D
Units)
Inputs
Outputs
Operation
PLC Setup
Input terminal Name
Word Bit
CIO 0 00 CW limit detection sensor
01 CCW limit detection sensor
06 Pulse Output 0 Origin Input Signal
10 Pulse Output 0 Origin Proximity Input Signal
Word Bit Name
A540 08 Pulse Output 0 CW Limit Input Signal
09 Pulse Output 0 CCW Limit Input Signal
Output terminal Name
Word Bit
CIO 100 00 Pulse Output 0 CW output
01 Pulse Output 0 CCW output
Function Setting (example)
Pulse Output 0 Origin Search Function Enable/Disable 1 hex: Enabled
Pulse Output 0 Origin Search Operating Mode 1 hex: Mode 1
Pulse Output 0 Origin Search Operation Setting 0 hex: Reverse mode 1
Pulse Output 0 Origin Detection Method 0 hex: Origin detection method 0
Pulse Output 0 Origin Search Direction Setting 0 hex: CW direction
Pulse Output 0 Origin Search/Return Initial Speed 0064 hex (100 pps)
0000 hex
Pulse Output 0 Origin Search High Speed 07D0 hex (2,000 pps)
0000 hex
1
1
0
0
CCW CW
Pulse Output 0
Origin Proximity Input
(0.10)
Pulse Output 0
Origin Signal Input
(0.06)
Pulse Output 0
(100.00 and 100.01)
Pulse
frequency
Execution of
ORG(889) starts.
Origin search starts.
Origin search
initial speed
Origin search
acceleration
rate
Origin search
high speed
Origin search
deceleration
rate
Stop
Origin search
proximity speed
214
Pulse Outputs Section 5-2
Ladder Program
5-2-6 Origin Return
Overview
Moves the motor to the origin position from any other position. The origin
return operation is controlled by ORG(889).
The origin return operation returns the motor to the origin by starting at the
specified speed, accelerating to the target speed, moving at the target speed,
and then decelerating to a stop at the origin position.
Pulse Output 0 Origin Search Proximity Speed 03E8 hex (1,000 pps)
0000 hex
Pulse Output 0 Origin Compensation 0000 hex
0000 hex
Pulse Output 0 Origin Search Acceleration Rate 0032 hex (50 Hz/4 ms)
Pulse Output 0 Origin Search Deceleration Rate 0032 hex (50 Hz/4 ms)
Pulse Output 0 Limit Input Signal Type 1: NO
Pulse Output 0 Origin Proximity Input Signal Type 1: NO
Pulse Output 0 Origin Input Signal Type 1: NO
Function Setting (example)
@ORG
#0000
#0000
CW limit detection
sensor
0.00
CW Limit
Input Signal
0.01
CCW limit
detection sensor
A540.08
CCW Limit
Input Signal
A540.09
Execution condition
Origin search 0:
#0000; Origin
search and
CW/CCW
method: #0000
Pulse frequency
Origin return
initial speed
Start
Started by executing
ORG(889)
Origin return
acceleration
rate
Origin return
target speed
Origin return
deceleration rate
Stop
Time
215
Pulse Outputs Section 5-2
Procedure
PLC Setup
The various origin return parameters are set in the PLC Setup.
Origin Return Parameters
Explanation of the Origin Return Parameters
Origin Search/Return
Initial Speed
Sets the motor's starting speed when the origin return is executed. Specify
the speed in the number of pulses per second (pps).
Origin Return Target
Speed
Sets the motor's target speed when the origin return is executed. Specify the
speed in the number of pulses per second (pps).
Origin Return
Acceleration Rate
Sets the motor's acceleration rate when the origin return operation starts.
Specify the amount to increase the speed (Hz) per 4-ms interval.
Origin Return
Deceleration Rate
Sets the motor's acceleration rate when the origin return function is decelerat-
ing. Specify the amount to decrease the speed (Hz) per 4-ms interval.
Executing an Origin Return
Note An instruction execution error will occur if the origin is not determined (relative
coordinate system) when ORG(889) is executed to perform an origin return
operation.
1. Starting Speed for Origin Search and Origin Return
2. Origin return target speed
3. Origin return acceleration rate
4. Origin return deceleration rate
Outputs: Use either the CW/CCW method or Pulse +
direction method. The same method must be used
for both pulse output 0 and pulse output 1.
Various origin return parameter settings
Execution of ORG(889)
To specify the origin return operation, set bits 12
to 15 of the second operand to 1 hex.
Determine the origin return parameters.
Wire the outputs.
PLC Setup settings
Ladder program
Name Settings Remarks
Origin search/return initial speed 00000001 to 000186A0 hex
(1 Hz to 100 kHz)
J models: 00000001 to 00004E20 hex
(1 Hz to 20kHz)
Start of operation
Origin return target speed Same as above.
Origin return acceleration rate 0001 to FFFF hex
(1 to 65,535 Hz/4 ms)
Origin return deceleration rate 0001 to FFFF hex
(1 to 65,535 Hz/4 ms)
P
C
ORG(889)
P: Port specifier (Pulse output 0: #0000, Pulse output 1: #0001)
Pulse output 0: #0000
Pulse output 1: #0001
C: Control data
(Origin return and CW/CCW method: #1000, Origin search and pulse
+ direction method: #1100)
216
Pulse Outputs Section 5-2
5-2-7 Pulse Output Procedures
Single-phase Pulse Output without Acceleration/Deceleration
The number of output pulses setting cannot be changed during positioning.
PULS(886) and SPED(885)
Determine the pulse output method,
output frequency, and port.
Pulse output method
CW/CCW inputs: Pulse outputs 0 to 1
Pulse + direction inputs: Pulse outputs 0 to 1
Output frequency: 1 Hz to 100 kHz (1 Hz units)
J models: 1 Hz to 20 kHz (1 Hz units)
Wire the outputs.
PLC Setup settings
Enable/disable the origin search function. Set the
various origin search parameters if the origin search
function is enabled.
Ladder program
PULS(886): Specify port number and set the number of
output pulses.
SPED(885): Specify port number and set the output
method (CW/CCW method or Pulse + direction method)
and pulse output control without acceleration/deceleration.
INI(880): Specify port number and stop pulse output when
necessary.
PRV(881): Specify port number and read pulse output PV
when necessary.
217
Pulse Outputs Section 5-2
Single-phase Pulse Output with Acceleration/Deceleration
PULS(886) and ACC(888)
Determine the pulse output method,
output frequency, and port.
Wire the outputs.
PLC Setup settings
Enable/disable the origin search function. Set the
various origin search parameters if the origin
search function is enabled.
Ladder program
PULS(886): Specify port number and set the number
of output pulses.
ACC(888): Specify port number and set the output
method (CW/CCW method or Pulse + direction
method) and pulse output control with
acceleration/deceleration (the same rate is used for
both acceleration and deceleration.)
INI(880): Specify port number and stop pulse output
when necessary.
PRV(881): Specify port number and read pulse
output PV when necessary.
Pulse output method
CW/CCW inputs
Pulse + direction inputs
Output frequency: 1 Hz to 100 kHz (1 Hz units)
J models: 1 Hz to 20 kHz (1 Hz units)
218
Pulse Outputs Section 5-2
Pulse Output with Trapezoidal Acceleration/Deceleration (Using PLS2(887))
5-2-8 Instructions Used for Pulse Outputs
The pulse output functions can be used by executing the pulse control instruc-
tions in the ladder program. For some instructions, the PLC Setup must be set
in advance. The following instructions can be combined for positioning and
speed control.
Supported Pulse
Instructions
Use the following 8 instructions to control the pulse outputs.
Determine the pulse output
method, output frequency, and port.
Wire the outputs.
PLC Setup settings
Enable/disable the origin search function. Set the
various origin search parameters if the origin
search function is enabled.
Ladder program
PLS2(887): Specify port number and set the
output method (CW/CCW method or Pulse +
direction method) and pulse output control with
trapezoidal acceleration/deceleration (different
rates can be set for acceleration and
deceleration).
INI(880): Specify port number and stop pulse
output when necessary.
PRV(881): Specify port number and read pulse
output PV when necessary.
Pulse output method
CW/CCW inputs
Pulse + direction inputs
Output frequency: 1 Hz to 100 kHz (1 Hz units)
J models: 1 Hz to 20 kHz (1 Hz units)
219
Pulse Outputs Section 5-2
The following table shows the kinds of pulse outputs controlled by each
instruction.
Instruction Function Positioning (independent mode) Speed control
(continuous mode)
Origin
search
Pulse
output
without
accelera-
tion/
decelera-
tion
Pulse output with accel-
eration/deceleration
Pulse
output
without
accelera-
tion/
decelera-
tion
Pulse
output
with
accelera-
tion/
decelera-
tion
Trapezoi-
dal, equal
accelera-
tion/ decel-
eration
rates
Trapezoi-
dal, sepa-
rate
accelera-
tion/ decel-
eration
rates
PULS(886)
SET PULSES
Sets the number of pulses
to be output.
Used --- --- --- --- ---
SPED(885)
SPEED OUTPUT
Performs pulse output con-
trol without acceleration or
deceleration.
(When positioning, the
number of pulses must be
set in advance with
PULS(886).)
Used --- --- Used --- ---
ACC(888)
ACCELERATION
CONTROL
Performs pulse output con-
trol with acceleration and
deceleration.
(When positioning, the
number of pulses must be
set in advance with
PULS(886).)
--- Used --- --- Used ---
PLS2(887)
PULSE OUTPUT
Performs pulse output con-
trol with independent
acceleration and decelera-
tion rates.
(Also sets the number of
pulses.)
--- --- Used --- --- ---
ORG(889)
ORIGIN SEARCH
Actually moves the motor
with pulse outputs and
determines the machine
origin based on the Origin
Proximity Input and Origin
Input signals
--- --- --- --- --- Used
INI(880)
MODE CONTROL
Stops the pulse output.
Changes the pulse output
PV. (This operation deter-
mines the origin location.)
Used Used Used Used Used ---
PRV(881)
HIGH-SPEED
COUNTER PV
READ
Reads the pulse output PV. Used Used Used Used Used ---
PWM(891)
PULSE WITH
VARIABLE DUTY
FACTOR
Performs pulse output con-
trol with variable duty fac-
tor pulse output.
--- --- --- --- --- ---
220
Pulse Outputs Section 5-2
SET PULSES: PULS(886) PULS(886) is used to set the pulse output amount (number of output pulses)
for pulse outputs that are started later in the program using SPED(885) or
ACC(888) in independent mode.
SPEED OUTPUT:
SPED(885)
SPED(885) can be used to perform pulse output without acceleration or
deceleration. Either independent mode positioning or continuous mode speed
control is possible. For independent mode positioning, the number of pulses is
set using PULS(886).
SPED(885) can also be executed during pulse output to change the output
frequency, creating stepwise changes in the speed.
Operand Contents
P Port specifier 0000 hex: Pulse output 0
0001 hex: Pulse output 1
T Pulse type 0000 hex: Relative pulse output
0001 hex: Absolute pulse output
N First number
of pulses word
N and N+1 contain the number of pulses setting. (N contains
the rightmost 4 digits and N+1 contains the leftmost 4 digits.)
Relative pulse output:
0000 0000 to 7FFF FFFF hex (0 to 2,147,483,647)
Absolute pulse output:
8000 0000 to 7FFF FFFF hex (-2,147,483,648 to
2,147,483,647)
PULS(886)
P
T
N
P: Port specifier
T: Pulse type
N: Number of pulses
Operand Contents
P Port specifier 0000 hex: Pulse output 0
0001 hex: Pulse output 1
T Output
mode
Bits 0 to 3 Mode
0 hex: Continuous
1 hex: Independent
Bits 4 to 7 Direction
0 hex: CW
1 hex: CCW
Bits 8 to 11 Pulse output method (See note.)
0 hex: CW/CCW
1 hex: Pulse + direction
Bits 12 to 15 Not used. (Always 0 hex.)
F First pulse frequency
word
F and F+1 contain the pulse frequency setting, in units of
1 Hz. (F contains the rightmost 4 digits and F+1 contains
the leftmost 4 digits.)
0000 0000 to 000186A0 hex (0 Hz to 100 kHz)
J models: 0000 0000 to 00004E20 hex (0 Hz to 20 kHz)
SPED(885)
P
T
F
P: Port specifier
T: Output mode
F: First pulse frequency word
221
Pulse Outputs Section 5-2
ACCELERATION
CONTROL: ACC(888)
Use ACC(888) to set the target frequency and acceleration and deceleration
rate and output pulses with acceleration and deceleration. (Acceleration rate
is the same as the deceleration rate.)
Either independent mode positioning or constant mode speed control is possi-
ble when used in combination with PULS(886). ACC(888) can also be exe-
cuted during pulse output to change the target frequency or acceleration/
deceleration rate, enabling smooth (sloped) speed changes.
PULSE OUTPUT:
PLS2(887)
Use PLS2(887) to set the startup frequency, acceleration rate, and decelera-
tion rate, and output a specified number of pulses. Only independent mode
positioning is supported.
PLS2(887) can also be executed during pulse output to change the number of
output pulses, target frequency, acceleration rate, or deceleration rate.
Operand Contents
P Port specifier 0000 hex: Pulse output 0
0001 hex: Pulse output 1
M Output
mode
Bits 0 to 3 Mode
0 hex: Continuous
1 hex: Independent
Bits 4 to 7 Direction
0 hex: CW
1 hex: CCW
Bits 8 to 11 Pulse output method (See note.)
0 hex: CW/CCW
1 hex: Pulse + direction
Bits 12 to 15 Not used. (Always 0 hex.)
S First
set-
tings
table
word
S Acceleration/deceleration rate:
0001 to FFFF hex (1 to 65,535 Hz)
Specify the increase or decrease in the frequency per
pulse control period (4 ms).
S+1 and
S+2
S and S+1 contain the target frequency setting, in units
of 1 Hz. (S+1 contains the rightmost 4 digits and S+2
contains the leftmost 4 digits.)
0000 0000 to 000186A0 hex (0 Hz to 100 kHz)
J models: 0000 0000 to 00004E20 hex (0 Hz to 20 kHz)
ACC(888)
P
M
S
P: Port specifier
M: Output mode
S: First word of settings table
PLS2(887)
P
M
S
F
P: Port specifier
M: Output mode
S: First word of settings table
F: First word of starting frequency
222
Pulse Outputs Section 5-2
ORIGIN SEARCH:
ORG(889)
ORG(889) performs an origin search or origin return operation. The required
PLC Setup parameters must be set before performing an origin search or ori-
gin return operation.
Origin Search
Positions the system to the origin based on the origin proximity input and ori-
gin input signals.
Origin Return
Returns the system from its present position to the pre-established origin.
Operand Contents
P Port specifier 0000 hex: Pulse output 0
0001 hex: Pulse output 1
M Output
mode
Bits 0 to 3 Mode
0000 hex: Relative pulse output
0001 hex: Absolute pulse output
Bits 4 to 7 Direction
0 hex: CW
1 hex: CCW
Bits 8 to 11 Pulse output method (See note.)
0 hex: CW/CCW
1 hex: Pulse + direction
Bits 12 to 15 Not used. (Always 0 hex.)
S First
set-
tings
table
word
S Acceleration rate:
0001 to FFFF hex (1 to 65,535 Hz)
Specify the increase or decrease in the frequency per
pulse control period (4 ms).
S+1 Deceleration rate:
0001 to FFFF hex (1 to 65,535 Hz)
Specify the increase or decrease in the frequency per
pulse control period (4 ms).
S+2 and
S+3
S+2 and S+3 contain the target frequency setting, in
units of 1 Hz. (S+2 contains the rightmost 4 digits and
S+3 contains the leftmost 4 digits.)
0000 0000 to 000186A0 hex (0 Hz to 100 kHz)
J models: 0000 0000 to 00004E20 hex (0 Hz to 20 kHz)
S+4 and
S+5
S+4 and S+5 contain the number of pulses setting. (S+4
contains the rightmost 4 digits and S+5 contains the left-
most 4 digits.)
Relative pulse output:
0000 0000 to 7FFF FFFF hex (0 to 2,147,483,647)
Absolute pulse output:
8000 0000 to 7FFF FFFF hex (-2,147,483,648 to
2,147,483,647)
F First starting fre-
quency word
F and F+1 contain the starting frequency setting, in units
of 1 Hz. (F contains the rightmost 4 digits and F+1 con-
tains the leftmost 4 digits.)
0000 0000 to 000186A0 hex (0 Hz to 100 kHz)
J models: 0000 0000 to 00004E20 hex (0 Hz to 20 kHz)
ORG(889)
P
C
P: Port specifier
C: Control data
223
Pulse Outputs Section 5-2
MODE CONTROL: INI(880) In addition to the various interrupt and high-speed counter functions, INI(880)
can be used to change the pulse output PV or stop the pulse output.
Note This section explains the functions related to pulse outputs only. For details on
the INI(880) instructions high-speed counter or interrupt functions, refer to 6-1
Interrupt Functions or 5-1 High-speed Counters.
HIGH-SPEED COUNTER
PV READ: PRV(881)
In addition to its interrupt and high-speed counter functions, PRV(881) can be
used to read the pulse output PV or pulse output status information.
The status of the following flags is read as status information:
Pulse Output Status Flag
PV Underflow/Overflow Flag
Pulse Output Amount Set Flag
Pulse Output Completed Flag
Pulse Output Flag
No-origin Flag
At Origin Flag
Pulse Output Stopped Error Flag
Operand Contents
P Port specifier 0000 hex: Pulse output 0
0001 hex: Pulse output 1
C Con-
trol
data
Bits 0 to 3 Not used. (Always 0 hex.)
Bits 4 to 7 Not used. (Always 0 hex.)
Bits 8 to 11 Pulse output method (See note.)
0 hex: CW/CCW
1 hex: Pulse + direction
Bits 12 to 15 Mode
0 hex: Origin search
1 hex: Origin return
Operand Contents
P Port specifier 0000 hex: Pulse output 0
0001 hex: Pulse output 1
1000 hex: PWM output 0
1001 hex: PWM output 1
C Control data 0002 hex: Change the PV.
0003 hex: Stop pulse output.
NV First word of new PV NV and NV+1 contain the new PV when changing the
PV. (N contains the rightmost 4 digits and N+1 con-
tains the leftmost 4 digits.)
0000 0000 to FFFFFFFF hex
INI(880)
P
C
NV
P: Port specifier
C: Control data
NV: First word of new PV
PRV(881)
P
C
D
P: Port specifier
C: Control data
D: First destination word
224
Pulse Outputs Section 5-2
Note This section explains the functions related to pulse outputs only. For details on
the PRV(881) instructions high-speed counter or interrupt functions, refer to
6-1 Interrupt Functions or 5-1 High-speed Counters.
PULSE WITH VARIABLE
DUTY FACTOR: PWM(891)
PWM(891) is used to output pulses with the specified duty factor.
Operand Contents
P Port specifier 0000 hex: Pulse output 0
0001 hex: Pulse output 1
1000 hex: PWM output 0
1001 hex: PWM output 1
C Control data 0000 hex: Read the PV.
0001 hex: Read the status.
0003 hex: Read the pulse output frequency.
0013 hex: Read the frequency for 10-ms sampling.
0023 hex: Read the frequency for 100-ms sampling.
0033 hex: Read the frequency for 1-s sampling.
D First
desti-
nation
word
Reading PV
(D and D+1)
After the pulse output PV is read, the 8-digit hexadecimal
data is stored in D and D+1. (D contains the rightmost 4
digits and D+1 contains the leftmost 4 digits.)
Reading
pulse output
status
(D)
Bit 0 Pulse Output Status Flag
0: Constant speed
1: Accelerating/decelerating
Bit 1 PV Underflow/Overflow Flag
0: Normal
1: Error
Bit 2 Pulse Output Amount Set Flag
0: Not set
1: Set
Bit 3 Pulse Output Completed Flag
0: Output not completed
1: Output completed
Bit 4 Pulse Output Flag
0: Stopped
1: Outputting pulses
Bit 5 No-origin Flag
0: Origin established
1: Origin not established
Bit 6 At Origin Flag
0: Not stopped at origin
1: Stopped at origin
Bit 7 Pulse Output Stopped Error Flag
0: No error
1: Pulse output stopped due to error
Bits 8 to 15 Not used.
Reading
PWM output
status (D)
Bit 0 PWM Output Flag
0: Stopped
1: Outputting pulses
Bits 1 to 15 Not used.
PWM
P
F
D
P: Port specifier
F: Frequency
D: Duty factor
225
Pulse Outputs Section 5-2
Combinations of
Pulse Control
Instructions
The following tables show when a second pulse control instruction can be
started if a pulse control operation is already being executed.
Generally, a second independent-mode positioning instruction can be started
if an independent-mode positioning instruction is being execute, and a second
continuous-mode speed control instruction can be started if a continuous-
mode speed control instruction is being executed. Operation cannot be
switched between the independent and continuous modes, although
PLS2(887) can be started while ACC(888) (continuous mode) is being exe-
cuted.
It is possible to start another operation during acceleration/deceleration and
start another positioning instruction during positioning.
Note (1) SPED(885) (Independent) to SPED(885) (Independent)
Operand Contents
P Port specifier 0000 hex: Pulse output 0 (duty factor set in 1% units, fre-
quency 0.1 Hz units)
0001 hex: Pulse output 1 (duty factor set in 1% units, fre-
quency 0.1 Hz units)
1000 hex: Pulse output 0 (duty factor set in 0.1% units,
frequency 0.1 Hz units)
1001 hex: Pulse output 1 (duty factor set in 0.1% units,
frequency 0.1 Hz units)
0100 hex: Pulse output 0 (duty factor set in 1% unit, fre-
quency 1 Hz units)
0101 hex: Pulse output 1 (duty factor set in 1% unit, fre-
quency 1 Hz units)
1100 hex: Pulse output 0 (duty factor set in 0.1% unit,
frequency 1 Hz units)
1101 hex: Pulse output 1 (duty factor set in 0.1% unit,
frequency 1 Hz units)
T Frequency 0001 to FFFF hex (0.1 to 6553.5 Hz, in 0.1 Hz units)
0001 to 8020 hex (1 to 32,800 Hz, in 1 Hz units)
S Duty factor Specify the duty factor of the pulse output, i.e., the percent-
age of time that the output is ON.
0000 to 03E8 hex: 0.0% to 100.0% (in 0.1 units)
0000 to 0064 hex: 0.0% to 100% (in 1% units)
Instruction being executed Starting instruction
(: Can be executed., : Instruction Error occurs and Error Flag goes ON)
INI(880) SPED(885)
(Independent)
SPED(885)
(Continuous)
ACC(888)
(Independent)
ACC(888)
(Continuous)
PLS2(887) ORG(889)
SPED(885) (Independent) (note 1) (note 3)
SPED(885) (Continuous) (note 2) (note 5)
ACC(888)
(Independent)
Steady speed (note 4) (note 6)
Accelerating or
decelerating
(note 4) (note 6)
ACC(888)
(Continuous)
Steady speed (note 5) (note 7)
Accelerating or
decelerating
(note 5) (note 7)
PLS2(887) Steady speed (note 4) (note 8)
Accelerating or
decelerating
(note 4) (note 8)
ORG(889) Steady speed
Accelerating or
decelerating
PWM
226
Pulse Outputs Section 5-2
The number of pulses cannot be changed.
The frequency can be changed.
The output mode and direction cannot be switched.
(2) SPED(885) (Continuous) to SPED(885) (Continuous)
The frequency can be changed.
The output mode and direction cannot be switched.
(3) SPED(885) (Independent) to ACC(888) (Independent)
The number of pulses cannot be changed.
The frequency can be changed.
The acceleration/deceleration rate can be changed.
The output mode and direction cannot be switched.
(4) ACC(888) (Independent) to ACC(888) (Independent)
or PLS2(887) to ACC(888) (Independent)
The number of pulses cannot be changed.
The frequency can be changed.
The acceleration/deceleration rate can be changed. (The rate can
even be changed during acceleration or deceleration.)
The output mode and direction cannot be switched.
(5) SPED(885) (Continuous) to ACC(888) (Continuous)
or ACC(888) (Continuous) to ACC(888) (Continuous)
The frequency can be changed. (The target frequency can even be
changed during acceleration or deceleration.)
The acceleration/deceleration rate can be changed. (The rate can
even be changed during acceleration or deceleration.)
The output mode and direction cannot be switched.
(6) ACC(888) (Independent) to PLS2(887)
The number of pulses can be changed. (The setting can even be
changed during acceleration or deceleration.)
The frequency can be changed. (The target frequency can even be
changed during acceleration or deceleration.)
The acceleration/deceleration rate can be changed. (The rate can
even be changed during acceleration or deceleration.)
The output mode and direction cannot be switched.
(7) ACC(888) (Continuous) to PLS2(887)
The frequency can be changed. (The target frequency can even be
changed during acceleration or deceleration.)
The acceleration/deceleration rate can be changed. (The rate can
even be changed during acceleration or deceleration.)
The output mode and direction cannot be switched.
(8) PLS2(887) to PLS2(887)
The number of pulses can be changed. (The setting can even be
changed during acceleration or deceleration.)
The frequency can be changed. (The target frequency can even be
changed during acceleration or deceleration.)
The acceleration/deceleration rate can be changed. (The rate can
even be changed during acceleration or deceleration.)
The output mode and direction cannot be switched.
227
Pulse Outputs Section 5-2
5-2-9 Variable Duty Factor Pulse Outputs (PWM(891) Outputs)
Overview
PWM (Pulse Width Modulation) pulse outputs can be output with a specified
duty factor. The duty factor is the ratio of the pulse's ON time and OFF time in
one pulse cycle. Use the PWM(891) instruction to generate variable duty fac-
tor pulses from a built-in output.
The duty factor can be changed while pulses are being output.
Bit Allocations
Procedure
Specifications
Note The frequency can be set up to 6553.5 Hz in the PWM(891) instruction, but
the duty factor accuracy declines significantly at high frequencies because of
limitations in the output circuit at high frequencies.
5-2-10 Example Pulse Output Applications
Outputting Pulses after a Preset Delay
This example program waits for a preset time (0.5 ms) after the interrupt input
(CIO 0.04) goes ON and then outputs 100,000 pulses at 100 kHz from pulse
output 0.
Word Bit Function
CIO 100 01 PWM output 0
03 PWM output 1
Item Specifications
Duty factor 0.0% to 100.0% in 0.1% increments
(Duty factor accuracy is +1%/0% at10 kHz, +5%/0% at
10 to 32.8 kHz .)
Frequency 0.1 Hz to 6,553.5 Hz
Set in 0.1 Hz units. (See note.)
Output mode Continuous mode
Instruction PWM(891)
PWM output 0 or PWM output 1
Enable/disable the origin search function.
Execute PWM(891).
Determine the pulse output port.
Wire the outputs.
PLC Setup settings
Ladder program
228
Pulse Outputs Section 5-2
Input interrupt task 0 (interrupt task number 140) starts a scheduled interrupt
with a scheduled time of 0.5 ms. The scheduled interrupt task executes the
pulse output instructions and stops the scheduled interrupt.
Instructions Used MSKS(690) Enables the I/O interrupt. Starts the scheduled interrupt.
PULS(886) Sets the number of output pulses.
SPED(885) Starts the pulse output.
Preparation
PLC Setup
Built-in Input Settings
Pulse Output 0 Settings
MSKS PULS SPED
Pulse output 0
(CIO 100.00)
Interrupt input 0
(CIO 0.04)
I/O interrupt
response time
Scheduled interrupt
time 500 s
PLC Setup setting details
Use built-in input 0.04 as the interrupt input.
PLC Setup setting details
Do not use high-speed counter 0.
Do not use the pulse output 0 origin search function.
229
Pulse Outputs Section 5-2
Scheduled Interrupt Time Unit Setting
PLC Setup setting details Data
Set the scheduled interrupt time units to 0.1 ms. 0002 hex
230
Pulse Outputs Section 5-2
Ladder Program
Cyclic Task (Task 0)
Built-in Input 0 Interrupt Task (Interrupt Task 140)
* Select 0.1 ms for the setting units in the PLC Setup.
Scheduled Interrupt Task 0 (Interrupt Task 2)
#0000
MSKS(690)
0100
P_First_Cycle_Task
Task Start Flag
Built-in interrupt input 0
(IN0.04)
Unmask (Enable
interrupts.)
MSKS(690)
#0005
0014
A280.04
Pulse Output 0
Output In-progress
Flag
Scheduled interrupt 2
(Reset start)
Scheduled interrupt time
(5 x 0.1 ms* = 0.5 ms)
#0000
#0000
&100000
SPED(885)
MSKS(690)
#0001
&100000
#0000
0014
PULS(886)
#0000
P_On
Always ON
Flag
Pulse output 0
Relative pulse
specification
Number of output pulses
(100,000 pulses)
Pulse output 0
Specifies CW/CCW outputs,
CW direction, and
independent mode.
Target frequency
(100,000 Hz)
Scheduled interrupt 0
Stop scheduled interrupt
231
Pulse Outputs Section 5-2
Positioning (Trapezoidal Control)
Specifications and
Operation
When the start input (0.00) goes ON, this example program outputs 600,000
pulses from pulse output 0 and turns the motor.
Instructions Used PLS2(887)
Preparation
PLC Setup
There are no settings that need to be made in the PLC Setup.
DM Area Settings PLS2(887) Settings (D00000 to D00007)
Ladder Program
Remarks Absolute pulses can be specified when the origin position has been deter-
mined.
If a target frequency that cannot be reached has been set, the target fre-
quency will be reduced automatically, i.e., triangular control will be per-
formed. In some cases where the acceleration rate is substantially greater
than the deceleration rate, the operation won't be true triangular control.
The motor will be operated at a constant speed for a short time between
the acceleration and deceleration.
100 Hz
Target frequency
50,000 Hz
Starting frequency
Start input (0.00)
Acceleration rate
300 Hz/4 ms
Number of
output pulses
600,000 pulses
Deceleration rate
200 Hz/4 ms
Setting details Address Data
Acceleration rate: 300 Hz/4 ms D0 012C
Deceleration rate: 200 Hz/4 ms D1 00C8
Target frequency: 50,000 Hz D2 C350
D3 0000
Number of output pulses: 600,000 pulses D4 27C0
D5 0009
Starting frequency: 100 Hz D6 0064
D7 0000
@PLS2 (887)
#0000
D0
D6
#0001
END(001)
0.00
Pulse output 1
Start input
Specifies CW/CCW output method,
CW side, and relative pulses
Target frequency, number of
pulses setting
Starting frequency
232
Pulse Outputs Section 5-2
Jog Operation
Specifications and
Operation
Low-speed jog operation (CW) will be executed from pulse output 1 while
input 0.00 is ON.
Low-speed jog operation (CCW) will be executed from pulse output 1
while input 0.01 is ON.
High-speed job operation (CW) will be executed from pulse output 1 while
input 0.04 is ON.
High-speed jog operation (CCW) will be executed from pulse output 1
while input 0.05 is ON.
Instructions Used SPED(885) Starts and stops (immediate stop) the low-speed jog operations.
ACC(888) Starts and stops (decelerate to a stop) the high-speed jog opera-
tions.
Preparation
PLC Setup
There are no settings that need to be made in the PLC Setup.
DM Area Settings Settings to Control Speed while Jogging
(D0 to D1 and D10 to D15)
1,000 Hz
Target frequency
CW Low-speed
JOG (0.00)
CCW Low-speed
JOG (0.01)
Target frequency
100,000 Hz
CW High-speed jog
(0.04)
CCW high-speed
jog (0.05)
Acceleration/de-
celeration rate
100 Hz/4 ms
Acceleration/de-
celeration rate
100 Hz/4 ms
Setting details Address Data
Target frequency (low speed): 1,000 Hz D0 03E8
D1 0000
Acceleration rate: 100 Hz/4 ms D10 0064
233
Pulse Outputs Section 5-2
Ladder Program
Target frequency (high speed): 100,000 Hz D011 86A0
D12 0001
Deceleration rate: 100 Hz/4 ms (Not used.) D13 0064
Target frequency (stop): 0 Hz D14 0000
D15 0000
Setting details Address Data
#0001
#0001
#0000
#0001
#0001
#0000
0.00 A281.04
W0.00 0.00
0.01 A281.04
W0.01 0.01
SPED(885)
SPED(885)
SPED(885)
#0000
D0
SET W0.00
#0000
RSET W0.00
#0010
D0
SET W0.01
SPED(885)
#0010
RSET W0.01
Low-speed
CW Start
Pulse Output
in Progress
Pulse output 1
Specifies CW/CCW output method,
CW side, and continuous mode.
Target frequency
Low-speed
CW output in
progress
Low-speed
CW Start
Low-speed
CCW Start
Outputting
Pulses
Pulse output 1
Specifies CW/CCW output method,
CW side, and continuous mode.
Target frequency
Low-speed
CCW output
in progress
Low-speed
CCW Start
234
Pulse Outputs Section 5-2
Remarks PLS2(887) can be used to set a starting frequency or unequal acceleration
and deceleration rates, but there are limitations on the operating range
because the end point must be specified in PLS2(887).
Cutting Long Material Using Fixed Feeding
Specifications and
Operation
Outline
In this example, first jogging is used to position the material and then fixed-
distance positioning is used to feed the material.
#0001
#0001
#0001
#0001
ACC(888)
#0000
D10
SET W0.02
ACC(888)
#0000
D13
RSET W0.02
ACC(888)
#0010
D00010
SET W0.03
ACC(888)
#0010
D13
RSET W0.03
END(001)
0.04 A281.04
W0.02 0.04
0.05 A281.04
W0.03 0.05
High-speed
CW Start
Pulse Output
in Progress
Pulse output 1
Specifies CW/CCW output method,
CW side, and continuous mode.
High-speed
CW output in
progress
High-speed
CW Start
High-speed
CCW Start
Pulse Output
in Progress
Pulse output 1
Specifies CW/CCW output method,
CW side, and continuous mode.
Acceleration rate and target frequency
High-speed
CCW output
in progress
High-speed
CCW Start
Acceleration rate and target frequency
CW
1,000 Hz
10,000 Hz
50000
Material cut
with cutter
Material cut
with cutter
Material cut
with cutter
Acceleration: 1,000 Hz/4 ms
Jogging
Fixed-distance
feeding
(03E8 hex)
(2710 hex)
(03E8 hex)
(C350 hex)
235
Pulse Outputs Section 5-2
System Configuration
Operation
1,2,3... 1. The workpiece is set at the starting position using the Jogging Switch Input
(IN 0.00).
2. The workpiece is feed the specified distance (relative) using the Position-
ing Switch Input (IN 0.01).
3. When feeding has been completed, the cutter is activated using the Cutter
Start Output (OUT 100.02).
4. Feeding is started again when the Cutter Finished Input (IN 0.02) turns
ON.
5. The feeding/cutting operation is repeated for the number of times specified
for the counter (C0, 100 times).
6. When the operation has been completed, the Cutting Operation Finished
Output (OUT 100.03). is turned ON.
The feeding operation can be canceled and operation stopped at any point
using the Emergency Switch Input (IN 0.03).
Instructions Used SPED(885)
PLS2(887)
Preparation
PLC Setup
There are no settings that need to be made in the PLC Setup.
DM Area Settings
Speed Settings for Jogging (D0 to D3)
Jogging switch
IN 0.00
Positioning switch
IN 0.01
Emergency stop switch
IN 0.03
Cut operation finished
OUT 100.03
Pulse output (CW/CCW)
Cutter finished
IN 0.02
Cutter start
OUT 100.02
Built-in I/O other than pulse outputs are used.
Setting details Address Data
Target frequency: 1,000 Hz D0 03E8
D1 0000
Target frequency: 0 Hz D2 0000
D3 0000
236
Pulse Outputs Section 5-2
Settings for PLS2(887) for Fixed-distance Feeding (D10 to D20)
Ladder Program
Setting details Address Data
Acceleration rate: 1,000 Hz/4 ms D10 03E8
Deceleration rate: 1,000 Hz/4 ms D11 03E8
Target frequency: 10,000 Hz D12 2710
D13 0000
Number of output pulses: 50,000 pulses D14 C350
D15 0000
Starting frequency: 0000 Hz D16 0000
D17 0000
Counter setting: 100 times D20 0100
SPED(885)
#0000
#0000
D0
0.00
SET W0.00
A280.04
SPED(885)
#0000
#0000
D2
0.00
RSET W0.00
W0.00
@PLS2(887)
#0000
#0000
D10
D16
0.01
0.02
CNT
0000
D20
A280.03
100.02
A280.03
0.01
C0000
100.03
INI(880)
#0000
#0003
0
0.03
Jog Operation
Jogging
Switch
Pulse Output
In-Progress
Flag
Target frequency:
1,000 Hz
Jogging Flag
Jogging
Switch
Jogging
Flag
Target frequency:
0Hz
Jogging Flag
Fixed-distance Feed
Positioning
Switch
Cutter
Finished
Pulse Output
Completed Flag
Cutter activated
Counting Feed Operations
Emergency
Stop
Cutting Operation
Finished
Pulse Output
Completed Flag
Positioning
Switch
237
Pulse Outputs Section 5-2
Remarks
1,2,3... 1. PLS22(887) used a relative pulse setting. This enables operation even if
the origin is not defined. The present position in A276 (lower 4 digits) and
A277 (upper 4 digits) is set to 0 before pulse output and then contains the
specified number of pulses.
2. ACC(888) can be used instead of SPED(885) for the jog operation. If
ACC(888) is used, acceleration/deceleration can be included in the jog op-
eration.
Vertically Conveying PCBs (Multiple Progressive Positioning)
Specifications and
Operation
Outline
1,2,3... 1. PCBs with components mounted are stored in a stocker.
2. When a stocker becomes full, it is moved to the conveyance point.
Positioning Operation for Vertical Conveyor
Operation Pattern
1,2,3... 1. An origin search is performed.
2. Fixed-distance positioning is repeated.
(2) (3)
(1)
Stocker conveyance
position
From mounter
238
Pulse Outputs Section 5-2
3. The system is returned to the original position.
CW CCW
CW CCW
50,000 Hz
10000
(C350 hex)
CCW
limit
Origin
(servo
phase Z)
Origin
proximity
CW
limit
2. Fixed-distance
positioning repeated
3. Return to start
Acceleration/
deceleration:
1,000 Hz/4 ms
(03E8 hex)
Stocker
movement
completed
Stocker
moved
PCB storage
completed
PCB storage
enabled
1. Origin search
(2710 hex)
239
Pulse Outputs Section 5-2
Wiring Example Using SmartStep A-series Servo Driver
Operation
1,2,3... 1. An origin search is performed using the Origin Search Switch (CIO 0.00).
2. When the origin search is finished, the PCB Storage Enabled Output
(CIO 100.03) is turned ON.
3. When a PCB has been stored, the stocker is raised (relative positioning)
using the PCB Storage Completed Input (CIO 0.03).
4. Storing PCBs is repeated until the stocker is full.
5. The number of PCBs in the stocker is counted with counter C0 by counting
the number of times the stocker is raised.
Stocker Movement Completed (CIO 0.04)
Origin Search Switch (CIO 0.00)
Emergency Stop Switch (CIO 0.01)
PCB Storage Completed (CIO 0.03)
Stocker Moving (CIO 100.02)
PCB Storage Enable (CIO 100.03)
SmartStep A-series
Servo Driver
R88A-CPU00@S and resistor
1
2
5
6
8
13
14
18
10
35
34
7
+CW
CW
+ECRST
ECRST
INP
33 ZCOM
32 Z
+24VIN
RUN
RESET
OGND
ALMCOM
ALM
FG
X1
XB
24 VDC
X1
Servo Driver
RUN input
24 VDC
BKIR
CW output (CIO 100.00)
CCW output (CIO 100.01)
4
3 +CCW
CCW
24-VDC input terminal (+)
24-VDC input terminal (-)
COM (CIO 100)
COM
1.6 k
1.6 k
1.6 k
R88A-CPU00@S
Shell
SMARTSTEP A-series Servo Driver
CP1L-M40/30DT-D, CP1L-20DT-D
Output Terminal Block
Pulse
output
0
Deviation counter reset output 0 (CIO 100.04)
Stocker moving (CIO 100.02)
PCB storage enable (CIO 100.03)
Input Terminal Block
Pulse 0 origin input signal (CIO 0.06)
Pulse 0 origin proximity input signal (CIO 0.10)
Origin search switch (CIO 0.00)
Emergency stop switch (CIO 0.01)
PCB storage completed (CIO 0.03)
Stocker movement completed (CIO 0.04)
Servo Driver
alarm reset input
240
Pulse Outputs Section 5-2
6. When the stocker is full, it is moved (CIO 100.02) and only the conveyor is
lowered (absolute positioning) when stoker movement is completed (CIO
0.04).
The operation can be canceled and pulse output stopped at any point using
the Emergency Switch Input (CIO 0.01).
Preparation
PLC Setup
Note The origin search enable setting is read when the power supply is turned ON.
DM Area Settings Settings for PLS2(887) for Fixed-distance Positioning (D0 to D7)
Settings for PLS2(887) to Return to Start (D10 to D17)
Setting details
Enable origin search function for pulse output 0.
Setting details Address Data
Acceleration rate: 1,000 Hz/4 ms D0 03E8
Deceleration rate: 1,000 Hz/4 ms D1 03E8
Target frequency: 50,000 Hz D2 C350
D3 0000
Number of output pulses: 10,000 pulses D4 2710
D5 0000
Starting frequency: 0 Hz D6 0000
D7 0000
Setting details Address Data
Acceleration rate: 300 Hz/4 ms D10 012C
Deceleration rate: 200 Hz/4 ms D11 00C8
Target frequency: 50,000 Hz D12 C350
D13 0000
241
Pulse Outputs Section 5-2
Number of Repeats of Fixed-distance Positioning Operation (D20)
Number of output pulses: 10,000 15 pulses D14 49F0
D15 0002
Starting frequency: 100 Hz D16 0000
D17 0000
Setting details Address Data
Setting details Address Data
Number of repeats of fixed-distance positioning operation
(number of PCBs in stocker)
D20 0015
242
Pulse Outputs Section 5-2
Ladder Program
ORG(889)
#0000
#0000
0.00 W0.01
100.03
W0.04
W0.00
W0.00
W0.01
A280.05
W0.01
W0.05
W0.02
100.03
W0.02
0.03
W0.02
W0.03
W0.04
W0.03
W0.04
A280.03
@PLS2(887)
#0000
#0000
D0
D6
CNT
0000
D20 W0.09
Origin
Search
Switch
Origin
Search
Completed
Origin Search in
progress
Origin
Search in
progress
No Origin
Flag
Origin Search
Completed
Origin Search
Completed
Lift
positioning
start
PCB Storage
enabled
PCB
Stored
PCB
storage
completed
Lift positioning
start
PCB
Storage enabled
Positioning
Lift 10,000 pulses (relative) at a time
Lift
positioning
start
Lift
positioning
completed
Lift positioning in
progress
Lift
positioning
in
progress
Lift positioning
completed
Counter for Number of Lifts (Number of PCBs stored)
Lift positioning
completed
Lower
positioning
completed
Pulse Output
Completed Flag
Jog Operation
243
Pulse Outputs Section 5-2
W0.04 C0000
0.01
W0.05
W0.06
100.02
W0.07
100.02
W0.07
0.04
W0.07
W0.08
W0.09
W0.08
W0.09
A280.03
@PLS2(887)
#0000
#0001
D10
D16
@INI(880)
#0000
#0003
0
W0.04 C0000
W0.06
0.05
A540.08
0.07
A540.09
When the stocker is not full (C0=OFF), store PCB,
and repeat lift positioning after PCB storage is completed.
Lift
positioning
completed
Stocker
full
PCB Stored
When the stocker is full (C0=ON), move the stocker,
and start lower positioning after stocker movement is completed.
Lift
positioning
completed
Stocker
full
Stocker Moving
Stocker
Moving
Lower
positioning
start
Stocker moving
output
Stocker
moving
output
Stocker
movement
completed
Lower positioning
start
Positioning
Lower to "0" position (absolute pulses)
Lower
positioning
start
Lower
positioning
start
Lower positioning
in progress
Lower
positioning
in progress
Pulse
output
completed
Lower positioning
completed
Emergency Stop (Pulse Output Stopped)
Emergency
stop
switch
Repeat Limit Input Settings
Limit inputs are allocated to external sensors using the following programming.
Built-in
input
CW limit input
signal
Built-in
input
CCW limit input
signal
244
Pulse Outputs Section 5-2
Palletize: Two-axis Multipoint Positioning
Specifications and
Operation
Outline
Operation Pattern
1,2,3... 1. An origin search is performed.
2. A workpiece is grasped and moved to position A.
3. The workpiece is grasped at one position and moved back and forth to sev-
eral assembly positions.
Note The X and Y axes are moved independently, i.e., interpolation is not per-
formed.
X axis
Y axis
Cylinder
Workpieces grasped
and moved.
B
C
50000 30000
35000
25000
5000
5000
A
D
(C350 hex) (7530 hex)
(88B8 hex)
(61A8 hex)
(1388 hex)
(1388 hex)
1. Origin search
2. Move to
position A.
3. Move back and
forth to several
positions.
Origin
1
.
O
r
i
g
i
n
s
e
a
r
c
h
X axis (CW)
Y axis (CW)
245
Pulse Outputs Section 5-2
Wiring Example Using SmartStep A-series Servo Driver
Origin Search Switch (CIO 0.00)
Emergency Stop Switch (CIO 0.01)
SMARTSTEP A-series Servo Driver
X axis
SMARTSTEP A-series Servo Driver
Y axis
R88A-CPU00@S and resistor
R88A-CPU00@S and resistor
246
Pulse Outputs Section 5-2
X Axis
Y Axis
1
2
5
6
8
13
14
18
10
35
34
7
INP
33 ZCOM
32 Z
24VIN
RUN
RESET
OGND
ALMCOM
ALM
FG
X1
XB
24 VDC
X1
24 VDC
BKIR
4
3
CW output (CIO 100.00)
CCW output (CIO 100.01)
R88A-CPU00@S
SMARTSTEP A-series Servo Driver CP1L-M40/30DT-D, CP1L-L20DT-D
Output Terminal Block
Pulse
output
0
24-VDC input terminal (+)
24-VDC input terminal (-)
COM (CIO 100)
Deviation counter reset output 0 (CIO 100.04)
COM
Input Terminal Block
Pulse 0 origin input signal (CIO 0.06)
Pulse 0 origin proximity input signal (CIO 0.10)
Origin search switch (CIO 0.00)
Emergency stop switch (CIO 0.01)
+CW
CW
+ECRST
ECRST
+CCW
CCW
1.6 k
1.6 k
1.6 k
Shell
Servo Driver
RUN input
Servo Driver
alarm reset input
1
2
5
6
8
13
14
18
10
35
34
7
+CW
CW
+ECRST
ECRST
INP
33 ZCOM
32 Z
24VIN
RUN
RESET
OGND
ALMCOM
ALM
FG
X1
XB
24 VDC
X1
24 VDC
BKIR
4
3 +CCW
CCW
Servo Driver
RUN input
Servo Driver
alarm reset input
CW output (CIO 100.02)
CCW output (CIO 100.03)
R88A-CPU00@S
SMARTSTEP A-series Servo Driver CP1L-M40/30DT-D, CP1L-L20DT-D
Output Terminal Block
Pulse
output
1
24-VDC input terminal (+)
24-VDC input terminal (-)
COM (CIO 100)
Deviation counter reset output 1 (CIO 100.05)
COM
Input Terminal Block
Pulse 1 origin input signal (CIO 0.07)
Pulse 1 origin proximity input signal (CIO 0.11)
Origin search switch (CIO 0.00)
Emergency stop switch (CIO 0.01)
1.6 k
1.6 k
1.6 k
Shell
247
Pulse Outputs Section 5-2
Operation
1,2,3... 1. An origin search is performed using the Origin Search Switch (CIO 0.00).
2. When the origin search is finished, the following operations are performed
continuously.
Move to A.
Move to B and return to A.
Move to C and return to A.
Move to D and return to A.
3. An emergency stop can be performed using the Emergency Stop Input
(CIO 0.01)
Preparation
PLC Setup
Note The origin search enable setting is read when the power supply is turned ON.
Setting details
Enable origin search function for pulse output 0 and 1.
248
Pulse Outputs Section 5-2
DM Area Settings
Starting Frequency
PLS2(887) Settings to Move from Origin to Position A
PLS2(887) Settings to Move from Position A to Position B
Setting details Address Data
X-axis starting frequency D0 0000
Y-axis starting frequency D2 0000
Setting details Address Data
X axis Acceleration rate: 2,000 Hz/4 ms D10 07D0
Deceleration rate: 2,000 Hz/4 ms D11 07D0
Target frequency: 100,000 Hz D12 86A0
D13 0001
Number of output pulses: 5,000 pulses D14 1388
D15 0000
Y axis Acceleration rate: 2,000 Hz/4 ms D20 07D0
Deceleration rate: 2,000 Hz/4 ms D21 07D0
Target frequency: 100,000 Hz D22 86A0
D23 0001
Number of output pulses: 5,000 pulses D24 1388
D25 0000
Setting details Address Data
X axis Acceleration rate: 2,000 Hz/4 ms D30 07D0
Deceleration rate: 2,000 Hz/4 ms D31 07D0
Target frequency: 100,000 Hz D32 86A0
D33 0001
Number of output pulses: 25,000 pulses D34 61A8
D35 0000
249
Pulse Outputs Section 5-2
PLS2(887) Settings to Move from Position A to Position C
PLS2(887) Settings to Move from Position A to Position D
Y axis Acceleration rate: 2,000 Hz/4 ms D40 07D0
Deceleration rate: 2,000 Hz/4 ms D41 07D0
Target frequency: 100,000 Hz D42 86A0
D43 0001
Number of output pulses: 50,000 pulses D44 C350
D45 0000
Setting details Address Data
Setting details Address Data
X axis Acceleration rate: 2,000 Hz/4 ms D50 07D0
Deceleration rate: 2,000 Hz/4 ms D51 07D0
Target frequency: 100,000 Hz D52 86A0
D53 0001
Number of output pulses: 35,000 pulses D54 88B8
D55 0000
Y axis Acceleration rate: 2,000 Hz/4 ms D60 07D0
Deceleration rate: 2,000 Hz/4 ms D61 07D0
Target frequency: 100,000 Hz D62 86A0
D63 0001
Number of output pulses: 50,000 pulses D64 C350
D65 0000
Setting details Address Data
X axis Acceleration rate: 2,000 Hz/4 ms D70 07D0
Deceleration rate: 2,000 Hz/4 ms D71 07D0
Target frequency: 100,000 Hz D72 86A0
D73 0001
Number of output pulses: 25,000 pulses D74 61A8
D75 0000
Y axis Acceleration rate: 2,000 Hz/4 ms D80 07D0
Deceleration rate: 2,000 Hz/4 ms D81 07D0
Target frequency: 100,000 Hz D82 86A0
D83 0001
Number of output pulses: 30,000 pulses D84 7530
D85 0000
250
Pulse Outputs Section 5-2
Ladder Program
000000
(000000)
[Program Name: New Program1]
[Section Name: Section1]
Origin Search for X and Y Axis
0.00
Origin
Search
Switch
SET
W0.00
<W000.00>
a02 a06
000001
(000002)
W0.00 W1.14 Origin Search
start
<W001.14>
a48
W1.15
Origin
Search
completed
RSET
W0.00
<W000.00>
a02 a06
000002
(000006)
Operation 1: Positioning to A
W0.00 SET
W0.01
<W000.01>
a08 a12
000003
(000008)
W0.01 W1.00 Positioning to A
start
<W001.00>
a54
W2.00
Positioning
to A
completed
RSET
W0.01
<W000.01>
a08 a12
000004
(000012)
Operation 2: Positioning to B
W0.01 SET
W0.02
<W000.02>
a14 a18
000005
(000014)
W0.02 W1.01 Positioning to B
start
<W001.01>
a63
W2.01
Positioning
to B
completed
RSET
W0.02
<W000.02>
a14 a18
000006
(000018)
Operation 2: Positioning to A
W0.02 SET
W0.03
<W000.03>
a20 a24
000007
(000020)
W0.03 W3.00 Positioning to A
start
<W003.00>
a55
W2.00
Positioning
to A
completed
RSET
W0.03
<W000.03>
a20 a24
000008
(000024)
Operation3: Positioning to C
251
Pulse Outputs Section 5-2
W0.03 SET
W0.04
<W000.04>
a26 a30
000009
(000026)
W0.04 W1.02 Positioning to C
start
<W001.02>
a69
W2.02
Positioning
to C
completed
RSET
W0.04
<W000.04>
a26 a30
000010
(000030)
Operation 3: Positioning to A
W0.04 SET
W0.05
<W000.05>
a32 a36
000011
(000032)
W0.05 W3.01 Positioning to A
start
<W003.01>
a56
W2.00
Positioning
to A
completed
RSET
W0.05
<W000.05>
a32 a36
000012
(000036)
Operation 4: Positioning to D
W0.05 SET
W0.06
<W000.06>
a38 a42
000013
(000038)
W0.06 W1.03 Positioning to D
start
<W001.03>
a75
W2.03
Positioning
to D
completed
RSET
W0.06
<W000.06>
a38 a42
000014
(000042)
Operation 5: Positioning to A
W0.06 SET
W0.07
<W000.07>
a44
000015
(000044)
W0.07 W3.02 Positioning to A
start
<W003.02>
a57
W2.00
Positioning
to A
completed
RSET
W0.07
<W000.07>
a44
000016
(000048)
Origin Search Start and Completion for X and Y Axis
W1.14
Origin
Search
start
@ORG
(889)
#0
#0
[OP1]
[OP2]
@ORG
(889)
#1
#0
[OP1]
[OP2]
252
Pulse Outputs Section 5-2
A280.05
No Origin
Flag
A281.05
No Origin
Flag
W1.15 Origin Search
completed
<W001.15>
a04
000017
(000054)
Positioning to A Start and Completion for X and Y axis
W1.00
Positioning
to A
start
@PLS2
(887)
#0
#1
D10
D0
[OP1]
[OP2]
[OP3]
[OP4]
<cD00000>
c64 c70 c76
W3.00
Positioning
to A
start
W3.01
Positioning
to A
start
W3.02
Positioning
to A
start
@PLS2
(887)
#1
#1
D20
D2
[OP1]
[OP2]
[OP3]
[OP4]
<cD00002>
c65 c71 c77
A280.03
Pulse
output
completed
A281.03
pulse
output
completed
W2.00 Positioning to A
completed
<W002.00>
a10 a22 a34 a46
000018
(000063)
Positioning to B Start and Completion for X and Y axis
W1.01
Positioning
to B
start
@PLS2
(887)
#0
#1
D30
D0
[OP1]
[OP2]
[OP3]
[OP4]
<cD00000>
c58 c70 c76
@PLS2
(887)
#1
#1
D40
D2
[OP1]
[OP2]
[OP3]
[OP4]
<cD00002>
c59 c71 c77
A280.03
Pulse
output
completed
A281.03
pulse
output
completed
W2.01 Positioning to B
completed
<W002.01>
a16
000019
(000069)
Positioning to C Start and Completion for X and Y axis
W1.02
Positioning
to C
start
@PLS2
(887)
#0
#1
D50
D0
[OP1]
[OP2]
[OP3]
[OP4]
253
Pulse Outputs Section 5-2
<cD00000>
c58 c64 c76
@PLS2
(887)
#1
#1
D60
D2
[OP1]
[OP2]
[OP3]
[OP4]
<cD00002>
c59 c65 c77
A280.03
Pulse
output
completed
A281.03
pulse
output
completed
W2.02 Positioning to C
completed
<W002.02>
a28
000020
(000075)
Positioning to D Start and Completion for X and Y axis
W1.03
Positioning
to D
start
@PLS2
(887)
#0
#1
D70
D0
[OP1]
[OP2]
[OP3]
[OP4]
<cD00000>
c58 c64 c70
@PLS2
(887)
#1
#1
D80
D2
[OP1]
[OP2]
[OP3]
[OP4]
<cD00002>
c59 c65 c71
A280.03
Pulse
output
completed
A281.03
pulse
output
completed
W2.03 Positioning to D
completed
<W002.03>
a40
000021
(000081)
Emergency Stop (Pulse Output Stopped)
0.01
Emergency
stop
switch
@INI
(880)
#0
#3
0
[OP1]
[OP2]
[OP3]
<c0>
c83
<0.00>
a00
<0.01>
a81
<0.06>
b84
<0.07>
b86
<0.08>
b88
<0.09>
b90
@INI
(880)
#1
#3
0
[OP1]
[OP2]
[OP3]
<c0>
c82
<0.00>
a00
<0.01>
a81
<0.06>
b84
<0.07>
b86
254
Pulse Outputs Section 5-2
<0.08>
b88
<0.09>
b90
000022
(000084)
Limit Input Setting
0.04
Built-in
input
A540.08 CW limit input
signal X axis
000023
(000086)
0.05
Built-in
input
A540.09 CCW limit input
signal X axis
000024
(000088)
0.08
Built-in
input
A541.08 CW limit input
signal Y axis
000025
(000090)
0.09
Built-in
input
A541.09 CCW limit input
signal Y axis
255
Pulse Outputs Section 5-2
Feeding Wrapping Material: Interrupt Feeding
Specifications and
Operation
Feeding Wrapping Material in a Vertical Pillow Wrapper
Operation Pattern
Speed control is used to feed wrapping material to the initial position. When
the marker sensor input is received, fixed-distance positioning is performed
before stopping.
Operation
1,2,3... 1. Speed control is used to feed wrapping material to the initial position when
the Start Switch (CIO 0.00) is activated.
2. When the Marker Sensor Input (0.04) is received, PLS2(887) is executed
in interrupt task 140.
3. Fixed-distance positioning is executed with PLS2(887) before stopping.
4. An emergency stop is executed to stop pulse output with the Emergency
Stop input (0.01).
Start Switch (CIO 0.00)
Pulse output
(CW/CCW)
Marker sensor
(Built-in input 0.04)
Position
control
Speed
control
Emergency Stop Switch (CIO 0.01)
10000 Hz
500 Hz/4 ms
(2710 hex)
(01F4 hex)
Speed
control
Position control
5,000 (1388 hex) pulses
output before stopping.
Input interrupt task
executes PLS2(887)
Marker sensor
input (0.04)
256
Pulse Outputs Section 5-2
Preparation
PLC Setup
Note The interrupt input setting is read when the power supply is turned ON.
DM Area Settings
Speed Control Settings to Feed Wrapping Material to Initial Position
Positioning Control Settings for Wrapping Material
Setting details
Enable using built-in input IN0 as an interrupt input.
Setting details Address Data
Acceleration rate: 1,000 Hz/4 ms D0 03E8
Target frequency: 10,000 Hz D1 2710
D2 0000
Setting details Address Data
Acceleration rate: 500 Hz/4 ms D10 01F4
Deceleration rate: 500 Hz/4 ms D11 01F4
Target frequency: 10,000 Hz D12 2710
D13 0000
Number of output pulses: 5,000 pulses D14 1388
D15 0000
Starting frequency: 0 Hz D16 0000
D17 0000
257
Pulse Outputs Section 5-2
Ladder Program
Cyclic Task Program
(Executed at Startup)
Program for Interrupt Task
140
000000
(000000)
[Program Name: New Program1]
[Section Name: Section1]
Enabling Input Interrupt 0 (IN0)
P_First_Cycle
MSKS
(690)
6
#0
[OP1]
[OP2]
000001
(000002)
Feeding Material with Speed Control
0.00
Material
feed start
W0.01
Material
positioning
completed
W0.00 Material being
fed
<W000.00>
a03
W0.00
Material
being fed
@ACC
(888)
#0
#0
D0
[OP1]
[OP2]
[OP3]
A280.03 A280.04 W0.01 Material
positioning
completed
<W000.01>
b04
000002
(000010)
Emergency Stop (Pulse Output Stopped)
0.01
Emergency
stop
switch
@INI
(880)
#0
#3
0
[OP1]
[OP2]
[OP3]
<0.00>
a02
<0.01>
a10
Pulse Output
Completed Flag
Pulse Output
Completed Flag
First Cycle Flag
000000
(000000)
[Program Name: New Program2]
[Section Name: Section1]
Interrupt Task for Master Sensor ON
Starting interrupt Feed
P_On
Always ON Flag
PLS2
(887)
#0
#0
D10
D16
[OP1]
[OP2]
[OP3]
[OP4]
258
Inverter Positioning Section 5-3
5-3 Inverter Positioning
5-3-1 Features
Simple, accurate high-speed positioning can be achieved using an inverter.
This enables a far more economical positioning system than with a servomo-
tor.
Feedback Control
with Error Counter
A position error counter built into the CP1L CPU Unit enables high-precision
positioning with an Inverter using feedback control. The PULSE OUTPUT
instruction is used in the ladder program in the CP1L CPU Unit to output inter-
nal pulses to a built-in error counter.
The error counter calculates the position error from the number of input inter-
nal pulses and the number of feedback pulses from the rotary encoder, and
sends speed commands to the inverter so that the position error goes to zero.
Reducing Positioning
Time
With traditional inverter positioning, positioning patterns are created in which
set positions are detected to trigger changes in the speed. Pulses are read
from the encoder and compared to set values during positioning to enable
determining when a position requiring a speed change has been reached.
This results in positioning errors at speed-change points when stopping at
high speed, reducing stopping precision. To ensure high-precision positioning,
sufficient deceleration was required before stopping, but this increases the
positioning time.
With the CP1Ls inverter positioning function, feedback pulses are used so
that the prevent position is always known, increasing positioning accuracy.
And because preset positioning patterns are used for deceleration and stop-
ping, positioning time is reduced.
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
CP1L CPU Unit
Feedback pulses
Ladder program
Inverter
PLS2 instruction
Speed command
RS-485 or analog output
Encoder
Motor
Error
counter
Positioning
instruction
Frequency
command
Internal pulses
259
Inverter Positioning Section 5-3
Traditional Inverter Positioning
The PLC counts the feedback pulses from the encoder using a high-speed
counter. When a deceleration point is reached, the speed is changed to con-
trol the stop position. If the precision of the stop position must be increased,
the stop position must also be detected to control positioning.
PLC
Speed change judgments
Multi-step or
speed
commands
Inverter
Power
supply
frequency
Inductive motor
Encoder
Feedback pulses
If Positioning Speed Is Increased:
Frequency
Calculated speed-
change point
Point where speed was
actually changed (High speed
results in positioning error.)
Preset
deceleration
Position
Actual
Settings
Positioning
error occurs
Positioning
error occurs!
Command
output
Setting
Actual
Changing the speed
is delayed.
Time
If Positioning Accuracy Is Increased:
Frequency
Calculated speed-
change point Points where speed was
actually changed
Low-speed
operation
Actually stopping
point
Calculated
stopping
point
Time Position
Actual
Settings
Positioning
error occurs
Positioning
error
continues
Error is reduced
by using a low
speed
Positioning
error is
reduced
Command
output
Setting
Actual
Time
Stopping position
is reached faster
due to high-speed
positioning error.
Stopping from a low speed is necessary to prevent positioning error.
The speed of high-speed operation produces error, requiring that
the deceleration start position be calculated and adjusted so that
a low speed is achieved near the stopping point.
The need for low-speed operation near the stopping position
increases the positioning time. PLC
260
Inverter Positioning Section 5-3
Inverter Positioning with the CP1L
With the CP1Ls inverter positioning function, feedback is constantly read for
the positioning data while controlling the position.
Note (1) The CP1Ls inverter positioning function is designed to increase position-
ing speed and stopping precision by reading position information and us-
ing a feedback loop with an error counter to switch speeds. It does not
increase the response, stopping precision, or speed change rate of the
inverter and motor. These are characteristics of the inverter and motor.
Refer to user documentation on your inverter and motor for details.
(2) The corresponding pulse output number (0 or 1) cannot be used for the
PULSE WITH VARIABLE DUTY FACTOR instruction (PWM) if inverter
positioning 0 or 1 is used. The high-speed counter of the same number
(0 or 1) is used to input the feedback pulse.
CP1L
Position feedback
Speed command
Inverter
Power
supply
frequency
Inductive motor
Encoder
Feedback pulses
There is no positioning error because the present position and position error
are constantly monitored and corrected.
Frequency
Low-speed operation is not required to prevent
positioning error. Control is simplified because the
low-speed position does not need to be calculated.
Time
Time
Position
Actual/Settings
Command output
Settings/Actual
Positioning is faster because low-speed
operation is not used.
261
Inverter Positioning Section 5-3
5-3-2 System Configuration
Speed Commands
Using Serial
Communications or
Analog Outputs
There are two ways to send speed commands to the inverter: serial communi-
cations and analog outputs.
Note (1) The inverter positioning function uses either serial communications or an
analog output, and is thus possible with a CP1L CPU Unit with either tran-
sistor or relay outputs.
(2) The inverter positioning function does not use external pulse outputs.
Normal outputs are used for commands to the inverter (e.g., forward/re-
verse commands).
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
COMM
CP1L
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
CH
I OUT1 I OUT3
I OUT2 VOUT1
VOUT2
VOUT3 COM1
COM2
I OUT4
VOUT4 COM4
NC
AG
COM3
OUT
CP1L
Speed Commands Using Serial Communications
Inverter
Speed Commands Using an Analog Output
OR
RS-485 communications
(Modbus-RTU)
P1W-CIF11
(RS-422A/485
Option Board)
Serial communications
mode: Serial Gateway
3G3MV or 3G 3RV
General-purpose
motor
Feedback
pulses
Encoder
CP1W/CPM1A-MAD11
(Analog I/O Unit)
CP1W/CPM1A-DA041
(Analog Output Unit)
262
Inverter Positioning Section 5-3
5-3-3 Functional Overview
Operation
1. To use inverter positioning, the motor and encoder specifications, feed-
back gain, and other parameters must be set in the PLC Setup. The high-
speed counter and inverter must also be set.
2. Pulse output instructions, such as PLS2 or PULS with SPED, are used to
execute positioning. Although normally the pulse output instructions are
used to output pulses from CP1L output contacts, when inverter position-
ing 0 or inverter positioning 1 is enabled in the PLC Setup, the internal po-
sition error counter (called simply the error counter) is enabled and the
pulse output instruction will output internal pulses to the error counter. Both
error counters 0 and 1 can be used at the same time.
3. For the number of pulses (i.e., the amount of movement) set in the pulse
output instruction, use the number of feedback pulses from the encoder.
For the pulse frequency set in the pulse output instruction, use the motor
power supply frequency converted to the feedback pulse frequency from
the encoder. (Refer to 5-3-7 Determining the Internal Pulse Output Fre-
quency for details.)
4. Specify an inverter positioning port for the pulse output instruction (port 0:
0020, port 1: 0021). The internal pulses will be output to the error counter
for the specified port.
5. The number of pulses remaining in the error counter is converted to a pow-
er supply frequency command for the inverter according to a value set in
the PLC Setup and output to a word in the Auxiliary Area in increments of
0.01 Hz.
6. The frequency command value output to the Auxiliary Area is output to the
inverter from the ladder program according to the inverter command meth-
od (i.e., RS-485 communications or analog output). (Refer to 5-3-9 Auto-
matic Calculation of Inverter Frequency Command Value for details.)
CP1L
Feedback pulses
(See note.)
CP1W-CIF11
CP1W-DA041/MAD11
CPM1A-DA041/MAD11
Point 1.
Point 2.
Point 3.
Point 4.
Point 8.
Point 9.
Point 7.
Point 5.
Point 6.
Point 1.
PLC Setup
Inverter Positioning
Settings
Enable function
Calculation cycle
Motor/encoder specs
Gain
In-position width
Min./max. output
Error settings
Etc.
High-speed
Counter Settings
Enable counter
Mode settings
Etc.
Serial Port Settings
(When using serial
communications for
outputs to the inverter.)
Ladder Program
Port Setting
No. 0: #0020
No. 1: #0021
Frequency command
conversions for inverter
MOV
(automatically
calculated inverter
frequency
commands
MOV
(forward/reverse
operation)
Output to CP1W-CIF11
Analog output
settings
Output to Analog Unit
Analog output: Output bits
Serial: Serial communications
Forward/reverse commands
and other commands
Error Counter Status
(forward/reverse commands, in-position
status, etc.)
Stored in Auxiliary Area bits.
Position
feedback
Internal pulses
Error
counter
Conversion
using PLC Setup
Gain
Auxiliary
Area word
0.01 Hz
increments
Serial or
analog
output
Inverter
Power
supply
frequency
Inductive
motor
Encoder
High-speed
counter input
terminal
Output
compensation
(upper/lower
limits)
Pulse output
instruction
(PLS2, PULS +
SPED, etc.)
MOV
(operation
commands,
output values,
present values
Positioning
instructions
Modbus
communications
register settings
Note: There is no speed or current (i.e.,
torque) loop.
263
Inverter Positioning Section 5-3
7. When a speed command is sent to the inverter, the motor will turn at the
command speed and feedback pulses (i.e., the amount of movement) from
the encoder will be returned to a high-speed counter of the CP1L. The
CP1L will continue to send a speed command to the inverter until the error
counter (i.e., the position error) goes to zero, i.e., until positioning has been
completed.
8. When the error counter goes to zero, the speed command to the inverter
will also go to zero. Even after the completion of internal pulse output (i.e.,
position command) from the pulse output instruction, the CP1L will main-
tain the error counter so that is remains at zero.
9. The status of the error counter (such as the command direction and in-po-
sition status) will be stored in the Auxiliary Area. This status can be read
from the user program to enable controlling output of commands to the in-
verter.
For example, if a change in the load causes the motor shaft to turn, feedback
pulses from the encoder will enter the error counter, the value in the error
counter will be reduced, and the Reverse Command Flag in the Auxiliary Area
will turn ON. By writing the ladder program to output a reverse operation com-
mand to the inverter for the Reverse Command Flag, a command in the oppo-
site direction of motor shaft movement will be output from the CP1L to the
inverter, causing the motor to return to its original position. This compensating
operation to continuously maintain the current stop position is called a servo
lock.
Other Functions
Servo Locks with Vector
Control Inverters
The servo lock on an inverter can be used to stop positioning. By using the
inverters servo lock, the inverter positioning function and the output command
to the inverter can be stopped from the user program without using feedback
control even if the error counter value is not zero. This enables servo locks
when using an inverter with vector control.
Clearing the Error Counter
for Errors
If the motor shaft is moved manually for error stops or when the inverter is
stopped, feedback pulses will accumulate in the error counter. This can be
very dangerous because it may cause the motor to suddenly return to the
original position at high speed when operation is started again. To prevent
such problems, an error counter error output can be produced when more
than a set number of pulses accumulated in the error counter when position-
ing operations are stopped.
264
Inverter Positioning Section 5-3
Low-speed Operation
Using Minimum Output
Setting
An inductive motor driven with an inverter is different from a servomotor in that
the torque at low speeds is so low that it may not be possible to turn the motor
shaft at the minimum frequency. The CP1L provide a minimum output setting
the ensure a minimum output to enable positioning at low speeds even when
there are extremely few pulses in the error counter.
Absolute Positioning The amount of movement (i.e., amount of rotation) is input to the high-speed
counter as feedback pulses. During inverter positioning, the present value of
the high-speed counter can be used as an absolute position.
Note The absolute position will change if the present value of the high-speed
counter is changed or the high-speed counter is reset.
5-3-4 Specifications
Inverter Positioning
Specifications
Pulse frequency
Time
In-position width
Pulse Output Flag
In-position flag
PLS2
instruction
Error counter
present value
Error counter
error setting
Error Counter Error
Flag (Output value cleared.)
Error Counter Reset Bit
(Error counter cleared.)
Motor shaft
turned manually.
Error counter
error occurs.
Item Specification
Applicable inverters Inverter that receives frequency commands from an analog
input or via Modbus-RTU communications. (Control method:
V/f control, vector control, etc.)
Applicable motors Depends on the inverter (e.g., squirrel-cage inductive motor)
Number of position-
ing ports and
response frequency
Two ports at 100 kHz (J models: 20 kHz) (within the speed
command range of the pulse output instructions)
Inverter command
output method
Modbus-RTU communications commands or analog output
(from ladder program)
Present value coor-
dinate system
With origin: Absolute coordinate system
Without origin: Relative coordinate system
Present value range 32 bits: 8000 000 to 7FFF FFFF hex (range of position com-
mand values and present values for pulse output instructions)
Output modes Continuous output (Number of pulses not specified.)
Independent mode (Number of pulses specified.)
Acceleration/decel-
eration control
Trapezoidal or S-curve acceleration/deceleration
265
Inverter Positioning Section 5-3
Note (1) If inverter positioning 0 is used, pulse output 0 and PWM0 cannot be
used. If inverter positioning 1 is used, pulse output 1 and PWM1 cannot
be used.
(2) If inverter positioning 1 is used with a CPU Unit with 14 I/O Points, origin
searches cannot be used.
(3) If the continuous output mode is specified (i.e., if the number of pulses is
not specified), be sure to use the high-speed counter (linear mode) so
that it does not overflow.
High-speed Counter
Specifications for Inverter
Positioning
Note Target value matching and zone comparisons can be used for high-speed
counters with a feedback pulse input from an encoder even when using
inverter positioning.
Specifications of
number of pulses
Relative positions: 0000 0000 to 7FFF FFFF hex
(2,147,483,647 incrementing and decrementing)
Absolute positions: 8000 0000 to 7FFF FFFF hex
(2,147,483,648 to 2,147,483,647)
(Ranges of position command values and present values for
pulse output instructions)
Origin searches Motor driver and signal wire modes: 3 modes
Origin search modes: 2 modes
Origin detection methods: 3 methods
Feedback pulse
input ports
High-speed counter 0 and high-speed counter 1 (fixed)
Maximum response frequency: 100 kHz (J models: 20 kHz)
Present value range
for feedback pulses
32 bits: 8000 000 to 7FFF FFFF hex
Error counter range 8000 to 7FFF hex (signed)
Error counter calcu-
lation cycle
4 to 1,020 ms (x4)
Item Specification
Item Specification
Response frequency and num-
ber of counters
Two 2-phase counters at 50 kHz and two single-
phase counters at 100 kHz
Counting mode Differential-phase inputs (x4), up/down pulse
inputs, or pulse plus direction inputs
Numeric range mode Linear mode
Note Always set linear mode when using inverter
positioning.
Numeric range 32 bits (2,147,483,648 to 2,147,483,647)
Reset method Phase Z signal (reset input) + software reset, or
software reset
Interrupts
(See note.)
Target value
matching
Up to 48 target values and interrupt task numbers
can be registered.
Zone compari-
son
Up to 8 sets of upper values, lower values, and
interrupt task numbers can be registered.
266
Inverter Positioning Section 5-3
5-3-5 Application Procedure for Inverter Positioning
Positioning Instruction Settings
PULSE OUTPUT (PLS2)
Port: Inverter positioning, Mode: Absolute pulse
SET PULSES (PULS)
Port: Inverter positioning, Mode: Absolute pulse
+ SPEED OUTPUT (SPED)
Mode: Independent
SET PULSES (PULS)
Port: Inverter positioning, Mode: Absolute pulse
+ ACCELERATION CONTROL (ACC)
Port: Inverter positioning, Mode: Independent
Determine positioning
patterns.
Decided to use error counter 0 or 1.
Determine inverter specifications
Wire the system.
Set inverter parameters.
Set PLC Setup.
Write ladder program.
Determine applicability.
Determine instructions to use.
PLS2
PULS + SPED
PULS + ACC
Etc.
For example, the control method (V/f control
or vector control)
RS-485 communications (Modbus-RTU)
Analog signal
Enable inverter positioning
Error counter calculation cycle
Gain
In-position width
Minimum output
Error counter error setting
Power supply frequency per motor rotations/s
Number of encoder pulses per motor rotation
High-speed counter
Counting mode
Numeric range mode
Etc.
Enter positioning instructions.
Program scaling for inverter frequency commands.
Program forward/reverse operation instructions, stopping instructions,
etc.
Determine inverter command
method.
267
Inverter Positioning Section 5-3
MODE CONTROL (INI)
Port: Inverter positioning, stopping inverter positioning
HIGH-SPEED COUNTER PV READ (PRV)
Port: Inverter positioning, Operation: Reading error counter, inverter posi-
tioning status, or error counter present value
Automatic Calculation of Inverter Frequency Commands
For either serial communications or an analog output, the power supply
frequency per motor revolutions/s, the number of encoder pulses per
motor revolution, and the error counter calculation cycle can be set in the
PLC Setup to automatically calculate the inverter frequency command
values and store it in A23/A33 in increments of 0.01 Hz.
For serial communications, the ladder program is used to output the value
in A23/A33 to the inverter using serial communications.
For analog output, the value in A23/A33 can be scaled to analog output
values and output from the Analog Unit to the inverter.
Forward/Reverse Operation Commands, Stopping Commands, Etc.
The Forward Command Flag (A26.01/A36.01) and Reverse Command
Flag (A26.02/A36.02) can be used as input conditions for forward and
reverse operation commands.
The Operation Command Flag (A26.00/A36.00) and In-position Flag
(A26.03/A36.03) can be used as input conditions to execute scaling to
inverter frequency commands and to execute stop commands.
5-3-6 Instruction Specifications
The normal pulse output instructions are used (PLS2, PULS + SPED, or
PULS + ACC). One of the inverter positioning ports is specified as the port for
the instruction. Just like pulses are output externally for the normal pulse out-
put instructions, error counter pulses are accumulated in the internal error
counter when executing inverter positioning.
Port Designation
Operand
Specifications
When executing pulse output instructions or status read instructions for
inverter positioning, a port number for inverter positioning is specified for the
port operand of the instruction. The following values are used.
0020 hex: Inverter positioning 0
0021 hex: Inverter positioning 1
When reading the present value of inverter positioning, use the following val-
ues to specified the port number for inverter positioning.
0030 hex: Inverter positioning 0 (signed)
0031 hex: Inverter positioning 1 (signed)
Set value Specified port Applicable instructions
0000 Pulse output 0 ---
0001 Pulse output 1 ---
0002 Pulse output 2 ---
0003 Pulse output 3 ---
0010 High-speed counter input 0 ---
0011 High-speed counter input 1 ---
0012 High-speed counter input 2 ---
0013 High-speed counter input 3 ---
0020 Inverter positioning 0 SPED, PULS, ACC, PLS2, INI, PRV, ORG
0021 Inverter positioning 1 SPED, PULS, ACC, PLS2, INI, PRV, ORG
268
Inverter Positioning Section 5-3
Applicable
Instructions
The following seven instructions can be used to execute inverter positioning.
The relationship between the instructions and internal pulse outputs is as fol-
lows:
0030 Error counter 0 (signed) PRV
0031 Error counter 1 (signed) PRV
0100 Interrupt input 0 (counter
mode)
---
: : :
0107 Interrupt input 7 (counter
mode)
---
1000 PWM output 0 ---
1001 PWM output 1 ---
Set value Specified port Applicable instructions
Instruction Overview Positioning (Independent Mode) Origin
searches
Pulse output
with no
acceleration/
deceleration
Pulse output with acceleration/
deceleration
Trapezoid,
same rate for
acceleration/
deceleration
Trapezoid,
different rates
for acceleration/
deceleration
PULS(886)
SET PULSES
Sets the number of internal
pulses to output.
Applicable --- --- ---
SPED(885)
SPEED OUTPUT
Controls pulse output without
acceleration or deceleration. (The
number of internal pulses must be
set in advance with PULS(886).)
Applicable --- --- ---
ACC(888)
ACCELERATION
CONTROL
Controls pulse output with accel-
eration or deceleration using the
same rate for both. (The number
of internal pulses must be set in
advance with PULS(886).)
--- Applicable --- ---
PLS2(882)
PULSE OUTPUT
Controls pulse output with accel-
eration or deceleration using a dif-
ferent rate for each (The number
of internal pulses is also set.)
--- --- Applicable ---
ORG(889)
ORIGIN SEARCH
Actually moves the motor to
establish the origin using origin
proximity input, origin input, etc.
--- --- --- Applica-
ble
INI(880)
MODE CONTROL
Used to stop internal pulse output
and inverter positioning. It can
also be used to change the
present value of pulse output
(thus establishing the origin).
Applicable Applicable Applicable ---
PRV(881)
HIGH-SPEED
COUNTER PV
READ
Reads the present value of the
internal pulse output or error
counter.
Applicable Applicable Applicable ---
269
Inverter Positioning Section 5-3
SET PULSES: PULS(886) PULS(886) is used to set the pulse output amount (number of output pulses)
for pulse outputs that are started later in the program using SPED(885) or
ACC(888) in independent mode.
SPEED OUTPUT:
SPED(885)
SPED(885) is used to start pulse output without acceleration or deceleration.
It is used together with PULS(886). SPED(885) can also be executed during
pulse output to change the output frequency.
ACCELERATION
CONTROL: ACC(888)
ACC(888) outputs pulses to the specified output port at the specified fre-
quency using the specified acceleration and deceleration rate. (Acceleration
rate is the same as the deceleration rate.) For positioning, ACC(888) is used
in combination with PULS(886). ACC(888) can also be executed during pulse
output to change the target frequency or acceleration/deceleration rate.
Operand Description
P Port specifier 0020 hex: Inverter positioning 0
0021 hex: Inverter positioning 1
T Pulse type 0000 hex: Relative
0001 hex: Absolute
N Number of
pulses
N (lower 4 digits) Relative pulses: 0000 0000 to 7FFF FFFF
hex (0 to 2,147,489,647)
Absolute pulses: 8000 0000 to 7FFF FFFF
hex (2,147,489,648 to 2,147,489,647)
N+1 (upper 4
digits)
PULS(886)
T: Pulse type
P: Port specifier
N: Number of pulses
P
T
N
Operand Description
P Port specifier 0020 hex: Inverter positioning 0
0021 hex: Inverter positioning 1
M Output mode Bits 0 to 3 Mode
0 hex: Continuous
1 hex: Independent
Bits 4 to 7 Direction
0 hex: CW
1 hex: CCW
Bits 8 to 11 Not used: Always set to 0 hex.
Bits 9 to 15 Not used: Always set to 0 hex.
F First pulse fre-
quency word
F (lower 4 dig-
its)
Output Frequency in Hz
Pulse output 0 or 1: 0000 0000 to 0001 86A0
hex (0 to 100 kHz)
J models: 0000 0000 to 0000 4E20 hex (0 to 20
kHz)
F+1 (upper 4
digits)
SPED(885)
M: Output mode
P: Port specifier
F: First pulse frequency word
P
M
F
Operand Description
P Port specifier 0020 hex: Inverter positioning 0
0021 hex: Inverter positioning 1
ACC(888)
M: Output mode
P: Port specifier
S: First word of se
P
M
S
270
Inverter Positioning Section 5-3
PULSE OUTPUT:
PLS2(887)
PLS2(887) outputs a specified number of pulses to the specified port. Pulse
output starts at a specified startup frequency, accelerates to the target fre-
quency at a specified acceleration rate, decelerates at the specified decelera-
tion rate, and stops at approximately the same frequency as the startup
frequency. Only independent mode positioning is supported.
PLS2(887) can also be executed during pulse output to change the number of
output pulses, target frequency, acceleration rate, or deceleration rate.
PLS2(887) can thus be used for sloped speed changes with different acceler-
ation and deceleration rates, target position changes, target and speed
changes, or direction changes.
M Output mode Bits 0 to 3 Mode
1 hex: Independent
Bits 4 to 7 Direction
0 hex: CW
1 hex: CCW
Bits 8 to 11 Not used: Always set to 0 hex.
Bits 9 to 15 Not used: Always set to 0 hex.
S First word of
settings table
S Acceleration/Deceleration Rate
1 to 65,535 Hz (0001 to FFFF hex)
S+1 (lower 4
digits)
Target Frequency in Hz
Pulse output 0 to 3: 0000 0000 to 0001 86A0
hex (0 to 100 kHz)
J models: 0000 0000 to 0000 4E20 hex (0 to
20 kHz)
S+2 (upper 4
digits)
Operand Description
Operand Description
P Port specifier 0020 hex: Inverter positioning 0
0021 hex: Inverter positioning 1
M Output mode Bits 0 to 3 Mode
0 hex: Relative pulses
1 hex: Absolute pulses
Bits 4 to 7 Direction
0 hex: CW
1 hex: CCW
Bits 8 to 11 Not used: Always set to 0 hex.
Bits 9 to 15 Not used: Always set to 0 hex.
S First word of
settings table
S1 Acceleration rate
0001 to FFFF hex (1 to
65,535 Hz)
Specify the increase or
decrease in the fre-
quency in Hz per pulse
control period (4 ms).
S1+1 Deceleration rate
0001 to FFFF hex (1 to
65,535 Hz)
S1+2 (lower 4
digits)
Target Frequency in Hz
Pulse output 0 or 1: 0000 0000 to 0001 86A0
hex (0 to 100 kHz)
J models: 0000 0000 to 0000 4E20 hex (0 to 20
kHz)
S1+3 (upper 4
digits)
S1+4 (lower 4
digits)
Number of Pulses
Relative pulses: 0000 0000 to 7FFF FFFF hex
(0 to 2,147,489,647)
Absolute pulses: 8000 0000 to 7FFF FFFF
hex (2,147,489,648 to 2,147,489,647)
S1+5 (upper 4
digits)
PLS2(887)
P
M
S
F
M: Output mode
P: Port specifier
S: First word of settings table
F: First word of starting frequency
271
Inverter Positioning Section 5-3
ORIGIN SEARCH:
ORG(889)
ORG(889) performs an origin search or origin return operation.
Origin Search:
Pulses are output to establish the origin based on origin proximity input
and origin input signals.
Origin Return:
The positioning system is returned to the origin.
The parameters for pulse output 0 or pulse output 1 must be set in advance in
the PLC Setup to perform either an origin search or origin return operation.
MODE CONTROL: INI(880) INI(880) changes the present value of inverter positioning or stops position-
ing.
F First word of
starting fre-
quency
F (lower 4 dig-
its)
Starting Frequency in Hz
Pulse output 0 or 1: 0000 0000 to 0001 86A0
hex (0 to 100 kHz)
J models: 0000 0000 to 0000 4E20 hex (0 to 20
kHz)
F+1 (upper 4
digits)
Operand Description
Operand Description
P Port specifier 0020 hex: Inverter positioning 0
0021 hex: Inverter positioning 1
C Control data Bits 0 to 3 Not used: Always set to 0 hex
Bits 4 to 7 Not used: Always set to 0 hex
Bits 8 to 11 Not used: Always set to 0 hex
Bits 9 to 15 Mode
0 hex: Origin search
1 hex: Origin return
ORG(889)
P
C C: Control data
P: Port specifier
Operand Description
P Port specifier 0020 hex: Inverter positioning 0
0021 hex: Inverter positioning 1
C Control data 0002 hex: Changes the PV of the internal pulse
output.
0003 hex: Stops internal pulse output. Position-
ing will continue and the output value will not be
cleared.
0004 hex: Stops inverter positioning. Internal
pulse output will be stopped, positioning will be
stopped, and the output value will be cleared.
The next operation will not be accepted until the
error counter is cleared.
NP First word
with new PV
NP (lower 4
digits)
New PV
0000 0000 to FFFF FFFF hex
NP+1 (upper
4 digits)
INI(880)
C: Control data
P: Port specifier
NV: First word with new PV
P
C
NP
272
Inverter Positioning Section 5-3
HIGH-SPEED COUNTER
PV READ: PRV(881)
PRV(881) is used to read the present value and status of inverter positioning.
The following status can be read.
Operation Command Flag
Forward Command Flag
Reverse Command Flag
In-position Flag
Internal Pulse Output Flag
Internal Pulse Acceleration/
Deceleration Flag
Error Counter Error Flag
Error Counter Alarm Flag
Error Counter Sign Flag
Operand Description
P Port specifier 0020 hex: Inverter positioning 0
0021 hex: Inverter positioning 1
0030 hex: Error counter 0
0031 hex: Error counter 1
C Control data 0000 hex: Read present value.
0001 hex: Read status.
PRV(881)
C: Control data
P: Port specifier
D: First destination word
P
C
D
273
Inverter Positioning Section 5-3
5-3-7 Determining the Internal Pulse Output Frequency
Use the following formula to calculate the internal pulse frequency (Hz) to out-
put from the pulse output instruction (e.g., PLS2) based on the power supply
frequency (Hz) to be output from the inverter to the motor.
Note (1) Calculate the power supply frequency for one revolution per second from
the motor specifications. For example, with a 1,800-r/min (60-Hz) motor
(30 r/s), the power supply frequency for one revolution per second would
be calculated as follows: 60 [Hz] 30 [r/s] = 2 [Hz].
D First destina-
tion word for
present value
D Lower 4
digits
When a present value is read, the following
data is stored in D and D+1 as an 8-digit hexa-
decimal value.
P = #0020/#0021: The actual movement from
the internal pulse origin.
P = #0030/#0031: The present value of the
error counter.
D+1 Upper 4
digits
Destination
word for
inverter posi-
tioning status
(P = #0020 or
#0021)
D Bit 0 Operation Command Flag
ON: Operation command in progress
OFF: Stopped
Bit 1 Forward Command Flag
ON: Forward command in progress
OFF: Reverse command in progress or
stopped
Bit 2 Reverse Command Flag
ON: Reverse command in progress
OFF: Forward command in progress or
stopped
Bit 3 In-position Flag
ON: In position
OFF: Not in position
Bit 4 Error Counter Error Flag
ON: Error occurred in error counter
OFF: No error
Bit 5 Internal Pulse Output Flag
ON: Pulses being output
OFF: Pulse output stopped
Bit 6 Internal Pulse Acceleration/Deceleration Flag
ON: Acceleration/deceleration in progress for
internal pulse output (i.e., frequency being
changed)
OFF: Constant frequency for internal pulse out-
put
Bit 7 Error Counter Alarm Flag
ON: Alarm occurred for error counter
OFF: No alarm
Bit 15 Error Counter Sign Flag
ON: Positive
OFF: Negative
Operand Description
Frequency of
internal pulse
output (Hz)
Power supply
frequency to
motor (Hz)
Encoder resolution
(pulses/revolution)
Power supply frequency to motor
for one revolution per second (See note 1.)
High-speed
counter multiplier
Gear ratio between motor
shaft and encoder shaft
(See note 2.)
274
Inverter Positioning Section 5-3
(2) The encoder resolution times the counter multiplier times the gear ratio
equals the number of pulses output by the encoder for one motor shaft
revolution.
Example of
Calculating
Conversion Factor
Conditions
Frequency for 1 revolution/s for inductive motor: 2 Hz (motor specification)
Rotary encoder resolution: 1,000 pulses/revolution (encoder specifica-
tion)
High-speed counter multiplier: x4 (PLC Setup)
Gear ratio between motor and encoder shafts: 1/4 (machine specification)
Calculations
The factor goes into the formula as shown below.
For example, to output a power supply frequency of 10 Hz to the motor:
Frequency of internal pulse output = 500 10 Hz = 5,000 Hz = 5 kHz
Therefore, set a pulse output frequency of 5 kHz in the pulse output instruc-
tions (e.g., PLS2).
CP1L
Pulse output
instruction
Target frequency
Internal
pulses Error
counter
Conversion formula
Inverter
Motor
Power
supply
frequency
Encoder
2
1000 4 1/4
500 Power supply frequency to motor (Hz)
Frequency of
internal pulse
output (Hz)
Power supply
frequency to
motor (Hz)
275
Inverter Positioning Section 5-3
5-3-8 PLC Setup
The following settings must be made in advance when using inverter position-
ing 0 or 1.
Basic Settings The following settings are required to use inverter positioning.
Inverter Positioning
Function
Gain
Setting Description Set value Default Application Refresh timing
Use
inverter
positioning
Select this option to use inverter
positioning. High-speed counter 0
will be allocated to inverter posi-
tioning 0 and high-speed counter 1
will be allocated to inverter posi-
tioning 1. The high-speed counter
mode that is set will be used.
Note If inverter positioning 1 is
used with a CPU Unit with
14 I/O Points, origin
searches cannot be used.
(Origin searches are possi-
ble even if inverter position-
ing 0 is used.)
Use/Do not use Do not use --- When CPU Unit
power is turned
ON
Setting Description Set value Default Application Refresh timing
Gain The error counter present value times
the gain setting will be used as the out-
put command to the inverter.
Note The setting is made in incre-
ments of 0.1. The gain will thus
be 1/10 of the set value. For
example, if 50 is set, the gain will
be 5.
Its best to initially try a gain of
from 5 to 10 (settings of 50 to
100) and then adjust from there.
1 to 65,535
(0.1 increments)
0 sets a value of
10 (0.1 incre-
ments)
0: 10 (0.1
incre-
ments)
This will
set a
gain of 1.
Adjusting the
following char-
acteristic of the
motor
When CPU Unit
power is turned
ON
Error counter
present value
Inverter output command
Gain = 1
Gain < 1
Gain > 1
276
Inverter Positioning Section 5-3
In-position Range
Minimum Output Value
Maximum Output Value
Setting Description Set value Default Application Refresh timing
In-position
range
The In-position Flag (A26.03) will turn
ON when pulse output to the error
counter has been completed and the
error counter present value is less equal
to or less than the in-position range.
1 to 65,535
Setting 0 is
the same
as setting
1.
0: 1 When using the
inverters servo lock, the
command value to the
inverter is set to zero
during in-position status.
When CPU Unit
power is turned
ON
Pulse frequency
In-position range
Positioning
In-position Flag
(A02603)
PLS2
Error counter present value
Setting Description Set value Default Application Refresh timing
Min.
output
value
If the error counter present value times the gain
setting is less than the minimum output value,
the minimum output value will be output.
Set the minimum output value so that it is equal
to or smaller than the maximum output value.
1 to 65,535
Setting 0 is
the same
as setting
1.
0: 1 A minimum output
value can be set to
ensure an output of
a specified size even
when the error
counter present
value is very small.
When CPU Unit
power is turned
ON
Error counter
present value
Output command to inverter
Min. output
Min. output
Setting Description Set value Default Application Refresh timing
Max.
output
value
If the error counter present value times the gain
setting is greater than the maximum output
value, the maximum output value will be output.
Set the maximum output value so that it is equal
to or greater than the minimum output value.
1 to
4,294,967,29
5
Setting 0 is
the same as
setting
2,000,000.
0: 2,000,000 A maximum
output value
can be set to
prevent the
output value
from becom-
ing too large.
When CPU Unit
power is turned
ON
Error counter
present value
Output command to inverter
Max. output
Max. output
277
Inverter Positioning Section 5-3
Error Counter Overflow
Detection Value
Error Counter Alarm
Detection Value
Error Counter Cycle
Power Supply Frequency
for One Motor Revolution
per Second
Setting Description Set value Default Application Refresh timing
Error counter
overflow detection
value
If the absolute value of the
error counter present value is
greater than the error counter
overflow detection value, the
Error Counter Error Flag
(A26.03) will turn ON.
1 to 32,767
Setting 0 is
the same as
setting
10,000.
0: 10,000 Provides notification of
excessive pulses in the
error counter, e.g., when
manually moving the
motor shaft while position-
ing is stopped.
When CPU Unit
power is turned
ON
Setting Description Set value Default Application Refresh timing
Error counter
alarm detection
value
If the absolute value of the
error counter present value is
greater than the error counter
alarm detection value, the
Error Counter Alarm Flag
(A26.08) will turn ON.
1 to 32,767
Setting 0 is
the same as
setting
10,000.
0: 10,000 Provides notification of
excessive pulses in the
error counter, e.g., when
encoder wiring breaks dur-
ing positioning.
When CPU Unit
power is turned
ON
Setting Description Set value Default Application Refresh timing
Error counter
cycle
The calculation cycle of the error
counter can be set. If the cycle is
too short when using a motor with a
slow response, pulses may easily
accumulate in the error counter.
Change the error counter cycle
according to the machine load and
motor response.
Note The setting is made in incre-
ments of 4 ms. The error
counter cycle will thus be the
set value times 4 ms. For
example, if the set value is
10, the error counter cycle
will be 40 ms.
1 to 255 (in 4-
ms increments)
Setting 0 is the
same as setting
3 (4-ms incre-
ments)
0: 3 (4-ms
incre-
ments)
The error
counter
cycle will
be 12 ms.
Set when using
a motor with a
slow response.
When CPU Unit
power is turned
ON
Setting Description Set value Default Application Refresh timing
Power Supply
Freq. for One
Motor Revolution
per Sec.
Calculate the power supply fre-
quency for one revolution per second
from the motor specifications. For
example, with a 1,800-r/min (60-Hz)
motor (30 r/s), the power supply fre-
quency for one revolution per second
would be calculated as follows:
60 [Hz] 30 [r/s] = 2 [Hz].
Note The setting is made in incre-
ments of 0.1 Hz. The fre-
quency will thus be the set
value times 0.1 Hz. For exam-
ple, if the set value is 20, the
frequency will be 2 Hz.
0 to 65,535 Hz
(0.1-Hz incre-
ments)
0 (0.1-Hz
incre-
ments)
This setting is
used when con-
verting the out-
put value to an
inverter fre-
quency com-
mand.
When CPU Unit
power is turned
ON
278
Inverter Positioning Section 5-3
Number of Encoder
Pulses for One Motor
Revolution
Operation Adjustment
Settings
Use the following settings if the gain adjustment in the basic settings does not
produce stable operation.
Limit Output during
Acceleration and
Constant Speed
Limit Output during
Deceleration and When
Stopped
Setting Description Set value Default Application Refresh timing
Number of
Encoder Pulses
for One Motor
Revolution
Calculate the number of encoder pulses for
one motor revolution from the encoder res-
olution (pulses/revolution), high-speed
counters multiplier, and motor-encoder
shaft gear ratio. For example, if the
encoder resolution is 1,000, the high-
speed counter multiplier is 4, and the gear
ratio is 1/4, the number of encoder pulses
for one motor revolution is 1,000 4 (1/4)
= 1,000.
0 to 65,535 0 This setting is
used when con-
verting the out-
put value to an
inverter fre-
quency com-
mand.
When CPU Unit
power is turned
ON
Setting Description Set value Default Application Refresh timing
Limit output during
acceleration and
constant speed
Select this option to limit the upper and
lower values of the output value based on
the pulse output value during internal
pulse output acceleration or constant
speed.
Use/Do
not use
Do not
use
Use this setting
when positioning
precision is bad.
When CPU Unit
power is turned
ON
Setting Description Set value Default Application Refresh timing
Limit output during
deceleration and
when stopped
Select this option to multiply the error of
the output value by a coefficient during
internal pulse output deceleration or
after output has been completed.
Use/Do
not use
Do not
use
Use this setting
when positioning
precision is bad.
When CPU Unit
power is turned
ON
279
Inverter Positioning Section 5-3
Output Coefficient during
Acceleration and
Constant Speed
Output Coefficient during
Deceleration
Setting Description Set value Default Application Refresh timing
Output coeffi-
cient during
acceleration
and constant
speed
Upper and lower limits are placed on
the output value by multiplying the pulse
output value by a coefficient during
internal pulse output acceleration or
constant speed.
Output Upper Limit =
Internal pulse output value + Internal
pulse output value Output coefficient
Output Lower Limit =
Internal pulse output value Internal
pulse output value Output coefficient
Note The setting is made in incre-
ments of 0.01. The coefficient will
thus be the set value times 0.01.
For example, if the set value is
10, the coefficient will be 0.1 ms.
1 to 255
(0.01 incre-
ments)
Setting 0 is
the same as
setting 6
(0.01 incre-
ments).
0: 6 (0.01
incre-
ments)
This coefficient can
be used to restrict
the output range to
prevent excessive
values, based on the
internal pulse output
value when the
motor response is
slow even if a large
error is produced.
When CPU Unit
power is turned
ON
Internal pulses
Error counter
present value
Output command
to inverter
Setting Description Set value Default Application Refresh timing
Output coefficient
during deceleration
The output value can be
changed by multiplying the
value in the error counter by
a coefficient during decelera-
tion of internal pulse output.
Output value =
Error Error counter cycle
(s) Gain Coefficient
Note The setting is made in
increments of 0.01.
The coefficient will
thus be the set value
times 0.01. For exam-
ple, if the set value is
10, the coefficient will
be 0.1 ms.
1 to 255
(0.01 incre-
ments)
Setting 0 is
the same as
setting 96
(0.01 incre-
ments).
0: 96
(0.01
incre-
ments)
This coefficient can be
used to reduce the output
value when the motor
response is slow and the
target position is
exceeded when stopping.
When CPU Unit
power is turned
ON
280
Inverter Positioning Section 5-3
Output Coefficient after
Pulse Output
5-3-9 Automatic Calculation of Inverter Frequency Command Value
Set the Power Supply Frequency for One Motor Revolution per Second, Num-
ber of Encoder Pulses for One Motor Revolution, and Error Counter Cycle in
the PLC Setup to automatically calculate the inverter frequency command
value and store it in A23 for inverter positioning 0 and A33 for inverter posi-
tioning 1.
Note The inverter frequency command values are stored in A23 and A33
in increments of 0.01 Hz. Divide the value in A23 or A33 by 100 to
obtain the value in hertz.
The values stored in A23 and A33 can be used in converting the output value
to the frequency command value for the inverter. This value can be output to
the inverter from the program using serial communications or an Analog Out-
put Unit.
Note The following formula is used inside the PLC to automatically cal-
culate the inverter frequency command value from the output value
(i.e., the error counter present value multiplied by the gain). (The
output value is stored in A20 and A21 for inverter positioning 0 and
in A30 and A31 for inverter positioning 1.)
Note (1) Calculate the power supply frequency for one revolution per second from
the motor specifications. For example, with a 1,800-r/min (60-Hz) motor
(30 r/s), the power supply frequency for one revolution per second would
be calculated as follows: 60 [Hz] 30 [r/s] = 2 [Hz].
(2) The encoder resolution times the counter multiplier times the gear ratio
equals the number of pulses output by the encoder for one motor shaft
revolution.
Setting Description Set value Default Application Refresh timing
Output coefficient
after pulse output
The output value can be
changed by multiplying the
value in the error counter by a
coefficient after deceleration of
internal pulse output.
Output value =
Error Error counter cycle (s)
Gain Coefficient
Note The setting is made in
increments of 0.01. The
coefficient will thus be
the set value times 0.01.
For example, if the set
value is 10, the coeffi-
cient will be 0.1 ms.
1 to 255
(0.01 incre-
ments)
Setting 0 is
the same as
setting 50
(0.01 incre-
ments).
0: 50
(0.01
incre-
ments)
This coefficient can be
used to reduce the output
value when it the value in
the error counter is too
large after completing
internal pulse output.
When CPU Unit
power is turned
ON
A20/A21
A30/A31
(See
note 1.)
(See
note 2.)
1 Inverter frequency
command value (Hz)
Conversion Factor
Motor frequency for 1 rotation per second (Hz)
Encoder resolution
(pulses/rotation)
High-speed
counter
multiplier
Motor-encoder
shaft gear
ratio
Error counter
cycle (s)
Output value
Note: The inverter frequency command value is stored in A23/A33 in increments of 0.01 Hz.
281
Inverter Positioning Section 5-3
Example of
Calculating
Conversion Factor
Conditions
Power Supply Frequency for One Motor Revolution per Second: 2 Hz
(PLC Setup)
Number of Encoder Pulses for One Motor Revolution: 1,000 (PLC Setup)
Rotary encoder resolution: 1,000 pulses/revolution (encoder specifica-
tion)
High-speed counter multiplier: x4 (PLC Setup)
Gear ratio between motor and encoder shafts: 1/4 (machine specifica-
tion)
Error Counter Cycle: 12 ms (PLC Setup)
Calculation
The calculation performed inside the PLC is as shown below.
Serial Communications The command value calculated above is used in the Modbus-RTU command
frame, adjusting for the frequency unit. (See note.)
Refer to 6-3-3 Modbus-RTU Easy Master Function and to the inverter manual
for details on Modbus-RTU communications.
Note If the frequency command unit set in the inverter is 0.1 Hz, divide the com-
mand frequency in A23 or A33 by 10.
Analog Output The following example is for the CP1W-DA041.
The analog output resolution is 6,000, so the command value calculated
above is multiplied by 6,000 divided by the inverters maximum output fre-
quency.
CP1L
PLC Setup
Output value
Automatic
calculation
Inverter frequency
command value
Auxiliary Area
A23 or A33
Unit: Hz
Auxiliary Area
A20/A21 or
A30/A31
Unit: 0.01 Hz
A23/A33
Inverter frequency
command value
(0.1-Hz increments)
2
1000 0.012
Output value: Hz
A20/A21
A30/A31
Output value: Hz
A20/A21
A30/A31
17
(To 0.01-Hz
increments)
100
CP1L
Automatic
calculation
Auxiliary Area
A23/A33
Inverter
frequency
command value
Serial communications
Unit: 0.01 Hz
282
Inverter Positioning Section 5-3
Refer to 7-3 Analog Output Units for operating procedures for the Analog Out-
put Unit.
Calculation Example
Conditions
Inverters maximum output frequency: 60 Hz
Calculation
The stored analog output value is calculated as follows:
Stored analog
output value
Inverter frequency
command value (Hz)
Inverter's max. output frequency (Hz)
6,000
CP1L
Automatic
calculations
Inverter
frequency
command value
Auxiliary Area
A23/A33
6,000
Inverter maximum
output frequency (Hz)
Stored analog
output value
Analog output
Unit: 0.01 Hz
1
100
Converting values in A23/A33 to Hz.
Converted in ladder program
Stored analog
output value
60
6,000 1
Auxiliary Area
A23/A33
(Unit: 0.01 Hz)
Auxiliary Area
A23/A33
(Unit: 0.01 Hz)
100
1
283
Inverter Positioning Section 5-3
5-3-10 Memory Allocations
Built-in Input Area
Note (1) The above table shows only allocations related to inverter positioning.
(2) Bits 08 to 11 are not supported by CPU Units with 14 I/O Points.
(3) If inverter positioning 1 is used with a CPU Unit with 14 I/O Points, origin
searches (i.e., the origin proximity input signal) cannot be used.
Built-in Output Area This area is not used for inverter positioning.
When inverter positioning is enabled, bits 00 to 03 in CIO 100 can be used as
normal outputs 0 to 3. The corresponding pulse output and PWM output can-
not be used.
Input terminal block Default Pulse output origin searches enabled Inverter positioning
enabled
Word Bit Normal inputs Origin search
CIO 0
(See note 1.)
00 Normal input 0 --- High-speed counter 0:
Phase A
01 Normal input 1 --- High-speed counter 0:
Phase B
02 Normal input 2 Pulse output 0: Origin proximity input signal
(CPU Units with 14 I/O (See note 3.))
High-speed counter 1:
Phase A
03 Normal input 3 Pulse output 1: Origin proximity input signal
(CPU Units with 14 I/O (See note 3.))
High-speed counter 1:
Phase B
04 Normal input 4 --- ---
05 Normal input 5 --- ---
06 Normal input 6 Pulse output 0: Origin input signal ---
07 Normal input 7 Pulse output 1: Origin input signal ---
08 (See note 2.) Normal input 8 --- ---
09 (See note 2.) Normal input 9 --- ---
10 (See note 2.) Normal input 10 Pulse output 0: Origin proximity input signal
(CPU Units with 20, 30, or 40 I/O)
---
11 (See note 2.) Normal input 11 Pulse output 1: Origin proximity input signal
(CPU Units with 20, 30, or 40 I/O)
---
284
Inverter Positioning Section 5-3
Auxiliary Area
Read Area
Inverter Positioning 0
Use one of the following for the inverter frequency command.
Word Bits Function Data range Refresh timing Application
examples
A20 00 to 15 Lower 4 digits of
present value of
unsigned output
value (output value =
present value of
error counter error
counter cycle (s)
gain)
Note The maxi-
mum and min-
imum output
values are
applied.
0000 0000 to 8000
0000 hex
(0 to
2,147,483,648)
Cleared to zero at following times:
When power to CPU Unit is turned ON
At start of operation
When an error counter error occurs
Updated at following times:
Cyclically according to error counter
cycle
This value can be
used when not
using automatic
frequency com-
mand calculations
and instead to con-
vert the output
value provided
here in the user
program for output
to the inverter.
This value is used
when signed data
is not required, i.e.,
when using com-
munications or nor-
mal I/O to specify
the direction.
A21 00 to 15 Upper 4 digits of
present value of
unsigned output
value (output value =
present value of
error counter error
counter cycle (s)
gain)
Note The maxi-
mum and min-
imum output
values are
applied.
285
Inverter Positioning Section 5-3
A23 00 to 15 Inverter frequency
command value
(0.01-Hz increments,
unsigned)
Note Set the Power
Supply Fre-
quency for
One Motor
Revolution per
Second, Num-
ber of
Encoder
Pulses for
One Motor
Revolution,
and Error
Counter Cycle
in the PLC
Setup before
using this
value.
0000 to FFFF hex
(0.00 to
655.35 Hz)
Cleared to zero at following times:
When power to CPU Unit is turned ON
At start of operation
When an error counter error occurs
Updated at following times:
Cyclically according to error counter
cycle
These words con-
tain the automati-
cally calculated
frequency com-
mand value for the
inverter. (This value
is normally used.)
For example, if the
frequency setting
unit of the inverter
is 0.01 Hz, this
value can be used
as it in serial com-
munications with
the inverter. When
converting to an
analog output (0 to
5 V, 1 to 5 V, 0 to 10
V, 0 to 20 mA, or 4
to 20 mA), this
value can be used
to simplify the con-
version.
This value is used
when signed data
is not required, i.e.,
when using com-
munications or nor-
mal I/O to specify
the direction.
A24 00 to 15 Lower 4 digits of
present value of
signed output value
(output value =
present value of
error counter error
counter cycle (s)
gain)
Note The maxi-
mum and min-
imum output
values are
applied.
8000 0000 to 7FFF
FFFF hex
(214,748,348 to
214,748,347)
Cleared to zero at following times:
When power to CPU Unit is turned ON
At start of operation
When an error counter error occurs
Updated at following times:
Cyclically according to error counter
cycle
This value can be
used when not
using automatic
frequency com-
mand calculations
and instead to con-
vert the output
value provided
here in the user
program for output
to the inverter.
This value is used
when signed data
is required, i.e.,
when outputting
the frequency com-
mand with an ana-
log output from 10
to 10 V.
A25 00 to 15 Upper 4 digits of
present value of
signed output value
(output value =
present value of
error counter error
counter cycle (s)
gain)
Note The maxi-
mum and min-
imum output
values are
applied.
Word Bits Function Data range Refresh timing Application
examples
286
Inverter Positioning Section 5-3
Use the following for inverter positioning status and the workpiece position.
Word Bits Function Data range Refresh timing Application
examples
A26 00 Operation Command
Flag
ON: Operation
command exe-
cuted.
OFF: Stop com-
mand executed.
Turned ON at following times:
When inverter positioning is started
Turned OFF at following times:
When power to CPU Unit is turned ON
At start of operation
When CPU Unit operation stops
When inverter positioning is stopped
using INI instruction
This flag is used as
a NO input condi-
tion when calculat-
ing the frequency
command value in
the user program. It
is also used as a
NC input condition
when clearing the
frequency com-
mand value to zero.
01 Forward Operation
Command Flag
ON: Forward com-
mand in progress
OFF: Reverse
command in
progress or
stopped
Turned ON at following times:
When error counter present value is
greater than 0 (i.e., positive)
Turned OFF at following times:
When error counter present value is
less than 0 (i.e., negative) or zero
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag is used as
a NO input condi-
tion when output-
ting a forward
operation com-
mand to the
inverter from the
user program
It is also used as a
NC input condition
when outputting a
reverse command
to the inverter.
02 Reverse Operation
Command Flag
ON: Reverse com-
mand in progress
OFF: Forward
command in
progress or
stopped
Turned ON at following times:
When error counter present value is
less than 0 (i.e., negative)
Turned OFF at following times:
When error counter present value is
greater than 0 (i.e., positive) or zero
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag is used as
a NO input condi-
tion when output-
ting a reverse
operation com-
mand to the
inverter from the
user program
It is also used as a
NC input condition
when outputting a
forward command
to the inverter.
287
Inverter Positioning Section 5-3
A26 03 In-position Flag ON: In position
OFF: Not in posi-
tion
Turned ON at following times:
When pulse output to error counter is
stopped and absolute value of error
counter present value is less than in-
position range
Turned OFF at following times:
When pulses are being output to error
counter
When absolute value of error counter
present value is greater than in-posi-
tion range.
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag is used as
an NO condition
when clearing the
frequency com-
mand value to zero
from the user pro-
gram.
04 Error Counter Error
Flag
ON: Error counter
error
OFF: No error
Turned ON at following times:
When pulse output to error counter is
stopped and absolute value of error
counter present value is greater than
or equal to error counter error detec-
tion value
Turned OFF at following times:
When error counter error is reset
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag can be
used to provide
notification of
excessive pulses in
the error counter,
e.g., when manu-
ally moving the
motor shaft while
positioning is
stopped.
05 Error Counter Pulse
Output Flag
ON: Pulses being
output
OFF: Pulse output
stopped
Turned ON at following times:
When pulse output to error counter is
started
Turned OFF at following times:
When pulse output to error counter is
stopped (including immediate stops
and deceleration stops)
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag is used to
determine whether
pulses are being
output to the error
counter.
This flag can be
used to determine
when internal pulse
output has been
completed and
start the next
instruction.
06 Error Counter Pulse
Output Acceleration/
Deceleration Flag
ON: Pulse output
to the error counter
is accelerating or
decelerating (i.e.,
the frequency is
changing)
OFF: Pulse output
to the error counter
is constant
Turned ON at following times:
When pulse output frequency to error
counter is changed by ACC or PLS2
instruction
Turned OFF at following times:
During output of a constant pulse fre-
quency to error counter
When pulse output to error counter is
stopped (including immediate stops
and deceleration stops)
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag is used to
detect changes in
the output fre-
quency when the
frequency is
changed stepwise
for internal pulses
are being output by
the ACC or PLS2
instruction. It can
be used as a condi-
tion for executing
ACC or PLS2 dur-
ing internal pulse
output.
Word Bits Function Data range Refresh timing Application
examples
288
Inverter Positioning Section 5-3
Use the following for the present values of the internal pulse and error counter
of inverter positioning.
A26 07 Error Counter Alarm
Flag
ON: Error counter
alarm
OFF: No error
counter alarm
Turned ON at following times:
When pulse output to error counter is
stopped and absolute value of error
counter present value is greater than
or equal to error counter alarm detec-
tion value
Turned OFF at following times:
When error counter alarm is reset
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag can be
used to provide
notification of
excessive pulses in
the error counter,
e.g., when encoder
wiring breaks dur-
ing positioning.
08 to 14 Not used.
15 Inverter Positioning
Output Value Sign
Flag
ON: Positive value
OFF: Negative
value
Turned ON at following times:
When signed output value is between
0000 0000 and 7FFF FFFF hex.
Turned OFF at following times:
When signed output value is between
FFFF FFFF and 8000 0000 hex.
This flag can be
used as a direction
signal
A270 00 to 15 Lower 4 digits of
high-speed counter
present value
8000 000 to 7FFF
FFFF hex
(2,147,483,648 to
2,147,483,647)
The present value of the feedback
pulse from the encoder.
Operation is the same as for a high-
speed counter.
Use as the abso-
lute position of the
workpiece posi-
tioned with inverter
positioning.
A271 00 to 15 Upper 4 digits of
high-speed counter
present value
Word Bits Function Data range Refresh timing Application
examples
Word Bits Function Data range Refresh timing Application
examples
A22 00 to 15 Error counter 0
present value
(signed)
8000 to 7FFF hex
(32,768 to
32,767)
Cleared to zero at following times:
When power to CPU Unit is turned ON
At start of operation
When an error counter error occurs
Updated at following times:
Cyclically according to error counter
cycle
Held at following times:
When Error Counter Disable Bit
(A562.01) is turned ON.
Use to monitor the
difference between
the target value
and the present
value.
A28 00 to 15 Lower 4 digits of
present value of
pulse output to
inverter (relative
value)
8000 0000 to 7FFF
FFFF hex
(2,147,483,648 to
2,147,483,647)
Contains relative internal pulse output
value when pulses are output to error
counter.
Cleared to zero at following times:
When power to CPU Unit is turned ON
When operation is started
When pulse output to error counter is
started
Updated at following times:
Cyclically on error counter cycle
These values can
be used to monitor
the present value
of internal pulse
output.
A29 00 to 15 Upper 4 digits of
present value of
pulse output to
inverter (relative
value)
289
Inverter Positioning Section 5-3
Inverter Positioning 1
Use one of the following for the inverter frequency command.
A276 00 to 15 Lower 4 digits of the
present value of the
internal pulse output
(absolute value for
absolute coordi-
nates)
8000 0000 to 7FFF
FFFF hex
(2,147,483,648 to
2,147,483,647)
Contains absolute movement value
from the internal pulse origin when
pulses are output to error counter.
Cleared to zero at following times:
When power to CPU Unit is turned ON
When operation is started
Updated at following times:
Cyclically on error counter cycle
This value can be
used to monitor the
present value of
the internal pulse
output as an abso-
lute value when
using absolute
coordinates.
A277 00 to 15 Upper 4 digits of the
present value of the
internal pulse output
(absolute value for
absolute coordi-
nates)
Word Bits Function Data range Refresh timing Application
examples
Word Bits Function Data range Refresh timing Application
examples
A30 00 to 15 Lower 4 digits of
present value of
unsigned output
value (output value =
present value of
error counter error
counter cycle (s)
gain)
Note The maxi-
mum and min-
imum output
values are
applied.
0000 0000 to 8000
0000 hex
(0 to
2,147,483,648)
Cleared to zero at following times:
When power to CPU Unit is turned ON
At start of operation
When an error counter error occurs
Updated at following times:
Cyclically according to error counter
cycle
This value can be
used when not
using automatic
frequency com-
mand calculations
and instead to con-
vert the output
value provided
here in the user
program for output
to the inverter.
This value is used
when signed data
is not required, i.e.,
when using com-
munications or nor-
mal I/O to specify
the direction.
A31 00 to 15 Upper 4 digits of
present value of
unsigned output
value (output value =
present value of
error counter error
counter cycle (s)
gain)
Note The maxi-
mum and min-
imum output
values are
applied.
290
Inverter Positioning Section 5-3
A33 00 to 15 Inverter frequency
command value
(0.01-Hz increments,
unsigned)
Note Set the Power
Supply Fre-
quency for
One Motor
Revolution per
Second, Num-
ber of
Encoder
Pulses for
One Motor
Revolution,
and Error
Counter Cycle
in the PLC
Setup before
using this
value.
0000 to FFFF hex
(0.00 to
655.35 Hz)
Cleared to zero at following times:
When power to CPU Unit is turned ON
At start of operation
When an error counter error occurs
Updated at following times:
Cyclically according to error counter
cycle
These words con-
tain the automati-
cally calculated
frequency com-
mand value for the
inverter. (This value
is normally used.)
For example, if the
frequency setting
unit of the inverter
is 0.01 Hz, this
value can be used
as it in serial com-
munications with
the inverter. When
converting to an
analog output (0 to
5 V, 1 to 5 V, 0 to 10
V, 0 to 20 mA, or 4
to 20 mA), this
value can be used
to simplify the con-
version.
This value is used
when signed data
is not required, i.e.,
when using com-
munications or nor-
mal I/O to specify
the direction.
A34 00 to 15 Lower 4 digits of
present value of
signed output value
(output value =
present value of
error counter error
counter cycle (s)
gain)
Note The maxi-
mum and min-
imum output
values are
applied.
8000 0000 to 7FFF
FFFF hex
(214,748,348 to
214,748,347)
Cleared to zero at following times:
When power to CPU Unit is turned ON
At start of operation
When an error counter error occurs
Updated at following times:
Cyclically according to error counter
cycle
This value can be
used when not
using automatic
frequency com-
mand calculations
and instead to con-
vert the output
value provided
here in the user
program for output
to the inverter.
This value is used
when signed data
is required, i.e.,
when outputting
the frequency com-
mand with an ana-
log output from 10
to 10 V.
A35 00 to 15 Upper 4 digits of
present value of
signed output value
(output value =
present value of
error counter error
counter cycle (s)
gain)
Note The maxi-
mum and min-
imum output
values are
applied.
Word Bits Function Data range Refresh timing Application
examples
291
Inverter Positioning Section 5-3
Use the following for inverter positioning status and the workpiece position.
Word Bits Function Data range Refresh timing Application
examples
A36 00 Operation Command
Flag
ON: Operation
command exe-
cuted.
OFF: Stop com-
mand executed.
Turned ON at following times:
When inverter positioning is started
Turned OFF at following times:
When power to CPU Unit is turned ON
At start of operation
When CPU Unit operation stops
When inverter positioning is stopped
using INI instruction
This flag is used as
a NO input condi-
tion when calculat-
ing the frequency
command value in
the user program. It
is also used as a
NC input condition
when clearing the
frequency com-
mand value to zero.
01 Forward Operation
Command Flag
ON: Forward com-
mand in progress
OFF: Reverse
command in
progress or
stopped
Turned ON at following times:
When error counter present value is
greater than 0 (i.e., positive)
Turned OFF at following times:
When error counter present value is
less than 0 (i.e., negative) or zero
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag is used as
a NO input condi-
tion when output-
ting a forward
operation com-
mand to the
inverter from the
user program
It is also used as a
NC input condition
when outputting a
reverse command
to the inverter.
02 Reverse Operation
Command Flag
ON: Reverse com-
mand in progress
OFF: Forward
command in
progress or
stopped
Turned ON at following times:
When error counter present value is
less than 0 (i.e., negative)
Turned OFF at following times:
When error counter present value is
greater than 0 (i.e., positive) or zero
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag is used as
a NO input condi-
tion when output-
ting a reverse
operation com-
mand to the
inverter from the
user program
It is also used as a
NC input condition
when outputting a
forward command
to the inverter.
292
Inverter Positioning Section 5-3
A36 03 In-position Flag ON: In position
OFF: Not in posi-
tion
Turned ON at following times:
When pulse output to error counter is
stopped and absolute value of error
counter present value is less than in-
position range
Turned OFF at following times:
When pulses are being output to error
counter
When absolute value of error counter
present value is greater than in-posi-
tion range.
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag is used as
an NO condition
when clearing the
frequency com-
mand value to zero
from the user pro-
gram.
04 Error Counter Error
Flag
ON: Error counter
error
OFF: No error
Turned ON at following times:
When pulse output to error counter is
stopped and absolute value of error
counter present value is greater than
or equal to error counter error detec-
tion value
Turned OFF at following times:
When error counter error is reset
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag can be
used to provide
notification of
excessive pulses in
the error counter,
e.g., when manu-
ally moving the
motor shaft while
positioning is
stopped.
05 Error Counter Pulse
Output Flag
ON: Pulses being
output
OFF: Pulse output
stopped
Turned ON at following times:
When pulse output to error counter is
started
Turned OFF at following times:
When pulse output to error counter is
stopped (including immediate stops
and deceleration stops)
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag is used to
determine whether
pulses are being
output to the error
counter.
This flag can be
used to determine
when internal pulse
output has been
completed and
start the next
instruction.
06 Error Counter Pulse
Output Acceleration/
Deceleration Flag
ON: Pulse output
to the error counter
is accelerating or
decelerating (i.e.,
the frequency is
changing)
OFF: Pulse output
to the error counter
is constant
Turned ON at following times:
When pulse output frequency to error
counter is changed by ACC or PLS2
instruction
Turned OFF at following times:
During output of a constant pulse fre-
quency to error counter
When pulse output to error counter is
stopped (including immediate stops
and deceleration stops)
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag is used to
detect changes in
the output fre-
quency when the
frequency is
changed stepwise
for internal pulses
are being output by
the ACC or PLS2
instruction. It can
be used as a condi-
tion for executing
ACC or PLS2 dur-
ing internal pulse
output.
Word Bits Function Data range Refresh timing Application
examples
293
Inverter Positioning Section 5-3
Use the following for the present values of the internal pulse and error counter
of inverter positioning.
A36 07 Error Counter Alarm
Flag
ON: Error counter
alarm
OFF: No error
counter alarm
Turned ON at following times:
When pulse output to error counter is
stopped and absolute value of error
counter present value is greater than
or equal to error counter alarm detec-
tion value
Turned OFF at following times:
When error counter alarm is reset
When power to CPU Unit is turned ON
When CPU Unit operation starts
When CPU Unit operation stops
This flag can be
used to provide
notification of
excessive pulses in
the error counter,
e.g., when encoder
wiring breaks dur-
ing positioning.
08 to 14 Not used.
15 Inverter Positioning
Output Value Sign
Flag
ON:
OFF:
Turned ON at following times:
When signed output value is between
0000 0000 and 7FFF FFFF hex.
Turned OFF at following times:
When signed output value is between
FFFF FFFF and 8000 0000 hex.
This flag can be
used as a direction
signal.
A272 00 to 15 Lower 4 digits of the
present value of the
internal pulse output
(absolute value for
absolute coordi-
nates)
8000 0000 to 7FFF
FFFF hex
(2,147,483,648 to
2,147,483,647)
Contains absolute movement value
when pulses are output to error
counter.
Cleared to zero at following times:
When power to CPU Unit is turned ON
When operation is started
Updated at following times:
Cyclically on error counter cycle
This value can be
used to monitor the
present value of
the internal pulse
output as an abso-
lute value when
using absolute
coordinates.
A273 00 to 15 Upper 4 digits of the
present value of the
internal pulse output
(absolute value for
absolute coordi-
nates)
Word Bits Function Data range Refresh timing Application
examples
Word Bits Function Data range Refresh timing Application
examples
A32 00 to 15 Error counter 0
present value
(signed)
8000 to 7FFF hex
(32,768 to
32,767)
Cleared to zero at following times:
When power to CPU Unit is turned ON
At start of operation
When an error counter error occurs
Updated at following times:
Cyclically according to error counter
cycle
Saved at following times:
When Error Counter Disable Bit
(A562.01) is turned ON.
Use to monitor the
difference between
the target value
and the present
value.
A38 00 to 15 Lower 4 digits of
present value of
pulse output to
inverter (relative
value)
8000 0000 to 7FFF
FFFF hex
(2,147,483,648 to
2,147,483,647)
Contains relative internal pulse output
value when pulses are output to error
counter.
Cleared to zero at following times:
When power to CPU Unit is turned ON
When operation is started
When pulse output to error counter is
started
Updated at following times:
Cyclically on error counter cycle
These values can
be used to monitor
the present value
of internal pulse
output.
A39 00 to 15 Upper 4 digits of
present value of
pulse output to
inverter (relative
value)
294
Inverter Positioning Section 5-3
Read/Write Area
Note Present Values of High-speed Counter and Pulse Outputs
The present value of the high-speed counter when inverter positioning is used
is stored in the same memory location as for normal high-speed counter appli-
cation. This value can be used as the present value of feedback pulses from
the encoder, i.e., as the absolute position of inverter positioning. Target value
and range comparisons for high-speed counters are also valid.
The present value of the pulse output (A276/A277 or A278/A279), i.e., the
pulse output value to the error counter, is an absolute position if an absolute
coordinate system is specified and is a relative position if a relative coordinate
system is specified.
A278 00 to 15 Lower 4 digits of the
present value of the
internal pulse output
(absolute value for
absolute coordi-
nates)
8000 0000 to 7FFF
FFFF hex
(2,147,483,648 to
2,147,483,647)
Contains absolute movement value
from the internal pulse origin when
pulses are output to error counter.
Cleared to zero at following times:
When power to CPU Unit is turned ON
When operation is started
Updated at following times:
Cyclically on error counter cycle
This value can be
used to monitor the
present value of
the internal pulse
output as an abso-
lute value when
using absolute
coordinates.
A279 00 to 15 Upper 4 digits of the
present value of the
internal pulse output
(absolute value for
absolute coordi-
nates)
Word Bits Function Data range Refresh timing Application
examples
Word Bits Function Data range Refresh
timing
Application
A562 00 Inverter
positioning 0
Error Counter
Reset Bit
Turned ON: Error counter 0
present value (A22) reset and
Error Counter Error Flag cleared.
--- Turn ON this bit to
clear the error
counter error status.
01 Error Counter
Disable Bit
While ON: Error counter value
held.
--- Turn ON this bit, for
example, to disable
accumulating
pulses in the error
counter when stop-
ping positioning and
moving the motor
shaft manually.
02 to 15 Not used.
A563 00 Inverter
positioning 1
Error Counter
Reset Bit
Turned ON: Error counter 0
present value (A32) reset and
Error Counter Error Flag cleared.
--- Turn ON this bit to
clear the error
counter error status.
01 Error Counter
Disable Bit
While ON: Error counter value
held.
--- Turn ON this bit, for
example, to disable
accumulating
pulses in the error
counter when stop-
ping positioning and
moving the motor
shaft manually.
02 to 15 Not used.
295
Inverter Positioning Section 5-3
5-3-11 Application Example with Serial Communications
Positioning with
Trapezoidal Control
Specifications and
Operation
When start input CIO 1.04 turns ON, 600,000 pulses are output internally for
inverter positioning 0 to turn the motor shaft.
Note Refer to 5-3-7 Determining the Internal Pulse Output Frequency for the for-
mula to convert the frequency and use the converted internal pulse frequency.
The number of output pulses is calculated from the encoder specifications
and the high-speed counter multiplier.
CP1L
Pulse output
instruction
CP1L
Target frequency
Present value of
high-speed counter
Present value of pulse output
Internal
pulses
Error
counter
Inverter
Power
supply
frequency
Encoder
Motor
No. of output
pulses: 600,000
Start input
CIO 0.05
Deceleration:
80 Hz/4 ms
Starting
frequency
100 Hz
Target
frequency
20,000 Hz
Acceleration:
100 Hz/4 ms
296
Inverter Positioning Section 5-3
System Configuration
Instructions Used PLS2(887)
Terminal Allocations
Error Counter
RS-422A/485 Communications (CP1W-CIF11)
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
COMM
CP1W-CIF11
Speed Command via Serial Communications
CP1L
RS-485
communications
(Modbus-RTU)
Inverter
Standard motor
Encoder
3G3MV
3G3RV
Feedback pulses
CIO 0 CIO 1
Error counter 0
Phase B
Error counter 1
Phase B
Error counter 1
Phase Z
Error counter 0
Phase A
Error counter 1
Phase A
Error counter 0
Phase Z
L1 L2/N COM
01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
SW
1
2
3
4
5
6
ON
RDA- RDB+ SDA- SDB+ FG
297
Inverter Positioning Section 5-3
Inverter (3G3MV)
Encoder
Connection Example
Encoder (24 VDC) Connections to High-speed Counter 0
S5 S6 S7 P1 P2 R+ R- FS FR FC
S1 S2 S3 S4 SC PC S+ S- AM AC RP
SW1
PNP
NPN
SW2
1
2
OFF ON
Encoder
(Power supply: 24 VDC)
Black
Phase A
White
Phase B
Orange
Phase Z
Brown
+Vcc
Blue
COM
24-VDC power supply
0 V
+24 V
+Vcc
+24 V
0.00
0.01
0.04
COM
Differential-phase
Input
Error counter 0: Phase A, 0 V
Error counter 0: Phase B, 0 V
Error counter 0: Phase Z, 0 V
(COM 24 V)
CP1L-@@DT-D
Encoder
(Power supply: 24 VDC)
Black
Phase A
White
Phase B
Orange
Phase Z
Brown
Blue 0 V (COM)
24-V DC power supply
0 V
298
Inverter Positioning Section 5-3
RS-422A/485 (CP1W-CIF11) Connections to Inverter
Inverter Connections to Motor
Parameter Settings
for 3G3MV Inverter
When connecting the Inverter to the PLC, communications parameters must
be set in the Inverter. The settings of parameters n152 to n157 cannot be
changed while communications are in progress. Always set them before start-
ing communications.
RS-422A/485
RDA- RDB+ SDA- SDB+ FG
SW1
1 ON SW2
2
SW
1
2
3
4
5
6
ON
CP1W-CIF11
Either setting
Either setting
Inverter
S5
S1 S2 S3 S4 SC PC S+ S- AM AC RP
S6 S7 P1 P2 R+ R- FS FR FC
U V W U/T1 V/T2 W/T3
Motor Inverter
299
Inverter Positioning Section 5-3
Example settings of 3G3MV parameters are listed below. Refer to the Users
Manual of the Inverter for details on the parameters.
Parameter
No.
Name Description Default Setting
n003 RUN command selection 0: The RUN Key and STOP/RESET Key on the
Digital Operator are enabled.
1: Multi-function input is enabled through the con-
trol circuit terminals.
2: RS-422A/485 communications are enabled.
3: Input is enabled from the optional Communica-
tions Unit.
0 2
n004 Frequency reference selection 0: Frequency reference adjustment
1: Frequency reference 1 (n024)
2: Frequency reference control terminal (0 to 10
V)
3: Frequency reference control terminal (4 to 20
mA)
4: Frequency reference control terminal (0 to 20
mA)
5: Pulse train reference control terminal
6: Frequency reference through RS-422A/RS-485
7: Multi-function analog voltage input (0 to 10 V)
8: Multi-function analog current input (4 to 20 mA)
9: Frequency reference input through optional
Communications Unit.
0 6
n005 Stopping method selection 0: Decelerates to stop
1: Coasts to stop
0 0
n006 Reverse rotation-prohibit
selection
0: Reverse enabled
1: Reverse disabled
0 0
n011 Maximum frequency (FMAX) 50.0 to 400.0 Hz (0.1-Hz increments) 60.0 Hz 60.0 Hz
(Depends
on machine
configura-
tion.)
n016 Minimum output frequency
(FMIN)
0.1 Hz to 10.0 Hz (0.1-Hz increments) 1.5 Hz 0.1 Hz
n018 Acceleration/deceleration time
setting unit
0: 0.1 s
1: 0.01 s
0 0
n019 Acceleration time 1 0 to 6,000 s 10.0 s 0
n020 Deceleration time 1 0 to 6,000 s 10.0 s 0
n151 RS-422A/485 communications
timeover detection selection
(The time between receiving
PLC signals is monitored, Tim-
eout time: 2 s.)
0: Detects time-over, fatal error, and the Inverter
coasts to a stop.
1: Detects time-over, detects fatal error, and the
Inverter decelerates to a stop in deceleration time
1.
2: Detects time-over, detects fatal error, and the
Inverter decelerates to a stop in deceleration time
2.
3: Detects time-over, detects nonfatal error warn-
ing, and the Inverter continues operating.
4: No time-over is detected.
0 0
n152 RS-422A/485 communications
frequency reference/display
unit selection
0: 0.1 Hz
1: 0.01 Hz
2: Converted value based on 30,000 decimal as
maximum frequency
3: 0.1% (Maximum frequency: 100%)
0 1
300
Inverter Positioning Section 5-3
PLC Setup
Serial Port Communications Settings
Note (1) Set the baud rate and parity check settings to the same value as for the
Inverter communications parameters.
(2) Set the serial port to the serial gateway communications mode.
n153 RS-422A/485 communications
Slave address
Setting range: 0 to 32
00: Communications disabled
01 to 32: Slave address
0 1
n154 RS-422A/485 baud rate selec-
tion
0: 2,400 bps
1: 4,800 bps
2: 9,600 bps
3: 19,200 bps
2 2
n155 RS-422A/485 parity selection 0: Even
1: Odd
2: No parity
0 0
n156 RS-422A/485 send wait time Set value: 10 to 65 ms
Setting unit: 1 ms
10 ms 10 ms
n157 RS-422A/485 RTS control
selection
0: RTS control enabled
1: RTS control disabled
0 0
Parameter
No.
Name Description Default Setting
301
Inverter Positioning Section 5-3
High-speed Counter Settings (on Built-in Input Tab Page)
Note (1) Set high-speed counter 0 when using inverter positioning 0. Set high-
speed counter 1 when using inverter positioning 1.
(2) Use linear mode for inverter positioning.
Inverter Positioning Settings (on Inverter Positioning 0 or 1 Tab Page)
Ladder Program The following Modbus-RTU communications parameters are used.
Baud rate 9,600 bits/s
Format 8, 1, E
Serial communications mode Serial Gateway
302
Inverter Positioning Section 5-3
Serial port 1 is used for communications with the Inverter.
Starting Inverter
Positioning
PLS2(887) Settings
High-speed counter 0 (i.e., error counter 0) is used for the feedback pulse
input port.
Stopping Internal Pulse
Output to the Error
Counter
Internal pulse output is stopped immediately.
Inverter positioning (i.e., the error counter) will continue to function.
Stopping Inverter
Positioning
Internal pulse output is stopped immediately.
The output value will remain at 0 until the error counter is reset.
@PLS2(887)
#0020
#0000
D200
D300
0.05
Start input Inverter positioning 1
CW, relative pulses
Target frequency, No. of output pulses
Starting frequency
Setting details Address Data
Acceleration rate: 100 Hz/4 ms D200 0064
Deceleration rate: 80 Hz/4 ms D201 0050
Target frequency: 20,000 Hz D202 4E20
D203 0000
Number of output pulses: 600,000 pulses D204 27C0
D205 0009
Starting frequency: 100 Hz D300 0064
D301 0000
@INI
#0020
Port specifier
(Error counter 0: 0020 hex)
#0003 0003 hex: Stop virtual pulse output
0000 0000 (Not used.)
0.06
Error counter
Operation
Inverter
Inductive motor
Encoder
Set to 0.
@INI
#0020 Port specified (Error counter 0: 0020 hex)
#0004 0004 hex: Stop inverter positioning
0000 0000 (Not used.)
0.07
303
Inverter Positioning Section 5-3
Pulse outputs will not be accepted until the error counter is reset. (Execut-
ing a pulse output instruction will cause an error.)
Referencing the
Automatically Calculated
Inverter Frequency
Command Value
If the following settings are made in the PLC Setup, the inverter frequency
command value will be calculated automatically and set in A23 in the Auxiliary
Area. These settings are on the Inverter Positioning 0 Tab Page in the PLC
Setup.
Power Supply Frequency for One Motor Revolution per Second (0.1-Hz
increments)
Number of Encoder Pulses for One Motor Revolution
Error Counter Cycle (x 4 ms)
The inverter frequency command value in A23 is accessed. The value is
stored in 0.01-Hz increments.
Internal Work Addresses
Error counter
Operation
Inverter
Inductive motor
Encoder
Outputs not
accepted
Sets forward
command in
D10.
Sets reverse
command in
D10.
Sets stop
command
in D1.
Sets operation
command
in D1.
Sets frequency
command
value in D2.
In-position Flag
Operation Command Flag
Forward Command Flag
Reverse Command Flag
Modbus
simple master
function not
active
Operation
Command
Flag
A641.00 A026.00
A26.01
A26.02
A26.00
A26.03
A641.00
MOV
MOV
MOV
MOV
MOV
#0001
D1
A023
D2
#0000
D10
#0001
D10
#0000
D1
Address Usage
D1 Bits 00 to 03: Run/Stop Command
D2 Bits 00 to 15: Frequency Command Value
D10 Bits 00 to 03: Forward/Reverse Command
304
Inverter Positioning Section 5-3
Setting Modbus
Communications
Registers
MOV
MOV
MOV
MOV
MOV
MOV
A641.00
XFRB
XFRB
ORW
XFRB
XFRB
#0001
D32200
#0010
D32201
#0009
D32202
#0001
D32203
#0002
D32204
#0400
D32205
#0480
D1
D32206
#0190
D10
D15
D15
D32206
D32206
#0808
D2
D32206
#0880
D2
D32207
Move bits 00 to 07 of D2
(frequency command
value) to bits 08 to 15 of
D32207 (register 0002).
Move bits 08 to 15 of D2
(frequency command
value) to bits 00 to 07 of
D32206 (register 0001).
ORs D15 and D32206
(register 0001) and
stores the result in
D32206. (Reflect bit 09
of D15 in D32206
(register 0001).
Moves bit 00 of D10
(Forward/Reverse
Command) to bit 09 of
D15.
Moves bits 00 to 03 of
D1 (Run/Stop
Command) to D32206
(register 0001) bits 08 to
11.
Number of attached
data bytes: 04 hex (4
bytes)
Number of write data
registers: 0002 hex
Register number of
write start data: 0001
hex
Number of
communications data
bytes: 09 hex (9 bytes)
Function code:
10 hex (write data)
Slave address:
01 hex
Modbus
simple master
function not
active
305
Inverter Positioning Section 5-3
Internal Work Addresses
Settings Addresses
Modbus Communications
Add the above instructions to the end of the program as a starting condition
for the ladder programming example. For error processing, refer to the ladder
program in 6-3-3 Modbus-RTU Easy Master Function and to the inverters
manual.
5-3-12 Application Example with an Analog Output
Positioning with
Trapezoidal Control
Specifications and
Operation
When start input CIO 1.04 turns ON, 600,000 pulses are output internally for
inverter positioning 0 to turn the motor shaft.
Note Refer to 5-3-7 Determining the Internal Pulse Output Frequency for the for-
mula to convert the frequency and use the converted internal pulse frequency.
The number of output pulses is calculated from the encoder specifications
and the high-speed counter multiplier.
Address Usage
D1 Bits 00 to 03: Run/Stop Command
D2 Bits 00 to 15: Frequency Command Value
D10 Bits 00 to 03: Forward/Reverse Command
D15 Bit 09: Forward/Reverse Command
Address Usage Data
D32200 Bits 00 to 07: Slave address 01
D32201 Bits 00 to 07: Function code 10
D32202 Bits 00 to 07: Number of communications data bytes 09
D32203 Bits 00 to 15: Register number of write start data 0001
D32204 Bits 00 to 15: Number of data registers to write 0002
D32205 Bits 08 to 15: Number of attached data bytes 04
D32206 Bits 00 to 07: Upper bytes of frequency command value in D2
Bit 08: Run/Stop Command
Bit 09: Forward/Reverse Command
---
D32207 Bits 08 to 15: Lower bytes of frequency command value in D2 ---
A26.00
Operation
Command Flag
A641.00 Modbus-RTU Master Execution Bit
306
Inverter Positioning Section 5-3
System Configuration
Instructions Used PLS2(887)
Terminal Allocations
Error Counter
100 Hz
20,000 Hz
No. of output
pulses: 600,000
Start input
CIO 0.05
Deceleration:
80 Hz/4 ms
Starting
frequency
Target
frequency
Acceleration:
100 Hz/4 ms
Inverter
Standard motor
Encoder
3G3MV
3G3RV
Feedback pulses
Speed Command via Analog Output
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
CH
I OUT1 I OUT3
I OUT2 VOUT1
VOUT2
VOUT3 COM1
COM2
I OUT4
VOUT4 COM4
NC
AG
COM3
OUT
CP1W/CPM1A-DA041
(Analog Output Unit)
CP1L
CP1W/CPM1A-MAD11
(Analog I/O Unit)
Output Bits
Forward
Reverse
Current/Voltage
Output
Frequency
command
L1 L2/N COM 01
00 02 04 06 08 10 00 02 04 06 08 10
03 05 07 09 11 01 03 05 07 09 11
CIO 0 CIO 1
Error counter 0
Phase B
Error counter 1
Phase B
Error counter 1
Phase Z
Error counter 0
Phase A
Error counter 1
Phase A
Error counter 0
Phase Z
307
Inverter Positioning Section 5-3
Built-in Outputs
CP1W/CPM1A-DA041
Inverter (3G3MV)
Encoder
+ 00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
Output word CIO 100 Output word CIO 101
CH
I OUT1 I OUT3
I OUT2 VOUT1
VOUT2
VOUT3 COM1
COM2
I OUT4
VOUT4 COM4
NC
NC
COM3
I OUT1 I OUT3
I OUT2 VOUT1
VOUT2
VOUT3 COM1
COM2
I OUT4
VOUT4 COM4
NC
NC
COM3
OUT
SW1
PNP
NPN
S5 S6 S7 P1 P2 R+ R FS FR FC
S1 S2 S3 S4 SC PC S+ S- AM AC RP
SW2
1
2
OFF ON
0 V
+24 V
+Vcc
Encoder
(Power supply: 24 VDC)
Black
Phase A
White
Phase B
Orange
Phase Z
Brown
Blue 0 V (COM)
24-V DC power supply
308
Inverter Positioning Section 5-3
Connection Example
Encoder (24 VDC) Connections to High-speed Counter 0
Output Terminal Connections to Inverter
CP1W/CPM1A-DA041 (Current Output) Connections to Inverter
0 V
+24 V
0.00
0.01
0.04
COM
Differential-phase
Input
Error counter 0: Phase A, 0 V
Error counter 0: Phase B, 0 V
Error counter 0: Phase Z, 0 V
(COM 24 V)
CP1L-@@DT-D
+Vcc
Encoder
(Power supply: 24 VDC)
Black
Phase A
White
Phase B
Orange
Phase Z
Brown
Blue 0 V (COM)
24-V DC power supply
+ 00 01 02 03 04 06 00 01 03 04 06
- COM COM COM COM 05 07 COM 02 COM 05 07
Output word CIO 100
Inverter
PLC
Output word CIO 101
S5 S6 S7 P1 P2 R+ R- FS FR FC
S1 S2 S3 S4 SC PC S+ S- AM AC RP
S5 S6 S7 P1 P2 R+ R- FS FR FC
S1 S2 S3 S4 SC PC S+ S- AM AC RP
1 SW2
2
Inverter
IOUT1 VOUT2 COM2 IOUT3 VOUT4 COM4 NC
VOUT1 COM IOUT2 VOUT3 COM3 IOUT4 NC
CPM1A-DA041
Inverter Switch Settings
SW1 NPN
Either setting
ON (Current: I)
309
Inverter Positioning Section 5-3
Inverter Connections to Motor
Parameter Settings
for 3G3MV Inverter
When connecting the Inverter to the PLC, communications parameters must
be set in the Inverter.
Example settings of 3G3MV parameters are listed below. Refer to the Users
Manual of the Inverter for details on the parameters.
U V W U/T1 V/T2 W/T3
Motor Inverter
Parameter
No.
Name Description Default Setting
n003 RUN command selection 0: The RUN Key and STOP/RESET Key on the
Digital Operator are enabled.
1: Multi-function input is enabled through the con-
trol circuit terminals.
2: RS-422A/485 communications are enabled.
3: Input is enabled from the optional Communica-
tions Unit.
0 1
n004 Frequency reference selection 0: Digital Operator
1: Frequency reference 1 (n024)
2: Frequency reference control terminal (0 to 10 V)
3: Frequency reference control terminal (4 to 20
mA)
4: Frequency reference control terminal (0 to 20
mA)
5: Pulse train reference control terminal
6: Frequency reference through RS-422A/RS-485
7: Multi-function analog voltage input (0 to 10 V)
8: Multi-function analog current input (4 to 20 mA)
9: Frequency reference input through optional
Communications Unit.
0 4
n050 Multi-function input 1 1 to 25 1 1
n051 Multi-function input 2 1 to 25 2 2
n060 Frequency reference gain 0% to 255% (1% increments) 100% 100%
n061 Frequency reference bias 100% to 100% (1% increments) 0% 0%
n005 Stopping method selection 0: Decelerates to stop
1: Coasts to stop
0 0
n006 Reverse rotation-prohibit
selection
0: Reverse enabled
1: Reverse disabled
0 0
n011 Maximum frequency (FMAX) 50.0 to 400.0 Hz (0.1-Hz increments) 60.0 Hz 60.0 Hz
(Depends
on machine
configura-
tion.)
n016 Minimum output frequency
(FMIN)
0.1 Hz to 10.0 Hz (0.1-Hz increments) 1.5 Hz 0.1 Hz
n018 Acceleration/deceleration time
setting unit
0: 0.1 s
1: 0.01 s
0 0
n019 Acceleration time 1 0 to 6,000 s 10.0 s 0
n020 Deceleration time 1 0 to 6,000 s 10.0 s 0
310
Inverter Positioning Section 5-3
PLC Setup
High-speed Counter Settings (on Built-in Input Tab Page)
Note (1) Set high-speed counter 0 when using inverter positioning 0. Set high-
speed counter 1 when using inverter positioning 1.
(2) Use linear mode for inverter positioning.
Inverter Positioning Settings (on Inverter Positioning 0 or 1 Tab Page)
311
Inverter Positioning Section 5-3
Ladder Program
Starting Inverter
Positioning
Note The pulse output method (CCW/CW or pulse + direction) setting and direction
setting are not used.
PLS2(887) Settings
High-speed counter 0 (i.e., error counter 0) is used for the feedback pulse
input port.
Stopping Internal Pulse
Output to the Error
Counter
Internal pulse output is stopped immediately.
Inverter positioning (i.e., the error counter) will continue to function.
Stopping Inverter
Positioning
Internal pulse output is stopped immediately.
The output value will remain at 0 until the error counter is reset.
Pulse outputs will not be accepted until the error counter is reset. (Execut-
ing a pulse output instruction will cause an error.)
PLS2(887)
#0020
#0000
D200
D300
0.05
Start input Inverter positioning 1
CW, relative pulses
Target frequency, No. of output pulses
Starting frequency
Setting details Address Data
Acceleration rate: 100 Hz/4 ms D200 0064
Deceleration rate: 80 Hz/4 ms D201 0050
Target frequency: 20,000 Hz D202 4E20
D203 0000
Number of output pulses: 600,000 pulses D204 27C0
D205 0009
Starting frequency: 100 Hz D300 0064
D301 0000
0.06
@INI
#0020
#0003
0000
Port specifier (Error counter 0: 0020 hex)
0003 hex: Stop virtual pulse output
0000 (Not used.)
Error counter
Operation
Inverter
Inductive motor
Encoder
Set to 0.
0.07
@INI
#0020
#0004
0000
Port specified (Error counter 0: 0020 hex)
0004 hex: Stop inverter positioning
0000 (Not used.)
312
Inverter Positioning Section 5-3
Referencing the
Automatically Calculated
Inverter Frequency
Command Value
If the following settings are made in the PLC Setup, the inverter frequency
command value will be calculated automatically and set in A23 in the Auxiliary
Area. These settings are on the Inverter Positioning 0 Tab Page in the PLC
Setup.
Power Supply Frequency for One Motor Revolution per Second (0.1-Hz
increments)
Number of Encoder Pulses for One Motor Revolution
Error Counter Cycle (x 4 ms)
The inverter frequency command value in A23 is accessed and converted to
an analog output signal. The CP1W/CPM1A-DA041 has a resolution of 6,000,
so the conversion to an analog signal is performed as follows:
6,000 60 Hz (inverters maximum output frequency) 100 = 1
The conditions are as follows:
In this example, the results of *U and /UL are 1, so the value in A23 is moved
directly to D102 with MOV.
Error counter
Operation
Inverter
Inductive motor
Encoder
Outputs not
accepted
Forward/Reverse Command
Bit turned ON.
The contents of D102 is set in D1020.
Analog
conversion
trigger
Operation
Command Bit
Operation
Command Bit
A26.00
In-position Flag
Forward
Command Bit
A26.01
Forward
Command Bit
Reverse
Command Bit
T0
T0
T0
A26.00
A26.01 A26.02
A26.03
100.02
100.03
The frequency command value is divided by
100 to convert to Hz and stored in D1020.
To convert to the analog output value, the inverter
frequency command value is multiplied by 100
(analog resolution of 6,000 divided by inverter's
maximum frequency of 60) and stored in D1010
and D1011.
An analog value of 0 for the
stop command set in D102.
*U
A023
&100
D1010
/U
D1010
&100
D1020
MOV
#0000
D102
MOV
D1020
D102
Always ON Flag
P_On
TIM
0
#0003
Time for data for Analog Output Unit to become valid.
Analog
conversion
trigger
Analog
conversion
trigger
Reverse
Command Bit
A26.02
313
Inverter Positioning Section 5-3
Internal Work Addresses
Settings Addresses
CP1W/CPM1A-DA041
Analog Output Settings
Analog output 1 is used in this example. It is set to a range of 4 to 20 mA. The
scaled value is set in the analog conversion area of the Analog Output Unit.
Refer to the first line in the programming example in Referencing the Automat-
ically Calculated Inverter Frequency Command Value on page 312 for a timer
for the time required for the Analog Output Units data to be valid (analog con-
version trigger: T0).
Address Usage
D1010 Holds the frequency command value converted for the analog
output resolution.
D1011
D1020 Holds the frequency command value converted from 0.01-Hz
increments to hertz.
T0 Analog conversion trigger
Address Usage
D102 Bits 00 to 15: Analog output value
CIO 100.02 Forward (external output)
CIO 100.03 Reverse (external output)
Analog output 1 set to a
range of 0 to 20 mA
(range code: B hex).
Analog outputs 2 to 4 are
not used.
D103 (scaled value) is
initialized.
The scaled value in
D102 is written as the
converted data for
analog output 1.
P_First_Cycle
First Cycle
Flag
T0
MOV
#800B
102
MOV
#0000
103
MOV
#0000
D102
MOV
D102
102
D102 (scaled value) is
initialized.
314
Inverter Positioning Section 5-3
Internal Work Addresses
Settings Addresses
5-3-13 Supplemental Information
Restrictions Inverter positioning 0 and inverter positioning 1 each use one high-speed
counter and one serial port (except that a serial port is not used when an
Analog Output Unit is used). (High-speed counter 0 is allocated to inverter
positioning 0 and high-speed counter 1 is allocated to inverter positioning
1.)
When inverter positioning 0 or 1 is used, the corresponding pulse output
(0 or 1) and the corresponding PWM command (pulse output 0 or 1) can-
not be used.
Precautions Determine the in-position range based on the mechanical system. Use a
smaller range if positioning precision is required. If the range is too small,
however, time may be required when stopping. If stopping quickly is more
important than precision, increase the in-position range.
The error counter cycle also affects the conversion between the output
value and the inverter frequency command value. Refer to 5-3-9 Auto-
matic Calculation of Inverter Frequency Command Value for details.
If inverter positioning does not end normally, adjust the following settings.
Reduce the acceleration/deceleration rates.
Lower rates will stabilize operation at the end of acceleration/deceleration.
Reduce the target frequency.
Change the error counter cycle. Increasing the error counter cycle improve
stopping precision, but it may also cause unstable speeds during opera-
tion.
Adjust the gain.
Increasing the gain will improve stopping precision, but it may also cause
unstable speeds during operation.
Address Usage
D102 Bits 00 to 15: Analog output value
T0 Analog conversion trigger
Address Usage
CIO 102 Bits 00 to 15: Analog conversion area
CIO 103 Bits 00 to 15: Analog conversion area
315
SECTION 6
Advanced Functions
This section describes all of the advanced functions of the CP1L that can be used to achieve specific application needs.
6-1 Interrupt Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
6-1-1 Overview of CP1L Interrupt Functions . . . . . . . . . . . . . . . . . . . . . . 316
6-1-2 Input Interrupts (Direct Mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
6-1-3 Input Interrupts (Counter Mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
6-1-4 Scheduled Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
6-1-5 High-speed Counter Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
6-2 Quick-response Inputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 338
6-3 Serial Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
6-3-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 342
6-3-2 No-protocol Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
6-3-3 Modbus-RTU Easy Master Function . . . . . . . . . . . . . . . . . . . . . . . . 347
6-3-4 Communications: Smart Active Parts and Function Blocks. . . . . . . 350
6-3-5 Serial PLC Links. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 352
6-3-6 1:1 Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
6-3-7 1:N NT Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 362
6-3-8 1:1 NT Links. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363
6-3-9 Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
6-4 Analog Adjuster and External Analog Setting Input . . . . . . . . . . . . . . . . . . . 370
6-4-1 Analog Adjuster . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
6-4-2 External Analog Setting Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 370
6-5 Battery-free Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
6-5-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
6-5-2 Using Battery-free Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372
6-6 Memory Cassette Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
6-6-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
6-6-2 Mounting and Removing a Memory Cassette . . . . . . . . . . . . . . . . . 374
6-6-3 Operation Using the CX-Programmer . . . . . . . . . . . . . . . . . . . . . . . 376
6-6-4 Memory Cassette Data Transfer Function . . . . . . . . . . . . . . . . . . . . 377
6-6-5 Procedures for Automatic Transfer from the Memory Cassette
at Startup. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
6-7 Program Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
6-7-1 Read Protection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
6-7-2 Write Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 387
6-7-3 Protecting Program Execution Using the Lot Number. . . . . . . . . . . 389
6-8 Failure Diagnosis Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 390
6-8-1 Failure Alarm Instructions: FAL(006) and FALS(007) . . . . . . . . . . 390
6-8-2 Failure Point Detection: FPD(269) . . . . . . . . . . . . . . . . . . . . . . . . . . 391
6-8-3 Simulating System Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 392
6-8-4 Output OFF Bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393
6-9 Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
316
Interrupt Functions Section 6-1
6-1 Interrupt Functions
6-1-1 Overview of CP1L Interrupt Functions
The CP1L CPU Units processing is normally cyclical (overseeing processing
program execution I/O refreshing peripheral servicing), with cyclic
tasks executed in the program execution stage of the cycle. The interrupt
functions can be used to temporarily interrupt this cyclic processing and exe-
cute a particular program when a predefined condition occurs.
Types of Interrupt
Functions
Input Interrupts (Direct
Mode)
When one of the CPU Units built-in inputs goes from OFF to ON (or ON to
OFF), the corresponding interrupt task is executed. Interrupt tasks 140 to 145
are allocated to the 8 input terminals used for the input interrupts.
Input Interrupts (Counter
Mode)
This function counts input pulses at one of the CPU Units built-in inputs and
executes the corresponding interrupt task when the count reaches the SV.
The maximum input response frequency for input interrupts (in counter mode)
is 5 kHz.
Scheduled Interrupts This function executes an interrupt task at a fixed time interval measured by
the CPU Units built-in timer. The time interval units can be set to 10 ms, 1 ms,
or 0.1 ms. The minimum timer SV is 0.5 ms.
Interrupt task 2 is allocated to scheduled interrupt.
High-speed Counter
Interrupts
This function counts input pulses with the CPU Units built-in high-speed
counter and executes an interrupt task when the count reaches the preset
value or falls within a preset range (target-value or zone comparison). An
interrupt task between 0 and 255 can be allocated with an instruction.
Refer to 5-1 High-speed Counters for details on high-speed counters.
Note Power OFF interrupts cannot be used with CP1L CPU Units.
Creating an Interrupt
Task Program
1,2,3... 1. Right-click NewPLC1 [CP1L] Offline in the project workspace and select
Insert Program from the pop-up menu. A new program called
NewProgram2 (unassigned) will be inserted in the project workspace.
317
Interrupt Functions Section 6-1
2. Right-click NewProgram2 (unassigned) and select Properties from the
pop-up menu to display the Program Properties Window.
3. Set the Task type in the Program Properties Window.
In this example, interrupt task 140 was allocated to NewProgram2.
If you click the X Button in the upper-right corner of the window, you can cre-
ate the program that will be executed as interrupt task 140.
The programs allocated to each task are independent and an END(001)
instruction must be input at the end of each program.
Interrupt Task Priority The input interrupts (direct mode and counter mode), high-speed counter
interrupts, scheduled interrupts, and external interrupts all have the same pri-
ority. If interrupt task A (an input interrupt, for example) is being executed
when interrupt task B (a scheduled interrupt, for example) is called, task A
processing will not be interrupted. Task B processing will be started when task
A is completed.
If two different types of interrupt occur simultaneously, they are executed in
the following order:
If two of the same type interrupt occur simultaneously, the task with the lower
interrupt task number is executed first.
Note If a user program is likely to generate multiple interrupts simultaneously, the
interrupt tasks will be executed in the order shown above, so it may take some
time from the occurrence of the interrupt condition to the actual execution of
the corresponding interrupt task. In particular, it is possible that scheduled
interrupts will not be executed in the preset time, so the program must be
designed to avoid interrupt conflicts if necessary.
Duplicate Processing
in Cyclic and Interrupt
Tasks
If a memory address is processed both by a cyclic task and an interrupt task,
an interrupt mask must be set to disable interrupts.
Input interrupt
(direct mode or
counter mode)
>
High-speed
counter inter-
rupt
>
Scheduled
interrupt
318
Interrupt Functions Section 6-1
When an interrupt occurs, execution of the cyclic task will be interrupted
immediately, even during execution of a cyclic tasks instruction, and the par-
tially processed data is saved. After the interrupt task is completed, process-
ing returns to the cyclic task and the interrupted processing restarts with the
data saved before the interrupt processing. If the interrupt task overwrites a
memory address used by one of the interrupted instructions operands, that
overwrite may not be reflected after the saved data is restored as processing
returns to the cyclic task.
To prevent an instruction from being interrupted during processing, enter
DI(693) just before the instruction to disable interrupts and EI(694) just after
the instruction to enable interrupts again.
a. The following example shows duplicate processing by an interrupt
task, which interrupts processing of a +B instruction between the first
and third operands and overwrites the same memory address.
The interrupt occurs during processing of the +B instruction and the result is
saved temporarily without being written to the destination word (D0).
The interrupt task transfers the value of #0010 to D0, but the saved result of
the +B instruction (1235) is written to D0 when processing returns to the cyclic
task. In the end, the interrupt tasks processing has no effect.
+B
D0
#0001
D0
MOV
#0010
D0
D0
1234
0010
1235
Processing
interrupted.
Cyclic task
Interrupt task
Read D0 value (1234).
BCD addition: 1234 + 1 = 1235
Interrupt occurs.
MOV executed
0010 moved to D0.
Interrupt completed.
Data saved.
Addition result (1235)
Write addition result (1235).
Processing
of +B
instruction
Processing
continues.
Flow of Processing
319
Interrupt Functions Section 6-1
Prevention of Duplicate Processing
b. The following example shows duplicate processing by an interrupt
task, which interrupts processing while BSET is writing to a block of
words and yields an incorrect comparison result.
Since the interrupt occurs during BSET(071) processing and before #1234 is
set in D10, the content of D0 and D10 do not match when the comparison is
made in the interrupt task (*1) and output A remains OFF.
In the end (*2), the D0 and D10 both contain #1234 and match, but the correct
comparison result is not reflected in comparison result output A.
+B
D0
#0001
D0
DI
EI
Cyclic task
Disables execution of
interrupt programs.
Enables execution of
interrupt programs.
BSET
#1234
D0
D10
CMP
D0
D10
A
1234
1234
1234 1234 1234
1234
0502
ABCD
ABCD
ABCD
1234
OFF
OFF*
1
003E 0502
D0 D1 D2 D10 A
1234*
2
OFF
Cyclic task
Interrupt task
Equals Flag
#1234 set in D0.
#1234 set in D1.
#1234 set in D2.
#1234 set in D10.
BSET(071)
processing
CMP(020)
processing
Read D0.
Read D1.
Output result.
Compare D0 and D10.
Interrupted.
Continued.
Interrupt occurs.
Interrupt completed.
Flow of Processing
320
Interrupt Functions Section 6-1
Prevention of Duplicate Processing
6-1-2 Input Interrupts (Direct Mode)
This function executes an interrupt task when the corresponding input signal
(up or down differentiated) is received.
Input Interrupt Bit and
Terminal Allocations
The following diagrams show the input bits and terminals that are used for the
input interrupt function in each CPU Unit.
Input Terminal Block of
CPU Units with 14 I/O
Points
The 4 input bits CIO 0.04 to CIO 0.07 can be used for input interrupts.
Input Terminal Block of
CPU Units with 20 I/O
Points
The 6 input bits CIO 0.04 to CIO 0.09 can be used for input interrupts.
BSET
#1234
D0
D10
DI
EI
Cyclic task
Disables execution of
interrupt programs.
Enables execution of
interrupt programs.
L1 L2/N COM 01 03 05 07 NC NC
00 02 04 06 NC NC
Inputs (CIO 0)
Input interrupt 3
Input interrupt 1
Upper Terminal Block
(Example: CPU Unit
with AC Power Supply)
Input interrupt 2
Input interrupt 0
L1 L2/N COM 01 03 05 07 09 11
00 02 04 06 08 10
Input interrupt 0
Input interrupt 2
Input interrupt 3
Input interrupt 1
Input interrupt 5
Input interrupt 4
Inputs (CIO 0)
Upper Terminal Block
(Example: CPU Unit
with AC Power Supply)
321
Interrupt Functions Section 6-1
Input Terminal Block of
CPU Units with 30 I/O
Points
The 6 input bits CIO 0.04 to CIO 0.09 can be used for input interrupts.
Input Terminal Block of
CPU Units with 40 I/O
Points
The 6 input bits CIO 0.04 to CIO 0.09 can be used for input interrupts.
Setting the Input Functions in the PLC Setup
Normally, bits CIO 0.04 to CIO 0.09 are used as normal inputs. When using
these inputs for input interrupts, use the CX-Programmer to change the
inputs setting in the PLC Setup.
Note *Input interrupts 4 and 5 are not supported by CPU Units with 14 I/O Points.
L1 L2/N COM 01 03 05 07 09 11 01 03 05
00 02 04 06 08 10 00 02 04
Input interrupt 0
Input interrupt 2
Input interrupt 3
Input interrupt 1
Input interrupt 5
Input interrupt 4
Inputs (CIO 0) Inputs (CIO 1)
Upper Terminal Block
(Example: CPU Unit
with AC Power Supply)
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 110
Input interrupt 0
Input interrupt 2
Input interrupt 3
Input interrupt 1
Input interrupt 5
Input interrupt 4
Upper Terminal Block
(Example: CPU Unit
with AC Power Supply)
Inputs (CIO 0) Inputs (CIO 1)
Input terminal
block
CPU Unit Input interrupt Task number
Word Bit CPU Units with
40 I/O Points
CPU Units with
30 I/O Points
CPU Units with
20 I/O Points
CPU Units with
14 I/O Points
CIO 0 00 Normal input 0 Normal input 0 Normal input 0 Normal input 0 --- ---
01 Normal input 1 Normal input 1 Normal input 1 Normal input 1 --- ---
02 Normal input 2 Normal input 2 Normal input 2 Normal input 2 --- ---
03 Normal input 3 Normal input 3 Normal input 3 Normal input 3 --- ---
04 Normal input 4 Normal input 4 Normal input 4 Normal inputs 4 Input interrupt 0 Interrupt task 140
05 Normal input 5 Normal input 5 Normal input 5 Normal inputs 5 Input interrupt 1 Interrupt task 141
06 Normal input 6 Normal input 6 Normal input 6 Normal inputs 6 Input interrupt 2 Interrupt task 142
07 Normal input 7 Normal input 7 Normal input 7 Normal inputs 7 Input interrupt 3 Interrupt task 143
08 Normal input 8 Normal input 8 Normal input 8 --- Input interrupt 4* Interrupt task 144*
09 Normal input 9 Normal input 9 Normal input 9 --- Input interrupt 5* Interrupt task 145*
10 Normal input 10 Normal input 10 Normal input 10 --- --- ---
11 Normal input 11 Normal input 11 Normal input 11 --- --- ---
CIO 1 00 to 05 Normal input 12
to 17
Normal input 12
to 17
--- --- --- ---
06 to 11 Normal inputs 18
to 23
--- --- --- --- ---
322
Interrupt Functions Section 6-1
Procedure
PLC Setup Click the Built-in Input Tab to display the Interrupt Input settings (at the bottom
of the tab). Set the input function to Interrupt for each input that will be used
as an input interrupt.
Note (1) Interrupt Input settings IN0 to IN7 correspond to input interrupt numbers
0 to 7.
(2) When using an input as a general-purpose (normal) input, set the input
function to Normal.
Writing the Ladder
Program
MSKS(690) Settings The MSKS(690) instruction must be executed in order to use input interrupts.
The settings made with MSKS(690) are enabled with just one execution, so in
general execute MSKS(690) in just one cycle using an up-differentiated condi-
tion.
Select the input interrupts.
Determine the inputs to be used for input
interrupts and corresponding task numbers.
Properties
Name Bit
address
Description
UM Read Protection
Flag
A99.00 Indicates whether or not the PLC (the entire user
program) is read-protected.
OFF: UM read protection is not set.
ON: UM read protection is set.
Task Read Protection
Flag
A99.01 Indicates whether or not selected program tasks
are read-protected.
OFF: Task read protection is not set.
ON: Task read protection is set.
Program Write Protec-
tion for Read Protec-
tion
A99.02 Indicates whether or not the write protection
option has been selected to prevent overwriting of
password-protected tasks or programs.
OFF: Overwriting allowed
ON: Overwriting prohibited (write-protected)
Enable/Disable Bit for
Program Backup
A99.03 Indicates whether or not a backup program file
(.OBJ file) can be created when UM read protec-
tion or task read protection is set.
OFF: Creation of backup program file allowed
ON: Creation of backup program file prohibited
UM Read Protection
Release Enable Flag
A99.12 Indicates when UM read protection cannot be
released because an incorrect password was
input five times consecutively.
OFF: Protection can be released
ON: Protection cannot be released
Task Read Protection
Release Enable Flag
A99.13 Indicates when task read protection cannot be
released because an incorrect password was
input five times consecutively.
OFF: Protection can be released
ON: Protection cannot be released
386
Program Protection Section 6-7
6-7-2 Write Protection
Write-protection
Using the DIP Switch
The user program can be write-protected by turning ON pin 1 of the CPU
Units DIP switch. When this pin is ON, it wont be possible to change the user
program or parameter area (e.g., PLC Setup and routing tables) from the CX-
Programmer. This function can prevent the program from being overwritten
inadvertently at the work site.
It is still possible to read and display the program from the CX-Programmer
when it is write-protected.
CPU Unit DIP Switch
Confirming the User Program Date
The dates the program and parameters were created can be confirmed by
checking the contents of A90 to A97.
Auxiliary Area Words
Pin Name Settings
SW1 User Program Memory Write Protection ON: Protected
OFF: Not protected
Name Address Description
User Program
Date
A90 to A93 The time and date the user program was last over-
written in memory is given in BCD.
A90.00 to A90.07 Seconds (00 to 59 BCD)
A90.08 to A90.15 Minutes (00 to 59 BCD)
A91.00 to A91.07 Hour (00 to 23 BCD)
A91.08 to A91.15 Day of month (01 to 31 BCD)
A92.00 to A92.07 Month (01 to 12 BCD)
A92.08 to A92.15 Year (00 to 99 BCD)
A93.00 to A93.07 Day (00 to 06 BCD)
Day of the week:
00: Sunday, 01: Monday,
02: Tuesday, 03: Wednesday,
04: Thursday, 05: Friday,
06: Saturday
Parameter Date A94 to A97 The time and date the parameters were last overwrit-
ten in memory is given in BCD. The format is the
same as that for the User Program Date given above.
387
Program Protection Section 6-7
Write-protection
Using Passwords
The program (or selected tasks) can also be write-protected if the write pro-
tection option is selected from the CX-Programmer when a password is being
registered for the entire program or those selected tasks. The write protection
setting can prevent unauthorized or accidental overwriting of the program.
Note 1. If the selected tasks are write-protected by selecting this option when reg-
istering a password, only the tasks (program) that are password-protected
will be protected from overwriting. It will still be possible to overwrite other
tasks with operations such as online editing and task downloading.
2. All tasks (programs) can be overwritten when program read protection is
not enabled.
Operating Procedure
1,2,3... Table 1 When registering a password in the UM read protection password Box or
Task read protection Box, select the Prohibit from overwriting to a protected
program Option.
3. Either select PLC - Transfer - To PLC to transfer the program or select
PLC - Protection - Set Password and click the OK button.
Note The setting to enable/disable creating file memory program files will not take
effect unless the program is transferred to the CPU Unit. Always transfer the
program after changing this setting.
CX-Programmer
Password?
When a password is being registered for the entire user
program or selected tasks, program write-protection can be
enabled/disabled with an option setting.
The user program cannot be overwritten.
CPU Unit
Overwriting can be prohibited with password protection,
regardless of the DIP switch setting.
Memory Cassette
The user program cannot be overwritten.
388
Program Protection Section 6-7
Write Protection
against FINS
Commands Sent to
the CPU Unit via
Networks
It is possible to prohibit write operations and other editing operations sent to
the PLC's CPU Unit as FINS commands through a network (including write
operations from CX-Programmer, CX-Protocol, CX-Process, and other appli-
cations using Fins Gateway). Read processes are not prohibited.
FINS write protection can disable write processes such as downloading the
user program, PLC Setup, or I/O memory, changing the operating mode, and
performing online editing.
It is possible to exclude selected nodes from write protection so that data can
be written from those nodes.
An event log in the CPU Unit automatically records all write processes sent
through the network and that log can be read with a FINS command.
6-7-3 Protecting Program Execution Using the Lot Number
The lot number is stored in A310 and A311 and can be used to prevent the
program from being executed on a CPU Unit with the wrong lot number.
The following instructions can be added to the program to create a fatal error
and thus prevent program execution if an attempt is made to execute the pro-
gram on a CPU Unit with the incorrect lot number. A password can also be set
to read-protect the program so that it cannot be copied, e.g., using a Memory
Cassette.
The lot number stored in A310 and A311 cannot be changed by the user.
The upper digits of the lot number are stored in A311 and the lower digits are
stored in A310, as shown below.
X, Y, and Z in the lot number are converted to 10, 11, and 12, respectively, in
A310 and A311. Some examples are given below.
Ladder Programming
Example
The following instructions will create a fatal error to prevent the program
from being executed when the lot number is not 23905.
Lot number A311 A310
01805 0005 0801
30Y05 0005 1130
A310 A311
Manufacturing lot
number (5 digits)
ANDL(610)
A310
#00FFFFFF
D0
FALS(007)
1
D100
<>L(306)
D0
#050923
First Cycle Flag
389
Failure Diagnosis Functions Section 6-8
The following instructions will create a fatal error to prevent the program
from being executed when the lot number does not end in 05.
The following instructions will create a fatal error to prevent the program
from being executed when the lot number does not begin with 23Y.
6-8 Failure Diagnosis Functions
This section introduces the following functions.
Failure Alarm Instructions: FAL(006) and FALS(007)
Failure Point Detection: FPD(269)
Output OFF Bit
6-8-1 Failure Alarm Instructions: FAL(006) and FALS(007)
The FAL(006) and FALS(007) instructions generate user-defined errors.
FAL(006) generates a non-fatal error that allows program execution to con-
tinue and FALS(007) generates a fatal error that stops program execution.
When the user-defined error conditions (i.e., the execution conditions for
FAL(006) or FAL(007)) are met, the instruction will be executed and the follow-
ing processing will be performed.
1,2,3... 1. The FAL Error Flag (A402.15) or FALS Error Flag (A401.06) is turned ON.
2. The corresponding error code is written to A400.
3. The error code and time of occurrence are stored in the Error Log.
4. The error indicator on the front of the CPU Unit will flash or light.
5. If FAL(006) has been executed, the CPU Unit will continue operating.
If FALS(007) has been executed, the CPU Unit will stop operating. (Pro-
gram execution will stop.)
First Cycle Flag
ANDL(610)
A310
#00FF0000
D0
FALS(007)
1
D100
<>L(306)
D0
#050000
First Cycle Flag
ANDL(610)
A310
#0000FFFF
D0
FALS(007)
1
D100
<>L(306)
D0
#1123
390
Failure Diagnosis Functions Section 6-8
Operation of FAL(006)
When execution condition A goes ON, an error with FAL number 002 is gener-
ated, A402.15 (FAL Error Flag) is turned ON, and A360.02 (FAL Number 002
Flag) is turned ON. Program execution continues.
Errors generated by FAL(006) can be cleared by executing FAL(006) with FAL
number 00 or performing the error read/clear operation from the CX-Program-
mer.
Operation of FALS(007)
When execution condition B goes ON, an error with FALS number 003 is gen-
erated, and A401.06 (FALS Error Flag) is turned ON. Program execution is
stopped.
Errors generated by FAL(006) can be cleared by eliminating the cause of the
error and performing the error read/clear operation from the CX-Programmer.
6-8-2 Failure Point Detection: FPD(269)
FPD(269) performs time monitoring and logic diagnosis. The time monitoring
function generates a non-fatal error if the diagnostic output isnt turned ON
within the specified monitoring time. The logic diagnosis function indicates
which input is preventing the diagnostic output from being turned ON.
Time Monitoring
Function
FPD(269) starts timing when it is executed and turns ON the Carry Flag if the
diagnostic output isnt turned ON within the specified monitoring time. The
Carry Flag can be programmed as the execution condition for an error pro-
cessing block. Also, FPD(269) can be programmed to generate a non-fatal
FAL error with the desired FAL number.
When an FAL error is generated, a preset message will be registered and can
be displayed on the CX-Programmer. FPD(269) can be set to output the
results of logic diagnosis (the address of the bit preventing the diagnostic out-
put from being turned ON) just before the message.
The teaching function can be used to automatically determine the actual time
required for the diagnostic output to go ON and set the monitoring time.
Logic Diagnosis
Function
FPD(269) determines which input bit is causing the diagnostic output to
remain OFF and outputs the result. The output can be set to bit address out-
put (PLC memory address) or message output (ASCII).
If bit address output is selected, the PLC memory address of the bit can be
transferred to an Index Register and the Index Register can be indirectly
addressed in later processing.
A
FAL
002
#0000
B
FALS
003
#0000
391
Failure Diagnosis Functions Section 6-8
If the message output is selected, an error message can be displayed on the
CX-Programmer at the same time as a FAL error is generated for time moni-
toring.
Time Monitoring
Monitors whether output C goes ON with 10 seconds after input A. If C
doesnt go ON within 10 seconds, a failure is detected and the Carry Flag
is turned ON. The Carry Flag executes the error-processing block. Also, an
FAL error (non-fatal error) with FAL number 004 is generated.
Logic Diagnosis
FPD(269) determines which input bit in block B is preventing output C from
going ON. That bit address is output to D1000 and D1001.
Auxiliary Area Flags and Words
6-8-3 Simulating System Errors
FAL(006) and FALS(007) can be used to intentionally create fatal and non-
fatal system errors. This can be used in system debugging to test display
messages on Programmable Terminals (PTs) or other operator interfaces.
Use the following procedure.
1,2,3... 1. Set the FAL or FALS number to use for simulation in A529. A529 is used
when simulating errors for both FAL(006) and FALS(007).
2. Set the FAL or FALS number to use for simulation as the first operand of
FAL(006) or FALS(007).
Name Address Operation
Error Code A400 When an error occurs, the error code is stored in
A400.
FAL Error Flag A402.15 Turns ON when FAL(006) is executed.
FALS Error Flag A401.06 Turns ON when FALS(007) is executed.
Executed FAL Num-
ber Flags
A360 to
A391
The corresponding flag turns ON when an
FAL(006) error occurs.
Error Log Area A100 to
A199
The Error Log Area contains information on the
most recent 20 errors.
Error Log Pointer A300 When an error occurs, the Error Log Pointer is
incremented by 1 to indicate where the next error
record will be recorded as an offset from the
beginning of the Error Log Area (A100).
Error Log Pointer
Reset Bit
A500.14 Turn this bit ON to reset the Error Log Pointer
(A300) to 00.
FPD Teaching Bit A598.00 Turn this bit ON when you want the monitoring
time to be set automatically when FPD(269) is
executed.
C (Diagnostic output)
Carry Flag
(ON for timeout)
Control data
(FAL 004, bit address output for failure)
Monitoring time (0.1-s units): 10 s
First register word of diagnostics output
FPD
#0004
&100
D01000
Error-processing block
FPD(269)
execution condition A
Logic diagnosis
execution condition B
392
Failure Diagnosis Functions Section 6-8
3. Set the error code and error to be simulated as the second operand (two
words) of FAL(006) or FALS(007). Indicate a nonfatal error for FAL(006)
and a fatal error for FALS(007).
To simulate more than one system error, use more than one FAL(006) or
FALS(007) instruction with the same value in A529 and different values for the
second operand.
Auxiliary Area Flags and Words
Example for a Battery Error
Note Use the same methods as for actual system errors to clear the simulated sys-
tem errors. Refer to the 9-2 Troubleshooting for details. All system errors sim-
ulated with FAL(006) and FALS(007) can be cleared by cycling the power
supply.
6-8-4 Output OFF Bit
As an emergency measure when an error occurs, all outputs from Output
Units can be turned OFF by turning ON the Output OFF Bit (A500.15). The
operating mode will remain in RUN or MONITOR mode, but all outputs will be
turned OFF.
Note Normally (when IOM Hold Bit = OFF), all outputs from Output Units are turned
OFF when the operating mode is changed from RUN/MONITOR mode to
PROGRAM mode. The Output OFF Bit can be used to turn OFF all outputs
without switching to PROGRAM mode.
Application Precaution for
DeviceNet
When the CPM1A-DRT21 is used, all slave outputs will be turned OFF, i.e., all
inputs to the master will be OFF.
Name Address Operation
FAL/FALS Number
for System Error
Simulation
A529 Set a dummy FAL/FALS number to use to simu-
late a system error.
0001 to 01FF hex: FAL/FALS numbers 1 to 511
0000 or 0200 to FFFF hex: No FAL/FALS number
for system error simulation.
MOV
&100
A529
a
MOV
#00F7
D10
FAL
100
D10
Execution condition
Set FAL number 100 in A529.
Set error code for battery error
(#00F7) in D10.
Generate a battery error using FAL
number 100.
393
Clock Section 6-9
6-9 Clock
A clock is built into the CP1L CPU Unit and is backed up by a battery. The cur-
rent data is stored in the following words and refreshed each cycle.
Note The clock cannot be used if a battery is not installed or the battery voltage is
low.
Name Addresses Function
Clock data:
A351 to A354
A351.00 to A351.07 Second: 00 to 59 (BCD)
A351.08 to A351.15 Minute: 00 to 59 (BCD)
A352.00 to A352.07 Hour: 00 to 23 (BCD)
A352.08 to A352.15 Day of the month: 00 to 31 (BCD)
A353.00 to A353.07 Month: 00 to 12 (BCD)
A353.08 to A353.15 Year: 00 to 99 (BCD)
A354.00 to A354.07 Day of the week:
00: Sunday, 01: Monday,
02: Tuesday, 03: Wednesday,
04: Thursday, 05: Friday, 06: Saturday
394
Clock Section 6-9
Auxiliary Area Flags and Words
Time-related Instructions
Name Addresses Contents
Start-up Time A510 and
A511
The time at which the power was
turned ON (year, month, day of month,
hour, minutes, and seconds).
Power Interruption Time A512 and
A513
The time at which the power was last
interrupted (year, month, day of month,
hour, minutes, and seconds).
Power ON Clock Data 1 A720 to A722 Consecutive times at which the power
was turned ON (year, month, day of
month, hour, minutes, and seconds).
The times are progressively older from
number 1 to number 10.
Power ON Clock Data 2 A723 to A725
Power ON Clock Data 3 A726 to A728
Power ON Clock Data 4 A729 to A731
Power ON Clock Data 5 A732 to A734
Power ON Clock Data 6 A735 to A737
Power ON Clock Data 7 A738 to A740
Power ON Clock Data 8 A741 to A743
Power ON Clock Data 9 A744 to A746
Power ON Clock Data 10 A747 to A749
Operation Start Time A515 to A517 The time that operation started (year,
month, day of month, hour, minutes,
and seconds).
Operation End Time A518 to A520 The time that operation stopped (year,
month, day of month, hour, minutes,
and seconds).
User Program Date A90 to A93 The time when the user program was
last overwritten (year, month, day of
month, hour, minutes, and seconds).
Parameter Date A94 to A97 The time when the parameters were
last overwritten (year, month, day of
month, hour, minutes, and seconds).
Name Mnemonic Function
HOURS TO SECONDS SEC(065) Converts time data in hours/minutes/sec-
onds format to an equivalent time in seconds
only.
SECONDS TO HOURS HMS(066) Converts seconds data to an equivalent time
in hours/minutes/seconds format.
CALENDAR ADD CADD(730) Adds time to the calendar data in the speci-
fied words.
CALENDAR SUBTRACT CSUB(731) Subtracts time from the calendar data in the
specified words.
CLOCK ADJUSTMENT DATE(735) Changes the internal clock setting to the set-
ting in the specified source words.
395
Clock Section 6-9
396
Clock Section 6-9
395
SECTION 7
Using Expansion Units and Expansion I/O Units
This section describes how to use CP-series/CPM1A-series Expansion Units and Expansion I/O Units.
7-1 Connecting Expansion Units and Expansion I/O Units . . . . . . . . . . . . . . . . . 396
7-2 Analog Input Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
7-3 Analog Output Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 406
7-4 Analog I/O Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 414
7-4-1 CPM1A-MAD01 Analog I/O Units . . . . . . . . . . . . . . . . . . . . . . . . . 414
7-4-2 CP1W-MAD11/CPM1A-MAD11 Analog I/O Units . . . . . . . . . . . . 424
7-5 Temperature Sensor Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 437
7-6 CompoBus/S I/O Link Units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 452
7-7 DeviceNet I/O Link Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458
396
Connecting Expansion Units and Expansion I/O Units Section 7-1
7-1 Connecting Expansion Units and Expansion I/O Units
CP-series and CPM1A-series Expansion Units and Expansion I/O Units can
be connected to the CP1L. Up to three Expansion Units or Expansion I/O
Units can be connected to a CPU Unit with 30 or 40 I/O points and one
Expansion Unit or Expansion I/O Unit can be connected to a CPU Unit with 20
or 14 I/O points.
The functionality and performance of CP-series Expansion Units and Expan-
sion I/O Units is the same as the functionality and performance of CP1MA-
series Expansion Units and Expansion I/O Units. CP-series Units are black,
and CPM1A-series Units are ivory.
Number of I/O Words
Unit name Model Current
consumption (mA)
I/O words
5 VDC 24 VDC Input Output
Expansion
Units
Analog Input Unit CP1W-AD041
CPM1A-AD041
100 90 4 2
Analog Output Unit CP1W-DA041
CPM1A-DA041
80 124 --- 4
Analog I/O Unit CPM1A-MAD01 66 66 2 1
CP1W-MAD11
CPM1A-MAD11
83 110
Temperature Control Unit CP1W-TS001
CPM1A-TS001
40 59 2 ---
CP1W-TS101
CPM1A-TS101
54 73
CP1W-TS002
CPM1A-TS002
40 59 4 ---
CP1W-TS102
CPM1A-TS102
54 73
CompoBus/S I/O Link Unit CP1W-SRT21
CPM1A-SRT21
29 --- 1 1
DeviceNet I/O Link Unit CPM1A-DRT21 48 --- 2 2
Expansion
I/O Units
40-point I/O Unit CP1W-40EDR
CPM1A-40EDR
80 90 2 2
CP1W-40EDT
CPM1A-40EDT
160 ---
CP1W-40EDT1
CPM1A-40EDT1
160 ---
20-point I/O Unit CP1W-20EDR1
CPM1A-20EDR1
103 44 1 1
CP1W-20EDT
CPM1A-20EDT
130 ---
CP1W-20EDT1
CPM1A-20EDT1
130 ---
16-point Output Unit CP1W-16ER
CPM1A-16ER
42 90 --- 2
8-point Input Unit CP1W-8ED
CPM1A-8ED
18 --- 1 ---
8-point Output Unit CP1W-8ER
CPM1A-8ER
26 44 --- 1
CP1W-8ET
CPM1A-8ET
75 ---
CP1W-8ET1
CPM1A-8ET1
75 ---
397
Analog Input Units Section 7-2
Allocation of I/O Words Expansion Units and Expansion I/O Units are allocated I/O bits in the order
the Units are connected starting from the CPU Unit. When the power to the
CPU Unit is turned ON, the CPU Unit checks for any Expansion Units and
Expansion I/O Units connected to it and automatically allocates I/O bits
7-2 Analog Input Units
Each CP1W-AD041/CPM1A-AD041 Analog Input Unit provides four analog
inputs.
The analog input signal ranges are 0 to 5 V, 1 to 5 V, 0 to 10 V, -10 to +10
V, 0 to 20 mA, and 4 to 20 mA. The resolution is 1/6,000. The open-circuit
detection function is activated in the ranges of 1 to 5 V and 4 to 20 mA.
The Analog Input Unit uses four input words and two output words, so a
maximum of three Units can be connected.
Part Names CP1W-AD041/CPM1A-AD041
1. Analog Input Terminals
Connected to analog output devices.
None
CIO 102 to CIO 105
DA041
CIO 0.00 to CIO 0.11
CIO 1.00 to CIO 1.11
CIO 100.00 to CIO 100.07
CIO 101.00 to CIO 101.07
CIO 2 to CIO 5
None
TS002
Third Unit:
40-point I/O Unit
CIO 6.00 to CIO 6.11
CIO 7.00 to CIO 7.11
CIO 106.00 to CIO 106.07
CIO 107.00 to CIO 107.07
Second Unit:
Analog I/O Unit
40-point I/O Unit
CPU Unit
First Unit:
Temperature Control Unit
24 input points
16 output points
Input bits
Output bits
24 input points
16 output points
CH
I IN1 I IN3
I IN2 VIN1
VIN2
VIN3 COM1
COM2
I IN4
VIN4 COM4
NC
AG
COM3
IN
(3) Expansion connector
(2) Expansion I/O
connecting cable
(1) Analog input terminals
398
Analog Input Units Section 7-2
Input Terminal Arrangement
Note When using current inputs, voltage input terminals must be short-circuited
with current input terminals.
2. Expansion I/O Connecting Cable
Connected to the CPU Unit or Expansion Unit expansion connector. The
cable is attached to the Analog Input Unit and cannot be removed.
Note Do not touch the cables during operation. Static electricity may cause operat-
ing errors.
3. Expansion Connector
Connected to the next Expansion Unit or Expansion I/O Unit to enable ex-
pansion.
Main Analog Input
Unit Specifications
Analog Input Units are connected to a CP1L CPU Unit. A maximum of three
Units can be connected, including other Expansion Units and Expansion I/O
Units.
V IN1 Voltage input 1
I IN1 Current input 1
COM1 Input common 1
V IN2 Voltage input 2
I IN2 Current input 2
COM2 Input common 2
V IN3 Voltage input 3
I IN3 Current input 3
COM3 Input common 3
V IN4 Voltage input 4
I IN4 Current input 4
COM4 Input common 4
CH
I IN1 I IN3
I IN2 VIN1
VIN2
VIN3 COM1
COM2
I IN4
VIN4 COM4
NC
AG
COM3
IN
I IN1 I IN3
I IN2 VIN1
VIN2
VIN3 COM1
COM2
I IN4
VIN4 COM4
NC
AG
COM3
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
IN
00
C H
C H
02 04 06 08 10
OUT
01 C OM 03 05 07 09 11
C OM CO M C OM 03 CO M 06
00 01 02 04 05 07
00 01 02 03 04 05 06 07
08 09 10 11
20EDR1
C H 00 01 02 03 04 05 06 07
N C
N C
N C
C H EXP
IN
00 02
01 C OM 03
C OM 05 07
04 06
C H 00 01 02 03
08 09 10 11
8ED
EXP CH
I IN1 I IN3
I IN2 VIN1
VIN2
VIN3 COM1
COM2
I IN4
VIN4 COM4
COM3
IN
NC
AG
CP1L CPU Unit
CP1W-20EDR1/
CPM1A-20EDR1
Expansion I/O Unit
A maximum of 3 Expansion Units or
Expansion I/O Units can be connected.
CP1W-8ED/
CPM1A-8ED
Expansion I/O Unit
CP1W-AD041/
CPM1A-AD041
Analog Input Unit
4
a
n
a
l
o
g
i
n
p
u
t
s
399
Analog Input Units Section 7-2
Analog Input Signal
Ranges
Analog input data is digitally converted according to the input signal range as
shown below.
Note When the input exceeds the specified range, the A/D conversion data will be
fixed at either the lower limit or upper limit.
Item Voltage Input Current Input
Number of inputs 4 inputs (4 words allocated)
Input signal range 0 to 5 VDC, 1 to 5 VDC,
0 to 10 VDC, or 10 to 10 VDC
0 to 20 mA or 4 to 20 mA
Max. rated input 15 V 30 mA
External input impedance 1 M min. Approx. 250
Resolution 1/6000 (full scale)
Overall accuracy 25C 0.3% full scale 0.4% full scale
0 to 55C 0.6% full scale 0.8% full scale
A/D conversion data 16-bit binary (4-digit hexadecimal)
Full scale for 10 to 10 V: F448 to 0BB8 Hex
Full scale for other ranges: 0000 to 1770 Hex
Averaging function Supported (Set in output words n+1 and n+2.)
Open-circuit detection function Supported
Conversion time 2 ms/point (8 ms/all points)
Isolation method Photocoupler isolation between analog I/O terminals and internal circuits. No isolation
between analog I/O signals.
Current consumption 5 VDC: 100 mA max.; 24 VDC: 90 mA max.
400
Analog Input Units Section 7-2
Analog Input Signal
Ranges
10 to 10 V Inputs
0 to 10 V Inputs
0 to 5 V Inputs
1 to 5 V Inputs
Voltage in the -10 to 10 V
range corresponds to hexa-
decimal values F448 to 0BB8
(-3,000 to 3,000). The range
of data that can be converted
is F31C to 0CE4 hex (-3,300
to 3,300). A negative voltage
is expressed as twos comple-
ment.
Voltage in the 0 to 10 V range
corresponds to hexadecimal
values 0000 to 1770 (0 to
6,000). The range of data that
can be converted is FED4 to
189C hex (-300 to 6,300). A
negative voltage is expressed
as twos complement.
Voltage in the 0 to 5 V range
corresponds to hexadecimal
values 0000 to 1770 (0 to
6,000). The range of data that
can be converted is FED4 to
189C hex (-300 to 6,300). A
negative voltage is expressed
as twos complement.
Voltage in the 1 to 5 V range
corresponds to hexadecimal
values 0000 to 1770 (0 to
6,000). The range of data that
can be converted is FED4 to
189C hex (-300 to 6,300).
Voltage in the range of 0.8 to
1 V is expressed as twos
complement.
If an input is below the range
(i.e., less than 0.8 V), the
open-circuit detection func-
tion is activated and the data
becomes 8,000.
0 V 10 V 11 V
11 V 10 V
Converted data
Hexadecimal (Decimal)
0CE4 (3300)
0BB8 (3000)
0000 (0)
F448 (3000)
F31C (3300)
0 V 10 V 10.5 V
0.5 V
Converted data
Hexadecimal (Decimal)
189C (6300)
1770 (6000)
0000 (0)
FED4 (300)
0 V 5 V 5.25 V
0.25V
Converted data
Hexadecimal (Decimal)
189C (6300)
1770 (6000)
0000 (0)
FED4 (300)
1 V 5 V 5.2 V
0.8 V
Converted data
Hexadecimal (Decimal)
189c (6300)
1770 (6000)
0000 (0)
FED4 (300)
401
Analog Input Units Section 7-2
0 to 20 mA Inputs
4 to 20 mA Inputs
Averaging Function For analog inputs, the averaging function operates when the averaging bit is
set to 1. The averaging function outputs the average (a moving average) of
the last eight input values as the converted value. If there is only a slight vari-
ation in inputs, it is handled by the averaging function as a smooth input.
The averaging function stores the average (a moving average) of the last eight
input values as the converted value. Use this function to smooth inputs that
vary at a short interval.
Open-circuit Detection
Function
The open-circuit detection function is activated when the input range is set to
1 to 5 V and the voltage drops below 0.8 V, or when the input range is set to 4
to 20 mA and the current drops below 3.2 mA. When the open-circuit detec-
tion function is activated, the converted data will be set to 8,000.
The time for enabling or clearing the open-circuit detection function is the
same as the time for converting the data. If the input returns to the convertible
range, the open-circuit detection is cleared automatically and the output
returns to the normal range.
Current in the 0 to 20 mA
range corresponds to hexa-
decimal values 0000 to 1770
(0 to 6,000). The range of
data that can be converted is
FED4 to 189C hex (-300 to
6,300). A negative current is
expressed as twos comple-
ment.
Current in the 4 to 20 mA
range corresponds to hexa-
decimal values 0000 to 1770
(0 to 6,000). The range of
data that can be converted is
FED4 to 189C hex (-300 to
6,300). Current in the range of
3.2 to 4 mA is expressed as
twos complement.
If an input is below the range
(i.e., less than 3.2 mA), the
open-circuit detection func-
tion is activated and the data
becomes 8,000.
0 mA 20 mA 21 mA
1 mA
Converted data
Hexadecimal (Decimal)
189C (6300)
1770 (6000)
0000 (0)
FED4 (300)
Converted data
Hexadecimal (Decimal)
189C (6300)
1770 (6000)
0000 (0)
FED4 (300)
4 mA 20 mA 20.8 mA
3.2 mA
0 mA
402
Analog Input Units Section 7-2
Procedure
Writing Set Data and
Reading A/D
Conversion Values
Connect the Analog Input Unit to the CPU Unit.
Connect and wire Units.
Create a ladder program
Connect Analog Input Units.
Wire to analog output devices.
Write set data to output words (n+1, n+2).
Set use of inputs.
Select input signals using range codes.
Set use of averaging.
Read A/D conversion values from input words
(m+1 to m+4).
For current inputs, confirm that there is no open
circuit.
CPU Unit
MOV
Set data (inputs 1, 2)
Set data (inputs 3, 4)
Analog input 3 conversion value
Analog input 4 conversion value
Analog Input Unit
Ladder program
Analog input 1 conversion value
Analog input 2 conversion value
Analog devices
Temperature sensor
Pressure sensor
Speed sensor
Flow sensor
Voltage/current meter
Other devices
Writes the set data (use
of inputs, averaging,
range codes).
Reads the conversion
value.
The last input word allocated to the
CPU Unit or already connected
Expansion (I/O) Unit is m and the
last output word is n.
(n+1) CH
(n+2) CH
(m+1) CH
(m+2) CH
(m+3) CH
(m+4) CH
1. Connecting the Analog Input Unit
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
CH
I IN1 I IN3
I IN2 VIN1
VIN2
VIN3 COM1
COM2
I IN4
VIN4 COM4
COM3
IN
NC
AG
CPU Unit
Analog Input Unit
CP1W-AD041
CPM1A-AD041
403
Analog Input Units Section 7-2
Internal Circuits
Wiring for Analog Inputs
Note (1) Connect the shield to the FG terminal to prevent noise.
(2) When an input is not being used, short the + and terminals.
(3) Separate wiring from power lines (AC power supply lines, high-voltage
lines, etc.)
(4) When there is noise in the power supply line, install a noise filter on the
input section and the power supply.
(5) Refer to the following information on open circuits when using voltage in-
puts.
2. Wiring Analog Inputs
AG
Analog input 4
Analog ground
COM1()
I IN1
V IN1
COM4()
I IN4
V IN4
510 k
510 k
510 k
510 k
250
250
I
n
t
e
r
n
a
l
c
i
r
c
u
i
t
s
Analog input 1
to
to
V IN
COM
I IN
V IN
COM
I IN
Analog
device with
voltage
output
Analog
Input
Unit
+
Analog
device with
current
output
Analog
Input
Unit
FG FG
2-core shielded
twisted-pair cable
2-core shielded
twisted-pair cable
404
Analog Input Units Section 7-2
For example, if analog input device 2 is outputting 5 V and the same power
supply is being used as shown above, about 1/3, or 1.6 V, will be applied at
the input for input device 1.
Consider the following information on open input circuits when using voltage
inputs. Either use separate power supplies, or install an isolator at each input.
If the same power supply is used as shown in the following diagram and an
open circuit occurs at point A or B, an unwanted current flow will occur as
shown by the dotted lines in the diagram, creating a voltage at the other input
of about 1/3 to 1/2. If the 1 to 5-V range is being used, the open-circuit detec-
tion function will not operate. Also, if there is an open circuit at C, the open-cir-
cuit detection function will not operate because the negative sides are the
same.
Allocating I/O Words Four input words and two output words are allocated from the next words fol-
lowing the last I/O words allocated to the CPU Unit or an existing Expansion
Unit or Expansion I/O Unit.
Writing Set Data Write the settings for input use, averaging use, and range codes for words n+1
and n+2. When the set data is transferred from the CPU Unit to the Analog I/O
Unit, the A/D conversion will be started.
A
C B
Analog
input
device
1
Analog
input
device
2
24 VDC
3. Creating the Ladder Program
Words (m+1) to (m+4)
Analog Input Unit
Words (n+1), (n+2)
405
Analog Input Units Section 7-2
Set Data
The Analog Input Unit will not start converting analog I/O values until the
range code has been written.
Once the range code has been set, it is not possible to change the setting
while power is being supplied to the CPU Unit. To change the I/O range,
turn the CPU Unit OFF then ON again.
Averaging Set whether averaging is to be used for set data. When the averaging bit is set
to 1, the average (moving average) for the past eight inputs is output as con-
version data.
Reading Analog Input
Conversion Values
Read the conversion value storage area with the ladder program. With word m
as the last input word allocated to the CPU Unit or an already-connected
Expansion Unit, the A/D conversion data will be output to the following words
m+1 to m+4.
Startup Operation After the power is turned ON, it will require two cycle times plus approximately
50 ms before the first conversion data is stored in the input words. Therefore,
create a program as shown below, so that when operation begins simulta-
neously with startup it will wait for valid conversion data.
The analog input data will be 0000 until the initial processing is completed.
Handling Unit Errors When an error occurs in an Analog Input Unit, the analog input conversion
data becomes 0000.
15 0
1 0 0 0 0 0 0
8 7 6 5 4 3 2 1
15 0
1 0 0 0 0 0 0
8 7 6 5 4 3 2 1
0
0
Set to 1.
Set to 1.
Wd (n+1)
Wd (n+2)
Analog input 1 Analog input 2
Analog input 3 Analog input 4
Averaging
0 No
1 Yes
Input Use
0 No
1 Yes
Range code Analog input signal range
10 to 10 V
0 to 10 V
1 to 5 V or 4 to 20 mA
0 to 5 V or 0 to 20 mA
00
01
10
11
MOV(021)
2
D 0
T 5
#0002
T5
Power ON
P_On TIM5 is started when the power is
turned ON. After 0.1 to 0.2 s (100 to
200 ms) elapses, the TIM5 contact
turns ON and the analog input 1 con-
version data stored in word 2 is trans-
ferred to DM0.
406
Analog Output Units Section 7-3
Expansion Unit errors are output to bits 0 to 6 of word A436. The bits are
allocated from A436.00 in order starting with the Unit nearest the CPU
Unit. Use these flags in the program when it is necessary to detect errors.
Ladder Program Example
7-3 Analog Output Units
Each CP1W-DA041/CPM1A-DA041 Analog Output Unit provides four analog
outputs.
The analog output signal ranges are 1 to 5 V, 0 to 10 V, -10 to +10 V, 0 to
20 mA, and 4 to 20 mA. The resolution is 1/6,000. The open-circuit detec-
tion function is activated in the ranges of 1 to 5 V and 4 to 20 mA.
The Analog Input Unit uses four output words, so a maximum of three
Units can be connected.
Analog
input
Input range Range code Averaging Set data Destination
word
Input 1 0 to 10 V 01 Yes 1101 (B hex) n+1
Input 2 4 to 20 mA 10 Yes 1110 (E hex) n+1
Input 3 -10 to +10 V 00 No 1000 (8 hex) n+2
Input 4 Not used. -(00) --- 0000 (0 hex) n+2
MOV(021)
#80EB
102
TIM5
#0002
002
D100
T5
MOV(021)
004
D102
T5
MOV(021)
Input 2 open circuit alarm
P_EQ
110.00
003
#8000
T5
CMP(020)
MOV(021)
#8008
103
003
D101
T5
MOV(021)
Execution
condition
Execution
condition
Execution
condition
Execution
condition
Reads analog input 1 converted value.
Reads analog input 3 converted value.
Reads analog input 2 converted value.
Writes set data E and B.
Writes set data 0 and 8. Always ON
P_On
Operation start 1 cycle ON
A200.11
407
Analog Output Units Section 7-3
Part Names CP1W-DA041/CPM1A-DA041
1. Analog Output Terminals
Connected to analog input devices.
Output Terminal Arrangement
2. Expansion I/O Connecting Cable
Connected to the CPU Unit or previous Expansion Unit. The cable is pro-
vided with the Unit and cannot be removed.
Note Do not touch the cables during operation. Static electricity may cause operat-
ing errors.
3. Expansion Connector
Connected to the next Expansion Unit or Expansion I/O Unit.
Main Analog Output
Unit Specifications
Analog Output Units are connected to a CP1L CPU Unit. A maximum of three
Units can be connected, including other Expansion Units and Expansion I/O
Units.
CH
I OUT1 I OUT3
I OUT2 VOUT1
VOUT2
VOUT3 COM1
COM2
I OUT4
VOUT4 COM4
NC
NC
COM3
OUT
(3) Expansion connector
(1) Analog output terminals
(2) Expansion I/O
connecting cable
V OUT1 Voltage output 1
I OUT1 Current output 1
COM1 Output common 1
V OUT2 Voltage output 2
I OUT2 Current output 2
COM2 Output common 2
V OUT3 Voltage output 3
I OUT3 Current output 3
COM3 Output common 3
V OUT4 Voltage output 4
I OUT4 Current output 4
COM4 Output common 4
CH
I OUT1 I OUT3
I OUT2 VOUT1
VOUT2
VOUT3 COM1
COM2
I OUT4
VOUT4 COM4
NC
AG
COM3
I OUT1 I OUT3
I OUT2 VOUT1
VOUT2
VOUT3 COM1
COM2
I OUT4
VOUT4 COM4
NC
AG
COM3
OUT
408
Analog Output Units Section 7-3
Analog Output Signal
Ranges
The analog values depend on the output signal ranges, as shown in the fol-
lowing diagrams.
Note When the output exceeds the specified range, the output signal will be fixed at
either the lower limit or upper limit.
Item Voltage Output Current Output
Analog
output sec-
tion
Number of outputs 4 outputs (4 words allocated)
Output signal range 0 to 5 VDC, 1 to 5 VDC,
0 to 10 VDC, or 10 to 10 VDC
0 to 20 mA or 4 to 20 mA
External output allow-
able load resistance
2 k min. 350 max.
External output
impedance
0.5 max. ---
Resolution 1/6000 (full scale)
Overall
accuracy
25C 0.4% full scale
0 to 55C 0.8% full scale
D/A conversion data 16-bit binary (4-digit hexadecimal)
Full scale for 10 to 10 V: F448 to 0BB8 Hex
Full scale for other ranges: 0000 to 1770 Hex
Conversion time 2 ms/point (8 ms/all points)
Isolation method Photocoupler isolation between analog I/O terminals and internal circuits. No isola-
tion between analog I/O signals.
Current consumption 5 VDC: 80 mA max.; 24 VDC: 124 mA max.
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
IN
00
C H
C H
02 04 06 08 10
OUT
01 C OM 03 05 07 09 11
C OM CO M C OM 03 CO M 06
00 01 02 04 05 07
00 01 02 03 04 05 06 07
08 09 10 11
20EDR1
C H 00 01 02 03 04 05 06 07
N C
N C
N C
C H EXP
IN
00 02
01 C OM 03
C OM 05 07
04 06
C H 00 01 02 03
08 09 10 11
8ED
EXP CH
I OUT1 I OUT3
I OUT2 VOUT1
VOUT2
VOUT3 COM1
COM2
I OUT4
VOUT4 COM4
NC
AG
COM3
OUT
CP1L CPU Unit
A maximum of 3 Expansion Units or
Expansion I/O Units can be connected.
CP1W-20EDR1/
CPM1A-20EDR1
Expansion I/O Unit
CP1W-8ED/
CPM1A-8ED
Expansion I/O Unit
CP1W-DA041/
CPM1A-DA041
Analog Output Unit
4
a
n
a
l
o
g
o
u
t
p
u
t
s
409
Analog Output Units Section 7-3
Analog Output Signal
Ranges
10 to 10 V
The hexadecimal values F448 to 0BB8 (3000 to 3000) correspond to an ana-
log voltage range of 10 to 10 V. The entire output range is 11 to 11 V. Spec-
ify a negative voltage as a twos complement.
0 to 10 V
The hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog
voltage range of 0 to 10 V. The entire output range is 0.5 to 10.5 V. Specify a
negative voltage as a twos complement.
1 to 5 V
The hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog
voltage range of 1 to 5 V. The entire output range is 0.8 to 5.2 V.
0 V
10 V
11 V
11 V
10 V
F448
(3000)
F31C
(3300)
0CE4
(3300)
0BB8
(3000)
8000
7FFF
0000 (0) Conversion
Data
Hexadecimal
(Decimal)
0 V
10 V
10.5 V
0.5 V
FED4
(300)
189C
(6300)
1770
(6000)
8000
7FFF
0000 (0)
Conversion
Data
Hexadecimal
(Decimal)
1 V
5 V
5.2 V
0.8 V
189C
(6300)
1770
(6000)
0 V
7FFF
FED4
(300)
8000
Conversion
Data
Hexadecimal
(Decimal)
410
Analog Output Units Section 7-3
0 to 20 mA
The hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog
current range of 0 to 20 mA. The entire output range is 0 to 21 mA.
4 to 20 mA
The hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog
current range of 4 to 20 mA. The entire output range is 3.2 to 20.8 mA.
Procedure
Writing D/A Conversion
Data
Conversion
Data
Hexadecimal
(Decimal)
0 mA
20 mA
21 mA
189C
(6300)
1770
(6000)
7FFF
8000
0000 (0)
Conversion
Data
Hexadecimal
(Decimal)
4 mA
20 mA
20.8 mA
3.2 mA
189C
(6300)
1770
(6000)
0 mA 7FFF FED4
(300)
8000
Connect and wire Units.
Create a ladder program
Connect Analog Output Units.
Wire to analog input devices.
Write range code to output words (n+1, n+2).
Set use of outputs.
Select output signals using range codes.
Write D/A conversion values to output words
(n+1 to n+4).
MOV
(n+1) CH Range code (outputs 1, 2)
(n+2) CH Range code (outputs 3, 4)
(n+1) CH
(n+2) CH Analog output 2 conversion value
(n+3) CH Analog output 3 conversion value
(n+4) CH Analog output 4 conversion value
CPU Unit Analog Output Unit
Ladder program
Writes the range code.
Writes the converted
values.
Analog output 1 conversion value
Where "n" is the last output word
allocated to the CPU Unit, or
previous Expansion Unit or
Expansion I/O Unit.
Analog devices
Adjustment equipment
Servo Controller
Variable speed device
Recorder
Other
411
Analog Output Units Section 7-3
Connect the Analog Output Unit to the CPU Unit.
Internal Circuits
Wiring for Analog Outputs
Note (1) Connect the shield to the FG terminal to prevent noise.
(2) Separate wiring from power lines (AC power supply lines, high-voltage
lines, etc.)
(3) When there is noise in the power supply line, install a noise filter on the
input section and the power supply.
(4) When external power is supplied (when range codes are set), or when the
power is interrupted, there may be a pulse status analog output of up to
1 ms. If this status is a problem, take the following measures.
Turn ON the power to the CP1L CPU Unit, check the operation status,
and then turn ON the power at the load.
Turn OFF the power to the load and then turn OFF the power to the
CP1L CPU Unit.
1. Connecting the Analog Output Unit
CH
I OUT1 I OUT3
I OUT2 VOUT1
VOUT2
VOUT3 COM1
COM2
I OUT4
VOUT4 COM4
NC
AG
COM3
OUT
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
CPU Unit
CP1W-DA041
CPM1A-DA041
Analog Output Unit
2. Wiring Analog Outputs
Analog output 1
Analog ground
NC
I OUT1
COM1 ()
V OUT1
I OUT4
COM4 ()
V OUT4
Analog output 4
I
n
t
e
r
n
a
l
c
i
r
c
u
i
t
s
to
to
+ V OUT
COM
I OUT
+
V OUT
COM
I OUT
Analog
output
unit
Analog
device
with
voltage
input
Analog
output
unit
Analog
device
with
current
input
2-core shielded
twisted-pair cable
2-core shielded
twisted-pair cable
FG FG
412
Analog Output Units Section 7-3
Allocation of Output
Words
Four output words are allocated, beginning from the first word following the
last I/O word allocated to the CPU Unit or already-connected Expansion I/O
Unit or Expansion Unit.
Writing the Range Code Write the output use and the range code to words n+1 and n+2. The D/A con-
version will start when the set data is transferred from the CPU Unit to the
Analog Output Unit.
Range Code
The Analog Input Unit will not start converting analog I/O values until the
range code has been written. The output will be 0 V or 0 mA.
From when the range code has been written until data in the analog out-
put convertible range is written, 0 V or 0 mA will be output in the 0 to 10 V,
-10 to +10 V, and 0 to 20 mA ranges, and 1 V or 4 mA will be output in the
1 to 5 V and 4 to 20 mA ranges.
Once the range code has been set, it is not possible to change the setting
while power is being supplied to the CPU Unit. To change the I/O range,
turn the CPU Unit OFF then ON again.
3. Ladder Program
Words n+1 to n+4
Analog Output Unit
15 0
1 0 0 0 0 0 0
8 7 6 5 4 3 2 1
Wd n+1
15 0
1 0 0 0 0 0 0
8 7 6 5 4 3 2 1
0
0
Analog input 2 Analog input 1
Analog input 4 Analog input 3
Set to 1.
Set to 1.
Wd n+2
0
1
Range code Analog input signal range
10 to 10 V
0 to 10 V
1 to 5 V
0 to 20 mA
4 to 20 mA
000
001
010
011
100
Output use
No
Yes
413
Analog Output Units Section 7-3
Writing Analog Output Set
Values
The ladder program can be used to write data to the output word where the
set value is stored. The output word will be n+1 when n is the last output
word allocated to the CPU Unit, or previous Expansion Unit or Expansion I/O
Unit.
Startup Operation After power is turned ON, it will require two cycle times plus approximately 50
ms before the first data is converted.
The following table shows the output status after the initial processing is com-
pleted.
Therefore, create a program as shown below, so that when operation begins
simultaneously with startup it will wait for valid set data.
Handling Unit Errors When an error occurs at the Analog Output Unit, the analog output will be
0 V or 0 mA. If a CPU Unit fatal error occurs when analog outputs are set
in the 1 to 5 V or 4 to 20 mA range, 0 V or 0 mA will be output for a CPU
error I/O bus error, and 1 V or 1 mA will be output for all other errors.
Expansion Unit errors are output to bits 0 to 6 of word A436. The bits are
allocated from A436.00 in order starting with the Unit nearest the CPU
Unit. Use these flags in the program when it is necessary to detect errors.
Program Example
Output type Voltage output Current output
Output range 0 to 10 V,
-10 to +10 V
1 to 5 V 0 to 20 mA 4 to 20 mA
Before range
code is written
0 V 0 mA
After range
code is written
0 V 1 V 0 mA 4 mA
MOV(021)
D100
102
P_On
T 5
#0002
T5
Always ON Flag
TIM 005 will start as soon as power
turns ON. After 0.1 to 0.2 s (100 to
200 ms), the Completion Flag for
TIM 005 will turn ON, and the data
stored in DM 0100 will be moved to
IR 102 as the conversion data for
analog output 1.
Analog output Output range Range code Set data Destination
word
Output 1 0 to 10 V 001 1001 (9 hex) Wd n+1
Output 2 4 to 20 mA 011 1011 (B hex) Wd n+1
Output 3 -10 to 10 V 000 1000 (8 hex) Wd n+2
Output 4 Not used. -(000) 0000 (0 hex) Wd n+2
414
Analog I/O Units Section 7-4
7-4 Analog I/O Units
7-4-1 CPM1A-MAD01 Analog I/O Units
Each CPM1A-MAD01 Analog I/O Unit provides 2 analog inputs and 1 analog
output.
The analog input range can be set to 0 to 10 VDC, 1 to 5 VDC, or 4 to
20 mA with a resolution of 1/256.
An open-circuit detection function can be used with the 1 to 5 VDC and 4
to 20 mA settings.
The analog output range can be set to 0 to 10 VDC, 10 to 10 VDC, or 4
to 20 mA. The output has a resolution of 1/256 when the range is set to 0
to 10 VDC or 4 to 20 mA, or a resolution of 1/512 when set to 10 to
10 VDC.
Part Names
MOV(021)
#80B9
102
TIM5
#0002
P_On
D200
102
T5
MOV(021)
D202
104
T5
MOV(021)
MOV(021)
#8008
103
D201
103
T5
MOV(021)
Always ON Flag
Execution
condition
Execution
condition
Execution
condition
Operation start 1 cycle ON
A200.11
Writes set data B and 9.
Writes set data 0 and 8.
Writes analog output 1 conversion data.
Writes analog output 2 conversion data.
Writes analog output 3 conversion data.
IN OUT
V OUT COM I IN1 V IN2 COM 2
I OUT VIN 1 COM1 I IN2
MAD01
CH CH EXP
CPM1A-MAD01
(2) Expansion I/O connecting cable
(3) Expansion connector
(1) Analog I/O terminals
415
Analog I/O Units Section 7-4
(1) Analog I/O Terminals
Connected to analog I/O devices.
Note When using current inputs, short terminal V IN1 with I IN1 and ter-
minal V IN2 with I IN2.
(2) Expansion I/O Connecting Cable
Connected to the expansion connector of a CP1L CPU Unit or an Expan-
sion Unit or Expansion I/O Unit. The cable is provided with the Analog I/
O Unit and cannot be removed.
!Caution Do not touch the cables during operation. Static electricity may cause operat-
ing errors.
(3) Expansion Connector
Used for connecting Expansion Units or Expansion I/O Units.
V OUT Voltage output
I OUT Current output
COM Output common
V IN1 Voltage input 1
I IN1 Current input 1
COM1 Input common 1
V IN2 Voltage input 2
I IN2 Current input 2
COM2 Input common 2
I OUT VIN1 COM1 I IN2
VOUT COM I IN1 V IN2 COM2
IN OUT
I/O Terminal Arrangement
416
Analog I/O Units Section 7-4
Main Analog I/O Unit
Specifications
Analog I/O Units are connected to the CP1L CPU Unit. Up to three Units can
be connected, including any other Expansion Units and Expansion I/O Units
that are also connected.
Note (1) The conversion time is the total time for 2 analog inputs and 1 analog out-
put.
(2) With analog outputs it is possible to use both voltage outputs and current
outputs at the same time. In this case however, the total output current
must not exceed 21 mA.
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
IN OUT
V O UT CO M IIN 1 VIN 2 CO M2
IO U T V IN 1 CO M1 IIN 2
MAD01
C H C H EXP
IN
00
C H
C H
02 04 06 08 10
OUT
01 C OM 03 05 07 09 11
C OM CO M C OM 03 CO M 06
00 01 02 04 05 07
00 01 02 03 04 05 06 07
08 09 10 11
20EDR1
C H 00 01 02 03 04 05 06 07
N C
N C
N C
C H EXP
IN
00 02
01 C OM 03
C OM 05 07
04 06
C H 00 01 02 03
08 09 10 11
8ED
EXP
CP1L CPU Unit
CP1W-20EDR1/
CPM1A-20EDR1
Expansion I/O Unit
CP1W-8ED/
CPM1A-8ED
Expansion I/O Unit
CPM1A-MAD01
Analog I/O Unit
1
a
n
a
l
o
g
o
u
t
p
u
t
2
a
n
a
l
o
g
i
n
p
u
t
s
A maximum of 3 Expansion Units or
Expansion I/O Units can be connected.
Item Voltage I/O Current I/O
Analog
Input
Section
Number of inputs 2
Input signal range 0 to 10 V/1 to 5 V 4 to 20 mA
Max. rated input 15 V 30 mA
External input impedance 1 M min. 250 rated current
Resolution 1/256
Accuracy 1.0% full scale
A/D conversion data 8-bit binary
Analog
Output
Section
(See
note 2.)
Number of outputs 1
Output signal range 0 to 10 V or 10 to 10 V 4 to 20 mA
Max. external output current 5 mA ---
Allowable external output load resistance --- 350
Resolution 1/256 (1/512 when the output signal range is 10 to 10 V)
Accuracy 1.0% of full scale
Set data 8-bit signed binary
Conversion time 10 ms max. per Unit (See note 1.)
Isolation method Photocoupler isolation between I/O terminals and PC signals.
No isolation between analog I/O signals.
Current consumption 5 VDC: 66 mA max., 24 VDC: 66 mA max.
417
Analog I/O Units Section 7-4
Analog I/O Signal Ranges
Analog Input Signal Ranges
Analog Output Signal Ranges
0 V
80
FF
00
5 V 10 V
Input signal
0 V
80
FF
00
5 V 3 V
Input signal
4 mA
80
FF
00
20 mA 12 mA
Input signal
1 V 0 mA
0 to 10 V inputs
Conversion value
1 to 5 V inputs
Conversion value
4 to 20 mA inputs
Conversion value
0
1
2
3
4
5
6
7
8
9
10
00
0080 00FF
5
4
3
2
10
9
8
7
6
1
80FF 8080
10 to +10 V outputs
Set value
Set value
(V)
8100
0100
4
8
12
16
20
0000 0080 00FF
4 to 20 mA outputs
Set value
(mA)
0100 0080 8080
5
10
0000 0080 00FF
0 to 10 V output
(V)
0100 8080
418
Analog I/O Units Section 7-4
Using Analog I/O
Connecting the Analog I/O
Unit
Connect the Analog I/O Unit to the CPU Unit.
Wiring Analog I/O Devices Analog Input Wiring
Analog I/O Wiring Example
Connect the Unit
Wire the analog I/O
Create a ladder program
Connect the Analog I/O Unit.
Connect an analog input device.
Write the range code.
Analog input: 0 to 10 V, 1 to 5 V, 4 to 20 mA
Analog output: 0 to 10 V, 10 to 10 V, 4 to 20 mA
Analog input: Read converted data.
Analog output: Write set value.
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
IN OUT
V O UT CO M IIN 1 VIN 2 CO M2
IO U T V IN 1 CO M1 IIN 2
MAD01
C H C H EXP
CPU Unit CPM1A-MAD01
Analog I/O Unit
+
V IN1
COM1
V IN2
I IN2
I IN1
COM2
250
250
10 K
10 K
0 V
0 V
FG
FG
2-core shielded
twisted-pair cable
Analog I/O Unit
Analog
output
device
voltage
output
Analog
output
device
current
output
Common ()
Voltage input 1 (+)
VOUT
I OUT
COM
V IN1
I IN1
COM1
COM2
I IN2
V IN2
Current input 2 (+)
Common ()
VOUT
I OUT
COM
V IN1
I IN1
COM1
COM2
I IN2
V IN2
Using analog input 1 as a voltage input Using analog input 2 as a current input
419
Analog I/O Units Section 7-4
Analog Output Wiring
Analog I/O Wiring Example
Note (1) For analog outputs it is possible to use both voltage outputs and current
outputs at the same time, but the total current output must not exceed
21 mA.
(2) Use 2-core shielded twisted-pair cables.
(3) Wire away from power lines (AC power supply wires, power lines, etc.)
(4) When an input is not being used, short V IN and I IN to the COM terminal.
(5) Use crimp terminals. (Tighten terminals to a torque of 0.5 Nm.)
(6) When using current inputs, short V
IN
to I
IN
.
(7) When there is noise in the power supply line, install a noise filter on the
input section and the power supply terminals.
Creating a Ladder
Program
I/O Allocation
Two input words and one output word are allocated to the Analog I/O Unit,
starting from the next word following the last allocated word on the CPU Unit
or previous Expansion Unit or Expansion I/O Unit.
Analog I/O Unit
+
VOUT
I OUT
COM
Voltage Outputs
Current Outputs
Analog I/O Unit
VOUT
I OUT
COM
0 V
0 V
FG
FG
2-core shielded
twisted-pair cable
Analog
input
device
voltage
input
2-core shielded
twisted-pair cable
Analog
input
device
current
input
Voltage output (+)
Common ()
VOUT
I OUT
COM
V IN1
I IN1
COM1
COM2
I IN2
V IN2
Using analog output as a voltage output
420
Analog I/O Units Section 7-4
Writing the Range Code
Write the range code to word n+1. A/D or D/A conversion begins when the
range code is transferred from the CPU Unit to the Analog I/O Unit. There are
eight range codes, FF00 to FF07, that combine both the analog input 1 and 2
and analog output signal ranges, as shown below.
The voltage/current selection is made by switching the wiring.
Write the range code to the Analog I/O Unit output word (n + 1) in the first
cycle of program execution.
The Analog I/O Unit will not start converting analog I/O values until the
range code has been written.
Once the range code has been set, it is not possible to change the setting
while power is being supplied to the CPU Unit. To change the I/O range,
turn the CPU Unit OFF then ON again.
If a range code other than those specified in the above table is written to
n+1, the range code will not be received by the Analog I/O Unit and ana-
log I/O conversion will not start.
Range
code
Analog input 1 signal
range
Analog input 2 signal
range
Analog output signal
range
FF00 0 to 10 V 0 to 10 V 0 to 10 V/4 to 20 mA
FF01 0 to 10 V 0 to 10 V 10 to 10 V/4 to 20 mA
FF02 1 to 5 V/4 to 20 mA 0 to 10 V 0 to 10 V/4 to 20 mA
FF03 1 to 5 V/4 to 20 mA 0 to 10 V 10 to 10 V/4 to 20 mA
FF04 0 to 10 V 1 to 5 V/4 to 20 mA 0 to 10 V/4 to 20 mA
FF05 0 to 10 V 1 to 5 V/4 to 20 mA 10 to 10 V/4 to 20 mA
FF06 1 to 5 V/4 to 20 mA 1 to 5 V/4 to 20 mA 0 to 10 V/4 to 20 mA
FF07 1 to 5 V/4 to 20 mA 1 to 5 V/4 to 20 mA 10 to 10 V/4 to 20 mA
Analog I/O Unit
(m + 1)
(m + 2)
32 analog inputs
16 analog outputs
(n + 1)
"m" is the last allocated input word and
"n" the last allocated output word on
the CPU Unit or previous Expansion
Unit or Expansion I/O Unit.
MOV(021)
FF02
(n+1)
A200.11
First Cycle Flag
Range code (4 digits hexadecimal)
Analog input 1: 1 to 5 V or 4 to 20 mA
Analog input 2: 0 to 10 V
Analog output: 0 to 10 V or 4 to 20 mA
Allocated output word
421
Analog I/O Units Section 7-4
Reading A/D Conversion Tables
Data converted from analog to digital is output to bits 00 to 07 in words m+1
and m+2.
Note The Open-circuit Detection Flag is turned ON if the input signal range is set to
1 to 5 V or 4 to 20 mA and the input signal falls below 1 V or 4 mA. (Open cir-
cuits are not detected when the input signal range is set to 0 to 10 V.)
MOV(21)
MOVE instruction
Ladder program
Range code
Word n + 1
Word m + 1
Word m + 2
CPU Unit Analog I/O Unit
Writes the range
code. Reads the
conversion value.
Analog input 1
conversion value
Analog input 2
conversion value
"m" is the last input word and "n" is the last
output word allocated to the CPU Unit, or
previous Expansion Unit or Expansion I/O Unit.
Analog devices
Temperature sensor
Pressure sensor
Speed sensor
Flow sensor
Voltage/current meter
m + 1
15
m + 2
15 00 07
07 00
Analog input 1
Open-circuit
Detection Flag
0: Normal
1: Open-circuit
Analog input 1 conversion value (00 to FF hex)
Analog input 2
Open-circuit
Detection Flag
0: Normal
1: Open-circuit
Analog input 2 conversion value (00 to FF hex)
422
Analog I/O Units Section 7-4
Setting D/A Conversion Data
Output data is written to the Analog I/O Units allocated output word, word
n+1.
Note Word (n + 1) can be used for either the range code or the analog output set
value.
1,2,3... 1. The set value range is 0000 to 00FF hex when the output signal range is 0
to 10 V/4 to 20 mA.
2. The set value range is divided into two parts: 8000 to 80FF hex (10 to 0
V) and 0000 to 00FF hex (0 to 10 V) when the output signal range is 10
to 10 V.
3. If FF@@ is input, 0 V/4 mA will be output.
4. If an output value is specified, the following bits will be ignored.
Output range of 10 to 10 V: Bits 08 to 14
Output range of 0 to 10 V/4 to 20 mA: Bits 08 to 15
Startup Operation
After power is turned ON, it will require two cycle times plus approx. 100 ms
before the first data is converted. The following instructions can be placed at
the beginning of the program to delay reading converted data from analog
inputs until conversion is actually possible.
Analog input data will be 0000 until initial processing has been completed.
Analog output data will be 0 V or 0 mA until the range code has been written.
After the range code has been written, the analog output data will be 0 V or
4 mA if the range is 0 to 10 V, 10 to 10 V, or 4 to 20 mA.
MOV(21)
MOVE instruction
Ladder program
Word n + 1
CPU Unit Analog I/O Unit
(See note.)
Writes the range code
Writes the set value
Range code
Analog output set value
"n" is the last output word allocated to the CPU
Unit, or previous Expansion Unit or Expansion I/O
Unit.
Analog devices
Adjustment equipment
Servo Controller
Variable speed device
Recorder
Other
n + 1
15 00
Sign bit
(Used when the
output signal range is
10 to 10 V.)
Set value (00 to FF hex)
423
Analog I/O Units Section 7-4
Handling Unit Errors
When an error occurs in the Analog I/O Unit, analog input data will be
0000 and 0 V or 4 mA will be output as the analog output.
Expansion Unit/Expansion I/O Unit errors are output to bits 0 to 6 of word
A436. The bits are allocated from A436.00 in order starting with the Unit
nearest the CPU Unit. Use these flags in the program when it is neces-
sary to detect errors.
Programming Example
This programming example uses these ranges:
Analog input 0: 0 to 10 V
Analog input 1: 1 to 5 V or 4 to 20 mA
Analog output: 0 to 10 V or 4 to 20 mA
MOV(021)
2
D0
0
Always ON
P_On
TIM
T0
TIM 0 will start as soon as power turns ON.
After 0.2 to 0.3 s (200 to 300 ms), the input for
TIM 0 will turn ON, and the converted data
from analog input 0 that is stored in word 2
will be transferred to D00000.
#3
MOV(021)
#FF04
102
First Cycle ON Flag
A200.11
Always ON Flag
P_On
10
D0
T0
T0
MOV(021)
3.15
110.00
3
D1
T0
MOV(021)
D10
102
T0
MOV(021)
Execution
condition
Execution
condition
Execution
condition
Execution
condition
Writes the range code (FF04) to the Unit.
Reads analog input 0's converted value.
Open-circuit alarm
Reads analog input 1's converted value.
The content of D10 is written to the output
word as the analog output set value.
0
TIM
#3
424
Analog I/O Units Section 7-4
7-4-2 CP1W-MAD11/CPM1A-MAD11 Analog I/O Units
Each CP1W-MAD11/CPM1A-MAD11 Analog I/O Unit provides 2 analog
inputs and 1 analog output.
The analog input range can be set to 0 to 5 VDC, 1 to 5 VDC, 0 to
10 VDC, 10 to 10 VDC, 0 to 20 mA, or 4 to 20 mA. The inputs have a
resolution of 1/6000.
An open-circuit detection function can be used with the 1 to 5 VDC and 4
to 20 mA settings.
The analog output range can be set to 1 to 5 VDC, 0 to 10 VDC, 10 to
10 VDC, 0 to 20 mA, or 4 to 20 mA. The outputs have a resolution of
1/6000.
Part Names
(1) Analog I/O Terminals
Connected to analog I/O devices.
Note For current inputs, short V IN0 to I IN0 and V IN1 to I IN1.
NC NC
CP1W-MAD11/CPM1A-MAD11
(3) Expansion connector
(2) Expansion I/O connecting cable
(1) Analog I/O terminals
(4) DIP switch
V OUT Voltage output
I OUT Current output
COM Output common
V IN0 Voltage input 0
I IN0 Current input 0
COM0 Input common 0
V IN1 Voltage input 1
I IN1 Current input 1
COM1 Input common 1
I OUT V IN0 COM0
V OUT COM I IN0
I IN1
V IN1 COM1 N C N C
AG N C N C
NC NC
CPM1A-MAD11 Terminal Arrangements
425
Analog I/O Units Section 7-4
(2) Expansion I/O Connecting Cable
Connected to the expansion connector of a CP1L CPU Unit or a CMP1A
Expansion Unit or Expansion I/O Unit. The cable is provided with the
Analog I/O Unit and cannot be removed.
!Caution Do not touch the cables during operation. Static electricity may cause operat-
ing errors.
(3) Expansion Connector
Used for connecting Expansion Units or Expansion I/O Units.
(4) DIP Switch
Used to enable or disable averaging.
Main Analog I/O Unit
Specifications
Analog I/O Units are connected to the CP1L CPU Unit. Up to three Units can
be connected, including any other Expansion Units and Expansion I/O Units
that are also connected.
Pin1: Average processing for analog input 0
(OFF: Average processing not performed; ON: Average processing performed)
Pin2: Average processing for analog input 1
(OFF: Average processing not performed; ON: Average processing performed)
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
IN
00
C H
C H
02 04 06 08 10
OUT
01 C OM 03 05 07 09 11
C OM CO M C OM 03 CO M 06
00 01 02 04 05 07
00 01 02 03 04 05 06 07
08 09 10 11
20EDR1
C H 00 01 02 03 04 05 06 07
N C
N C
N C
C H EXP
IN
00 02
01 C OM 03
C OM 05 07
04 06
C H 00 01 02 03
08 09 10 11
8ED
EXP
NC NC
CP1L CPU Unit
Possible to connect to a maximum of
3 Units including Expansion I/O Units
CP1W-20EDR1/
CPM1A-20EDR1
Expansion I/O Unit
CP1W-8ED/
CPM1A-8ED
Expansion I/O Unit
CP1W-MAD11/
CPM1A-MAD11
Analog I/O Unit
1
a
n
a
l
o
g
o
u
t
p
u
t
2
a
n
a
l
o
g
i
n
p
u
t
s
426
Analog I/O Units Section 7-4
Analog I/O Signal
Ranges
Analog I/O data is digitally converted according to the analog I/O signal range
as shown below.
Note When the input exceeds the specified range, the AD converted data will be
fixed at either the lower limit or upper limit.
Item Voltage I/O Current I/O
Analog
Input
Section
Number of inputs 2 inputs (2 words allocated)
Input signal range 0 to 5 VDC, 1 to 5 VDC,
0 to 10 VDC, or 10 to 10 VDC
0 to 20 mA or 4 to 20 mA
Max. rated input 15 V 30 mA
External input impedance 1 M min. Approx. 250
Resolution 1/6000 (full scale)
Overall accuracy 25C 0.3% full scale 0.4% full scale
0 to 55C 0.6% full scale 0.8% full scale
A/D conversion data 16-bit binary (4-digit hexadecimal)
Full scale for 10 to 10 V: F448 to 0BB8 hex
Full scale for other ranges: 0000 to 1770 hex
Averaging function Supported (Settable for individual inputs via DIP switch)
Open-circuit detection function Supported
Analog
Output
Section
Number of outputs 1 output (1 word allocated)
Output signal range 1 to 5 VDC, 0 to 10 VDC, or
10 to 10 VDC,
0 to 20 mA or 4 to 20 mA
Allowable external output load resistance 1 k min. 600 max.
External output impedance 0.5 max.
Resolution 1/6000 (full scale)
Overall accuracy y 25C 0.4% full scale
0 to 55C 0.8% full scale
Set data (D/A conversion) 16-bit binary (4-digit hexadecimal)
Full scale for 10 to 10 V: F448 to 0BB8 hex
Full scale for other ranges: 0000 to 1770 hex
Conversion time 2 ms/point (6 ms/all points)
Isolation method Photocoupler isolation between analog I/O terminals and internal
circuits.
No isolation between analog I/O signals.
Current consumption 5 VDC: 83 mA max., 24 VDC: 110 mA max.
427
Analog I/O Units Section 7-4
Analog Input Signal
Ranges
10 to 10 V
The 10- to 10-V range corresponds to the hexadecimal values F448 to 0BB8
(3000 to 3000). The entire data range is F31C to 0CE4 (3300 to 3300).
A negative voltage is expressed as a twos complement.
0 to 10 V
The 0- to 10-V range corresponds to the hexadecimal values 0000 to 1770 (0
to 6000). The entire data range is FED4 to 189C (300 to 6300). A negative
voltage is expressed as a twos complement.
0 to 5 V
The 0- to 5-V range corresponds to the hexadecimal values 0000 to 1770 (0
to 6000). The entire data range is FED4 to 189C (300 to 6300). A negative
voltage is expressed as a twos complement.
0 V 10 V 11 V
11V 10V
F448 (3000)
F31C (3300)
0CE4 (3300)
0BB8 (3000)
0000 (0)
Converted Data
Hexadecimal (Decimal)
0 V 10 V 10.5 V
0.5 V
FED4 (300)
189C (6300)
1770 (6000)
0000 (0)
Converted Data
Hexadecimal (Decimal)
0 V 5 V 5.25 V
0.25 V
FED4 (300)
189C (6300)
1770 (6000)
0000 (0)
Converted Data
Hexadecimal (Decimal)
428
Analog I/O Units Section 7-4
1 to 5 V
The 1- to 5-V range corresponds to the hexadecimal values 0000 to 1770 (0
to 6000). The entire data range is FED4 to 189C (300 to 6300). Inputs
between 0.8 and 1 V are expressed as twos complements. If the input falls
below 0.8 V, open-circuit detection will activate and converted data will be
8000.
0 to 20 mA
The 0- to 20-mA range corresponds to the hexadecimal values 0000 to 1770
(0 to 6000). The entire data range is FED4 to 189C (300 to 6300). A negative
voltage is expressed as a twos complement.
4 to 20 mA
The 4- to 20-mA range corresponds to the hexadecimal values 0000 to 1770
(0 to 6000). The entire data range is FED4 to 189C (300 to 6300). Inputs
between 3.2 and 4 mA are expressed as twos complements. If the input falls
below 3.2 mA, open-circuit detection will activate and converted data will be
8000.
1 V 5 V 5.2 V
0.8 V
FED4 (300)
189C (6300)
1770 (6000)
0000 (0)
Converted Data
Hexadecimal (Decimal)
0 mA 20 mA 21 mA
1 mA
FED4 (300)
189C (6300)
1770 (6000)
0000 (0)
Converted Data
Hexadecimal (Decimal)
4 mA 20 mA 20.8 mA
3.2 mA
FED4 (300)
189C (6300)
1770 (6000)
0000 (0)
0 mA
Converted Data
Hexadecimal (Decimal)
429
Analog I/O Units Section 7-4
Analog Output Signal
Ranges
10 to 10 V
The hexadecimal values F448 to 0BB8 (3000 to 3000) correspond to an ana-
log voltage range of 10 to 10 V. The entire output range is 11 to 11 V. Spec-
ify a negative voltage as a twos complement.
0 to 10 V
The hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog
voltage range of 0 to 10 V. The entire output range is 0.5 to 10.5 V. Specify a
negative voltage as a twos complement.
1 to 5 V
The hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog
voltage range of 1 to 5 V. The entire output range is 0.8 to 5.2 V.
0 V
10 V
11 V
11 V
10 V
F448
(3000)
F31C
(3300)
0CE4
(3300)
0BB8
(3000)
0000 (0)
8000
7FFF
Conversion Data
Hexadecimal (Decimal)
0 V
10 V
10.5 V
0.5 V
FED4
(300)
189C
(6300)
1770
(6000)
0000 (0)
8000
7FFF
Conversion Data
Hexadecimal (Decimal)
1 V
5 V
5.2 V
0.8 V
189C
(6300)
1770
(6000)
0 V
7FFF FED4
(300)
8000
Conversion Data
Hexadecimal (Decimal)
430
Analog I/O Units Section 7-4
0 to 20 mA
The hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog
current range of 0 to 20 mA. The entire output range is 0 to 21 mA.
4 to 20 mA
The hexadecimal values 0000 to 1770 (0 to 6000) correspond to an analog
current range of 4 to 20 mA. The entire output range is 3.2 to 20.8 mA.
Averaging Function for
Analog Inputs
The averaging function can be enabled for inputs using the DIP switch. The
averaging function stores the average (a moving average) of the last eight
input values as the converted value. Use this function to smooth inputs that
vary at a short interval.
Open-circuit Detection
Function for Analog
Inputs
The open-circuit detection function is activated when the input range is set to
1 to 5 V and the voltage drops below 0.8 V, or when the input range is set to 4
to 20 mA and the current drops below 3.2 mA. When the open-circuit detec-
tion function is activated, the converted data will be set to 8,000.
The time for enabling or clearing the open-circuit detection function is the
same as the time for converting the data. If the input returns to the convertible
range, the open-circuit detection is cleared automatically and the output
returns to the normal range.
0 mA
20 mA
21 mA
0000 (0)
189C
(6300)
1770
(6000)
7FFF
8000
Conversion Data
Hexadecimal (Decimal)
4 mA
20 mA
20.8 mA
3.2 mA
189C
(6300)
1770
(6000)
0 mA
7FFF
FED4
(300)
8000
Conversion Data
Hexadecimal (Decimal)
431
Analog I/O Units Section 7-4
Using Analog I/O
Reading Range Code
Settings and A/D
Conversion Data
Writing D/A Conversion
Data
Connect the Unit.
Set the I/O ranges.
Wire the analog I/O.
Program operation in
the ladder program.
Connect the Analog I/O Unit.
Analog inputs: 0 to 5 VDC, 1 to 5 VDC, 0 to 10 VDC, 10 to
10 VDC, 0 to 20 mA, or 4 to 20 mA
Analog output: 1 to 5 VDC, 0 to 10 VDC, 10 to 10 VDC, 0 to
20 mA, or 4 to 20 mA
Set analog inputs as voltage or current inputs and set the
averaging function.
Connect analog I/O devices.
Write the range code.
Analog inputs: Read converted data.
Analog output: Write set values.
MOV(21)
MOVE instruction
Ladder program
Range code
Word n + 1
Word m + 1
Word m + 2
CPU Unit Analog I/O Unit
Writes the range code.
Reads the converted
values.
Analog input 0
converted value
Analog input 1
converted value
"m" is the last input word and "n" is the last
output word allocated to the CPU Unit or
previous Expansion Unit or Expansion I/O Unit.
Analog devices
Temperature sensor
Pressure sensor
Speed sensor
Flow sensor
Voltage/current meter
Other
MOV(21)
MOVE instruction
Ladder program
Word n + 1
CPU Unit Analog I/O Unit
(See note.)
Writes the range code.
Writes the set value.
Range code
Analog output set value
"n" is the last output word allocated to the CPU
Unit or previous Expansion Unit or Expansion I/O
Unit.
Analog devices
Adjustment equipment
Servo Controller
Variable speed device
Recorder
Other
432
Analog I/O Units Section 7-4
Note Word (n + 1) can be used for either the range code or the analog output set
value.
Connecting the Analog I/O
Unit and Setting the DIP
Switch
This section describes how to connect an Analog I/O Unit to the CPU Unit.
Setting the Averaging Function
DIP switch pins 1-1 and 1-2 are used to set the averaging function. When
averaging is enabled, a moving average of the last eight input values is output
as the converted value. The averaging function can be set separately for ana-
log inputs 1 and 2.
Wiring Analog I/O Devices Internal Circuits
DIP switch
pin
Function Setting Default
1-1 Averaging Analog input 0
OFF: Disabled; ON: Enabled
OFF
1-2 Analog input 1
OFF: Disabled; ON: Enabled
OFF
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
NC NC
CPU Unit
CP1W-MAD11
CPM1A-MAD11
Analog I/O Unit
Analog Inputs Analog Outputs
Analog ground
Input 0
Input 1
Analog ground
Output
I
n
t
e
r
n
a
l
c
i
r
c
u
i
t
s
510 k
510 k
510 k
510 k
250 k
250 k
COM0 ()
V IN0
V IN1
COM1 () I
n
t
e
r
n
a
l
c
i
r
c
u
i
t
s
COM ()
V OUT
I OUT
AG
NC
NC
I IN0
I IN1
433
Analog I/O Units Section 7-4
Terminal Arrangements
Note For current inputs, short V IN0 to I IN0 and V IN1 to I IN1.
Wiring for Analog Inputs
Wiring for Analog Outputs
Note (1) Use shielded twisted-pair cables, but do not connect the shield.
(2) When an input is not being used, short the + and terminals.
(3) Separate wiring from power lines (AC power supply lines, high-voltage
lines, etc.)
(4) When there is noise in the power supply line, install a noise filter on the
input section and the power supply terminals.
I OUT V IN0 COM0
V OUT COM I IN0
I IN1
V IN1 COM1 NC NC
AG NC NC
NC NC
V OUT Voltage output
I OUT Current output
COM Output common
V IN0 Voltage input 0
I IN0 Current input 0
COM0 Input common 0
V IN1 Voltage input 1
I IN1 Current input 1
COM1 Input common 1
V IN
COM
I IN
V IN
COM
I IN
Analog
device
with
voltage
output
+
Analog
I/O Unit
Analog
device
with
current
output
Analog
I/O Unit
V OUT
COM
I OUT
V OUT
COM
I OUT
Analog
device
with
voltage
input
+
Analog
I/O Unit
Analog
device
with
current
input
Analog
I/O Unit
434
Analog I/O Units Section 7-4
(5) Refer to the following diagram regarding wiring disconnections when volt-
age input is being used.
Example: If analog input device 2 is outputting 5 V and the same power sup-
ply is being used for both devices as shown above, approximately 1/3, or 1.6
V, will be applied to the input for input device 1.
If a wiring disconnection occurs when voltage input is being used, the situa-
tion described below will result. Either separate the power supplies for the
connected devices, or use an isolator for each input.
If the same power supply is being used by the connected devices and a dis-
connection occurs at points A or B in the above diagram, an unwanted circuit
path will occur as shown along the dotted line in the diagram. If that occurs, a
voltage of approximately 1/3 to 1/2 of the output voltage of the other con-
nected device will be generated. If that voltage is generated while the setting
is for 1 to 5 V, open-circuit detection may not be possible. Also, if a disconnec-
tion occurs at point C in the diagram, the negative (-) side will be used in for
both devices and open-circuit detection will not be possible.
This problem will not occur for current inputs even if the same power supply is
used.
Note When external power is supplied (when setting the range code), or when
there is a power interruption, pulse-form analog output of up to 1 ms may be
generated. If this causes problems with operation, take countermeasures
such as those suggested below.
Turn ON the power supply for the CP1L CPU Unit first, and then turn ON
the power supply for the load after confirming correct operation.
Turn OFF the power supply for the load before turning OFF the power
supply for the CP1L CPU Unit.
24 VDC
A
C B
Analog
input
device 1
Analog
input
device 2
435
Analog I/O Units Section 7-4
Creating a Ladder
Program
I/O Allocation
Two input words and one output word are allocated to the Analog I/O Unit
starting from the next word following the last allocated word on the CPU Unit
or previous Expansion Unit or Expansion I/O Unit.
Writing the Range Code
Write the range code to word n+1. A/D or D/A conversion begins when the
range code is transferred from the CPU Unit to the Analog I/O Unit. There are
five range codes, 000 to 100, that combine the analog input 1 and 2 and ana-
log output signal ranges, as shown below.
Example
The following instructions set analog input 0 to 4 to 20 mA, analog input 1 to 0
to 10 V, and the analog output to 10 to 10 V.
The Analog I/O Unit will not start converting analog I/O values until the
range code has been written. Until conversion starts, inputs will be 0000,
and 0 V or 0 mA will be output.
After the range code has been set, 0 V or 0 mA will be output for the 0 to
10-V, 10 to 10-V, or 0 to 20-mA ranges, and 1 V or 4 mA will be output for
the 1 to 5-V and 4 to 20-mA ranges until a convertible value has been
written to the output word.
Once the range code has been set, it is not possible to change the setting
while power is being supplied to the CPU Unit. To change the I/O range,
turn the CPU Unit OFF then ON again.
Range
code
Analog input 0 signal
range
Analog input 1 signal
range
Analog output signal
range
000 10 to 10 V 10 to 10 V 10 to 10 V
001 0 to 10 V 0 to 10 V 0 to 10 V
010 1 to 5 V/4 to 20 mA 1 to 5 V/4 to 20 mA 1 to 5 V
011 0 to 5 V/0 to 20 mA 0 to 5 V/0 to 20 mA 0 to 20 mA
100 --- --- 4 to 20 mA
Analog I/O Unit
Word m+1
Word m+2
32 inputs
16 outputs
Word n+1
n+1
15
1 0 0 0 0 0 0
8 7 6 5 4 3 2 1 0
Analog
output
Analog
input 1
Analog
input 0
MOV(021)
#800A
n+1
First Cycle Flag
A200.11
Analog input 0: 4 to 20 mA
Analog input 1: 0 to 10 V
Analog output: 10 to 10 V
436
Analog I/O Units Section 7-4
Reading Converted Analog Input Values
The ladder program can be used to read the memory area words where the
converted values are stored. Values are output to the next two words (m + 1,
m + 2) following the last input word (m) allocated to the CPU Unit or previous
Expansion Unit or Expansion I/O Unit.
Writing Analog Output Set Values
The ladder program can be used to write data to the memory area where the
set value is stored. The output word will be n+1, where n is the last output
word allocated to the CPU Unit or previous Expansion Unit or Expansion I/O
Unit.
Startup Operation
After power is turned ON, it will require two cycle times plus approx. 50 ms
before the first data is converted. The following instructions can be placed at
the beginning of the program to delay reading converted data from analog
inputs until conversion is actually possible.
Analog input data will be 0000 until initial processing has been completed.
Analog output data will be 0 V or 0 mA until the range code has been written.
After the range code has been written, the analog output data will be 0 V or
0 mA if the range is 0 to 10 V, 10 to 10 V, or 0 to 20 mA, or it will be 1 V or
4 mA if the range is 1 to 5 V or 4 to 20 mA.
Handling Unit Errors
When an error occurs in the Analog I/O Unit, analog input data will be
0000 and 0 V or 0 mA will be output as the analog output.
If a CPU error or an I/O bus error (fatal errors) occurs at the CPU Unit and
the analog output is set to 1 to 5 V or 4 to 20 mA, 0 V or 0 mA will be out-
put. For any other fatal errors at the CPU Unit, 1 V or 4 mA will be output.
Expansion Unit and Expansion I/O Unit errors are output to bits 0 to 6 of
word A436. The bits are allocated from A436.00 in order starting from the
Unit nearest the CPU Unit. Use these flags in the program when it is nec-
essary to detect errors.
Programming Example
This programming example uses these ranges:
Analog input 0: 0 to 10 V
Analog input 1: 4 to 20 mA
Analog output: 0 to 10 V
MOV(021)
2
D0
Always ON Flag
P_On
T5
#0002
T5
TIM 5 will start as soon as power turns ON.
After 0.1 to 0.2 s (100 to 200 ms), the input
for TIM 5 will turn ON, and the converted
data from analog input 0 that is stored in
word 2 will be transferred to D00000.
437
Temperature Sensor Units Section 7-5
7-5 Temperature Sensor Units
CP1W-TS002/TS102 and CPM1A-TS002/TS102 Temperature Sensor Units
each provide up to four input points, and CP1W-TS001/TS001 and CPM1A-
TS001/TS101 Temperature Sensor Units each provide up to two input points.
The inputs can be from thermocouples or platinum resistance thermometers.
CP1W-TS002/TS102 and CPM1A-TS002/TS102 Temperature Sensor Units
are each allocated four input words.
MOV(021)
#8051
102
First Cycle ON Flag
A200.11
TIM5
#0002
Always ON Flag
P_On
002
D0
T5
MOV(021)
(P_EQ)
110.00
003
D1
T5
MOV(021)
D10
102
T5
MOV(021)
003
#8000
T5
CMP(020)
Execution
condition
Execution
condition
Execution
condition
Execution
condition
Writes the range code (8051) to the Unit.
Reads analog input 0's converted value.
Reads analog input 1's converted value.
The content of D10 is written to the output
word as the analog output set value.
Open-circuit alarm
438
Temperature Sensor Units Section 7-5
Part Names
Temperature Sensor Units:
CP1W-TS@@@
and CPM1A-TS@@@
(1) Temperature Sensor Input Terminals
Used to connect temperature sensors such as thermocouples or plati-
num resistance thermometers.
(2) DIP Switch
Used to set the temperature unit (C or F) and the number of decimal
places used.
(3) Rotary Switch
Used to set the temperature input range. Make the setting according to
the specifications of the temperature sensors that are connected.
(4) Expansion I/O Connecting Cable
Connected to the expansion connector of a CP1L CPU Unit or a Expan-
sion Unit or Expansion I/O Unit. The cable is included with the Tempera-
ture Sensor Unit and cannot be removed.
Note Do not touch the cables during operation. Static electricity may
cause operating errors.
(5) Expansion Connector
Used for connecting Expansion Units or Expansion I/O Units.
Main Specifications
(5) Expansion Connector
(1) Temperature Sensor Input Terminals
(4) Expansion I/O
Connector Cable
(3) Rotary Switch
(2) DIP Switch
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
IN
00
C H
C H
02 04 06 08 10
OUT
01 C OM 03 05 07 09 11
C OM CO M C OM 03 CO M 06
00 01 02 04 05 07
00 01 02 03 04 05 06 07
08 09 10 11
20EDR1
C H 00 01 02 03 04 05 06 07
N C
N C
N C
C H EXP
IN
00 02
01 C OM 03
C OM 05 07
04 06
C H 00 01 02 03
08 09 10 11
8ED
EXP
Thermocouples or
platinum resistance
thermometers Temperature inputs
CP1L CPU Unit
Possible to connect to a maximum of
3 Units including Expansion I/O Units
CP1W-20EDR1/
CPM1A-20EDR1
Expansion I/O Unit
CP1W-8ED/
CPM1A-8ED
Expansion I/O Unit
CP1W-TS@@@/
CPM1A-TS@@@
Temperature Sensor Unit
439
Temperature Sensor Units Section 7-5
Note Accuracy for a K-type sensor at 100C or less is 4C 1 digit max.
Using Temperature Sensor Units
Connecting Temperature
Sensor Units
A maximum of three CPM1A-TS002 and CPM1A-TS102 Temperature Sensor
Units can be connected, because each is allocated four words.
Setting Temperature Ranges
Note (1) Always turn OFF the power supply before setting the temperature range.
(2) Never touch the DIP switch or rotary switch during Temperature Sensor
Unit operation. Static electricity may cause operating errors.
The Temperature Sensor Units DIP switch and rotary switch are used to set
the temperature unit, to select 2-decimal-place Mode is to be used, and to set
the temperature input range.
Item CP1W-TS001
CPM1A-TS001
CP1W-TS002
CPM1A-TS002
CP1W-TS101
CPM1A-TS101
CP1W-TS102
CPM1A-TS102
Temperature sensors Thermocouples Platinum resistance thermometer
Switchable between K and J, but same type
must be used for all inputs.
Switchable between Pt100 and JPt100, but
same type must be used for all inputs.
Number of inputs 2 4 2 4
Allocated input words 2 4 2 4
Accuracy (The larger of 0.5% of converted value or
2C) 1 digit max. (See note.)
(The larger of 0.5% of converted value or
1C) 1 digit max.
Conversion time 250 ms for 2 or 4 input points
Converted temperature data 16-bit binary data (4-digit hexadecimal)
Isolation Photocouplers between all temperature input signals
Current consumption 5 VDC: 40 mA max., 24 VDC: 59 mA max. 5 VDC: 54 mA max., 24 VDC: 73 mA max.
Connect the Unit.
Set the temperature ranges.
Connect the temperature
sensors.
Program operation in the
ladder program.
Connect the Temperature Sensor Unit.
Set the temperature unit, 2-decimal-place Mode
if required, and set the temperature input range.
Connect temperature sensors.
Read temperature data stored in the input word.
SYSMAC
CP1L
L1 L2/N COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
COM COM COM COM 05 07 COM 02 COM 05 07
IN
OUT
IN
00
C H
C H
02 04 06 08 10
OUT
01 C OM 03 05 07 09 11
C OM CO M C OM 03 CO M 06
00 01 02 04 05 07
00 01 02 03 04 05 06 07
08 09 10 11
20EDR1
C H 00 01 02 03 04 05 06 07
N C
N C
N C
C H EXP
IN
00 02
01 C OM 03
C OM 05 07
04 06
C H 00 01 02 03
08 09 10 11
8ED
EXP
CP1L CPU Unit
CP1W-20EDR1/
CPM1A-20EDR1
Expansion I/O Unit
CP1W-8ED/
CPM1A-8ED
Expansion I/O Unit
CP1W-TS001/TS101/
CPM1A-TS001/TS101
Temperature Sensor Unit
440
Temperature Sensor Units Section 7-5
DIP Switch Settings
The DIP switch is used to set the temperature unit (C or F) and the number
of decimal places used.
Note For details on 2-decimal-place Mode, refer to Two-decimal-place Mode on
page 447.
Rotary Switch Setting
!Caution Set the temperature range according to the type of temperature sensor con-
nected to the Unit. Temperature data will not be converted correctly if the tem-
perature range does not match the sensor.
!Caution Do not set the temperature range to any values other than those for which
temperature ranges are given in the following table. An incorrect setting may
cause operating errors.
The rotary switch is used to set the temperature range.
SW1 Setting
1 Temperature unit OFF C
ON F
2 Number of decimal
places used (See note.)
(0.01 expression)
OFF Normal (0 or 1 digit after the decimal
point, depending on the input range)
ON 2-decimal-place Mode
Temperature input terminals
DIP Switch
Used to set the temperature
unit and the number of
decimal places used.
Rotary Switch
Used to set the
temperature input range.
ON
1 2
Setting CP1W-TS001/TS002
CPM1A-TS001/002
CP1W-TS101/TS102
CPM1A-TS101/102
Input type Range (C) Range (F) Input type Range (C) Range (F)
0 K 200 to 1,300 300 to 2,300 Pt100 200.0 to 650.0 300.0 to
1,200.0
1 0.0 to 500.0 0.0 to 900.0 JPt100 200.0 to 650.0 300.0 to
1,200.0
2 J 100 to 850 100 to 1,500 --- Cannot be set.
3 0.0 to 400.0 0.0 to 750.0 ---
4 to F --- Cannot be set. ---
441
Temperature Sensor Units Section 7-5
Connecting Temperature
Sensors
Thermocouples
CP1W-TS001/CPM1A-TS001
Either K or J thermocouples can be connected, but both of the thermocouples
must be of the same type and the same input range must be used for each.
CP1W-TS002/CPM1A-TS002
Either K or J thermocouples can be connected, but all four of the thermocou-
ples must be of the same type and the same input range must be used for
each.
Note When using a Temperature Sensor Unit with a thermocouple input, observe
the following precautions:
Do not remove the cold junction compensator attached at the time of
delivery. If the cold junction compensator is removed, the Unit will not be
able to measure temperatures correctly.
Each of the input circuits is calibrated with the cold junction compensator
attached to the Unit. If the Unit is used with the cold junction compensator
from other Units, the Unit will not be able to measure temperatures cor-
rectly.
Do not touch the cold junction compensator. Doing so may result in incor-
rect temperature measurement.
Input 0
Input 0
+
NC
Input 1
Input 1
+
NC NC NC NC
NC NC NC
Temperature input 0
Temperature input 1
Cold junction compensator
Temperature input 0
Input 0
Input 0
+
NC
Input 1
Input 1
+
NC NC
NC
Temperature input 1
Temperature input 2
Temperature input 3
Input 2
+
Input 3
+
Input 2
Input 3
Cold junction
compensator
442
Temperature Sensor Units Section 7-5
Platinum Resistance Thermometers
CP1W-TS101/CPM1A-TS101
One or two Pt or JPt platinum resistance thermometers can be connected, but
both of the thermometers must be of the same type and the same input range
must be used for each.
CP1W-TS102/CPM1A-TS102
Up to four Pt100 or JPt100 platinum resistance thermometers can be con-
nected, but all four of the thermometers must be of the same type and the
same input range must be used for each.
Note Do not connect anything to terminals not used for inputs.
Creating a Ladder
Program
Word Allocations
Temperature Sensor Units are allocated words as Expansion Units, in order of
connection. A Temperature Sensor Unit is allocated the next input words fol-
lowing the input words of the CPU Unit or previous Expansion Unit or Expan-
sion I/O Unit. Four input words are allocated is to the 2-input CPM1A-TS001
or CPM1A-TS101 and four input words are allocated to the 4-input CPM1A-
TS002 or CPM1A-TS102. No output words are allocated.
Temperature input 0
Pt
Input 0
B
Input 0
A
Input 0
B
Input 1
B
NC NC NC NC
NC NC NC
Input 1
A
Input 1
B
NC
Temperature input 1
Pt
Pt
Input 0
B
Input 0
A
Input 0
B
Input 1
B
NC
Input 1
A
Input 1
B
NC
Pt
Input 2
B
Input 2
A
Input 2
B
Input 3
B
Input 3
A
Input 3
B
Pt Pt
Temperature
input 0
Temperature
input 1
Temperature
input 2
Temperature
input 3
443
Temperature Sensor Units Section 7-5
Example 1
Example 2
Converted Temperature Data
The temperature data will be stored in the input words allocated to the Tem-
perature Sensor Unit in 4-digit hexadecimal.
m is the last input word allocated to the CPU Unit, Expansion I/O Unit, or
Expansion Unit connected immediately before the Temperature Sensor Unit.
Negative values are stored as 2s complements.
Data for range codes that include one digit after the decimal point are
stored without the decimal point, i.e., 10 times the actual value is stored.
If the input temperature exceeds the range that can be converted, the
converted temperature data will be held at the maximum or minimum
value in the range.
If the input temperature exceeds the range by more than a specified
amount, the open-circuit detection function will detect an open-circuit and
the converted temperature data will be set to 7FFF.
The open-circuit detection function will also operate if the cold junction
compensator is faulty.
The open-circuit detection function will be automatically cleared and nor-
mal input temperature conversion will begin automatically when the input
temperature returns to the convertible range.
Input Data conversion examples
Unit: 1C K or J 850C 0352 hex
200C FF38 hex
Unit: 0.1C K, J, Pt100 or
JPt100
10 500.0C 5000 1388 hex
20.0C 200 FF38 hex
200.0C 2000 F830 hex
None
CP1W-TS001/101
CPM1A-TS001/101
Temperature Sensor Unit
CP1L
Input word
addresses
Output word
addresses
CIO 0
CIO 1
CIO 100
CIO 101
CIO 2
CIO 3
None
CP1W-TS002/102
CPM1A-TS002/102
Temperature Sensor Unit
CP1L
Input word
addresses
Output word
addresses
CIO 0
CIO 1
CIO 100
CIO 101
CIO 2
CIO 3
CIO 4
CIO 5
TS002/TS102 TS001/TS101
m+1
Converted temperature data from input 0
m+1
Converted temperature data from input 0
m+2
Converted temperature data from input 1
m+2
Converted temperature data from input 1
m+3
Converted temperature data from input 2
m+4
Converted temperature data from input 3
444
Temperature Sensor Units Section 7-5
Startup Operation
After power is turned ON, approximately 1 s is required for the first conversion
data to be stored in the input word. During that period, the data will be 7FFE.
Therefore, create a program as shown below, so that when operation begins
simultaneously with startup it will wait for valid conversion data.
Handling Unit Errors
Expansion Unit and Expansion I/O Unit errors are output to bits 0 to 6 of
word A436. The bits are allocated from A436.00 in order starting from the
Unit nearest the CPU Unit. CP1W-/CPM1A-TS002 and CP1W-/CPM1A-
TS102 Temperature Sensor Units are allocated two bits each. Use these
flags in the program when it is necessary to detect Expansion Unit/Expan-
sion I/O Unit errors.
When an error occurs, the Temperature Sensor Unit data becomes 7FFF
hex (the same as for an open-circuit detection). With an open-circuit
detection, it is not reflected in word A436.
Programming Example
1,2,3... 1. The following programming example shows how to convert the input data
from 2 temperature sensor inputs to BCD and store the result in D0 and
D1.
(P_EQ)
1000.00
2
#7FFE
P_On
CMP(020)
Always ON
Temperature input data
output word
Initialization
Completed Flag
CP1L
CP1W-TS001/101
CPM1A-TS001/101
Temperature Sensor Unit
Inputs
Outputs
CIO 0
CIO 1
CIO 100
CIO 101
CIO 2
CIO 3
None
Temperature unit setting: 0 (C)
Two-decimal-place Mode: 0 (normal)
Input range setting: 1 (K: 0.0 to 500.0C)
Input 0: CIO 2
Input 1: CIO 3
445
Temperature Sensor Units Section 7-5
2. The following programming example shows how to convert the data for
temperature input 0 to BCD and store the result in D0 and D1. 0001 is
stored in D1 when the input data is a negative value. The following system
configuration is used.
Temperature unit setting 0 (C)
Two-decimal-place Mode 0 (normal)
Input range setting 1 (Pt100: 200.0 to 650.0C)
Input 0 CIO 2
2
#7FFF
1000.00
CMP(020)
(P_EQ)
1000.00
002
#7FFE
Always ON
P_On
CMP(020)
(P_EQ)
1000.01
3
#7FFE
Always ON
P_On
CMP(020) Detects completion of input 1 initialization.
(P_EQ)
1000.02
2
#1388
CMP(020)
(P_GT)
1000.03
(P_LT)
2
D0
BCD(024)
3
#7FFF
1000.01
CMP(020)
(P_EQ)
1000.02
3
#1388
CMP(020)
(P_GT)
1000.03
(P_LT)
3
D1
BCD(024)
Detects completion of input 0 initialization.
ON when input 0 has been initialized
ON when input 1 has been initialized
Execution condition
Detects an open-circuit alarm or Unit
error by checking converted temperature
data for the error code 7FFF.
ON when an open-circuit alarm or Unit
error has been detected for input 0.
Checks to see if the temperature data
in word 2 has exceeded 500.0C (1388
hex without decimal point).
ON for an input 0 temperature error
Converts the temperature data for
input 0 to BCD and stores the result in
D0.
Execution condition
Detects an open-circuit alarm or Unit
error by checking whether the error
code 7FFF has been output
ON when an open-circuit alarm or Unit
error has been detected for input 1.
Checks to see if the temperature data
in word 3 has exceeded 500.0C
(1388 hex without decimal point).
ON for an input 1 temperature error
Converts the temperature data for
input 1 to BCD and stores the result in
D1.
CP1L
CP1W-TS001/101
CPM1A-TS001/101
Temperature Sensor Unit
Inputs
Outputs
CIO 0
CIO 1
CIO 100
CIO 101
CIO 2
CIO 3
None
446
Temperature Sensor Units Section 7-5
Programming with BCD(24) Instruction
002
#7FFF
1000.00
CMP(020)
1000.00
2
#7FFE
Always ON
P_On
CMP(020) Detects completion of input 0 initialization.
P_EQ
1000.01
2
D0
BCD(024)
2.15
#0000
2
SBB(051)
P_EQ 2.15
#0000
D1
MOV(021)
CLC(041)
D0
D0
D0
BCD(024)
#0001
D1
MOV(021)
Execution
condition
ON when input 0 has been initialized
Detects an open-circuit alarm or Unit
error by checking whether the error code
7FFF has been output
ON when an open-circuit alarm or Unit
error has been detected for input 0.
Stores positive BCD data in D00000.
Stores #0000 in D00001.
When input 0 converted value is negative
(#0000 minus two's complement = actual
value)
Stores negative BCD data in D0.
Stores #0001 in D1 to indicate a
negative number.
447
Temperature Sensor Units Section 7-5
Programming with SCL2() Instruction
Operation
Two-decimal-place
Mode
If pin 2 on the DIP switch is turned ON, values are stored to two decimal
places. In this case, temperature data is stored as 6-digit signed hexadecimal
(binary) data with 4 digits in the integer portion and 2 digits after the decimal
point. The actual data stored in memory is 100 times the actual value, i.e., the
decimal point is not indicated. Methods for handling this data are described in
this section.
Note When set to store values to two decimal places, temperature data as far as
two digits after the decimal point is converted to 6-digit binary data, but the
actual resolution is not 0.01C (F). For this reason, there may be skipping
and inaccuracies in the first digit after the decimal point (0.1). Treat any reso-
lution above that specified for the normal data format as reference data.
2
#7FFF
1000.00
CMP(020)
1000.00
2
#7FFE
Always ON
P_On
CMP(020)
P_EQ
01000
P_CY
P_EQ
#0000
D1
MOV(021)
2
D10
SCL2(486)
D0
P_CY
#0001
D1
MOV(021)
ON when initialization complete.
Execution
condition
Detects an open-circuit alarm.
ON when an open-circuit alarm has
been detected.
Parameter settings for data conversion:
When the converted value is non-
negative, stores #0000 in D00001.
When the converted value is
negative, stores #0001 in D00001.
Detects completion of input 0
initialization.
CIO 2
D1
1: Negative, 0: Non-negative
16
3
16
2
16
1
16
0
0 0 0 1/0 1/0
D0
CY
(when using SCL2 instruction)
Binary to BCD conversion
10
3
10
2
10
1
10
0
0: If data non-negative, "0000" stored in D1.
1: If data negative, "0001" stored in D1.
448
Temperature Sensor Units Section 7-5
Temperature Data Partitioning and Structure
Temperature Data (Actual Temperature x 100 Binary)
Data Conversion
Examples
Example 1
Temperature: 1,130.25C
100: 113025
Temperature Data: 01B981 (hexadecimal for 113025)
Leftmost 3 Digits and Flags
0 15 3 4 7 8 11 12 13 14
Rightmost 3 Digits and Flags
0 4 3 7 8
Not used.
Always 0
Temperature data
Temperature data
@ @ @ @ @ @
Leftmost/
Rightmost Flag
Temperature
Unit Flag
Open-circuit
Flag
0: Leftmost
1: Rightmost
0: C
1: F
0: Normal
1: Error
16
5
16
3
16
4
16
2
16
0
16
1
15 11 12 13 14
Leftmost/
Rightmost Flag
0: Leftmost
1: Rightmost
Temperature
Unit Flag
0: C
1: F
Open-circuit
Flag
0: Normal
1: Error
Not used.
Always 0
Leftmost/Rightmost Flag: Indicates whether the leftmost or rightmost 3 digits are provided.
Temperature Unit Flag: Indicates whether the temperature is in C or F.
Open-circuit Flag: Turns ON (1) when an open-circuit is detected. The temperature
data will be 7FF FFF if this flag is ON.
Leftmost 3 Digits and Flags
Flags
Bits
Data
15
0
14
0
13
0
12
0
11 to 08
0
07 to 04
1
03 to 00
B
0 0 1 B
Flags
Rightmost 3 Digits and Flags
Flags
Bits
Data
15
1
14
0
13
0
12
0
11 to 08
9
07 to 04
8
0
1
8 9 8 1
Flags
Normal
C
Leftmost
Normal
Rightmost
16
5
16
4
16
3
16
2
16
1
16
0
C
Temperature
data
Temperature
data
449
Temperature Sensor Units Section 7-5
Example 2
Temperature: 100.12C
100: 10012
Temperature Data: FFD8E4 (hexadecimal for 10012)
Example 3
Temperature: 200.12F
100: 20012
Temperature Data: FFB1D4 (hexadecimal for 20012)
Leftmost 3 Digits and Flags
Flags
Bits
Data
15
0
14
0
13
0
12
0
11 to 08
F
07 to 04
F
03 to 00
D
0 F F D
Flags
Rightmost 3 Digits and Flags
Flags
Bits
Data
15
1
14
0
13
0
12
0
11 to 08
8
07 to 04
E
03 to 00
4
8 8 E 4
Flags
Normal
C
Leftmost
Normal
C
Rightmost
16
5
16
4
16
3
16
2
16
1
16
0
Temperature
data
Temperature
data
Leftmost 3 Digits and Flags
Flags
Bits
Data
15
0
14
1
13
0
12
0
11 to 08
F
107 to 04
F
03 to 00
B
4 F F B
Flags
Rightmost 3 Digits and Flags
Flags
Bits
Data
15
1
14
1
13
0
12
0
11 to 08
1
07 to 04
D
03 to 00
4
C 1 D 4
Flags
Normal
F
Leftmost
Normal
F
Rightmost
16
5
16
4
16
3
16
2
16
1
16
0
Temperature
data
Temperature
data
450
Temperature Sensor Units Section 7-5
Example 4
Temperature: Open circuit (F)
Temperature Data: 7FFF FFFF
Note (1) Leftmost digits are stored in the lower memory addresses. Treat the data
in the lower memory address as the leftmost digits when programming.
(2) Be sure that the data is read at least once every 125 ms to allow for the
CPU Units cycle time and communications time. Correct data may not be
obtained if the read cycle is greater than 125 ms.
Programming Example The following programming example shows how to use 2-decimal-place Mode
for the following PC configuration.
In this example, 100 times the temperature data for temperature input 0 is
stored in binary form in D100 to D102.
Leftmost 3 Digits and Flags
Flags
Bits
Data
15
0
14
1
13
1
12
0
11 to 08
7
07 to 04
F
03 to 00
F
6 7 F F
Flags
Rightmost 3 Digits and Flags
Flags
Bits
Data
15
1
14
1
13
1
12
0
11 to 08
F
07 to 04
F
03 to 00
F
E F F F
Flags
Error
F
Leftmost
Error
F
Rightmost
16
5
16
4
16
3
16
2
16
1
16
0
Temperature
data
Temperature
data
CPU Unit
Inputs
CIO 000
CIO 001
Outputs
CIO 100
CIO 101
Inputs
CIO 002
CIO 003
Outputs
None
CP1W/CPM1A-TS001
Temperature Sensor Unit
Temperature unit setting:
0 (C)
Two-decimal-place Mode:
1 (2 digits after decimal point stored)
Temperature Unit Flag (0: C, 1: F)
Open-circuit Flag (0: Normal, 1: Error)
Bit
D100
D101
D102
15 14 13 12
Always 0
11 10 8 7 5 3 1
Always 0 Always 0 0 0
Temperature input 0 CIO 2
Leftmost data
Rightmost data
CIO 200
9 6 4 2 0
16
5
16
4
16
3
16
2
16
1
16
0
16
7
16
6
451
Temperature Sensor Units Section 7-5
1000.02
#0000
D102
A200.11 (First Scan Flag)
MOV(021)
002
#0020
MOVD(083)
2001
#0100
D103
2
#7FFE
CMP(020)
1000.00
P_On (Always ON Flag)
P_EQ
1000.01
SET 02001
2
2000
1000.00 2.13 (open-circuit detected)
2.15 (leftmost digits)
2.15 (leftmost digits)
2.15 (rightmost digits)
2000
#0300
2001
2000
#0011
2002
SET 2000.02
REST 2000.01
MOV(021)
(1)
Sets D103 and D102 to #0100 and
#0000, respectively.
Detects completion of input 0 initialization.
ON when input 0 has been initialized.
Open-circuit alarm output
MOV(021) (2)
Leftmost digits moved to CIO 2000.
(3)
(4)
(5)
Leftmost and rightmost digits
rearranged and moved to CIO 2002
and CIO 2001.
MOVD(083)
MOVD(083)
Data rearrangement completed.
2000.02
CLC(041)
2001
D100
BCDL(059)
2002.07 (non-negative data)
2002.07 (negative data)
D102
2001
C(412)
H0
D0103
2002
H1
H0
D100
BCDL(059)
#0008
#0300
MOVD(083)
D101
REST2000.01
(6)
If the temperature data is non-negative, the
binary data in CIO 202 and CIO 201 is
converted to BCD and placed in D101 and
D100.
(7)
If the temperature data is negative, the 2's
complement data in CIO 202 and CIO 201 is
converted to binary data representing the
absolute value of the temperature input and
placed in H1 and H0.
C(412)
(8)
The binary data in H1 and H0 is
converted to BCD and placed in D101
and D100.
(9)
"1" is written to the bit in D101 indicating
negative data.
452
CompoBus/S I/O Link Units Section 7-6
Description of Operation
7-6 CompoBus/S I/O Link Units
The CP1L can function as a slave to a CompoBus/S Master Unit (or SRM1
CompoBus/S Master Control Unit) when a CP1W-SRT21/CPM1A-SRT21
CompoBus/S I/O Link Unit is connected. The CompoBus/S I/O Link Unit
establishes an I/O link of 8 inputs and 8 outputs between the Master Unit and
the PLC. Up to three CompoBus/S I/O Link Units, including other Expansion I/
O Units, can be connected to a CP1L CPU Unit.
From the standpoint of the CP1L CPU Unit, the 8 input bits and 8 output bits
allocated to the CompoBus/S I/O Link Unit are identical to input and output
bits allocated to Expansion I/O Units even though the CompoBus/S I/O Link
Unit does not control actual inputs and outputs. The input and output bits allo-
cated to the CompoBus/S I/O Link Unit are one side of an I/O link between the
slave CPU Unit and the CPU Unit to which the Master Unit is connected.
CIO 2000
CIO 2002
CIO 2: Leftmost 3 digits of temperature data
0 16
5
16
4
16
3
0 0 16
5
16
4
CIO 2001 16
4
16
3
16
1
16
0
0 16
5
16
4
16
3
CIO 2: Rightmost 3 digits of temperature data
1 16
2
16
1
16
1
(2)
(1)
(9) If temperature data is negative, "8" is written here.
(3)
D101 0/8 10
6
10
5
10
4
D103 0 1 0 0
#0100
CIO 2002
R
D
B
+
S
D
A
S
D
B
+
F
G
R
D
A
R
D
B
+
S
D
A
S
D
B
+
F
G
R
D
A
R
D
B
+
S
D
A
S
D
B
+
F
G
CP1L CPU Unit (Master)
DIP switch
Pin No. 1: ON
(With termination resistance.)
Pin No. 2: OFF (4-wire type)
Pin No. 3: OFF (4-wire type)
Pin No. 4: OFF
Pin No. 5: OFF (No RS control for RD.)
Pin No. 6: OFF (No RS control for SD.)
RS-422A/485 interface
CP1L CPU Unit (Slave No. 0)
DIP switch
Pin No. 1: OFF
(No termination resistance.)
Pin No. 2: OFF (4-wire type)
Pin No. 3: OFF (4-wire type)
Pin No. 4: OFF
Pin No. 5: OFF (No RS control for RD.)
Pin No. 6: ON (With RS control for SD.)
RS-422A/485 interface
CJ1M CPU Unit (Slave No. 1)
DIP switch
Pin No. 1: ON
(With termination resistance.)
Pin No. 2: OFF (4-wire type)
Pin No. 3: OFF (4-wire type)
Pin No. 4: OFF
Pin No. 5: OFF (No RS control for RD.)
Pin No. 6: ON (With RS control for SD.)
RS-422A/485 interface
S
i
g
n
a
l
n
a
m
e
S
i
g
n
a
l
n
a
m
e
S
i
g
n
a
l
n
a
m
e
Shield
Pin
No.
Pin
No.
Pin
No.
CP1W-CIF01
RS-232C Option Board
CP1W-CIF11
RS-422A/485 Option Board CJ1W-CIF11
1 2 3 4 5 1 2 3 4 5 1 2 3 4 5
R
D
A
R
D
B
+
S
D
A
S
D
B
+
F
G
R
D
A
R
D
B
+
S
D
A
S
D
B
+
F
G
R
D
A
R
D
B
+
S
D
A
S
D
B
+
F
G
CP1L CPU Unit (Master)
DIP switch
Pin No. 1: ON
(With termination resistance.)
Pin No. 2: ON (2-wire type)
Pin No. 3: ON (2-wire type)
Pin No. 4: OFF
Pin No. 5: OFF (No RS control for RD.)
Pin No. 6: ON (With RS control for SD.)
CP1L CPU Unit (Slave No. 0)
DIP switch
Pin No. 1: OFF
(No termination resistance.)
Pin No. 2: ON (2-wire type)
Pin No. 3: ON (2-wire type)
Pin No. 4: OFF
Pin No. 5: OFF (No RS control for RD.)
Pin No. 6: ON (With RS control for SD.)
CJ1M CPU Unit (Slave No. 1)
CJ1W-CIF11
DIP switch
Pin No. 1: ON
(With termination resistance.)
Pin No. 2: ON (2-wire type)
Pin No. 3: ON (2-wire type)
Pin No. 4: OFF
Pin No. 5: OFF (No RS control for RD.)
Pin No. 6: ON (With RS control for SD.)
S
i
g
n
a
l
n
a
m
e
S
i
g
n
a
l
n
a
m
e
S
i
g
n
a
l
n
a
m
e
Shield
RS-422A/485 interface RS-422A/485 interface RS-422A/485 interface
Pin
No.
Pin
No.
Pin
No.
CP1W-CIF01
RS-232C Option Board
CP1W-CIF11
RS-422A/485 Option Board
RS-422A/485 port
Pin Signal Pin Signal
RS-232C port
598
Connections to Serial Communications Option Boards Appendix F
RS-232C and RS-422A/485 Wiring
Recommended RS-232C Wiring Examples
It is recommended that RS-232C cables be connected as described below especially when the Option Board is
used in an environment where it is likely to be subject to electrical noise.
1. Always use shielded twisted-pair cables as communications cables.
2. Combine signal wires and SG (signal ground) wires in a twisted-pair cable. At the same time, bundle the SG
wires to the connectors on Option Board and the remote device.
3. Connect the shield of the communications cable to the Hood (FG) terminal of the RS-232C connector on
the Option Board. At the same time, ground the ground (GR) terminal of the CPU Unit to 100 or less.
4. A connection example is shown below.
Example: Twisted-pair Cable Connecting SD-SG, RD-SG, RTS-SG, and CTS-SG Terminals in Toolbus Mode
Note The Hood (FG) is internally connected to the ground terminal (GR) on the CPU Unit. Therefore, FG is
grounded by grounding the ground terminal (GR) on the power supply terminal block. Although there is
conductivity between the Hood (FG) and pin 1 (FG), connect the Hood (FG) to the shield because the
Hood (FG) has smaller contact resistance with the shield than pin 1 (FG), and thus provides better noise
resistance.
Model Manufacturer
UL2464 AWG28x5P IFS-RVV-SB (UL product)
AWG28x5P IFVV-SB (non-UL product)
Fujikura Ltd.
UL2464-SB (MA) 5Px28AWG (7/0.127) (UL product) CO-MA-VV-SB
5Px28AWG (7/0.127) (non-UL product)
Hitachi Cable, Ltd.
RS-232C
Option Board Remote device
Actual Wiring Example
SG signal wires
Bundle the SG wires.
Aluminum foil
XM2S-0911-E
Pin Signal
Hood
Shield
Signal
RS-232C Option Board
Ground to
100 or less.
599
Connections to Serial Communications Option Boards Appendix F
Recommended RS-422A/485 Wiring Examples
Use the following wiring methods for RS-422A/485 to maintain transmission quality.
1. Always use shielded twisted-pair cables as communications cables.
2. Connect the shield of the communications cable to the FG terminal on the RS-422A/485 Option Board. At
the same time, ground the ground (GR) terminal of the CPU Unit to 100 or less.
Note Always ground the shield only at the RS-422A/485 Option Board end. Grounding both ends of the shield
may damage the device due to the potential difference between the ground terminals.
Connection examples are shown below.
2-Wire Connections
4-Wire Connections
Using a B500-AL001-E Link Adapter
Model Manufacturer
CO-HC-ESV-3Px7/0.2 Hirakawa Hewtech Corp.
CP1H CPU Unit
Option Board
Remote device
Shield
Pin Signal Signal
A ()
B (+)
CP1H CPU Unit
Option Board Remote device
Shield
Pin Signal Signal
CP1H CPU Unit
Option Board Remote device
Signal Pin
RS-422
interface
Remote device
B500-AL001-E
Signal Signal Pin Signal Pin
Pin
Signal
Signal
RS-422
RS-422
RS-422
600
Connections to Serial Communications Option Boards Appendix F
With NT-AL001-E RS-232C/RS-422 Link Adapter
Note (1) The following cables are available for this connection.
It is recommended that one of these cables be used to connect the RS-232C port on the Option Board to
the NT-AL001-E RS-232C/RS-422 Link Adapter. The recommended wiring for these cables is shown
below.
Wiring for the Recommended Cables (XW2Z-070T-1 and XW2Z-200T-1, 10-conductor Cables)
(2) The XW2Z-070T-1 and XW2Z-200T-1 Connecting Cables for the NT-AL001-E Link Adapter uses
special wiring for the DTS and RTS signals. Do not use these signals with other devices; they may
be damaged.
(3) The Hood (FG) is internally connected to the ground terminal (GR) on the CPU Unit. Therefore, FG
is grounded by grounding the ground terminal (GR) on the power supply terminal block.
RS-422
FG
RS-232C
CP1H CPU Unit
Option Board
Pin
Remote device
Remote device NT-AL001-E
Signal
Pin Signal Signal Pin Signal
Signal
Shield
(See note.)
Hood Hood
Length Model
70 cm XW2Z-070T-1
2 m XW2Z-200T-1
Pin Signal
Shield
Hood
Signal Pin
Hood
SYSMAC PLC
NT-AL001-E
(internal)
Arrows indicate
signal directions
Loopback
Loopback
Not used.
601
Connections to Serial Communications Option Boards Appendix F
Wiring Connectors
Use the following steps to wire connectors.
See the following diagrams for the length of the cable portion to be cut in each step.
Shield Connected to Hood (FG)
1. Cut the cable to the required length.
2. Remove the specified length of the sheath from the cable using a knife. Be careful not to scratch the braided
shield.
3. Trim off the braided shield using scissors so that the remaining shield length is 10 mm.
4. Remove the insulation from each conductor using a stripper so that the exposed conductor length is 5 mm.
5. Fold back the braided shield.
6. Wrap aluminum foil tape around the folded shield.
Shield Not Connected to Hood (FG)
1. Cut the cable to the required length.
2. Remove the specified length of the sheath from the cable using a knife. Be careful not to scratch the braided
shield.
3. Trim off all the braided shield using scissors.
4. Remove the insulation from each conductor using a stripper so that the exposed conductor length is 5 mm.
25 mm (RS-422A)
40 mm (RS-232C)
10 mm
5 mm
Aluminum foil tape
25 mm (RS-422A)
40 mm (RS-232C)
5 mm
602
Connections to Serial Communications Option Boards Appendix F
5. Wrap adhesive tape around the conductor from which the braided shield was removed.
Soldering
1. Thread a heat-shrinking tube through each conductor.
2. Temporarily solder each conductor to the corresponding connector terminals.
3. Completely solder each conductor.
4. Return the heat-shrinking tube to the soldered portion, then heat the tube to shrink it in place.
Assembling Connector Hood
Assemble the connector hood as shown below.
Adhesive tape
Soldering iron
Heat-shrinking tube
Inside diameter:
1.5 mm, l = 10
1 mm
Heat-shrinking tube
End connected to FG
Aluminum foil tape
Grounding plate
End not connected to FG
603
Connections to Serial Communications Option Boards Appendix F
Connecting to Unit
604
Connections to Serial Communications Option Boards Appendix F
605
Appendix G
PLC Setup
Startup Settings
Startup Hold Settings
Startup Data Read Setting
Mode: CPU Unit Operating Mode
Note A Programming Console cannot be connected to the CP1L. If the default setting, Use programming
console, is set, the CPU Unit will start in RUN mode.
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Force Status Hold Bit Not held. Not held. When power is turned
ON
80 14 0
Held. 1
2 IOM Hold Bit Not held. Not held. When power is turned
ON
80 15 0
Held. 1
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Read DM from flash
memory
Do not read. Do not read. When power is turned
ON
82 15 0
Read. 1
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Use programming con-
sole (RUN mode)
Use program-
ming console
(RUN mode)
(See note.)
Use programming con-
sole: RUN mode
When power is turned
ON
81 00 to
15
0000 hex
Program: PROGRAM
mode
8000 hex
Monitor: MONITOR
mode
8001 hex
Run: RUN mode 8002 hex
606
PLC Setup Appendix G
Settings: CPU Unit Settings
Execute Process Settings
Comms Instructions Settings in FB:
Settings for Communications Instructions in Function Blocks
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Do not detect Low Bat-
tery (run without battery)
Detect. Detect Every cycle 128 15 0
Do not detect. 1
2 Detect Interrupt Task
Error
Detect. Detect Every cycle 128 14 0
Do not detect. 1
3 Stop CPU on Instruction
Error
Do not stop. Do not stop. At start of operation 197 15 0
Stop 1
4 Don't resister FAL to
error log
Register. Register. Every cycle 129 15 0
Do not register. 1
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Retry Counts:
Number of retries
0 0 to 15 At start of operation 200 00 to
03
0 hex
:
F hex
2 Response Timeout
(default 2s), Comms
Instructions in FB
2 s 2 s At start of operation 201 00 to
15
0000 hex
1: 1 0.1 s 0001 hex
: :
65535: 65,535 0.1 s FFFF hex
3 Response Timeout
(default 2s), DeviceNet
Comms Instruction in FB
2 s 2 s At start of operation 202 00 to
15
0000 hex
1: 1 0.1 s 0001 hex
: :
65535: 65,535 0.1 s FFFF hex
607
PLC Setup Appendix G
Timings: Time and Interrupt Settings
Cycle Time Settings
Interrupt Setting
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Watch Cycle Time
(default 1000 ms)
Use default. Use default.
(Default: 1 s)
At start of operation 209 15 0
Use user setting. 1
1-1 Watch Cycle
Time (default
1000 ms)
1,000 ms 1: 1 10 ms At start of operation 209 00 to
14
001 hex
: :
40,000:
40,000 10 ms
FA0 hex
2 Cycle Time
(No Setting)
No minimum
cycle time
No minimum cycle time At start of operation 208 00 to
15
0000 hex
1 ms 0001 hex
: :
32,000 ms 7D00 hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Scheduled Interrupt
Interval
10 ms 10 ms At start of operation 195 00 to
03
0 hex
1 ms 1 hex
0.1 ms 2 hex
608
PLC Setup Appendix G
Input Constant Settings
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 0CH: CIO 0 8 ms
Default (8ms)
No filter (0 ms) When power is turned
ON
10 00 to 07 10 hex
0.5 ms 11 hex
1 ms 12 hex
2 ms 13 hex
4 ms 14 hex
8 ms 15 hex
16 ms 16 hex
32 ms 17 hex
2 1 CH: CIO 1 Same as
above.
Same as above. Same as above. 10 08 to 15 Same as
above.
3 2 CH: CIO 2 11 00 to 07
4 3 CH: CIO 3 11 08 to 15
5 4 CH: CIO 4 12 00 to 07
6 5 CH: CIO 5 12 08 to 15
7 6 CH: CIO 6 13 00 to 07
8 7 CH: CIO 7 13 08 to 15
9 8 CH: CIO 8 14 00 to 07
10 9 CH: CIO 9 14 08 to 15
11 10 CH: CIO 10 15 00 to 07
12 11 CH: CIO 11 15 08 to 15
13 12 CH: CIO 12 16 00 to 07
14 13 CH: CIO 13 16 08 to 15
15 14 CH: CIO 14 17 00 to 07
16 15 CH: CIO 15 17 08 to 15
17 16 CH: CIO 16 18 00 to 07
18 17 CH: CIO 17 18 08 to 15
609
PLC Setup Appendix G
Serial Port 1 Settings
Serial Communications Settings
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Communications Settings Standard
(9600; 1,7,2,E)
Standard (9600; 1,7,2,E)
(The standard settings
are as follows: 9,600
baud, 1 start bit, 7-bit
data, even parity, and 2
stop bits.)
Every cycle 144
(CP1L M-
type CPU
Unit)
15 0
160
(CP1L L-
type CPU
Unit)
Custom 1
2 Mode Host Link Host Link Every cycle 144
(CP1L M-
type CPU
Unit)
08 to
11
0 hex
5 hex
NT Link (1:N) 2 hex
RS-232C 160
(CP1L L-
type CPU
Unit)
3 hex
ToolBus (peripheral bus) 4 hex
Serial Gateway 9 hex
PC Link (Slave) 7 hex
PC Link (Master) 8 hex
2-1 Host Link
2-1-1 Baud 9,600 bps 300 bps Every cycle 145
(CP1L M-
type CPU
Unit)
00 to
07
01 hex
600 bps 02 hex
1,200 bps 03 hex
2,400 bps 161
(CP1L L-
type CPU
Unit)
04 hex
4,800 bps 05 hex
9,600 bps 00 or
06 hex
19,200 bps 07 hex
38,400 bps 08 hex
57,600 bps 09 hex
115,200 bps 0A hex
2-1-2 Format
(data
length,
stop bits,
parity)
7,2,E: 7-bit
data, 2 stop
bits, even parity
7,2,E: 7-bit data, 2 stop
bits, even parity
Every cycle 144
(CP1L M-
type CPU
Unit)
00 to
03
0 hex
7,2,O: 7-bit data, 2 stop
bits, odd parity
1 hex
7,2,N: 7-bit data, 2 stop
bits, no parity
2 hex
7,1,E: 7-bit data, 2 stop
bits, even parity
160
(CP1L L-
type CPU
Unit)
4 hex
7,1,O: 7-bit data, 1 stop
bit, odd parity
5 hex
7,1,N: 7-bit data, 1 stop
bit, no parity
6 hex
8,2,E: 8-bit data, 2 stop
bits, even parity
8 hex
8,2,O: 8-bit data, 2 stop
bits, odd parity
9 hex
8,2,N: 8-bit data, 2 stop
bits, no parity
A hex
8,1,E: 8-bit data, 1 stop
bit, even parity
C hex
8,1,O: 8-bit data, 1 stop
bit, odd parity
D hex
8,1,N: 8-bit data, 1 stop
bit, no parity
E hex
610
PLC Setup Appendix G
2 2-1 2-1-3 Unit Num-
ber
0 0 Every cycle 147
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
: :
31 161
(CP1L L-
type CPU
Unit)
1F hex
2-2 NT Link (1:N): 1:N NT Links
2-2-1 Baud 9,600
(disabled)
38,400 (standard) Every cycle 145
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
115,200 (high speed) 0A hex
161
(CP1L L-
type CPU
Unit)
2-2-2 NT/PC
Link Max:
Highest
unit num-
ber
0 0 Every cycle 150
(CP1L M-
type CPU
Unit)
00 to
03
0 hex
: :
7 166
(CP1L L-
type CPU
Unit)
7 hex
2-3 RS-232C
2-3-1 Baud 9600 bps 300 bps Every cycle 145
(CP1L M-
type CPU
Unit)
00 to
07
01 hex
600 bps 02 hex
1,200 bps 03 hex
2,400 bps 161
(CP1L L-
type CPU
Unit)
04 hex
4,800 bps 05 hex
9,600 bps 00 or
06 hex
19,200 bps 07 hex
38,400 bps 08 hex
57,600 bps 09 hex
115,200 bps 0A hex
2-3-2 Format
(data
length,
stop bits,
parity)
7,2,E: 7-bit
data, 2 stop
bits, even parity
7,2,E: 7-bit data, 2 stop
bits, even parity
Every cycle 144
(CP1L M-
type CPU
Unit)
00 to
03
0 hex
7,2,O: 7-bit data, 2 stop
bits, odd parity
1 hex
7,2,N: 7-bit data, 2 stop
bits, no parity
2 hex
7,1,E: 7-bit data, 2 stop
bits, even parity
160
(CP1L L-
type CPU
Unit)
4 hex
7,1,O: 7-bit data, 1 stop
bit, odd parity
5 hex
7,1,N: 7-bit data, 1 stop
bit, no parity
6 hex
8,2,E: 8-bit data, 2 stop
bits, even parity
8 hex
8,2,O: 8-bit data, 2 stop
bits, odd parity
9 hex
8,2,N: 8-bit data, 2 stop
bits, no parity
A hex
8,1,E: 8-bit data, 1 stop
bit, even parity
C hex
8,1,O: 8-bit data, 1 stop
bit, odd parity
D hex
8,1,N: 8-bit data, 1 stop
bit, no parity
E hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
611
PLC Setup Appendix G
2 2-3 2-3-3 Start Code Disable. Disable. Every cycle 149
(CP1L M-
type CPU
Unit)
12 0
Set. 165
(CP1L L-
type CPU
Unit)
1
2-3-4 Start Code 00 hex0x0000 0x0000 Every cycle 148
(CP1L M-
type CPU
Unit)
08 to
15
00 hex
: :
0x00FF 164
(CP1L L-
type CPU
Unit)
FF hex
2-3-5 End Code Received
Bytes: Receive
specified num-
ber of bytes.
Received Bytes: Receive
specified number of
bytes.
Every cycle 149
(CP1L M-
type CPU
Unit)
08 and
09
00
CR,LF 10
Set End Code 165
(CP1L L-
type CPU
Unit)
01
2-3-6 Received
Bytes
256 bytes 256 bytes Every cycle 149
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
1 byte 01 hex
: :
255 bytes 165
(CP1L L-
type CPU
Unit)
FF hex
2-3-7 Set End
Code
0x0000 1 byte Every cycle 148
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
: :
255 bytes 164
(CP1L L-
type CPU
Unit)
FF hex
2-3-8 Delay 0 ms 0: 0 10 ms Every cycle 146
(CP1L M-
type CPU
Unit)
00 to
15
0000 hex
: :
9999: 9999 10 ms 162
(CP1L L-
type CPU
Unit)
270F hex
2-4 ToolBus (peripheral bus)
2-4-1 Baud 9,600 bps 9,600 bps Every cycle 145
(CP1L M-
type CPU
Unit)
00 to
07
00 or
06 hex
19,200 bps 07 hex
38,400 bps 161
(CP1L L-
type CPU
Unit)
08 hex
57,600 bps 09 hex
115,200 bps 0A hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
612
PLC Setup Appendix G
2 2-5 Serial Gateway
2-5-1 Baud 9,600 bps 300 bps Every cycle 145
(CP1L M-
type CPU
Unit)
00 to
07
01 hex
600 bps 02 hex
1,200 bps 03 hex
2,400 bps 161
(CP1L L-
type CPU
Unit)
04 hex
4,800 bps 05 hex
9,600 bps 00 or
06 hex
19,200 bps 07 hex
38,400 bps 08 hex
57,600 bps 09 hex
115,200 bps 0A hex
2-5-2 Format
(data
length,
stop bits,
parity)
7,2,E: 7-bit
data, 2 stop
bits, even parity
7,2,E: 7-bit data, 2 stop
bits, even parity
Every cycle 144
(CP1L M-
type CPU
Unit)
00 to
03
0 hex
7,2,O: 7-bit data, 2 stop
bits, odd parity
1 hex
7,2,N: 7-bit data, 2 stop
bits, no parity
2 hex
7,1,E: 7-bit data, 2 stop
bits, even parity
160
(CP1L L-
type CPU
Unit)
4 hex
7,1,O: 7-bit data, 1 stop
bit, odd parity
5 hex
7,1,N: 7-bit data, 1 stop
bit, no parity
6 hex
8,2,E: 8-bit data, 2 stop
bits, even parity
8 hex
8,2,O: 8-bit data, 2 stop
bits, odd parity
9 hex
8,2,N: 8-bit data, 2 stop
bits, no parity
A hex
8,1,E: 8-bit data, 1 stop
bit, even parity
C hex
8,1,O: 8-bit data, 1 stop
bit, odd parity
D hex
8,1,N: 8-bit data, 1 stop
bit, no parity
E hex
2-5-3 Response
Timeout
50:
50 100 ms =
5 s
50: 50 100 ms = 5 s Every cycle 151
(CP1L M-
type CPU
Unit)
08 to
15
00 hex
1: 1 100 ms 01 hex
: :
255: 255 100 ms 167
(CP1L L-
type CPU
Unit)
FF hex
2-6 PC Link (Slave)
2-6-1 Baud 9,600 bps
(disabled)
38,400 (standard) Every cycle 145
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
115,200 (high speed) 161
(CP1L L-
type CPU
Unit)
0A hex
2-6-2 PC Link
Unit No.
0 0 Every cycle 151
(CP1L M-
type CPU
Unit)
00 to
03
0 hex
: :
7 167
(CP1L L-
type CPU
Unit)
7 hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
613
PLC Setup Appendix G
2 2-7 PC Link (Master)
2-7-1 Baud 9,600 bps
(disabled)
38,400 (standard) Every cycle 145
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
115,200 (high speed) 161
(CP1L L-
type CPU
Unit)
0A hex
2-7-2 Link
Words
10 (default) 1
:
10 (default)
Every cycle 150
(CP1L M-
type CPU
Unit)
04 to
07
1 hex
:
0 or A hex
166
(CP1L L-
type CPU
Unit)
2-7-3 PC Link
Mode
ALL ALL Every cycle 150
(CP1L M-
type CPU
Unit)
15 0
Masters 166
(CP1L L-
type CPU
Unit)
1
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
614
PLC Setup Appendix G
Serial Port 2 Settings
Serial Communications Settings
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Communications Settings Standard
(9600 ; 1,7,2,E)
Standard (9600; 1,7,2,E)
(The standard settings
are as follows: 9,600
baud, 1 start bit, 7-bit
data, even parity, and 2
stop bits.)
Every cycle 160
(CP1L M-
type CPU
Unit)
15 0
Custom 1
2 Mode Host Link Host Link Every cycle 160
(CP1L M-
type CPU
Unit)
08 to
11
0 hex
5 hex
NT Link (1:N): 1:N NT
Links
2 hex
RS-232C 3 hex
ToolBus (peripheral bus) 4 hex
Serial Gateway 9 hex
PC Link (Slave) 7 hex
PC Link (Master) 8 hex
2-1 Host Link
2-1-1 Baud 9,600 bps 300 bps Every cycle 161
(CP1L M-
type CPU
Unit)
00 to
07
01 hex
600 bps 02 hex
1,200 bps 03 hex
2,400 bps 04 hex
4,800 bps 05 hex
9,600 bps 00 or
06 hex
19,200 bps 07 hex
38,400 bps 08 hex
57,600 bps 09 hex
115,200 bps 0A hex
2-1-2 Format
(data
length,
stop bits,
parity)
7,2,E: 7-bit
data, 2 stop
bits, even parity
7,2,E: 7-bit data, 2 stop
bits, even parity
Every cycle 160
(CP1L M-
type CPU
Unit)
00 to
03
0 hex
7,2,O: 7-bit data, 2 stop
bits, odd parity
1 hex
7,2,N: 7-bit data, 2 stop
bits, no parity
2 hex
7,1,E: 7-bit data, 2 stop
bits, even parity
4 hex
7,1,O: 7-bit data, 1 stop
bit, odd parity
5 hex
7,1,N: 7-bit data, 1 stop
bit, no parity
6 hex
8,2,E: 8-bit data, 2 stop
bits, even parity
8 hex
8,2,O: 8-bit data, 2 stop
bits, odd parity
9 hex
8,2,N: 8-bit data, 2 stop
bits, no parity
A hex
8,1,E: 8-bit data, 1 stop
bit, even parity
C hex
8,1,O: 8-bit data, 1 stop
bit, odd parity
D hex
8,1,N: 8-bit data, 1 stop
bit, no parity
E hex
2-1-3 Unit Num-
ber
0 0 Every cycle 161
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
: :
31 1F hex
615
PLC Setup Appendix G
2 2-2 NT Link (1:N)
2-2-1 Baud 9,600
(disabled)
38,400 (standard) Every cycle 161
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
115,200 (high speed) 0A hex
2-2-2 NT/PC
Link Max:
Highest
unit num-
ber
0 0 Every cycle 166
(CP1L M-
type CPU
Unit)
00 to
03
0 hex
: :
7 7 hex
2-3 RS-232C
2-3-1 Baud 9600 bps 300 bps Every cycle 161
(CP1L M-
type CPU
Unit)
00 to
07
01 hex
600 bps 02 hex
1,200 bps 03 hex
2,400 bps 04 hex
4,800 bps 05 hex
9,600 bps 00 or
06 hex
19,200 bps 07 hex
38,400 bps 08 hex
57,600 bps 09 hex
115,200 bps 0A hex
2-3-2 Format
(data
length,
stop bits,
parity)
7,2,E: 7-bit
data, 2 stop
bits, even parity
7,2,E: 7-bit data, 2 stop
bits, even parity
Every cycle 160
(CP1L M-
type CPU
Unit)
00 to
03
0 hex
7,2,O: 7-bit data, 2 stop
bits, odd parity
1 hex
7,2,N: 7-bit data, 2 stop
bits, no parity
2 hex
7,1,E: 7-bit data, 2 stop
bits, even parity
4 hex
7,1,O: 7-bit data, 1 stop
bit, odd parity
5 hex
7,1,N: 7-bit data, 1 stop
bit, no parity
6 hex
8,2,E: 8-bit data, 2 stop
bits, even parity
8 hex
8,2,O: 8-bit data, 2 stop
bits, odd parity
9 hex
8,2,N: 8-bit data, 2 stop
bits, no parity
A hex
8,1,E: 8-bit data, 1 stop
bit, even parity
C hex
8,1,O: 8-bit data, 1 stop
bit, odd parity
D hex
8,1,N: 8-bit data, 1 stop
bit, no parity
E hex
2-3-3 Start Code Disable. Disable. Every cycle 165
(CP1L M-
type CPU
Unit)
12 0
Set. 1
2-3-4 Start Code 00 hex0x0000 0x0000 Every cycle 164
(CP1L M-
type CPU
Unit)
08 to
15
00 hex
: :
0x00FF FF hex
2-3-5 End Code Received
Bytes: Receive
specified num-
ber of bytes.
Received Bytes: Receive
specified number of
bytes.
Every cycle 165
(CP1L M-
type CPU
Unit)
08 and
09
00
CR,LF 10
Set End Code 01
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
616
PLC Setup Appendix G
2 2-3 2-3-6 Received
Bytes
256 bytes 256 bytes Every cycle 165
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
1 byte 01 hex
: :
255 bytes FF hex
2-3-7 Set End
Code
0x0000 0x0000 Every cycle 164
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
: :
0x00FF FF hex
2-3-8 Delay 0: 0 10 ms 0: 0 10 ms Every cycle 162
(CP1L M-
type CPU
Unit)
00 to
15
0000 hex
: :
9999: 9999 10 ms 270F hex
2-4 ToolBus (peripheral bus)
2-4-1 Baud 9,600 bps 9,600 bps Every cycle 161
(CP1L M-
type CPU
Unit)
00 to
07
00 or
06 hex
19,200 bps 07 hex
38,400 bps 08 hex
57,600 bps 09 hex
115,200 bps 0A hex
2-5 Serial Gateway
2-5-1 Baud 9,600 bps 300 bps Every cycle 161
(CP1L M-
type CPU
Unit)
00 to
07
01 hex
600 bps 02 hex
1,200 bps 03 hex
2,400 bps 04 hex
4,800 bps 05 hex
9,600 bps 00 or
06 hex
19,200 bps 07 hex
38,400 bps 08 hex
57,600 bps 09 hex
115,200 bps 0A hex
2-5-2 Format
(data
length,
stop bits,
parity)
7,2,E: 7-bit
data, 2 stop
bits, even parity
7,2,E: 7-bit data, 2 stop
bits, even parity
Every cycle 160
(CP1L M-
type CPU
Unit)
00 to
03
0 hex
7,2,O: 7-bit data, 2 stop
bits, odd parity
1 hex
7,2,N: 7-bit data, 2 stop
bits, no parity
2 hex
7,1,E: 7-bit data, 2 stop
bits, even parity
4 hex
7,1,O: 7-bit data, 1 stop
bit, odd parity
5 hex
7,1,N: 7-bit data, 1 stop
bit, no parity
6 hex
8,2,E: 8-bit data, 2 stop
bits, even parity
8 hex
8,2,O: 8-bit data, 2 stop
bits, odd parity
9 hex
8,2,N: 8-bit data, 2 stop
bits, no parity
A hex
8,1,E: 8-bit data, 1 stop
bit, even parity
C hex
8,1,O: 8-bit data, 1 stop
bit, odd parity
D hex
8,1,N: 8-bit data, 1 stop
bit, no parity
E hex
2-5-3 Response
Timeout
50:
50 100 ms =
5 s
50: 50 100 ms = 5 s Every cycle 167
(CP1L M-
type CPU
Unit)
08 to
15
00 hex
1: 1 100 ms 01 hex
: :
255: 255 100 ms FF hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
617
PLC Setup Appendix G
2 2-6 PC Link (Slave)
2-6-1 Baud 9,600 bps
(disabled)
38,400 (standard) Every cycle 161
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
115,200 (high speed) 0A hex
2-6-2 PC Link
Unit No.
0 0 Every cycle 167
(CP1L M-
type CPU
Unit)
00 to
03
0 hex
: :
7 7 hex
2-7 PC Link (Master)
2-7-1 Baud 9,600 bps
(disabled)
38,400 (standard) Every cycle 161
(CP1L M-
type CPU
Unit)
00 to
07
00 hex
115,200 (high speed) 0A hex
2-7-2 Link
Words
10 (default) 1
:
10 (default)
Every cycle 166
(CP1L M-
type CPU
Unit)
04 to
07
1 hex
:
0 or A hex
2-7-3 PC Link
Mode
ALL ALL Every cycle 166
(CP1L M-
type CPU
Unit)
15 0
Masters 1
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
618
PLC Setup Appendix G
Peripheral Service Settings
Set Time to All Events: Time Setting for Services
Built-in Input Settings
High Speed Counter Settings
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Set time to all events Default Default
(4% of cycle time)
At start of operation 218 15 0
Use user setting. 1
1-1 Time allocated to
services
0: 0 0.1 ms =
0 ms
0: 0 0.1 ms = 0 ms At start of operation 218 00 to
07
00 hex
: :
255: 255 0.1 ms FF hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Use high speed counter 0 Do not use. Do not use. When power is turned
ON
50 12 to
15
0 hex
Use. 1 hex
1-1 Counting mode Linear mode Linear mode At start of operation 50 08 to
11
0 hex
Circular mode 1 hex
1-1-1 Circular
Max.
Count
0 0 At start of operation 52 and 51 00 to
15
0000
0000 hex
: :
4,294,967,295 FFFF
FFFF hex
1-2 Reset Z phase, soft-
ware reset
Z phase, software reset When power is turned
ON
50 04 to
07
0 hex
Software reset 1 hex
Z phase, software reset
(comparing)
2 hex
Software reset (compar-
ing)
3 hex
1-3 Input Setting Differential
phase input
Differential phase input When power is turned
ON
50 00 to
03
0 hex
Pulse + direction input 1 hex
Up/Down input 2 hex
Increment pulse input 3 hex
2 Use high speed counter 1 Do not use. Do not use. When power is turned
ON
53 12 to
15
0 hex
Use. 1 hex
2-1 Counting mode Linear mode Linear mode At start of operation 53 08 to
11
0 hex
Circular mode 1 hex
2-1-1 Circular
Max.
Count
0 0 At start of operation 55 and 54 00 to
15
0000
0000 hex
: :
4,294,967,295 FFFF
FFFF hex
2-2 Reset Z phase, soft-
ware reset
Z phase, software reset When power is turned
ON
53 04 to
07
0 hex
Software reset 1 hex
Z phase, software reset
(comparing)
2 hex
Software reset (compar-
ing)
3 hex
2-3 Input Setting Differential
phase input
Differential phase input When power is turned
ON
53 00 to
03
0 hex
Pulse + direction input 1 hex
Up/Down input 2 hex
Increment pulse input 3 hex
619
PLC Setup Appendix G
3 Use high speed counter 2 Do not use. Do not use. When power is turned
ON
95 12 to
15
0 hex
Use. 1 hex
3-1 Counting mode Linear mode Linear mode At start of operation 95 08 to
11
0 hex
Circular mode 1 hex
3-1-1 Circular
Max.
Count
0 0 At start of operation 97 and 96 00 to
15
0000
0000 hex
: :
4,294,967,295 FFFF
FFFF hex
3-2 Reset Z phase, soft-
ware reset
Z phase, software reset When power is turned
ON
95 04 to
07
0 hex
Software reset 1 hex
Z phase, software reset
(comparing)
2 hex
Software reset
(comparing)
3 hex
3-3 Input Setting Differential
phase input
Differential phase input When power is turned
ON
95 00 to
03
0 hex
Pulse + direction input 1 hex
Up/Down input 2 hex
Increment pulse input 3 hex
4 Use high speed counter 3 Do not use. Do not use. When power is turned
ON
98 12 to
15
0 hex
Use. 1 hex
4-1 Counting mode Linear mode Linear mode At start of operation 98 08 to
11
0 hex
Circular mode 1 hex
4-1-1 Circular
Max.
Count
0 0 At start of operation 100 and
99
00 to
15
0000
0000 hex
: :
4,294,967,295 FFFF
FFFF hex
4-2 Reset Z phase, soft-
ware reset
Z phase, software reset When power is turned
ON
98 04 to
07
0 hex
Software reset 1 hex
Z phase, software reset
(comparing)
2 hex
Software reset
(comparing)
3 hex
4-3 Input Setting Differential
phase input
Differential phase input When power is turned
ON
98 00 to
03
0 hex
Pulse + direction input 1 hex
Up/Down input 2 hex
Increment pulse input 3 hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
620
PLC Setup Appendix G
Interrupt Input Settings
Pulse Output 0 Settings
Base Settings
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 IN0
(CIO 0.00)
Normal Normal When power is turned
ON
60 00 to
03
0 hex
Interrupt 1 hex
Quick 2 hex
2 IN1
(CIO 0.01)
Normal Normal When power is turned
ON
60 04 to
07
0 hex
Interrupt 1 hex
Quick 2 hex
3 IN2
(CIO 0.02)
Normal Normal When power is turned
ON
60 08 to
11
0 hex
Interrupt 1 hex
Quick 2 hex
4 IN3
(CIO 0.03)
Normal Normal When power is turned
ON
60 12 to
15
0 hex
Interrupt 1 hex
Quick 2 hex
5 IN4
(CIO 1.00)
Normal Normal When power is turned
ON
59 00 to
03
0 hex
Interrupt 1 hex
Quick 2 hex
6 IN5
(CIO 1.01)
Normal Normal When power is turned
ON
59 04 to
07
0 hex
Interrupt 1 hex
Quick 2 hex
7 IN6
(CIO 1.02)
Normal Normal When power is turned
ON
59 08 to
11
0 hex
Interrupt 1 hex
Quick 2 hex
8 IN7
(CIO 1.03)
Normal Normal When power is turned
ON
59 12 to
15
0 hex
Interrupt 1 hex
Quick 2 hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Undefined Origin (oper-
ation for limit signal turn-
ing ON)
Hold Hold At start of operation 268 12 to
15
0 hex
Undefined 1 hex
2 Limited Input Signal
Operation
Search Only Search Only When power is turned
ON
256 04 to
07
0 hex
Always 1 hex
3 Limit Input Signal NC NC At start of operation 268 00 to
03
0 hex
NO 1 hex
4 Search/Return Initial
Speed
0 pps
(disabled)
0 pps At start of operation 259 and
258
00 to
15
0000 0001
hex
: :
100,000 pps 0001 86A0
hex
000F 4240
hex
5 Speed Curve Trapezium Trapezium When power is turned
ON
256 12 to
15
0 hex
S-shaped 1 hex
621
PLC Setup Appendix G
Define Origin Operation Settings: Origin Search Settings
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Use define origin opera-
tion
Do not use. Do not use. When power is turned
ON
256 00 to
03
0 hex
Use. 1 hex
1-1 Search Direction CW CW At start of operation 257 12 to
15
0 hex
CCW 1 hex
1-2 Detection Method Method 0 Method 0 At start of operation 257 08 to
11
0 hex
Method 1 1 hex
Method 2 2 hex
1-3 Search Operation Inverse 1 Inverse 1 At start of operation 257 04 to
07
0 hex
Inverse 2 1 hex
1-4 Operation Mode Mode 0 Mode 0 At start of operation 257 00 to
03
0 hex
Mode 1 1 hex
Mode 2 2 hex
1-5 Origin Input Sig-
nal
(X/XA CPU Units)
NC NC Unit version 1.0 and
earlier: At start of
operation
Unit version 1.1 and
later: When power is
turned ON
268 08 to
11
0 hex
NO 1 hex
Origin Input Sig-
nal
(Y CPU Units)
NC (line driver) At start of operation 2 hex
NO (line driver) 3 hex
1-6 Proximity Input
Signal
NC NC At start of operation 268 04 to
07
0 hex
NO 1 hex
1-7 Search High
Speed
0 pps
(disabled)
0 pps At start of operation 261 and
260
00 to
15
0000 0001
hex
: :
100,000 pps 0001 86A0
hex
000F 4240
hex
1-8 Search Proximity
Speed
0 pps
(disabled)
1 pps At start of operation 263 and
262
00 to
15
0000 0001
hex
: :
100,000 pps 0001 86A0
hex
000F 4240
hex
1-9 Search Compen-
sation Value
0 pps 2,147,483,648 At start of operation 265 and
264
00 to
15
8000 0000
hex
: :
0 0000 0000
hex
: :
+2,147,483,647 7FFF FFFF
hex
1-10 Search Accelera-
tion Ratio
0 (disabled) 1 (pulses/4 ms) At start of operation 266 00 to
15
0001 hex
: :
65,535 (pulses/4 ms) FFFF hex
1-11 Search Decelera-
tion Ratio
0 (disabled) 1 (pulses/4 ms) At start of operation 267 00 to
15
0001 hex
: :
65,535 (pulses/4 ms) FFFF hex
1-12 Positioning Moni-
tor Time
0 ms 0 ms At start of operation 269 00 to
15
0000 hex
: :
9,999 ms 270F hex
622
PLC Setup Appendix G
Origin Return Settings
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Speed 0 pps
(disabled)
1 pps At start of operation 271 and
270
00 to 15 0000 0001
hex
: :
100,000 pps 0001 86A0
hex
000F 4240
hex
2 Acceleration Ratio 0 (disabled) 1 (pulses/4 ms) At start of operation 272 00 to 15 0001Hex
: :
65535
(pulses/4 ms)
FFFF hex
3 Deceleration Ratio 0 (disabled) 1 (pulses/4 ms) At start of operation 273 00 to 15 0001 hex
: :
65535
(pulses/4 ms)
FFFF hex
623
PLC Setup Appendix G
Pulse Output 1 Settings
Base Settings
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Undefined Origin (oper-
ation for limit signal turn-
ing ON)
Hold Hold At start of operation 286 12 to
15
0 hex
Undefined 1 hex
2 Limited Input Signal
Operation
Search Only Search Only When power is turned
ON
274 04 to
07
0 hex
Always 1 hex
3 Limit Input Signal NC NC At start of operation 286 00 to
03
0 hex
NO 1 hex
4 Search/Return Initial
Speed
0 pps
(disabled)
0 pps At start of operation 277 and
276
00 to
15
0000 0001
hex
: :
100,000 pps 0001 86A0
hex
000F 4240
hex
5 Speed Curve Trapezium Trapezium When power is turned
ON
274 12 to
15
0 hex
S-shaped 1 hex
624
PLC Setup Appendix G
Define Origin Operation Settings: Origin Search Settings
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Use define origin opera-
tion
Do not use. Do not use. When power is turned
ON
274 00 to
03
0 hex
Use. 1 hex
1-1 Search Direction CW CW At start of operation 275 12 to
15
0 hex
CCW 1 hex
1-2 Detection Method Method 0 Method 0 At start of operation 275 08 to
11
0 hex
Method 1 1 hex
Method 2 2 hex
1-3 Search Operation Inverse 1 Inverse 1 At start of operation 275 04 to
07
0 hex
Inverse 2 1 hex
1-4 Operation Mode Mode 0 Mode 0 At start of operation 275 00 to
03
0 hex
Mode 1 1 hex
Mode 2 2 hex
1-5 Origin Input Sig-
nal
(X/XA CPU Units)
NC NC Unit version 1.0 and
earlier: At start of
operation
Unit version 1.1 and
later: When power is
turned ON
286 08 to
11
0 hex
NO 1 hex
Origin Input Sig-
nal
(Y CPU Units)
NC (line driver) At start of operation 2 hex
NO (line driver) 3 hex
1-6 Proximity Input
Signal
NC NC At start of operation 286 04 to
07
0 hex
NO 1 hex
1-7 Search High
Speed
0 pps
(disabled)
0 pps At start of operation 279 and
278
00 to
15
0000 0001
hex
: :
100,000 pps 0001 86A0
hex
000F 4240
hex
1-8 Search Proximity
Speed
0 pps
(disabled)
1 pps At start of operation 281 and
280
00 to
15
0000 0001
hex
: :
100,000 pps 0001 86A0
hex
000F 4240
hex
1-9 Search Compen-
sation Value
0 pps 2,147,483,648 At start of operation 283 and
282
00 to
15
8000 0000
hex
: :
0 0000 0000
hex
: :
+2,147,483,647 7FFF FFFF
hex
1-10 Search Accelera-
tion Ratio
0 (disabled) 1 (pulses/4 ms) At start of operation 284 00 to
15
0001 hex
: :
65,535 (pulses/4 ms) FFFF hex
1-11 Search Decelera-
tion Ratio
0 (disabled) 1 (pulses/4 ms) At start of operation 285 00 to
15
0001 hex
: :
65,535 (pulses/4 ms) FFFF hex
1-12 Positioning Moni-
tor Time
0 ms 0 ms At start of operation 287 00 to
15
0000 hex
: :
9,999 ms 270F hex
625
PLC Setup Appendix G
Origin Return Settings
Inverter Positioning 0
Basic Settings
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Speed 0 pps
(disabled)
1 pps At start of operation 289 and
288
00 to 15 0000 0001
hex
: :
100,000 pps 0001 86A0
hex
000F 4240
hex
2 Acceleration Ratio 0 (disabled) 1 (pulses/4 ms) At start of operation 290 00 to 15 0001Hex
: :
65535
(pulses/4 ms)
FFFF hex
3 Deceleration Ratio 0 (disabled) 1 (pulses/4 ms) At start of operation 291 00 to 15 0001 hex
: :
65535
(pulses/4 ms)
FFFF hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Use inverter positioning Do not use Use When power is turned
ON
416 00 to 03 0 hex
Do not use 1 hex
2 Gain 0: 10 (0.1 incre-
ments)
0: 10 (0.1 incre-
ments)
When power is turned
ON
418 00 to 15 0000 hex
1 (0.1 increments) 0001 hex
: :
65,535
(0.1 increments)
FFFF hex
3 In-position range 0: 1 0: 1 When power is turned
ON
419 00 to 15 0000 hex
1 0001 hex
: :
65,535 FFFF hex
4 Min. output value 0: 1 0: 1 When power is turned
ON
420 00 to 15 0000 hex
1 0001 hex
: :
65,535 FFFF hex
5 Max. output value 0: 2,000,000 0: 2,000,000 When power is turned
ON
421, 422 00 to 15 00000000
hex
1 00000001
hex
: :
4,294,967,295 FFFFFFFF
hex
6 Error counter overflow
detection value
0: 10,000 0: 10,000 When power is turned
ON
423 00 to 15 0000 hex
1 0001 hex
: :
32,767 7FFF hex
7 Error counter alarm
detection value
0: 10,000 0: 10,000 When power is turned
ON
424 00 to 15 0000 hex
1 0001 hex
: :
32,767 7FFF hex
626
PLC Setup Appendix G
Operation Adjustment Settings
Inverter Positioning 1
Basic Settings
8 Error counter cycle 0: 3 (4-ms incre-
ments)
0: 3 (4-ms incre-
ments)
When power is turned
ON
417 00 to 07 00 hex
1 (4-ms incre-
ments)
01 hex
: :
255 (4-ms incre-
ments)
FF hex
9 Power Supply Freq. for
One Motor Revolution
per Sec.
0 (0.1-Hz incre-
ments)
0 (0.1-Hz incre-
ments)
When power is turned
ON
436 00 to 15 0000 hex
: :
65,535 Hz (0.1-Hz
increments)
FFFF hex
10 Number of Encoder
Pulses for One Motor
Revolution
0 0 When power is turned
ON
437 00 to 15 0000 hex
: :
65,535 FFFF hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Limit output during
acceleration and con-
stant speed
Do not use Use When power is turned
ON
432 00 to 03 0 hex
Do not use 1 hex
2 Limit output during
deceleration and when
stopped
Do not use Use When power is turned
ON
432 04 to 07 0 hex
Do not use 1 hex
3 Output coefficient dur-
ing acceleration and
constant speed
0: 6 (0.01 incre-
ments)
0: 6 (0.01 incre-
ments)
When power is turned
ON
433 00 to 07 0 hex
1 (0.01 increments) 1 hex
: :
255 (0.01 incre-
ments)
FF hex
4 Output coefficient dur-
ing deceleration
0: 96 (0.01
increments)
0: 96 (0.01 incre-
ments)
When power is turned
ON
434 00 to 07 0 hex
1 (0.01 increments) 1 hex
: :
255 (0.01 incre-
ments)
FF hex
5 Output coefficient after
pulse output
0: 50 (0.01
increments)
0: 50 (0.01 incre-
ments)
When power is turned
ON
435 00 to 07 0 hex
1 (0.01 increments) 1 hex
: :
255 (0.01 incre-
ments)
FF hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Use inverter positioning Do not use Use When power is turned
ON
416 08 to 11 0 hex
Do not use 1 hex
2 Gain 0: 10 (0.1 incre-
ments)
0: 10 (0.1 incre-
ments)
When power is turned
ON
425 00 to 15 0000 hex
1 (0.1 increments) 0001 hex
: :
65,535
(0.1 increments)
FFFF hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
627
PLC Setup Appendix G
Operation Adjustment Settings
3 In-position range 0: 1 0: 1 When power is turned
ON
426 00 to 15 0000 hex
1 0001 hex
: :
65,535 FFFF hex
4 Min. output value 0: 1 0: 1 When power is turned
ON
427 00 to 15 0000 hex
1 0001 hex
: :
65,535 FFFF hex
5 Max. output value 0: 2,000,000 0: 2,000,000 When power is turned
ON
429, 428 00 to 15 00000000
hex
1 00000001
hex
: :
4,294,967,295 FFFFFFFF
hex
6 Error counter overflow
detection value
0: 10,000 0: 10,000 When power is turned
ON
430 00 to 15 0000 hex
1 0001 hex
: :
32,767 7FFF hex
7 Error counter alarm
detection value
0: 10,000 0: 10,000 When power is turned
ON
431 00 to 15 0000 hex
1 0001 hex
: :
32,767 7FFF hex
8 Error counter cycle 0: 3 (4-ms incre-
ments)
0: 3 (4-ms incre-
ments)
When power is turned
ON
417 00 to 07 00 hex
1 (4-ms incre-
ments)
01 hex
: :
255 (4-ms incre-
ments)
FF hex
9 Power Supply Freq. for
One Motor Revolution
per Sec.
0 (0.1-Hz incre-
ments)
0 (0.1-Hz incre-
ments)
When power is turned
ON
438 00 to 15 0000 hex
: :
65,535 Hz (0.1-Hz
increments)
FFFF hex
10 Number of Encoder
Pulses for One Motor
Revolution
0 0 When power is turned
ON
439 00 to 15 0000 hex
: :
65,535 FFFF hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
1 Limit output during
acceleration and con-
stant speed
Do not use Use When power is turned
ON
432 08 to 11 0 hex
Do not use 1 hex
2 Limit output during
deceleration and when
stopped
Do not use Use When power is turned
ON
432 12 to 15 0 hex
Do not use 1 hex
3 Output coefficient dur-
ing acceleration and
constant speed
0: 6 (0.01 incre-
ments)
0: 6 (0.01 incre-
ments)
When power is turned
ON
433 08 to 15 0 hex
1 (0.01 increments) 1 hex
: :
255 (0.01 incre-
ments)
FF hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
628
PLC Setup Appendix G
4 Output coefficient dur-
ing deceleration
0: 96 (0.01
increments)
0: 96 (0.01 incre-
ments)
When power is turned
ON
434 08 to 15 0 hex
1 (0.01 increments) 1 hex
: :
255 (0.01 incre-
ments)
FF hex
5 Output coefficient after
pulse output
0: 50 (0.01
increments)
0: 50 (0.01 incre-
ments)
When power is turned
ON
435 08 to 15 0 hex
1 (0.01 increments) 1 hex
: :
255 (0.01 incre-
ments)
FF hex
Name Default Settings When setting is read
by CPU Unit
Internal
address
Bits Settings
629
Index
A
absolute coordinates
selecting, 191
absolute pulse outputs, 191
Access Error Flag, 151
addresses
memory map, 577
Always OFF Flag, 152
Always ON Flag, 152
applications
precautions, xxvii
Auxiliary Area, 136
read/write section, 559, 571
read-only section, 529
B
background execution
special flags, 526
backup
precautions, xxvi
Basic I/O Units
error information, 518
battery
error flag, 518, 555
precautions, xxix
service life, 492
Battery Error Flag, xxvi, 555
bit allocations
PWM(891) outputs, 227
C
Carry Flag, 152
CIO Area, 121
clock
clock data, 519, 550
clock pulses
flags, 153
communications
Communications Port Enabled Flags, 574
flags, 523
no-protocol, 345
Communications Port Enabled Flags, 574
complete link method, 353
Condition Flag
saving and loading status, 153
Condition Flags, 151
coordinate systems (absolute or relative), 192
Counter Area, 138
countermeasures
noise, xxxi
CPU Unit
initialization, 72
cycle time
flags, 514
maximum cycle time, 80, 514, 538
present cycle time, 80, 514, 538
setting, 80
Cycle Time Too Long Flag, 518, 554
D
data areas
overview, 121
data links, 134
Data Registers, 149
data registers
sharing, 124
data tracing, 470
related flags/bits, 515
dates
program and parameters, 386
debugging, 466
flags, 515
DeviceNet
precaution, 392
differential phase mode
details, 158
DIP switch
pin 6 status, 507
direction
automatic direction selection, 194
E
EC Directives, xxx
electromagnetic fields, xxvi
EMC Directives, xxx
Equals Flag, 152
error codes, 573
pulse output stop error codes, 210
Error Flag, 151
630
Index
error log, 572
Error Log Area, 485, 516, 536, 572
errors
basic I/O errors, 526
communications error flags, 523
error codes, 573
error log, 516, 572
failure point detection, 390
FAL/FALS flags, 517
flags, 151
flash memory, 516
Input Units, 486
memory error flags, 516
Output Units, 487
PLC Setup errors, 526
programming error flags, 526
Special I/O Units, 526
troubleshooting, 473
F
failure point detection, 390
FAL Error Flag, 517
FAL errors
flag, 556
FAL/FALS Number for System Error Simulation, 517
FALS Error Flag, 517
FALS errors
flag, 517, 519, 554, 555
FALS instruction, xxv, xxix
FINS commands
list, 368
First Cycle Flag, 514, 536, 573
flash memory
data dates, 520
errors, 516
Flash Memory Error, 516
flowchart
overall CPU operation, 69
Forced Status Hold Bit, 507, 559
force-resetting bits
debugging, 466
force-setting bits
debugging, 466
frequency
frequency measurement, 174
G
Gate Bit
high-speed counters, 173
Greater Than Flag, 152
Greater Than or Equals Flag, 152
H
High-speed Counter Gate Bit, 173
high-speed counter inputs
reset methods, 161
restrictions, 171
Holding Area, 133, 135
Host Link
ports, 579
Host Link commands, 366
Host Link communications, 364
hot starting, 125
hot stopping, 125
I
I/O Hold Bit, xxix
I/O interrupts
response time, 84
I/O memory
addresses, 577
areas, 578
effects of operating mode changes, 74
I/O response time
calculating, 83
immediate refreshing
input bits and words, 71
increment mode
details, 159
index register
sharing, 148
index registers, 142
sharing, 124
indirect addressing
DM Area, 141
index registers, 142
Initial Task Execution Flag, 514
Initial Task Flag, 573
Initial Task Startup Flag, 536
initialization
Index
631
CPU Unit, 72
Input Units
troubleshooting, 486
inspection
procedures, 490
installation
location, xxvi
interrupt feeding
ladder program, 257
Interrupt Input Units
response time, 84
interrupts
processing times, 515
IOM Hold Bit, 126, 507, 559
IORF(097) refreshing
input bits and words, 71
IR/DR Operation between Tasks, 515
L
Less Than Flag, 152
Less Than or Equals Flag, 152
Limit Input Signal Type, 209
linear mode counting
details, 160
Low Voltage Directive, xxx
M
maintenance
procedures, 492
memory
memory map, 578
See also data areas
Memory Error Flag, 516, 555
momentary power interruption, 75
MONITOR mode, 73
monitoring
differential monitoring, 467
multiple progressive positioning
ladder program, 242
wiring example, 239
N
Negative Flag, 152
networks
related flags/bits, 523
noise, xxvi
reducing, xxx
no-protocol communications, 345
Not Equal Flag, 152
NT Link
ports, 579
O
online editing, 468
effect on cycle time, 82
Online Editing Flags, 536
Online Editing Wait Flag, 574
related flags/bits, 515
operating environment, xxvi
precautions, xxvi
operating modes
description, 73
effects of mode changes on counters, 139
operation
debugging, 466
trial operation, 466
Origin Compensation, 208
Origin Detection Method, 204
Origin Input Signal Type, 209
Origin Proximity Input Signal Type, 209
origin return function
details, 197
examples, 214
Origin Return Parameters, 215
origin search
executing, 209
Origin Search Acceleration Rate, 208
Origin Search Deceleration Rate, 208
Origin Search Direction
specifying, 208
origin search function
details, 197
Origin Search High Speed, 208
Origin Search Operation Setting, 204
Origin Search Parameters, 201
Origin Search Proximity Speed, 208
Origin Search/Return Initial Speed, 208
origin status
operations affecting, 193
Output, 195
632
Index
Output OFF Bit, 515, 559
Output Units
troubleshooting, 487
outputs
precautions, xxv, xxix
Overflow Flag, 152
P
Parameter Date, 386, 394, 520
parts
replacing parts, 492
peripheral port
related flags/bits, 553
PLC Setup
error information, 518
Polled Units
settings, 357
Polling Unit
setting, 357
Polling Unit link method, 353
positioning
vertically conveying PCBs, 237
Positioning Monitor Time, 209
power interruptions
information, 520, 560
momentary interruptions, 75
power OFF processing, 75
power supply, xxvi
precautions, xxix
precautions, xxiii
applications, xxvii
general, xxiv
handling precautions, 491
operating environment, xxvi
periodic inspections, 490
safety, xxiv
Program Error Flag, 554
program errors, 575
PROGRAM mode, 73
program transfer, 466
programming
error flag, 554
program error information, 517
program errors, 575
program protection, 386
protecting the program, 386
transferring the program, 466
pulse + direction mode
details, 158
pulse frequency conversion, 175
pulse input modes
details, 158
Pulse Output 0 settings
speed curve, 196
pulse output modes, 178
pulse output stop error codes, 210
pulse outputs, 176
PWM(891) outputs
bit allocations, 227
details, 227
Q
quick-response inputs
details, 338
R
radioactivity, xxvi
read/write-protection, 387
refreshing
immediate refreshing, 71
IORF(097), 71
refreshing data, 353
relative coordinates
selecting, 191
reset methods, 161
Restart Bits
peripheral port, 523
RS-232C port, 524
ring mode counting
details, 160
RS-232C port
related flags/bits, 523, 524, 551, 552
RUN mode, 73
S
safety precautions, xxiv
scheduled interrupts
response time, 85
S-curve acceleration/deceleration
output pattern, 195
restrictions, 196
Index
633
self-maintaining bits, 135
serial communications
functions, 342
Serial PLC Links, 353
allocated words, 356
PLC Setup, 357
related flags, 358, 360
simulating system errors, 517
software reset, 161
Special I/O Units
error information, 526
specifications
PWM(891) output, 227
startup
hot starting and stopping, 125
static electricity, xxvi
Step Flag, 536
stocker, 237
T
target value comparison
for interrupt tasks, 172
Task Error Flag, 545
Task Flags, 151
Task Started Flag, 514
tasks
related flags/bits, 515
See also interrupt tasks
Task Flags, 151
Timer Area, 137
TR Area, 136
tracing
See also data tracing
trial operation, 466
troubleshooting, 473
two-axis multipoint positioning
ladder program, 250
wiring example, 245
U
Underflow Flag, 152
up/down mode
details, 159
User Program Date, 386, 394, 520
V
variable duty ratio pulse outputs
details, 227
vertical conveyor, 237
W
Work Area, 134
work bits, 134
work words, 134
write-protection, 386
634
Index
635
Revision History
A manual revision code appears as a suffix to the catalog number on the front cover of the manual.
The following table outlines the changes made to the manual during each revision. Page numbers refer to the
previous version.
Revision code Date Revised content
01 December 2007 Original production
Cat. No. W471-E1-01
Revision code
636
Revision History
OMRON Corporation
Control Devices Division H.Q.
Shiokoji Horikawa, Shimogyo-ku,
Kyoto, 600-8530 Japan
Tel: (81)75-344-7109/Fax: (81)75-344-7149
Regional Headquarters
OMRON EUROPE B.V.
Wegalaan 67-69, NL-2132 JD Hoofddorp
The Netherlands
Tel: (31)2356-81-300/Fax: (31)2356-81-388
OMRON ELECTRONICS LLC
One Commerce Drive Schaumburg,
IL 60173-5302 U.S.A.
Tel: (1) 847-843-7900/Fax: (1) 847-843-7787
OMRON ASIA PACIFIC PTE. LTD.
No. 438A Alexandra Road # 05-05/08 (Lobby 2),
Alexandra Technopark, Singapore 119967
Tel: (65) 6835-3011/Fax: (65) 6835-2711
OMRON (CHINA) CO., LTD.
Room 2211, Bank of China Tower,
200 Yin Cheng Zhong Road,
Pu Dong New Area, Shanghai, 200120, China
Tel: (86) 21-5037-2222/Fax: (86) 21-5037-2200
Authorized Distributor:
Cat. No. W471-E1-01 Note: Specifications subject to change without notice
Printed in Japan
This manual is printed on 100% recycled paper.