SYSMAC CP Series
CP1L-EL20D@-@
CP1L-EM30D@-@
CP1L-EM40D@-@
CP1L-EL/EM CPU Unit
OPERATIONM ANUAL
NOTE
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in
any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior
written permission of OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because
OMRON is constantly striving to improve its high-quality products, the information contained in this manual is
subject to change without notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no responsibility for errors or omissions. Neither is any liability assumed for damages
resulting from the use of the information contained in this publication.
Trademarks
• Microsoft, Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States
and other countries.
• ODVA, CIP, CompoNet, DeviceNet, and EtherNet/IP are trademarks of ODVA.
Other company names and product names in this document are the trademarks or registered trademarks of their
respective companies.
Copyrights
Microsoft product screen shots reprinted with permission from Microsoft Corporation.
CP1L-EL20D@-@
CP1L-EM30D@-@
CP1L-EM40D@-@
CP1L-EL/EM CPU Unit
Operation Manual
Produced July 2017
iv
Notice:
OMRON products are manufactured for use according to proper procedures
by a qualified operator and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this
manual. Always heed the information provided with them. Failure to heed precautions can result in injury to people or damage to property.
!DANGERIndicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury. Additionally, there may be severe property damage.
!WARNINGIndicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury. Additionally, there may be severe property damage.
!CautionIndicates a potentially hazardou s situation which, if not avoided, may result in minor or
moderate injury, or property damage.
OMRON Product References
All OMRON products are capitalized in this manual. The word “Unit” is also
capitalized when it refers to an OMRON product, regardless of whether or not
it appears in the proper name of the product.
The abbreviation “Ch,” which appears in some displays and on some OMRON
products, often means “word” and is abbreviated “Wd” in documentation in
this sense.
The abbreviation “PLC” means Programmable Controller. “PC” is used, however, in some CX-Programmer displays to mean Programmable Controller.
Visual Aids
The following headings appear in the left column of the manual to help you
locate different types of information.
Note Indicates information of particular interest for efficient and convenient opera-
tion of the product.
1,2,3...1. Indicates lists of one sort or another, such as procedures, checklists, etc.
v
Unit Versions of CP-series CPU Units
Lot No.
CP-series CPU Unit
Unit version (Example for Unit version 1.0)
CP1L-EM40DR-D
CPU UNIT
Lot No. 01312M Ver.1.0
OMRON Corporation MADE IN CHINA
00
NC
02
04
06
08
10
00
02
04
06
08
10
01
COM
03
05
07
09
11
01
03
05
07
09
11
00 01
02
03
04
06
00
01
03
04
06
COM
02
COM
05
07
COM
COM(V+)
05
07
MAC Address:
012345678
90A
SYSMAC
CP1L
BKUP
ERR/ALM
LNK/ACT
POWER
RUN
INH
2
ANALOG INPUT
V1
+
V2
+
COM
EXP
1
Unit VersionsA “unit version” has been introduced to manage CPU Units in the CP Series
according to differences in functionality accompanying Unit upgrades.
Notation of Unit Versions
on Products
Confirming Unit Versions
with Support Software
Note CX-Programmer version 9.3 or lower cannot be used to confirm unit versions
1,2,3...1. Set the Device Type Field in the Change PLC Dialog Box to CP1L-E.
The unit version is given to the right of the lot numb er on the na mep late o f the
products for which unit versions are being managed, as shown below.
Product nameplate
CX-Programmer version 9.4 or higher can be used to confirm the unit version
of the CP1L-EL/EM CPU Unit.
for CP1L-EL/EM CPU Units.
■ Confirmation Procedure
Procedure When the Device Type and CPU Type Are Known
vi
2.Click the
Settings Dialog Box is displayed, set the CPU Type Field to EL or EM.
Settings
Button by the Device Type Field and, when the Device Type
3. Go online and select PLC - Edit - Information.
(Refer to 5-1 Connecting the CX-Programmer)
The PLC Information Dialog Box will be displayed.
vii
Use the above display to confirm the unit version of the CPU Unit.
Procedure When the Device Type and CPU Type Are Not Known
This procedure is possible only when connected directly to the CPU Unit with
a serial connection.
If you don't know the device type and CPU type that are connected directly to
the CPU Unit on a serial line, select PLC - Auto Online to go online, and then
select PLC - Edit - Information from the menus.
The PLC Information Dialog Box will be displayed and can be used to confirm
the unit version of the CPU Unit.
viii
Using the Unit Version
Labels
The following unit version labels are provided with the CPU Unit.
Ver.
Ver.
Ver.
1.0
Ver.
1.0
These Labels can be used
to manage differences
in the available
functions among the Units.
Place the appropriate label
on the front of the Unit to
show what Unit
version is actually being
used.
These labels can be attached to the front of previous CPU Units to differentiate between CPU Units of different unit versions.
Products specifically for the CS1D
Series are required to use CS1D
CPU Units.
CS-series Basic I/O Units
CS-series CPU Bus Units
CS-series Special I/O Units
CS1 CPU Units
CS1G
CS1D CPU Units
CS1D CPU Units for
Duplex-CPU System
CS1D-CPU
H
CS1D CPU Units for
Single-CPU System
CS1D-CPU S
CS1D Process CPU Units
CS1D-CPU
P
CP1H CPU Unit
CS/CJ/CP Series
CS Series
CJ1H-CP
CJ1G-C
CJ1G -CP
(Loop CPU Unit)
CJ1-H CPU Units
CJ1 CPU Unit
CJ1G-CPU
CJ1M CPU Unit
CJ1M-CP
CJ-series Basic I/O Units
CJ-series Special I/O Units
CJ-series CPU Bus Units
CJ-series Power Supply Units
CJ SeriesCP Series
CP-series Expansion Units
CP-series Expansion I/O Units
CJ-series Special I/O Units
CJ-series CPU Bus Units
CP1L CPU Unit
CP-series Expansion Units
CP-series Expansion I/O Units
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 OMRON’s advanced control technologies and vast experience in automated co ntrol.
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 following 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.
xv
Precautions provides general precautions for using the Progr ammable Controller and related devices.
Section 1 introduces the features of the CP1L-EL/EM 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-EL/EM parts and provides CP1L-EL/EM specifications.
Section 3 describes how to install and wire the CP1L-EL/EM.
Section 4 describes the structure and functions of the I/O Memory Areas and Parameter Areas.
Section 5 describes the methods for CX-Programmer connection, 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 6 gives an outline of the built-in Ethernet function, explains its specification and how to make
the settings required for operation.
Section 7 describes the CP1L-EL/EM’s interrupt and high-speed counter functions.
Section 8 describes all of the advanced functions of the CP1L-EL/EM that can be used to achieve
specific application needs.
Section 9 describes how to use CP-series Expansion Units and Expansion I/O Units.
Section 10 describes how to use Analog Input/Output Option Board.
Section 11 gives an outline of the LCD Option Board, explains how to install and remove the LCD
Option Board, and describes the functions including how to monitor and make settings for the PLC. It
also lists the errors during operation and provides probable causes and countermeasures for troubleshooting.
Section 12 provides information on hardware and software errors that occur during CP1L-EL/EM
operation.
Section 13 provides inspection and maintenance information.
Appendices provide product lists, dimensions, tables of Auxiliary Area allocations, and a memory
map.
xvi
Related Manuals
The following manuals are used for the CP1L-EL/EM CPU Units. Refer to these manuals as required.
SYSMAC CP Series
CP1L-EL/EM CPU
Unit Operation Manual (this manual)
SYSMAC CP Series
CP1H /CP1L CPU
Unit Programming
Manual
SYSMAC CP Series
CP1L CPU Unit Introduction Manual
SYSMAC CX-Programmer Operation
Manual
CX-Programmer
Operation Manual
Function Blocks/
Structured Text
CX-One Setup Manual
CX-Integrator Operation Manual
tion 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).
Provides the following information on programming
the CP Series:
•Programming methods
•Tasks
• Programming instructions
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
Provides information on how to use the CX-Programmer for all functionality except for function
blocks.
Explains how to use the CX-Programmer software's
function block and structured text functions. For
explanations of other shared CX-Programmer functions, refer to the CX-Programmer Operation Manual (W446).
Installation and overview of CX-One FA Integrated
Tool Package.
Describes CX-Integrator operating methods, e.g.,
for setting up and monitoring networks.
Provides operating procedures for creating protocol
macros (i.e., communications sequences) with the
CX-Protocol and other information on protocol macros.
The CX-Protocol is required to create protocol macros for user-specific serial communications or to
customize the standard system protocols.
Ethernet Units Operation Manual Construction of Networks
Ethernet Units Operation Manual Construction of Applications
Describes commands addressed to CS-series, CJseries, 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 communications 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 Special I/O Units and CPU Bus Units.
Provides information on operating and installing
100Base-TX Ethernet Units, including details on
basic settings and FINS communications.
Refer to the Communications Commands Refer-ence Manual (W342) for details on FINS commands
that can be sent to CS-series and CJ-series CPU
Units when using the FINS communications service.
Provides information on constructing host applications for 100Base-TX Ethernet Units, including functions for sending/receiving mail, socket service,
automatic clock adjustment, FTP server functions,
and FINS communications.
xviii
Terms and Conditions Agreement
Warranty and Limitations of Liability
WARRANTIES
• Exclusive Warranty
Omron’s exclusive warranty is that the Products will be free from defects in materials and workmanship
for a period of twelve months from the date of sale by Omron (or such other period expressed in writing by
Omron). Omron disclaims all other warranties, express or implied.
• Limitations
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, ABOUT NONINFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OF THE
PRODUCTS. BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT THE PRODUCTS
WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE.
Omron further disclaims all warranties and responsibility of any type for claims or expenses based on
infringement by the Products or otherwise of any intellectual property right.
• Buyer Remedy
Omron’s sole obligation hereunder shall be, at Omron’s election, to (i) replace (in the form originally
shipped with Buyer responsible for labor charges for removal or replacement thereof) the non-complying
Product, (ii) repair the non-complying Product, or (iii) repay or credit Buyer an amount equal to the
purchase price of the non-complying Product; provided that in no event shall Omron be responsible for
warranty, repair, indemnity or any other claims or expenses regarding the Products unless Omron’s
analysis confirms that the Products were properly handled, stored, installed and maintained and not
subject to contamination, abuse, misuse or inappropriate modification. Return of any Products by Buyer
must be approved in writing by Omron before shipment. Omron Companies shall not be liable for the
suitability or unsuitability or the results from the use of Products in combination with any electrical or
electronic components, circuits, system assemblies or any other materials or substances or
environments. Any advice, recommendations or information given orally or in writing, are not to be
construed as an amendment or addition to the above warranty.
See http://www.omron.com/global/ or contact your Omron representative for published information.
LIMITATION ON LIABILITY; ETC
OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL, INDIRECT, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS IN ANY
WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED IN CONTRACT,
WARRANTY, NEGLIGENCE OR STRICT LIABILITY.
Further, in no event shall liability of Omron Companies exceed the individual price of the Product on which
liability is asserted.
xix
Application Considerations
SUITABILITY OF USE
Omron Companies shall not be responsible for conformity with any standards, codes or regulations which
apply to the combination of the Product in the Buyer’s application or use of the Product. At Buyer’s request,
Omron will provide applicable third party certification documents identifying ratings and limitations of use
which apply to the Product. This information by itself is not sufficient for a complete determination of the
suitability of the Product in combination with the end product, machine, system, or other application or use.
Buyer shall be solely responsible for determining appropriateness of the particular Product with respect to
Buyer’s application, product or system. Buyer shall take application responsibility in all cases.
NEVER USE THE PRODUCT FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO
ADDRESS THE RISKS, AND THAT THE OMRON PRODUCT(S) IS PROPERLY RATED AND INSTALLED
FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
PROGRAMMABLE PRODUCTS
Omron Companies shall not be responsible for the user’s programming of a programmable Product, or any
consequence thereof.
xx
Disclaimers
PERFORMANCE DATA
Data presented in Omron Company websites, catalogs and other materials is provided as a guide for the
user in determining suitability and does not constitute a warranty. It may represent the result of Omron’s test
conditions, and the user must correlate it to actual application requirements. Actual performance is subject
to the Omron’s Warranty and Limitations of Liability.
CHANGE IN SPECIFICATIONS
Product specifications and accessories may be changed at any time based on improvements and other
reasons. It is our practice to change part numbers when published ratings o r features are chan ged, or when
significant construction changes are made. However, some specifications of the Product may be changed
without any notice. When in doubt, special part numbers may be assigned to fix or establish key
specifications for your application. Please consult with your Omron’s representative at any time to confirm
actual specifications of purchased Product.
ERRORS AND OMISSIONS
Information presented by Omron Companies has been checked and i s believed to be accurate; however, no
responsibility is assumed for clerical, typographical or proofreading errors or omissions.
xxi
xxii
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 Program mable Controllers.
You must read this section and understand the information contained before attempting to set up or operate a PLC system.
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.
2General Precautions
The user must operate the product according to the performance specifications 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, amusement machines, safety equipment, and other systems, machines, and equipment that may have a serious influence on lives and property if used
improperly, consult your OMRON representative.
Make sure that the ratings and pe rf or m ance 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 manual 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 applications.
3Safety 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.
xxiv
• Emergency stop circuit s, interlock circuits, limit circuits, and similar safety
measures must be provided in external control circuits.
Safety Precautions3
• The PLC will turn OFF all outputs when its self-diagnosis function detects
any error or when a severe f ailure alarm (FALS) instruction is execut ed.
Unexpected operation, however, may still occur for errors in the I/O control
section, errors in I/O memory, and errors that cannot be detected by the
self-diagnosis function. As a countermeasure for all these 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 countermeasure 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 overloaded 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 ot her 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 cau sed
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 malfunctio n.
!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 pe riphe ral devi ce. DO NOT ground
the 24 V side of the external power supply, as shown in the following diagram.
Non-insulated DC power supply
24 V
Twisted-pair
cable
FG
0 V
0 V
CPU Unit
FG
FG
0 V
Peripheral device
FG
xxv
Operating Environment Precautions4
!Caution After programming (or reprogra mming) 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-EL/EM 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 accu rate after a power interrupti on. If the co ntents o f
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.
4Operating Environment Precautions
!Caution Do not operate and keep 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 temperature.
• 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.
• Locations subject to direct rain fall.
• Locations subject to direct strong UV.
xxvi
!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 conditions at installation and remains within the specified conditions during the
life of the system.
!Caution Please fit it as foreign matter such as chips or wiring rubbish inside the unit. It
becomes a cause of damage by fire, failure and malfunction. Especially during
construction, please take measures.
Application Precautions5
5Application 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.
• When unpacking the Unit, check carefully for any external scratches or
other damages. Also, shake the Unit gently and check for any abnormal
sound.
• Install external breakers and take other safety measures against short-circuiting in external wiring. Insufficient safety measures against short-circuiting 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 tightened 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.
• Keep the wire cuttings out of the Unit when wiring.
• Always use the pow er supply voltag e specified in th e operatio n 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 dissipation. 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.
xxvii
Application Precautions5
• 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.
• 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 burning.
• 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 operation.
• Resume operation only after transferring to the new CPU Unit the contents 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 oc cur 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 firs t touch a grounded metallic object
in order to discharge any static buildup. Not doing so may result in malfunction or damage.
• Install the Unit properly as specified in the operation manual. Improper
installation of the Unit may result in malfunction.
• 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 transferred.
• When transporting or storing the product, cover the PCBs and the Units or
put there in the antistatic bag with electrically conductive materials to prevent LSls 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 connectors.
• Wire cor re ct l y accord in g to spec ifie d pr oc ed ur es.
xxviii
Application Precautions5
• 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
CJ1W-CIF11 Conversion Adapter. The external device and the CPU Unit
may be damaged.
• 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 progr am an d pa ramet er ar ea d ata in the CPU Unit is b acked 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 supply to the PLC.
• Before replacing the battery, supply power to the CPU Unit for at least 5
minutes and then complete battery rep lacement 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:
2
AWG22 to AWG18 (0.32 to 0.82 mm
• 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 subjected 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 Output 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 circuit failures, which can occur in relays, transistors, and other elements.
xxix
Conformance to EC Directives6
• 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 stop s for a fatal erro r, including tho se produced
with the FALS(007) instruction, all outputs from Output Unit will be turned
OFF and only the internal output status will be maintained.)
6Conformance to EC Directives
6-1Applicable Directives
•EMC Directives
• Low Voltage Directive
6-2Concepts
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 Directives 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.
NoteThe 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-3Conformance to EC Directives
The CP1L-EL/EM PLCs comply with EC Directives. To ensure that the
machine or device in which the CP1L-EL/EM PLC is used complies with EC
Directives, the PLC must be installed as follows:
1,2,3...1. The CP1L-EL/EM PLC must be installed within a control panel.
2. You must use reinforced insulat ion or double insu lation for the DC po wer
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-EL/EM PLCs complying with EC Directives also conform to
EN61131-2. Radiated emission characteristics (10-m regulations) may
vary depending on the configuration of the control p anel 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.
xxx
Conformance to EC Directives6
CR method
Power
supply
Inductive
load
C
R
Diode method
Power
supply
Inductive
load
6-4Relay Output Noise Reduction Methods
The CP1L-EL/EM 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 connected to the load side or other appropriate countermeasures
must be provided 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.
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 frequ ency of loa d switching for the whol e
system with the PLC included is more than 5 times per minute.
NoteRefer 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.
CircuitCurrentCharacteristicRequired element
ACDC
YesYesIf the load is a relay or solenoid, there is
a time lag between the moment the circuit 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.
NoYesThe 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 capacitance of the capacitor must
be 1 to 0.5
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 experiments, and take into consideration that
the capacitance suppresses spark discharge when the contacts are separated 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.
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.
μF per contact current of
xxxi
Conformance to EC Directives6
Varistor method
Power
supply
Inductive
load
r
CircuitCurrentCharacteristicRequired element
ACDC
YesYesThe varistor method prevents the impo-
sition of high voltage between the contacts by using the constant voltage
characteristic of the varistor. There is
time lag between the moment the circuit 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 contacts.
When switching a load with a high inrush current such as an incandescent
lamp, suppress the inrush current as shown below.
---
Countermeasure 1
OUT
R
COM
Providing a dark current of
approx. one-third of the rated
value through an incandescent
lamp
Countermeasure 2
R
OUT
COM
Providing a limiting resisto
6-5Conditions for Meeting EMC Directives when Using CP-series
Relay Expansion I/O Units
EN61131-2 immunity testing conditions when using the CP1W-40EDR,
CP1W-32ER, or CP1W-16ER with a CP1W-CN811 I/O Connecting Cable are
given below.
Recommended Ferrite Core
Ferrite Core (Data Line Filter): 0443-164151 manu factured by Nisshin Electric
Minimum impedance: 90 Ω at 25 MHz, 160 Ω at 100 MHz
30
Recommended Connection Method
xxxii
3233
1,2,3...1. Cable Connection Method
Software Licenses and Copyrights7
CH
NCNCNC
NC
NC
NC
COM
COM COM COM COM COMCOM03 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
CHCH
CHCH
EXP
CH
CH
CH
111009080706050403020100
111009080706050403020100
0706050403020100
0706050403020100
MAC Address:
01234567890A
01COM 0305070911010305070911
00NC02 04 06 08 10 00 02 04 06 08 10
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
2. Connection Method
As shown below, connect a ferrite core to each end of the CP1W-CN811
I/O Connecting Cable.
7Software Licenses and Copyrights
This product incorporates certain third party software. The license and copyright information associated with this software is shown at the following.
Copyright (c) 2001-2004 Swedish Institute of Computer Science.
All rights reserved.
Redistribution and use in so urce and binary forms, with or with out modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the docu mentation and /
or other materials provided with the distribution.
3. The name of the author may not be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR “AS IS” AND ANY
EXPRESS OR IMPLIEDWARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
xxxiii
Software Licenses and Copyrights7
xxxiv
SECTION 1
Features and System Configuration
This section introduces the features of the CP1L-EL/EM and desc ribes its co nfig uration. It also describes the Units that are
available and connection methods for the CX-Programmer and other peripheral devices.
The SYSMAC CP1L-EL/EM PLCs are the low end PLCs in the SYSMAC CP
Series of package-type Programmable Controllers. They have the same program
and I/O capacity as the CP1L PLCs, but offer a built-in Ethernet port and indepen-
dent FB capacity.
Type EM CPU UnitsEL CPU Units
Model CP1L-EM40DR-D
CP1L-EM40DT-D
CP1L-EM40DT1-D
Power supply24 V DC
Program capacity(See note 3.)10K steps5K steps
FB capacity10K steps
DM Area capacity32K words10K words
Maximum number of I/O points160 (See note 1.)150 (See note 1.)60 (See note 2.)
Normal I/O I/O points403020
Relay outputs:
Transistor outputs, sinking:
Transistor outputs, sourcing: Model numbers with “T1” before the final suffix
100 kHz for up/down pulses or pulse plus direction, 50 kHz for differential phases
CP1L-EM30DR-D
CP1L-EM30DT-D
CP1L-EM30DT1-D
Model numbers with “R” before the final suffix
Model numbers with “T” before the final suffix
CP1L-EL20DR-D
CP1L-EL20DT-D
CP1L-EL20DT1-D
Interpreting CP1L-EL/EM CPU Unit Model Numbers
2
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 I/O
Points.
(3) The function block capacity is not included in the program capacity.
Features and Main FunctionsSection 1-1
k
k
1-1-2Features
This section describes the main features of the CP1L-EL/EM.
Basic CP1L-EL/EM
Configuration
CX-One
Twisted-pair
Ethernet cable
Memory Cassette
CP1W-ME05M
Memory Cassette
Ethernet port
CP1L-EL/EM CPU Unit (Example for model with 40 I/O points)
Power supply/input terminal bloc
Ethernet port
Battery (CJ1W-BAT01)
POWER
RUN
ERR/ALM
INH
LNK/ACT
BKUP
1
MAC Address:
01234567890A
01COM03 05 07 09 11 01 03 05 07 09 11
00NC02 04 06 08 10 00 02 04 06 08 10
00 01 02 03 04 06 00 01 03 04 06
Built-in analog input
Two Option Board slots
Option Board
2
COM 02 COM 05 07COMCOM(V+)05 07
Output terminal bloc
One RS-232C port
CP1W-CIF01
RS-232C Option
Board
One RS-422A/485 port
CP1W-CIF11/CIF12
RS-422A/485 Option
Board
CP1W-DAM01
LCD Option Board
ERR
II1
II2
VI1
VI2
VO1
VO2
COM
COM
CP1W-ADB21/
DAB21V/MAB221
Analog Option
Board
NoteIn this manual, unless otherwise specified, “CP1W-CIF12” refers to the
CP1W-CIF12 and CP1W-CIF12-V1 Option Boards.
3
Features and Main FunctionsSection 1-1
MAC Address:
01234567890A
00NC 02 04 06 08 10 00 02 04 06 08 10
01COM 03 05 07 09 11 01 03 05 07 09 11
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+) 05 07
ANALOG INPUT
V1+V2
+
COM
2
MAC Address:
01234567890A
00NC 02 04 06 08 10 00 02 04 06 08 10
01COM 0305070911010305070911
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+) 05 07
ANALOG INPUT
V1+V2
+
COM
2
(1) Connecting the CX-Programmer to the PLCs online via Ethernet
CX-Programmer
FINS
IP router
Internet
Intranet
(3) Configuring an independent communications protocol
for the host application using TCP/IP (UDP/IP)
Firewall
Server Room
DNS server
SNTP server
Router
Ethernet
Office Floor
CX-Programmer
Ethernet
Independent user
application
UDP/TCP socket
Router
(Factory line)
Writing
commands
Ethernet
NS-series PT
FINS
CX-Programmer
FINS
FINS message
communications
CP1L-EL/EMCP1L-EL/EM
(2) Sending and receiving data via Ethernet
between OMRON PLCs
FINS message
communications
FINS
(1) Connecting the CX-Programmer to
PLCs online via Ethernet
(5) Auto IP
Wireless
(4) Automatically adjusting the
PLC's internal clock
periodically
FINS
Built-in Ethernet Port
for Various Ethernet
Application
With the built-in Ethernet port, it is possible to connect the CX-Programmer to
PLCs and exchange data between OMRON PLCs using Ethernet. It can also
create an original communications pro cedure using TCP/IP or UDP/IP for the
host application or communicate with PLCs from another manufacturer.
Independent FB
Capacity
4
Comparing with CP1L series PLC, CP1L-EL/EM series PLCs have an independent 10K steps large FB capacity. Function blocks can be used in programming SYSMAC CP-series PLCs.
High-speed counter inputs can be us ed by connectin g rotary encoder s 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.)
Full Complement of Highspeed Counter Functions
Note Settings in the PLC Setup determine whether each input point is to
be used as a normal input, interrupt inp ut, quick-re sponse input, or
high-speed counter.
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.
5
Features and Main FunctionsSection 1-1
Built-in outputs
(Functions assigned.)
2 pulse outputs
100 kHz
MAC Address:
01234567890A
01COM03 05 07 09 11 01 03 05 07 09 11
00NC02 04 06 08 10 00 02 04 06 08 10
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
Versatile Pulse
Control (CPU Units
with Transistor
Outputs Only)
Positioning and speed control by a pulse-input servo driver is enabled by outputting fixed duty ratio pulse output signals from the CPU Unit's built-in outputs.
• Pulse outputs for 2 axes at 100 kHz maximum are provided as standard
features. (See note.)
Full Complement of Pulse
Output Functions
Note The instruction used to control each output point determines
whether it is used as a normal output, pulse output, or PWM output.
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 ch anged by the INI instru ction), 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.
Triangular Control
If the amount of output pulses r equired for ac celeration an d 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.
6
Features and Main FunctionsSection 1-1
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 trap ezoidal acc eleration an d deceleration 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 SearchesOrigin Search and Origin Return Operations Using a Single Instruction
An accurate origin search combining all I/O signals (origin proximity input signal, origin input signal, positioning completed signal, error counter reset output, 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 InterruptsIn 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.
NoteFor each input point, a selection in the PLC Setup dete rmines whethe r it is to
be used as a normal input, interrupt input, quick-response input, or highspeed counter. The interrupt input response frequency in counter mode must
be 5 kHz or less total for all interrupts.
Quick-response
Inputs
NoteFor each input, a PLC Setup parameter determines whether it is to be used as
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 number of quick-response input points is 6 for CPU Units with 20, 30 or 40 I/O
points.
a normal input, interrupt input, quick-response input, or high-speed counter.
Built-in Analog InputThe CPU Units have analog functionality, with 2 analog voltage inputs built in.
External analog values of 0 to 10 V (resolution: 1000) 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 high degree of
accuracy, such as for example, a setting based on changes in outdoor temperatures or potentiometer inputs.
7
Features and Main FunctionsSection 1-1
MAC Address:
01234567890A
00NC02 04 06 08 10 00 02 04 06 08 10
01COM 03 05 07 09 11 01 03 05 07 09 11
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
NS-series PT, personal computer, bar code reader, etc.
CP1W-CIF01 RS-232C
Option Board
CP1W-CIF11/CIF12
RS-422A/485 Option Board
Inverter, etc. (See note 1.)
CP1LCP1L-EM
RS-232C
RS-422A
CP1L-EM
MAC Address:
01234567890A
00NC 02 04 06 08 10 00 02 04 06 08 10
01COM 03 05 07 09 11 01 03 05 07 09 11
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+) 05 07
ANALOG INPUT
V1+V2
+
COM
2
MAC Address:
01234567890A
00NC02 04 06 08 10 00 02 04 06 08 10
01COM 03 05 07 09 11 01 03 05 07 09 11
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
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.
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 I/O
points. With the serial communications port, it is easy to simultaneously connect a computer, PT, PLC, and/or various components, such as an Inverter,
Temperature Controller, or Smart Senso r.
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
a fixed memory area (DM), messages can be sent or received independently of the program by turning software switches.
8
Features and Main FunctionsSection 1-1
MAC Address:
01234567890A
00NC02 04 06 08 10 00 02 04 06 08 10
01COM 0305070911010305070911
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
MAC Address:
01234567890A
00NC02 04 06 08 10 00 02 04 06 08 10
01COM 0305070911010305070911
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
RS-422A/485
CP1H CPU Unit
(Master)
Data sharing
CP1L-EL/EM CPU Unit
(Slave)
CP1L-EL/EM CPU Unit
(Slave)
CJ1M CPU Unit
(Slave)
8 CPU Units max.
Memory
Cassette
Can be automatically
transferred at startup.
Programs, DM initial values, etc.
MAC Address:
01234567890A
00NC02 04 06 08 10 00 02 04 06 08 10
01COM 03 05 07 09 11 01 03 05 07 09 11
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
Another CP1L-EL/EM CPU Unit
MAC Address:
01234567890A
00NC02040608100002040608 10
01COM0305070911010305070911
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
CP1L-EL/EM CPU Unit
Built-in flash
memory
(2) By usin g the seria l PLC Links, a maximu m of 10 words o f data per CPU
Unit can be shared independently of the program among a maximum of
nine CPU Units (CP1L-EL/EM/CP1H/CJ1M) using RS-422A/485 Option
Boards.
No-battery Operation
Memory CassettesBuilt-in flash memory data, such as programs and DM initial-value data, can
SecurityA password registration function is provided for the CPU Unit to pre vent unau-
Read Protection Using
Extended Passwords
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 battery.
be stored in a Memory Cassette (optional) as backup data. In addition, programs and initial-value data can be easily copied to another CPU Unit using
the Memory Cassette to recreate the same system.
thorized copy of ladder programs. If an attempt is made to read a ladder program from a CX-Programmer, access to the program is denied if the
password that is entered does not match the registered password. If incorrect
passwords are entered for five consecutive attempts, the CPU Unit does not
accept any more passwords for two hours.
With unit version 1.1 or later and CX-Programmer version 9.6 or higher, you
can extend protection with UM read protection and task read protection to
ensure better protection for your design assets.
9
System ConfigurationSection 1-2
CPU Unit with 40 I/O PointsCPU Unit with 30 I/O PointsCPU Unit with 20 I/O Points
MAC Address:
01234567890A
00NC02 04 06 08 10 00 02 04 06 08 10
01COM03 05 07 09 11 01 03 05 07 09 11
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
SYSMAC
CP1L
MAC Address:
01234567890A
BKUP
ERR/ALM
LNK/ACT
POWER
RUN
INH
NC02 04 06 08 1000
01COM03 05 07 09 11
00 01 02 04 05 07
03COM(V+)COM 06
ANALOG INPUT
V1+V2+COM
SYSMAC
CP1L
MAC Address:
01234567890A
BKUP
ERR/ALM
LNK/ACT
POWER
RUN
INH
00NC02 04 06 08 10 00 02 04 NC
01COM03 05 07 09 11 01 03 05
00 01 02 04 05 07 00 02
COM 01 0303COM(V+)COM 06
ANALOG INPUT
V1+V2+COM
1
2
1-2System Configuration
1-2-1Basic System
Maximum Number of Normal I/O Points
TypeI/O
capacity
EM40 points 24 VDCCP1L-EM40DR-D24 DC inputs16 relay outputs555 g max.
30 points 24 VDCCP1L-EM30DR-D18 DC inputs12 relay outputs485 g max.
EL20 points 24 VDCCP1L-EL20DR-D12 DC inputs8 relay outputs400 g max.
Power supply
voltage
ModelNormal built-
Normal built-in outputsWeight
in inputs
CP1L-EM40DT-D16 transistor (sinking) outputs515 g max.
CP1L-EM40DT1-D16 transistor (sourcing) outputs 515 g max.
CP1L-EM30DT-D12 transistor (sinking) outputs455 g max.
CP1L-EM30DT1-D12 transistor (sourcing) outputs 455 g max.
CP1L-EL20DT-D8 transistor (sinking) outputs380 g max.
CP1L-EL20DT1-D8 transistor (sourcing) outputs380 g max.
Optional Products
ItemModelSpecificationsWeight
Memory
Cassette
LCD Option
Board
Analog
Option
Board
NoteCP1W-CIF41 Ethernet Option Board cannot be used with the CP1L-EL/EM
series PLCs.
Serial
Communications
Expansion
When serial communications ar e required for a CP1L-EL/EM 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 I/O points.
This enables connection by serial communications to NS-series PTs, Bar
Code Readers, components such as Inverters, and computers without Ethernet ports (such as when using the CX-Programmer).
10
CP1W-ME05MCan be used to store user programs in
flash memory, parameters, DM initial
values, comment memory, FB programs, and data in RAM.
CP1W-DAM01Can be used to monitor and change
user-specified messages, time or other
data of the PLC.
CP1W-ADB21
CP1W-DAB21V
CP1W-MAB221
Non-isolated analog input/output unit.
Can be used to expand the analog
input/output ability.
10 g max.
20 g max.
25 g max.
System ConfigurationSection 1-2
MAC Address:
01234567890A
00NC02 04 06 08 10 00 02 04 06 08 10
01COM03 05 07 09 11 01 03 05 07 09 11
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
NS-series PT, personal computer, bar code reader, etc.
),
No-protocol, Serial PLC Link
Slave, Serial PLC Link Master,
Serial Gateway (conversion to
CompoWay/F, conversion to Modbus-RTU), peripheral bus
11
System ConfigurationSection 1-2
CP1L-EM 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-EL CPU Unit with 20 I/O Points
One CP-series Expansion I/O Unit or
Expansion Unit can be added.
MAC Address:
01234567890A
00NC02 04 06 08 10 00 02 04 06 08 10
01COM 03 05 07 09 11 01 03 05 07 09 11
BKUP
ERR/ALM
LNK/ACT
SYSMAC
CP1L
POWER
RUN
INH
1
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+)05 07
ANALOG INPUT
V1+V2
+
COM
2
SYSMAC
CP1L
MAC Address:
01234567890A
BKUP
ERR/ALM
LNK/ACT
POWER
RUN
INH
NC02 04 06 08 1000
01COM 03 05 07 09 11
00 01 02 04 05 07
03COM(V+) COM 06
ANALOG INPUT
V1+V2+COM
1-2-2System Expansion
CP-series Expansion Units or Expansion I/O Units can be connected to a
CP1L-EL/EM 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 I/O points.
This allows for the expansion of various functions such as I/O points or temperature sensor inputs.
Using I/O Connecting Cable
When using CP-series 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.
• I/O Connecting Cable can be used in one place only, and not in multiple
places.
SYSMAC
CP1L
MAC Address:
01234567890A
01COM 03 05 07 09 11 01 03 05 07 09 11
00NC02 04 06 08 10 00 02 04 06 08 10
POWER
RUN
ERR/ALM
INH
LNK/ACT
BKUP
1
00 01 02 03 04 06 00 01 03 04 06
ANALOG INPUT
+
COM
V1+V2
NCNCNC
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
CH
IN
CH
CH
OUT
CH
2
COM 02 COM 05 07COMCOM(V+) 05 07
NC
NC
IN
OUT
HCHC
111009080706050403020100
111009080706050403020100
0706050403020100
0706050403020100
HCHC
00 01 02 04 05 07 00 02 04 05 07
COM COM COM COM COM COM03 06 01 03 06
COM
NCNCNC
01 03 05 07 09 11 01 03 05 07 09 11
NC
00 02 04 06 08 10
CH
111009080706050403020100
CH
111009080706050403020100
CH
0706050403020100
CH
0706050403020100
NC
00 01 02 04 05 07 00 02 04 05 07
NC
COM COM COM COM COM COM03 06 01 03 06
40EDR
00 02 04 06 08 10
HCHC
HCHC
EXP
40EDR
IN
OUT
EXP
COM
NCNCNC
01 03 05 07 09 11 01 03 05 07 09 11
NC
00 02 04 06 08 10
CH
CH
CH
0706050403020100
CH
0706050403020100
NC
00 01 02 04 05 07 00 02 04 05 07
NC
COM COM COM COM COM COM03 06 01 03 06
111009080706050403020100
111009080706050403020100
00 02 04 06 08 10
HCHC
HCHC
40EDR
EXP
12
System ConfigurationSection 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 I/O points. The maximum I/O
capacity is thus achieved by connecting either one or three Expansion Units
or Expansion I/O Units.
TypeI/O capacityModelBuilt-in
inputs
EM40 pointsCP1L-EM40DR-D
CP1L-EM40DT-D
CP1L-EM40DT1-D
30 pointsCP1L-EM30DR-D
CP1L-EM30DT-D
CP1L-EM30DT1-D
EL20 pointsCP1L-EL20DR-D
CP1L-EL20DT-D
24163 Units max.
18123 Units max.
1281 Unit max.
CP1L-EL20DT1-D
CP-series Expansion I/O Units
AppearanceModelNormal
CP1W-40EDR24 VDC:
NCNCNC
COM
01 03 05 07 09 11 01 03 05 07 09 11
NC
00 02 04 06 08 10
CHCH
CH
IN
CH
CH
0706050403020100
OUT
CH
0706050403020100
CHCH
NC
00 01 02 04 05 07 00 02 04 05 07
NC
COM COM COM COM COM COM03 06 01 03 06
COM 01 03 05 0 7 0 9 11
NC 00 02 04 06 08 10
IN
CH
OUT
CH
NC 00 01 02 04 05 07
NC COM COM COM 03 COM
111009080706050403020100
111009080706050403020100
CH
00 01 02 03
04 05 06 07
08 09 10 11
00 01 02 03 04 05 06 07
CH
00 02
IN
CH
00 01 02 03
08 09 10
04
COM 05 07
01COM
11
06
00 02 04 06 08 10
06
03
EXP
EXP
CP1W-40EDT
CP1W-40EDT1
CP1W-32ERNone32 relay outputs465 g max.
Pt100, JPt100
CP1W-SRT21As a CompoBus/S slave, 8 inputs and 8 out-
puts are allocated.
200 g max.
250 g max.
225 g max.
g max.
380
250 g max.
200 g max.
14
System ConfigurationSection 1-2
50%
100%
55°C40 45
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
0%
Ambient temperature
50%
100%
55°C4535
0%
Power voltage:
21.6 VDC
Power voltage:
20.4 VDC
Ambient temperature
50%
100%
55
°C35
300%50
Power
voltage:
21.6 VDC
Power
voltage:
20.4 VDC
Ambient temperature
50%
100%
55
°C40 50
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
50%
100%
55
°C
4535
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
50%
100%
55
°C
4535
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
1-2-3Restrictions on System Configuration
The following restrictions apply to the CP-series Expansion Units and CPseries Expansion I/O Units that can be connected to CP1L-EL/EM 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 I/O points.
Each CPU Unit can connect one device to pin 6 (+5V power supply) of the
CP1W-CIF01 RS232C Option Board.
If two CP1W-CIF01 Option Boards are mounted on a CPU Unit with 30, 40 or
60 IO points and both of which use pin 6 (+5V power supply), a total of up to
two Expansion Units can be connected to the CPU Unit.
■ Restrictions on the number of simultaneously ON output points
CP1W-32ER/32ET/32ET1’s maximum number of simultaneously ON points is 24
(75%).
■ 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-E
@@@DR-D)
Relay Output Load Current Derating Curves for CPU Units and Expansion I/O
Units
CP1L-EL20DR-DCP1L-EM30DR-DCP1L-EM40DR-D
NoteThe ab ove restrictions, apply to the relay output load current from the CPU
Unit even if Expansion I/O Units are not connected.
Using CP1W-8ER/16ER/20EDR1/32ER/40EDR Expansion I/O Units with
CPU Units with Transistor Outputs (CP1L-E@@@DT@-D)
Relay Output Load Current Derating Curves for Expansion I/O Units
Expansion I/O Units added
to the CP1L-EL20DT@-D
Expansion I/O Units added
to the CP1L-EM30DT@-D
Expansion I/O Units added
to the CP1L-EM40DT@-D
NoteThere are no restrictions on the transistor output load current from the CPU
Unit.
15
Function ChartsSection 1-3
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 functionsNormal 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.
Clock
Ethernet port
Functions using Option Boards
Serial
communications
Analog I/O functions
Analog Input/Output
LCD display
Temperature sensor
input functions
CompoBus/S Slave
function
CompoBus/S I/O Link Unit
• Data exchanged with Master Unit: 8 inputs and 8 outputs
FINS/UDP
FINS/TCP
Socket service
CX-P Auto connection
Clock auto adjustment
Built-in analog input
2 inputs, 0 to 10 V
• Resolution: 1000
Functions using CPseries Expansion Units
1-3Function Charts
16
Function BlocksSection 1-4
ccaa
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
SettingSetting
Copy of function block A
Input
Variable Variable Output
Program 2
Copy of function block A
Variable Output
1-4Function Blocks
Function blocks can be used in programming SYSMAC CP-series PLCs.
1-4-1Overview 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-Programmer) each time they are placed in the program.
In particular, each function block is saved by the CX-Programmer as an individual file that can be reused with programs for other PLCs. This makes it
possible to create a library of standard processing functions.
17
Function BlocksSection 1-4
1-4-2Advantages 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
setting the parameters for the function block's I/O. Reusing standa rdized function blocks reduces the time required for programming/debugging, reduces
coding errors, and makes programs easier to un de rs ta nd .
Structured
Programming
Easy-to-read “Block Box”
Design
Different Processes Easily
Created from a Single
Function Block
Reduced Coding ErrorsCoding mistakes can be reduced, because blocks that have already been
Data ProtectionThe local variables in the function block cannot be accessed directly from the
Improved Reusability
through Programming
with Variables
Structured programs created with function blocks have better design quality
and required less development time.
The I/O operands are displayed as local variable names in the program, so
the program is like a “black box” when entering or r eading the pr ogram and n o
extra time is wasted trying to understand the internal algorithm.
Many different processes can be created easily from a single function block
by using input variables for the parameters (such as timer SVs, control constants, speed settings, and travel distances) in the standard process.
debugged can be reused.
outside, so the data can be protected. (Data cannot be changed unintentionally.)
The function block's I/O is entered as local variables, so the data ad dresses i n
the function block do not have to be changed as they do when copying and
reusing a program section.
Creating LibrariesProcesses that are independent and reusable (such as processes for individ-
ual steps, machinery, equipment, or control systems) can be saved as function 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 readin g
the definitions from the file and placing them in a new program.
Nesting Multiple
Languages
18
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.
Function block (ladder language)
Call (Nesting)
Function block (ST language)
For details on using function blocks, refer to the CX-Programmer Ver. 7.0
Operation Manual: Function Blocks (Cat. No. W447).
SECTION 2
Nomenclature and Specifications
This section describes the names and functions of CP1L-EL/EM parts and provides CP1L-EL/EM specifications.
LitPower is ON.
Not litPower is OFF.
LitThe CP1L-EL/EM is executing a program in either
RUN or MONITOR mode.
Not litOperation is stopped in PROGRAM mode or due to
a fatal error.
LitA fatal error (including FALS execution) or a hard-
ware error (WDT error) has occurred. CP1L-EL/EM
operation will stop and all outputs will be turned
OFF.
FlashingA non-fatal error has occurred (including FAL execu-
tion). CP1L-EL/EM operation will continue.
Not litOperation is normal.
LitThe Output OFF Bit (A500.15) has turned ON. All
outputs will be turned OFF.
Not litOperation is normal.
LitA valid link is detected.
FlashingCommunications (either sending or receiving) are in
progress through the Ethernet port.
Not litOther than the above.
LitA 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 litOther than the above.
Part Names and FunctionsSection 2-1
ON
123456
ON
1234
(3) DIP Switch
CPU Units with 30 or 40 I/O Points
No.SettingDescriptionApplicationDefault
SW1ONUser memory write-
protected (See note.)
OFFUser memory not
write-protected.
SW2ONData automatically
transferred from
Memory Cassette at
startup.
OFFData not transferred.
SW3ONA395.12 ONThis pin enables control-
OFFA395.12 OFF
SW4ONUsed for peripheral
bus.
OFFAccording to PLC
Setup.
SW5ONUsed for peripheral
bus.
OFFAccording to PLC
Setup.
SW6OFFKeep turned OFF. ---OFF
Used to prevent programs from being inadvertently overwritten.
Used to enable programs, Data Memory, or
parameters saved on a
Memory Cassette to be
opened by the CPU Unit
at startup.
ling a bit in memory without using an input relay.
Used to enable a Serial
Communications Option
Board mounted in Option
Board Slot 1 to be used
by the 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
OFF
OFF
OFF
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 20 I/O Points
No.SettingDescriptionApplicationDefault
SW1ONUser memory write-
protected (See note.)
OFFUser memory not
write-protected.
SW2ONData automatically
transferred from
Memory Cassette at
startup.
OFFData not transferred.
SW3ONA395.12 ONThis pin enables control-
OFFA395.12 OFF
SW4ONUsed for peripheral
bus.
OFFAccording to PLC
Setup.
Used to prevent programs from being inadvertently overwritten.
Used to enable programs, Data Memory, or
parameters saved on a
Memory Cassette to be
opened by the CPU Unit
at startup.
ling a bit in memory without using an input relay.
Used to enable a Serial
Communications Option
Board mounted in Option
Board Slot 1 to be used
by the peripheral bus.
OFF
OFF
OFF
OFF
21
Part Names and FunctionsSection 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).
(4) Memory Cassette Slot
Used for mounting a CP1W-ME05M Memory Cassette. When mounting
a Memory Cassette, remove the dummy cassette.
Data, such as CP1L-EL/EM CPU Unit programs, parameters, and data
memory, can be transferred to the Memory Cassette to be saved.
(5) Built-in Analog Input Connector
By applying 0 to 10 V of external voltage, it is possible to a djust the value
of A642 and A643 within a range of 0 to 1000. This input is not isolated.
(Refer to 8-4 Built-in Analog Input.)
(6) Ethernet Port
Using the built-in Ethernet port, user can easily connect the CX-Programmer to PLCs Online or exchange data between CP1L-EL/EM seri es
PLCs and other Ethernet devices from either OMRON or another manufacturer. Various protocols are supported, including FINS/TCP, FINS/
UDP, Socket, SNTP, DNS.
(7) Input Indicators
The input indicators light when input terminal contacts turn ON.
(8) Power Supply, Ground, and Input Terminal Block
Power supply terminals Used to provide a 24-VDC power supply.
Ground terminals
Input terminalsUsed to connect input devices.
Protective ground ( ):
To prevent electric shock, ground to 100 Ω or less.
(9) Option Board Slots
The following Option Boards can be mounted in either slot 1 (left) or slot
2 (right).
• CP1W-CIF01 RS-232C Option Board
• CP1W-CIF11/CIF12 RS-422A/485 Option Board
• CP1W-DAM01 LCD Option Board
• CP1W-ADB21/DAB21V/MAB221 Analog Option Board
!Caution Always turn OFF the power supply to the PLC before mounting or removing
an Option Board.
(10) Expansion I/O Unit Connector
CP-series Expansion I/O Units and Expansion Units (Analog I/O Units,
Temperature Sensor Units, or CompoBus/ S 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 I/O points.
(For details on using Expansion Units and Expansion I/O Units, refer to
SECTION 9 Using Expansion Units and Expansion I/O Units.)
(11) Output Terminal Block
The Output terminals are used for connecting output devices.
(12) Output Indicators
The output indicators light when output terminal contacts turn ON.
22
Part Names and FunctionsSection 2-1
r
2-1-2CP1W-CIF01 RS-232C Option Boards
A 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.
FrontBack
(1) Communications Status Indicator
(3) CPU Unit Connecto
COMM
(2) RS-232 Connector
RS-232C Connector
5
9
1
6
PinAbbr.Signal nameSignal direction
1FGFrame Ground--2SD (TXD)Send DataOutput
3RD (RXD)Receive DataInput
4RS (RTS)Request to SendOutput
5CS (CTS)Clear to SendInput
65VPower Supply--7DR (DSR)Data Set RetryInput
8ER (DTR)Equipment Ready Output
9SG (0V)Signal Ground--Connector hood FGFrame Ground---
2-1-3CP1W-CIF11/CIF12 RS-422A/485 Option Boards
A 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.
23
Part Names and FunctionsSection 2-1
(2)
r
FrontBack
(1) Communications Status Indicator
(3) CPU Unit Connecto
COMM
RDA− RDB+ SDA− SDB+ FG
RS-422A/485 Connector
RS-422A/485 Terminal Block
Tighten the terminal block screws to
a torque of 0.28 N·m (2.5 Lb In.).
OFF4-wire
44------Not used.
5SW21ONRS control enabledRS control selection for RD (See
O
N
OFFRS control disabled (Data
always received.)
62ONRS control enabledRS control selection for SD (See
1
2
OFFRS control disabled (Data
always sent.)
(4) DIP Switch for
Operation Settings
Resistance value: 220Ω typical
note 1.)
note 1.)
note 2.)
note 3.)
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).
24
SpecificationsSection 2-2
2-2Specifications
2-2-1CP1L-EL/EM CPU Units
General Specifications
TypeEM CPU UnitsEL CPU Units
ModelCP1L-EM40DR-D
CP1L-EM40DT-D
CP1L-EM40DT1-D
Power supply24 VDC
Operating voltage range20.4 to 26.4 VDC
Power consumption
(See note 2.)
Inrush current
(See note 1.)
Insulation resistanceNo insulation between primary and secondary DC power supplies.
Dielectric strengthNo insulation between primary and secondary DC power supplies.
Noise resistanceConforms to IEC 61000-4-4 2 kV (power supply line)
Vibration resistanceConforms to JIS 60068-2-6
Shock resistanceConforms to JIS 60068-2-27
Ambient operating0 to 55°C
Ambient humidity10% to 90% (with no condensation)
AtmosphereNo corrosive gas.
Ambient storage−20 to 75°C (excluding battery)
Terminal screw sizeM3
Power interrupt time2 ms min.
Weight555 g max.485 g max.400 g max.
20 W max.20 W max.13 W max.
30 A max.(for cold start.)
20 ms max.
5 to 8.4 Hz, 3.5 mm amplitude, 8.4 to 150 Hz, acceleration: 9.8 m/s2 in X, Y, and Z directions
for 100 minutes each (time coefficient of 10 minutes × coefficient factor of 10 = total time of
100 minutes)
147 m/s
2
three times each in X, Y, and Z directions
CP1L-EM30DR-D
CP1L-EM30DT-D
CP1L-EM30DT1-D
CP1L-EL20DR-D
CP1L-EL20DT-D
CP1L-EL20DT1-D
Note(1) The above values and for a cold start for a DC power supply.
• 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 brea kers for e xter nal cir cuits.
25
SpecificationsSection 2-2
(2) 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.
Formula:
DC-powered CP1L-EL/EM power consumption = (5 V current consumption × 5 V/70% (CP1L-EL/EM internal power efficiency) + 24 V current
consumption × 24 V) × 1.1 (current fluctuation factor)
Calculation Example
CPU UnitExpansion Unit or Expansion I/O UnitTotal
1st Unit2nd Unit3rd Unit
System
5 V0.320 A0.130 A0.040 A0.080 A0.570 A
24 V0.080 A0.000 A0.059 A0.124 A0.263 A
CP1L-EM40DR-D
CP1W-20EDTCP1W-TS001CP1W-DA041
CP1L-EL/EM Power Consumption
= (0.57 A × 5 V/70% + 0.263 A × 24 V) × 1.1
= 11.42 W
The above calculation results show that a power supply with a capacity of
12 W or greater is required.
(3) General specification of Expansion I/O Units and Expansion Units will be
the same criteria with CPU Units.
Current Consumption
CPU Units
I/O capacityModelCurrent consumption
5 V DC24 V DC
40 I/O pointsCP1L-EM40DR-D0.32 A 0.08 A
CP1L-EM40DT-D0.42 A 0.01 A
CP1L-EM40DT1-D0.42 A 0.01 A
30 I/O pointsCP1L-EM30DR-D0.30 A 0.07 A
CP1L-EM30DT-D0.39 A 0.01 A
CP1L-EM30DT1-D0.39 A 0.01 A
20 I/O pointsCP1L-EL20DR-D0.31 A 0.06 A
CP1L-EL20DT-D0.37 A 0.01 A
CP1L-EL20DT1-D0.37 A 0.01 A
Note(1) The current c onsumption of the CP1W-ME05M Memory Cassette and
CP1W-CIF01/11 Option Boards are included in the current consumption
of the CPU Unit.
(2) The current consumption of the following is not included with the current
(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 Expansion I/O Unit is connected.
Expansion Units and Expansion I/O Units
Unit nameModelCurrent consumption
5 VDC24 VDC
Expansion I/O Units40 I/O points
24 inputs
16 outputs
32 outputsCP1W-32ER0.049 A0.131 A
20 I/O points
12 inputs
8 outputs
16 outputsCP1W-16ER0.042 A0.090 A
8 inputsCP1W-8ED0.018 A--8 outputsCP1W-8ER0.026 A0.044 A
Expansion
Units
Analog Input Unit4 inputsCP1W-AD0410.100 A0.090 A
Analog Output Unit 2 outputsCP1W-DA0210.040 A0.095 A
4 outputsCP1W-DA0410.080 A0.124 A
Analog I/O Units2 inputs
1 output
4 inputs
2 outputs
4 inputs
4 outputs
Temperature Sensor Units
CompoBus/S I/O
Link Unit
K or J thermocouples CP1W-TS0010.040 A0.059 A
K or J thermocouples
or analog inputs
Pt or JPt platinum
resistance thermometers
8 inputs
8 outputs
CP1W-40EDR0.080 A0.090 A
CP1W-40EDT0.160 A--CP1W-40EDT1
CP1W-32ET0.113 A--CP1W-32ET1
CP1W-20EDR10.103 A0.044 A
CP1W-20EDT0.130 A--CP1W-20EDT1
CP1W-16ET0.076 A--CP1W-16ET1
CP1W-8ET0.075 A--CP1W-8ET1
CP1W-AD0420.100 A0.050 A
CP1W-DA0420.070 A0.160 A
CP1W-MAD110.083 A0.110 A
CP1W-MAD420.120 A0.120 A
CP1W-MAD440.120 A0.170 A
CP1W-TS002
CP1W-TS0040.080 A0.050 A
CP1W-TS0030.070 A0.030 A
CP1W-TS1010.054 A0.073 A
CP1W-TS102
CP1W-SRT210.029 A---
NoteCP1W-32ER/32ET/32ET1’s maximum number of simultaneously ON points is
24 (75%).
27
SpecificationsSection 2-2
Characteristics
TypeEM CPU UnitsEL CPU Units
ModelCP1L-EM40DR-D
Program capacity
(See note 1.)
FB capacity10 K steps
Control methodStored program method
I/O control methodCyclic scan wit h im me di a te refreshing
Program
language
Function blocksMaximum number of function block definitions: 128
Instruction length1 to 7 steps per instruction
InstructionsApprox. 500 (function codes: 3 digits)
Instruction
execution time
Common
processing time
Number of
connectable Expansion Units and Expansion I/O Units
Maximum number of
I/O points
Built-in
terminals
(Functions can
be
assigned.)
Pulse
outputs
(Transistor
output
models
only)
Buil t-in analog input2 inputs (Resolution: 1/1000, Input range: 0 to 10 V)
Ethernet portSupported. (1 Ethernet port built-in)
Built-in I/O40 terminals
Interrupt
inputs
Quickresponse
inputs
High-speed
counters
Pulse outputs 2 outputs, 1 Hz to 100 kHz
PWM outputs 2 outputs, 0.1 to 6,553.5 Hz or 1 to 32,800 Hz
Direct
mode
Counter
mode
CP1L-EM40DT-D
CP1L-EM40DT1-D
10 K steps5 K steps
Ladder diagram
Maximum number of instances: 256
Languages usable in function block definitions: Ladder diagrams, structured text (ST)
Basic instructions: 0.61 μs min.
Special instructions: 4.1 μs min.
0.38 ms
3 Units (CP Series)1 Unit (CP Series)
160 points
(40 built in, 40 × 3 expansion)
(24 inputs and 16 outputs)
6 inputs
Response time: 0.3 ms
6 inputs
Response frequency: 5 kHz total, 16 bits
Incrementing counter or decrementing counter
6 points
Min. input pulse width: 50 μs max.
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
(CCW/CW or pulse plus direction)
Trapezoidal or S-curve acceleration and deceleration (Duty ratio: 50% fixed)
Variable duty ratio: 0.0% to 100.0% (in increments of 0.1% or 1%)
Accuracy: +1%/-0% at 0.1 Hz to 10,000 Hz and +5%/-0% at 10,000 Hz to 32,800 Hz
CP1L-EM30DR-D
CP1L-EM30DT-D
CP1L-EM30DT1-D
150 points
(30 built in, 40 × 3 expansion)
30 terminals
(18 inputs and 12 outputs)
CP1L-EL20DR-D
CP1L-EL20DT-D
CP1L-EL20DT1-D
60 points
(20 built in, 40 × 1 expansion)
20 terminals
(12 inputs and 8 outputs)
28
SpecificationsSection 2-2
TypeEM CPU UnitsEL CPU Units
ModelCP1L-EM40DR-D
Serial port (RS-232C ,
RS-422A/485)
Number of tasks288 (32 cycle execution tasks and 256 interrupt tasks)
Scheduled
interrupt
Input
interrupt tasks
Maximum subroutine
number
Maximum jump
number
Scheduled interrupts1
Clock functionSupported.
Memory
Backup
Memory Cassette
function
Built-in flash
memory
Battery
backup
CP1L-EM40DT-D
CP1L-EM40DT1-D
Ports not provided as standard equipment. (EM-type CPU Unit: 2 ports max., EL-type CPU Unit: 1
port)
The following Option Boards can be mounted:
•CP1W-CIF01: One RS-232C port
•CP1W-CIF11/CIF12: 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 2.)
1 (interrupt task 2, fixed)
6 (interrupt tasks 140 to 145, fixed)
(High-speed counter interrupts and interrupt tasks specified by external interrupts
can also be executed.)
256
256
Accuracy (monthly deviation): −0.5 min to +4.5 min (ambient temperature: 55°C),
−2.0 min to +2.0 min (ambient temperature: 25°C),
−2.5 min to +1.5 min (ambient temperature: 0°C)
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.
The HR Area, DM Area, and counter values (flags, PV) are backed up by a battery.
Battery model: CJ1W-BAT01 (Built into the CP1L-EL/EM CPU Unit.)
Maximum battery service life: 5 years
Guaranteed (ambient temperature: 55°C): 13,000 hours (approx. 1.5 years)
Effective value (ambient temperature: 25°C): 43,000 hours (approx. 5 years)
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, parameters (such as the PLC Setup), DM
Area, data memory initial 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 operations from the CX-Programmer.
CP1L-EM30DR-D
CP1L-EM30DT-D
CP1L-EM30DT1-D
CP1L-EL20DR-D
CP1L-EL20DT-D
CP1L-EL20DT1-D
Note(1) The function block capacity is not included in the program capacity.
(2) Can be used as Modbus-RTU easy master function.
29
SpecificationsSection 2-2
2-2-2I/O Memory Details
TypeEM CPU UnitsEL CPU Units
ModelCP1L-EM40DR-D
CP1L-EM40DT-D
CP1L-EM40DT1-D
I/O
Input bits24 bits
Areas
Output
bits
1:1 Link
Bit Area
Serial PLC
Link Area
Work bits4,800 bits (300 words): CIO 1200.00 to CIO 1499.15 (words CIO 1200 to CIO 1499)
Work bits8,192 bits (512 words): W000.00 to W511.15 (words W0 to W511)
TR Area16 bits: TR0 to TR15
HR Area8,192 bits (512 words): H0.00 to H511.15 (words H0 to H511)
AR AreaRead-only (Write-prohibited) 7,168 bits (448 words): A0.00 to A447.15 (words A0 to A447)
Timers4,096 bits: T0 to T4095
Counters4,096 bits: C0 to C4095
DM Area32 Kwords: D0 to D32767
Data Register
Area
Index Register
Area
Task Flag Area32 flags (32 bits): TK0 to TK31
Trace Memory4,000 words (500 samples for the trace data maximum of 31 bits and 6 words.)
CIO 0.00 to CIO 0.11
CIO 1.00 to CIO 1.11
16 bits
CIO 100.00 to CIO 100.07
CIO 101.00 to CIO 101.07
256 bits (16 words): CIO 3000.00 to CIO 3015.15 (words CIO 3000 to CIO 3015)
1,440 bits (90 words): CIO 3100.00 to CIO 3189.15 (words CIO 3100 to CIO 3189)
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)
Read/Write 8,192 bits (512 words): A448.00 to A959.15 (words A448 to A959)
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
D32200 to D32249 for Serial Port 1, D32300 to D32349 for Serial
Port 2
DM fixed allocation words for socket service D32400 to D32477 for
Ethernet port
16 registers (16 bits): DR0 to DR15
16 registers (16 bits): IR0 to IR15
CP1L-EM30DR-D
CP1L-EM30DT-D
CP1L-EM30DT1-D
18 bits
CIO 0.00 to CIO 0.11
CIO 1.00 to CIO 1.05
12 bits
CIO 100.00 to CIO 100.07
CIO 101.00 to CIO 101.03
12 bits
CIO 0.00 to CIO 0.11
8 bits
CIO 100.00 to CIO 100.07
10 Kwords: D0 to D9999 and
D32000 to D32767
Note Initial data can be trans-
DM fixed allocation words for
DM fixed allocation words for
CP1L-EL20DR-D
CP1L-EL20DT-D
CP1L-EL20DT1-D
ferred 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.
Modbus-RTU Easy Master
D32300 to D32349 for Serial
Port 1
NoteThe bits CIO 101.04 to CIO 101.07 cannot be used for CPU Units with 30 I/O
points.
The bits CIO 101.00 to CIO 101.07 cannot be used for CPU Units with 20 I/O
points.
Input Specifications
Normal Inputs
ItemSpecification
High-speed Counter InputsInterrupt Inputs and
CIO 0.00 to CIO 0.03CIO 0.04 to CIO 0.09 (See
Input voltage
Applicable inputs2-wire and 3-wire sensors
Input impedance3.0 kΩ3.0 kΩ4.7 kΩ
Input current7.5 mA typical7.5 mA typical5 mA typical
ON voltage17.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 delay2.5 μs max.50 μs max.1 ms max. (See note 3.)
24 VDC
+10%
/
−15%
Quick-response Inputs
note 1.)
Normal inputs
CIO 0.10 to CIO 0.11 and
CIO 1.00 to CIO 1.11 (See
note 2.)
35
SpecificationsSection 2-2
IN
IN
COM
3.0 kΩ
4.3 kΩ
1000 pF
3.0 kΩ
1000 pF
IN
IN
COM
910 Ω
IN
IN
COM
4.7 kΩ
750 Ω
Input bits: CIO 0.00 to CIO 0.03
Input bits: CIO 0.04 to CIO 0.09
Input bits: CIO 0.10 to CIO 0.11, CIO 1.00 to CIO 1.11
Input LED
Input LED
Input LED
Internal
circuits
Internal
circuits
Internal
circuits
ItemSpecification
High-speed Counter InputsInterrupt Inputs and
Quick-response Inputs
CIO 0.00 to CIO 0.03CIO 0.04 to CIO 0.09 (See
note 1.)
OFF delay2.5 μs max.50 μs max.1 ms max. (See note 3.)
Circuit configuration
Normal inputs
CIO 0.10 to CIO 0.11 and
CIO 1.00 to CIO 1.11 (See
note 2.)
High-speed Counter Inputs
36
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.
BitDifferential
phase mode
CIO 0.00,
CIO 0.02
CIO 0.01,
CIO 0.03
CIO 0.04,
CIO 0.05
Max. count
A-phase pulse
input
B-phase pulse
input
Z-phase pulse input or hardware reset input (Can be used as ordinary
inputs when high-speed counter is not being used.)
With CPU Units with 20, 30 or 40 I/O points, the six input bits from CIO 0.04 to
CIO 0.09 can be used as either normal inputs or as interrupt or quickresponse inputs depending on the settings in the PLC Setup.
2 A, 24 VDC (4 A/common)
Min. switching capacity10 mA, 5 VDC
Service life
of relay
ON delay15 ms max.
OFF delay15 ms max.
Circuit configuration
ElectricalResistive
100,000 operations (24 VDC)
load
Inductive
48,000 operations (250 VAC, cosφ = 0.4)
load
Mechanical20,000,000 operations
Output LED
OUT
Internal
circuits
OUT
COM
Maximum
250 VAC: 2 A
24 VDC: 2 A
37
SpecificationsSection 2-2
50%
100%
55°C40 45
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
0%
Ambient temperature
50%
100%
55
°C4535
0%
Power voltage:
21.6 VDC
Power voltage:
20.4 VDC
Ambient temperature
50%
100%
55
°C35
300%50
Power
voltage:
21.6 VDC
Power
voltage:
20.4 VDC
Ambient temperature
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.
500
300
200
100
)
4
50
30
20
Life (× 10
10
5
125 VA C cosφ = 0.4
3
2
0.1 0.2 0.3 0.5 0.7 1 2 3 5 10
(2) There are restrictions imposed by the ambient temperature.
CPU Units with Relay Outputs (CP1L-E@@@DR-D)
Relay Output Load Current Derating Curves for CPU Units and Expansio n
I/O Units
CP1L-EL20DR-DCP1L-EM30DR-DCP1L-EM40DR-D
125 VA C resistive load
30 VDC/250 VA C resistive load
30 VDC τ = 7 ms
250 VA C cosφ = 0.4
Contact current (A)
Note The above restrictions, apply to the relay output load current from
the CPU Unit even if Expansion I/O Units are not connected.
Transistor Outputs (Sinking or Sourcing)
Normal Outputs
ItemSpecification
CIO 100.00 to CIO 100.03CIO 100.04 to CIO 101.07 (See note.)
Max. switching
capacity
Min. switching capacity 4.5 to 30 VDC, 1 mA
Leakage current0.1 mA max.
Residual voltage0.6 V max.1.5 V max.
ON delay0.1 ms max.
OFF delay0.1 ms max.1 ms max.
CIO 100.00 to CIO 100.03CIO 100.04 to CIO 101.07 (See note.)
FuseNone
Circuit configuration• Normal outputs CIO 100.00 to CIO 100.03
(Sinking Outputs)
•Normal outputs CIO 100.04 to CIO 101.07
(Sinking Outputs)
OUT
L
OUT
COM (−)
L
24 VDC/4.5
to 30 VDC
Internal
circuits
• Normal outputs CIO 100.00 to CIO 100.03
(Sourcing Outputs)
NoteThe 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 capaci ty.
Pulse Outputs (CIO 100.00 to CIO 100.03)
Max. switching capacity30 mA/4.75 to 26.4 VDC
Min. switching capacity7 mA/4.75 to 26.4 VDC
Max. output frequency100 kHz
Output waveform
•Normal outputs CIO 100.04 to CIO 101.07
(Sourcing Outputs)
Internal
circuits
ItemSpecification
COM (+)
OUT
OUT
L
L
24 VDC/4.5
to 30 VDC
The OFF and ON refer to the output transistor. The output
transistor is ON at level “L”.
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.
39
SpecificationsSection 2-2
Voltage Input 1
Voltage Input 2
V1
V2
COMInput Common
V1V2
A643
COM
A642
PWM Outputs (CIO 100.01 and CIO 100.03)
ItemSpecification
Max. switching capacity30 mA/4.75 to 26.4 VDC
Max. output frequency32.8 kHz
PWM output accuracyFor ON duty +1%, −0%:10 kHz output
For ON duty +5%, −0%: 0 to 32.8 kHz output
Output waveform
OFF
ON
The OFF and ON refer to the output transistor. The output
transistor is ON at level “L”.
t
ON
T
ON duty =
t
ON
T
× 100%
2-2-4Built-in Analog Input Specifications
Built-in Analog Input Terminal Block Arrangement
Analog Input Specifications
ItemSpecification
Number of inputs2 inputs (2 words allocated in the AR Area)
Input signal rangeVoltage input: 0 V to 10 V
Max. rated input0 V to 15 V
External input impedance100 KΩ min.
Resolution1/1000 (full scale)
Overall accuracy25°C: ±2.0% (full scale)
0 to 55°C: ±3.0% (full scale)
A/D conversion data 0000 to 03E8 hex
Averaging functionNot supported
Conversion timeSame as PLC cycle time
Isolation methodNone
2-2-5CP-series Expansion I/O Unit I/O Specifications
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.
300
200
100
50
)
4
30
20
Life (× 10
10
5
3
2
0.1
0.2 0.3 0.5 0.7 1235
Contact current (A)
120 VA C resistive load
24 VDC τ = 7 ms
120 VA C cosφ = 0.4
240 VA C cosφ = 0.4
24 VDC/240 VA C resistive load
Switching rate: 1,800 operations/hou
41
SpecificationsSection 2-2
100
50
55
43
Ambient temperature(˚C)
Output load current(%)
0
Ambient temperature(˚C)
55
Simultaneously ON points(%)
75
0
50%
100%
55
°C40 50
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
50%
100%
55
°C
4535
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
50%
100%
55
°C
4535
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
50%
100%
55
°C40 50
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
50%
100%
55
°C
4535
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
50%
100%
55
°C
4535
0%
Power voltage:
20.4 VDC
Power voltage:
21.6 VDC
Ambient temperature
(2) With the CP1W-32ER/CP1W-16ER, the load current is restricted de-
pending on the ambient temperature. Design the system considering the
load current based on the following graph.
(3) CP1W-32ER's m aximum number of simultane ously ON output points is
24 (75%). Design the system considering the simultaneously ON points
and load current based on the following curve.
42
(4) There are restrictions imposed by the ambient temperature.
Relay Output Load Current Derating Curves for Expansion I/O Units (CP1W8ER/16ER/20EDR1/32ER/40EDR)
Added to CP1L-EL20DR-DAdded to CP1L-EM30DR-DAdded to CP1L-EM40DR-D
Added to CP1L-EL20DT@-DAdded to CP1L-EM30DT@-DAdded to CP1L-EM40DT@-D
SpecificationsSection 2-2
Transistor Outputs (Sinking or Sourcing)
ItemSpecification
CP1W-40EDT
CP1W-40EDT1
Max. switching
capacity
4.5 to 30 VDC
0.3 A/output
(See note2.)
0.9 A/common
3.6 A/Unit
Leakage current0.1 mA max.0.1 mA max.0.1 mA max.0.1 mA max.0.1 mA max.
Residual voltage1.5 V max.1.5 V max.1.5 V max.1.5 V max.1.5 V max.
ON delay0.1 ms max.0.1 ms max.0.1 ms.0.1 ms max.0.1 ms max.
OFF delay1 ms max.
24 VDC
+10%
/
−5%
5 to 300 mA
Max. number of
16 pts (100%)24 pts (75%)8 pts (100%)16 pts (100%)8 pts (100%)
Simultaneously
ON Points of Output
Fuse (See note 1.)1 fuse/common
Circuit configuration
Sinking OutputsSourcing Outputs
Output LED
Internal
circuits
CP1W-32ET
CP1W-32ET1
4.5 to 30 VDC
0.3 A/output
0.9 A/common
7.2 A/Unit
1 ms max.
24 VDC
+10%
5 to 300 mA
OUT
L
L
OUT
24 VDC/4.5
to 30 VDC
COM (−)
/
−5%
CP1W-20EDT
CP1W-20EDT1
24 VDC
10%
0.3 A/output
0.9 A/common
1.8 A/Unit
1 ms max.
24 VDC
+10%
5 to 300 mA
Output LED
Internal
circuits
/
−5%
/
−5%
CP1W-16ET
CP1W-16ET1
4.5 to 30 VDC
0.3 A/output
0.9 A/common
3.6 A/Unit
1 ms max.
24 VDC
+10%
5 to 300 mA
COM (+)
24 VDC/4.5
OUT
to 30 VDC
L
L
OUT
CP1W-8ET1
•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
1.8 A/Unit
1 ms max.
/
24 VDC
−5%
5 to 300 mA
CP1W-8ET
+10%
/
−5%
Note(1) The fuse cannot be replaced by the user.
(2) If the ambient temperature is maintained below 50°C, up to 0.9 A/com-
mon can be used.
(A)
0.9
0.8
Total current for common
0
Ambient temperature
50 55
(°C)
!Caution Do not connect a load to an output terminal or apply a voltage in excess of the
maximum switching capaci ty.
43
CP1L-EL/EM CPU Unit OperationSection 2-3
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
External analog
setting input
Built-in outputs
Access
2-3CP1L-EL/EM CPU Unit Operation
2-3-1Overview of CPU Unit Configuration
The CP1L-EL/EM CPU Unit memory consists of the following blocks.
(1)• Data is backed up from RAM to the built-in flash memory when
(2)• A CX-Programmer operation can be used to transfer DM Area initial
(3)• CX-Programmer operations can be used to transfer data from RAM to
changes are made, e.g., from the CX-Programmer.
• When the power supply is turned ON, data is transferred from the builtin flash memory to RAM.
values from RAM to the built-in flash memory.
• The PLC Setup can be set so that DM Area initial values are transferred from the built-in flash memory to RAM when the power supply
is turned ON.
the Memory Cassette or from the built-in flash memo ry to th e Memory
Cassette.
44
CP1L-EL/EM CPU Unit OperationSection 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 ProgramThe 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 MemoryThe 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 immediately when needed when executing specific instructions.
Parameter AreaIn 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 CXProgrammer. This area, called the parameter area, contains the following.
• PLC Setup
• Routing tables
PLC SetupThe 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 settings, a minimum cycle time setting, and other parameters. For details, refer to
the CX-Programmer Operation Manu al.
Routing TablesTables specifying the communications paths from the Communications Units
on the local PLC to remote PLCs connected on other networks must be registered 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 consist 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.
45
CP1L-EL/EM CPU Unit OperationSection 2-3
3N
3M
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
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 MemoryFlash memory is built into the CP1L-EL/EM 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 CXProgrammer or PT is used to transfer or edit data , edit the pr ogram 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 me mory 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.
flash memory is being written or the Memory Cassette is being accessed.
Never turn OFF the power supply to the CPU Unit when the BKUP indicator is
lit.
Memory CassetteMemory Cassettes can be used as required in system operation and mainte-
NoteThe BKUP indicator on the front of the CPU Unit will light whenever the built-in
nance. For example, they can be used to save programs, data memory contents, PLC Setup data, or I/O comments from the CX-Programmer. The
contents of a Memory Cassette can also be automatically transferred if
desired.
46
CP1L-EL/EM CPU Unit OperationSection 2-3
2-3-2Flash Memory Data Transfers
Built-in Flash Memory
Writing to Flash Memory
DataTransfer method
User program and
parameter data
DM Area dataThis data is transferred to flash memory only when the trans-
Comment memory
data
Function block
source data
Write operation from CX-Programmer
or automatic transfer from Memory
Cassette at startup.
This data is automatically transferred from RAM to flash memory 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 Cassette.
fer is specified from the CX-Programmer.
This data is written to flash memory when a project is trans-
ferred from the CX-Programmer and transferring comment
memory is specified.
This data is written to flash memory when a project containing
one or more function blocks is transferred from the CX-Programmer.
CPU Unit
User program
area
Write
Write
Battery
Backup
Write (comment memory specified)
Write
Parameter area
I/O memory area
FB = Function block
RAM
DM Area
Built-in flash memory
Automatic write
Automatic write
Write operation
to flash memory
Write
FB source memory
area
User program
area
Parameter area
DM Area initial
values
Comment memory
area
47
CP1L-EL/EM CPU Unit OperationSection 2-3
Reading from Flash
Memory
DataRead method
User program and
parameter data
DM Area dataReading this data when power is turned ON can be enabled or
Comment memory
data
Function block
source data
This data is automatically read to RAM when power is turned
ON.
disabled in the PLC Setup.
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.
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.
CPU Unit
Battery
Backup
RAM
User program area
Parameter area
I/O memory area
DM Area
FB = Function block
Built-in flash memory
Power
ON
Auto read
Power
ON
Auto read
When power-ON
transfer is specified
in PLC Setup.
Auto read
User program
area
Parameter area
DM Area initial
values
Comment
memory area
FB source
memory area
48
CP1L-EL/EM CPU Unit OperationSection 2-3
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
2-3-3Memory Cassette Data Transfers
Writing to a Memory Cassette
DataMethodSource
User program and
parameter data
Comment memory
and function block
source data
DM Area data
Data is written to a Memory
Cassette using write operations from the CX-Programmer.
Data in the built-in flash memory is written to the Memory
Cassette.
Either of both of the following
can be transferred to the
Memory Cassette.
• Data in the built-in flash
memory.
•Data in RAM.
49
CP1L-EL/EM CPU Unit OperationSection 2-3
Reading from a Memory Cassette
DataMethodDestination
User program and
parameter data
Comment memory
and function block
source data
DM Area dataDM Area data originally from
This data is transferred by
turning SW2 on the DIP
switch to ON and turning ON
the power supply.
CPU Unit
Power turned ON with SW2 turned ON
RAM
Built-in flash memory
Data in the Memory Cassette
is transferred to RAM and
then automatically transferred
to the built-in flash memory.
Data is transferred to the builtin flash memory.
the built-in flash memory is
transferred back to the flash
memory and DM Area data
originally from RAM is transferred to RAM.
Memory Cassette
Battery
User program
area
Parameter
area
I/O memory area
DM Area
Backup
FB = Function block
User program
area
Parameter area
DM Area initial
values
Comment
memory area
FB source
memory area
User program
area
Parameter area
DM Area initial
values
Comment
memory area
FB source
memory area
DM Area
data from RAM
50
CPU Unit OperationSection 2-4
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.
Ethernet port servicing
Serial port servicing
Communications port servicing
Built-in flash memory access servicing
Memory Cassette access servicing
Online editing
Power ON
2-4CPU Unit Operation
2-4-1General 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 perip heral servicing is
performed. These processes are then repeated in cyclic fashion.
51
CPU Unit OperationSection 2-4
2-4-2I/O Refreshing and Peripheral Servicing
I/O RefreshingI/O refreshing involves cyclically transferring data with external devices using
preset words in memory. I/O refreshing includes the following:
• Refr eshing betw een I/O w ords in th e CIO Area and CPU Unit built-in I/O,
CP-series Expansion Units, and CP-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.
UnitsMax. data exchangeData exchange area
CPU Unit built-in I/O2 input words
2 output words
CP-series Expansion Units
and Expansion I/O Units
Fixed depending on Units I/O Bit Area
Peripheral ServicingPeripheral servicing involves servicing non-scheduled events for external
devices. This includes both events from external devices and service re quests
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.
ServiceDescription
Ethernet port servicing• Non-scheduled servicing for communicati ons
(either sending or receiving) via the Ethernet port.
Serial port servicing•Non-scheduled servicing for FINS or Host Link
commands received via a serial port from the CXProgrammer, PTs, or host computers (e.g.,
requests for program transfers, monitoring, forcedset/reset operations, or online editing)
• Non-scheduled servicing from the CPU Unit transmitted from a serial port (non-solicited communications)
Communications port servicing
Built-in flash memory access
servicing
Memory Cassette access servicing
•Servicing to execute network communicati o ns or
serial communications for the SEND, RECV, CMND
instructions using communications ports 0 to 7
(internal logical ports)
• Servicing to execute background execution using
communications ports 0 to 7 (internal logical ports)
• Read/write processing for built-in flash memory
•Read/write processing for a Memory Cassette
I/O Bit Area
52
Note(1) Ethernet port, serial port, and communications port servicing is allocated
8% of the previous cycle time by default (the default can be changed) for
each service. If servicing is separated over many cycles, delaying completion 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) An error will be occurred if the cycle time is too long. Modify the CX-Pro-
grammer’s response monitoring time longer according to the following
method.
Start the CX-Programmer. Select Change Model from the PLC Menu.
The Change PL C Dialog Box will be displayed. Click the Settings Button
on the right side of Network Type. The Network Settings [USB] Dialog
Box will be displayed. Click the Network Tab and increase the value in
Response Timeout(s).
CPU Unit OperationSection 2-4
2-4-3I/O Refresh Methods
I/O for CPU Unit built-in I/O and I/O on CP-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
Cyclic RefreshingI/O is refreshed after all the instructions in executable tasks have been exe-
cuted.
Task
Task
Task
I/O terminal
status
Cycle
END(001)
END(001)
END(001)
I/O refresh period
Immediate RefreshingWhen the immediate refr eshin g var iation of an in struc tion is spec ifie d and the
instruction’s 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.
I/O terminal status (built-in I/O)
!LD0.00
!OUT100.00
!MOV1 101
Immediate refresh
CIO 0
CIO 100
CIO 1
CIO 101
15
11
11
0
7
7
015
015
Note(1) Immediate refreshing is possible only for the Built-in I/O Area. Use
IORF(097) for I/O on CP-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 containing 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 executed.
• Output or destination (results) operands are written just after the instruction is executed.
53
CPU Unit OperationSection 2-4
(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) RefreshingWhen 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-series Expansion Units and CP-series Expansion I/O Units.
Example
If high-speed response is required from input to output, execute IORF(097)
before and after the relevant instructions.
NoteIORF(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 Cont rollers Progr am-ming Manual for instruction execution times.
2-4-4Initialization at Startup
The following initializing processes will be performed once each time the
power is turned ON.
• Conf irm mo un te d Un its an d I/O alloc at ion s.
• 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 Force d Status Hold B it.
(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.)
IORF
St
E
IORF
2
5
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.
54
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).
Auxiliary bit
PLC Setup setting
IOM Hold Bit Status
at Startup
Clear
(OFF)
Hold
(ON)
At power ON: Clear
At mode change: Clear
IOM Hold Bit (A500.12)
Clear (OFF)Hold (ON)
At power ON: Clear
At mode change: Hold
At power ON: Hold
At mode change: Hold
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.
CPU Unit Operating ModesSection 2-5
(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).
Auxiliary bit
PLC Setup setting
Forced Status Hold
Bit Status at Startup
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 processing.
2-5CPU Unit Operating Modes
2-5-1Operating 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 programs, 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 adjustments.
RUN:Programs are executed and some operations are disabled.
Clear
(OFF)
Hold
(ON)
Forced Status Hold Bit (A500.13)
Clear (OFF)Hold (ON)
At power ON: Clear
At mode change: Clear
At power ON: Clear
At mode change: Hold
At power ON: Hold
At mode change: Hold
2-5-2Status and Operations in Each Operating Mode
The following table lists status and operations for each mode.
OperationPROGRAM modeRUN modeMONITOR mode
Program executionStoppedExecutedExecuted
I/O refreshingExecutedExecutedExecuted
External I/O statusOFFAccording to programAccording to program
I/O memoryNon-holding memoryClearedAccording to programAccording to program
Holding memoryHeld
55
CPU Unit Operating ModesSection 2-5
OperationPROGRAM modeRUN modeMONITOR mode
CX-Programmer
operations
I/O memory monitoringOKOKOK
Program monitoringOKOKOK
Program
Note The following table shows the relationship of operating modes to tasks.
ModeCyclic task statusInterrupt task
PROGRAMDisabled status (INI)Stopped
RUN• Any task that has not yet been exec uted, will be in disabled status (INI).
• A task will go to READY status if the task is set to go to READY status at startup or the TASK ON (TKON) instruction has been executed for it.
MONITOR
• 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 interrupt condition is
met.
2-5-3Operating Mode Changes and I/O Memory
Operating Mode Changes and I/O Memory
Mode ChangesNon-holding areasHolding 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.
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
• HR Area
•DM Area
• Counter PV and Completion Flags
Auxiliary Area bits/words are holding or
non-holding depending on the address.
status
56
Note1. 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.
CPU Unit Operating ModesSection 2-5
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.
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
NameDescriptionSettingsDefault
Startup ModeSpecifies the
CPU Unit operating mode at
startup
•Program (See note.)
• Monitor
•Run
• Use programming console
NoteA Programming Console cannot be connected to the CP1L-EL/EM.
Use programming console
(See note.)
FALS
executed
NoteA Programming Console cannot be connected to a CP1L-EL/EM CPU Unit. If
Use programming console is set, the CPU Unit will start in RUN mode.
57
Power OFF OperationSection 2-6
10 ms
0
85% of the rated voltage or less or DC power
0 to 2 ms for DC
Momentary power
interruption not detected
and operation continues.
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
2-6Power OFF Operation
2-6-1Overview
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) DC Power
85% 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 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 2 ms for DC
power.
2. A momentary power interruption that lasts more than 2 ms for DC power
may or may not be detected.
58
Power OFF OperationSection 2-6
Power OFF detection time:
The time from when the power supply voltages drops to 85% 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.
DC: 85% 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
DC: 2 ms
Holding time for 5 V internal
power supply after power
OFF detection: 1 ms
The following timing chart shows the CPU Unit power OFF operation in more
detail.
Power OFF Timing Chart
Description of Operation
2-6-2Instruction Execution for Power Interruptions
Power OFF will be detected if the DC power supply falls below 85% of the
rated voltage for the power OFF detection time (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.
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.
59
Computing the Cycle TimeSection 2-7
2-7Computing the Cycle Time
2-7-1CPU Unit Operation Flowchart
The CPU Unit processes data in repeating cycles from the overseeing processing up to peripheral servicing as shown in the following diagram.
Power ON
Sets error flags.
ERR/ALM
indicator ON or
flashing?
Flashing
(nonfatal error)
ON (fatal error)
Checks Unit connection status.
Checks hardware and user
program memory.
Error
Executes user program (i.e.,
executes READY cyclic tasks).
Check OK?
Normal
End of program?
NO
Startup
initialization
Overseeing
processing
Program
execution
PLC
cycle
time
60
YES
Waits until the set cycle time
has elapsed.
Calculates cycle time.
Performs I/O refreshing.
Services peripheral devices.
Cycle time
calculation
I/O
refreshing
Peripheral
servicing
Computing the Cycle TimeSection 2-7
2-7-2Cycle 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-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 Ethernet and serial ports
• Fixed peripheral servicing time in the PLC Setup
Note1. 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 operations given in the following tables.
Cycle time = (1) + (2) + (3) + (4) + (5)
1: Overseeing
DetailsProcessing time and fluctuation cause
Checks the I/O bus and user program memory, checks for
battery errors, etc.
2: Program Execution
DetailsProcessing time and fluctuation cause
Executes the user program, and calculates the total time
time taken for the instructions to execute the program.
3: Cycle Time Calculation
DetailsProcessing 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.
4: I/O Refreshing
DetailsProcessing time and fluctuation cause
CPU Unit builtin I/O and I/O
on CP-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.
0.4 ms
Total instruction execution 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)).
I/O refresh time for each Unit multiplied by the number of
Units used.
61
Computing the Cycle TimeSection 2-7
5: Peripheral Servicing
DetailsProcessing time and fluctuation cause
Services Ethernet port.If a uniform peripheral servicing time hasn’t been set in the PLC Setup for
Services serial ports
Services communications ports.If a uniform peripheral servicing time hasn’t been set in the PLC Setup for
Services built-in flash memory access.If a uniform peripheral servicing time hasn’t been set in the PLC Setup for
Serves Memory Cassette access.
this servicing, 8% of the previous cycle’s 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, servicing 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.
this servicing, 8% of the previous cycle’s 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, servicing 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.
this servicing, 8% of the previous cycle’s 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, servicing 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.
2-7-3Functions Related to the Cycle Time
Minimum Cycle TimeSet the minimum cycle time to a non-zero value to elimina te 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.
Minimum cycle time
(effective)
Actual cycle
time
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 minimum cycle time setting, the actual cycle time will remain unchanged.
Minimum cycle time
Actual cycle
time
PLC Setup
Minimum cycle time
(effective)
Actual cycle
time
Minimum cycle time
Actual cycle
time
Minimum cycle time
(effective)
Actual cycle
time
Minimum cycle time (effective)
Actual cycle
time
62
NameSettingsDefault
Minimum cycle time0000 to 7D00 hex
0000 hex: Variable cycle time
(1 to 32,000 ms in 1-ms increments)
Computing the Cycle TimeSection 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
NameSettingsDefault
Enable Watch Cycle
Time Setting
Watch Cycle Time001 to FA0: 10 to 40,000 ms
Related Flags
NameAddressDescription
Cycle Time Too Long
Flag
0: Default (1 s)
1: User setting
(10-ms increments)
A401.08Turns ON if the present cycle time exceeds the
Watch Cycle Time set in the PLC Setup.
0000 hex: Watch cycle time of
1 s
Cycle Time
Monitoring
Related Words
The maximum cycle time is stored in A262 and A263 and the present cycle
time is stored in A264 and A265 every cycle.
NameAddressesDescription
Maximum Cycle
Time
Present Cycle TimeA264 and
A262 and
A263
A265
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.)
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.)
The average cycle time for the past eight cycles can be read from the CX- Programmer.
NoteThe 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 executed.
63
Computing the Cycle TimeSection 2-7
2-7-4I/O Refresh Times for PLC Units
CP-series Expansion Unit and Expansion I/O Unit I/O Refresh Times
NameModelI/O refresh time per Unit
Expansion I/O UnitsCP1W-40EDR0.39 ms
CP1W-40EDT0.39 ms
CP1W-40EDT10.39 ms
CP1W-32ER0.33 ms
CP1W-32ET0.33 ms
CP1W-32ET10.33 ms
CP1W-20EDT0.18 ms
CP1W-20EDT10.18 ms
CP1W-16ER0.25 ms
CP1W-16ET0.25 ms
CP1W-16ET10.25 ms
CP1W-8ED0.13 ms
CP1W-8ER0.08 ms
CP1W-8ET0.08 ms
CP1W-8ET10.08 ms
Analog Input UnitsCP1W-AD0410.61 ms
CP1W-AD0420.87 ms
Analog Output UnitsCP1W-DA0210.33 ms
CP1W-DA0410.33 ms
CP1W-DA0420.40 ms
Analog I/O UnitsCP1W -MAD110.32 ms
CP1W-MAD420.87 ms
CP1W-MAD440.97 ms
Temperature Sensor UnitsCP1W-TS0010.25 ms
CP1W-TS0020.52 ms
CP1W-TS0030.67 ms
CP1W-TS0040.47 ms
CP1W-TS1010.25 ms
CP1W-TS1020.52 ms
CompoBus/S I/O Link UnitCP1W-SRT210.21 ms
64
NoteThe I/O refresh time for CPU Unit built-in I/O is included in overhead process-
ing.
Computing the Cycle TimeSection 2-7
2-7-5Cycle 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-EL/EM
CPU Unit.
Conditions
ItemDetails
CP1L-EL/EMCP1W-40EDR
40-pt I/O Unit
User program5 K stepsLD instructions: 2.5 K steps,
Ethernet port connectionYes and no
Fixed cycle time processingNo
Serial port connectionNo
Other peripheral servicingNo
Calculation Example
Process nameCalculationProcessing time
(1) Overseeing---0.4 ms0.4 ms
(2) Program execution0.55 μs × 2,500 + 1.1 μs
× 2,500
(3) Cycle time calculation (Minimum cycle time not
set)
(4) I/O refreshing0.39 ms0.39 ms0.39 ms
(5) Peripheral servicing(Only Ethernet port con-
When online editing is executed to change the program from the CX-Programmer 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 instr uc tio ns
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:
CPU UnitIncrease in cycle time for online editing
CP1L-EL/EM CPU UnitMaximum: 16 ms, Normal: 12 ms
(for a program size of 10 Ksteps)
When editing online, the cycle time will be extended by according to the editing that is performed. Be sure that the additional time will not adversely affect
system operation.
65
Computing the Cycle TimeSection 2-7
Input
I/O refresh
Input ON delay
Output ON delay
Cycle timeCycle time
(Interrupt to
CPU Unit)
Output
Minimum I/O
response time
Instruction
execution
Instruction
execution
Instruction
execution
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 multiple 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.
2-7-7I/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
66
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 tim e × 2) + Output ON
delay
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.