Omron CP1L-EL20DR-D, CP1L-EL20DT-D, CP1L-EM30DT1-D, CP1L-EM40DR-D, CP1L-EL20DT1-D Operation Manual

...
Cat. No. W516-E1-04
SYSMAC CP Series CP1L-EL20D@-@ CP1L-EM30D@-@ CP1L-EM40D@-@
CP1L-EL/EM CPU Unit
OPERATION M ANUAL
NOTE
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. Neverthe­less, 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 pre­cautions can result in injury to people or damage to property.
!DANGER Indicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury. Additionally, there may be severe property damage.
!WARNING Indicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury. Additionally, there may be severe property damage.
!Caution Indicates 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, how­ever, 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 Versions A “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 differenti­ate between CPU Units of different unit versions.
ix
x

TABLE OF CONTENTS

PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii
1 Intended Audience. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
2 General Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x xiv
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi
5 Application Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii
6 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
7 Software Licenses and Copyrights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
SECTION 1
Features and System Configuration . . . . . . . . . . . . . . . . . . . 1
1-1 Features and Main Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-2 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1-3 Function Charts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1-4 Function Blocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
SECTION 2
Nomenclature and Specifications . . . . . . . . . . . . . . . . . . . . . 19
2-1 Part Names and Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20
2-2 Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2-3 CP1L-EL/EM CPU Unit Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
2-4 CPU Unit Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
2-5 CPU Unit Operating Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2-6 Power OFF Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
2-7 Computing the Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
SECTION 3
Installation and Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
3-1 Fail-safe Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
3-2 Installation Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
3-3 Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
3-4 Wiring CP1L-EL/EM CPU Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
3-5 Wiring CPU Unit I/O. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
3-6 CP-series Expansion I/O Unit Wiring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
SECTION 4
I/O Memory Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
4-1 Overview of I/O Memory Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
4-2 I/O Area and I/O Allocations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .110
4-3 1:1 Link Area. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
4-4 Serial PLC Link Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
4-5 Internal Work Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
xi
TABLE OF CONTENTS
4-6 Holding Area (H). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
4-7 Auxiliary Area (A). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
4-8 TR (Temporary Relay) Area . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
4-9 Timers and Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
4-10 Data Memory Area (D) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
4-11 Index Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
4-12 Data Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134
4-13 Task Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
4-14 Condition Flags . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
4-15 Clock Pulses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
SECTION 5 CX-Programmer Connection, Program Transfer, Trial Operation,
and Debugging. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139
5-1 Connecting the CX-Programmer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
5-2 Program Transfer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
5-3 Trial Operation and Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
SECTION 6
Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
6-1 System Configuration and Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160
6-2 Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
6-3 Network Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165
6-4 Basic Setting for Ethernet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
6-5 FINS Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .172
6-6 Socket Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
6-7 Automatic Clock Adjustment and Specifying Servers by Host Name . . . . . . . . . . . . . . . . . 211
SECTION 7
Pulse and Counter Functions. . . . . . . . . . . . . . . . . . . . . . . . . 217
7-1 High-speed Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 218
7-2 Pulse Outputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
7-3 Inverter Positioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
SECTION 8
Advanced Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 373
8-1 Interrupt Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 374
8-2 Quick-response Inputs. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 397
8-3 Serial Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400
8-4 Built-in Analog Input. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 428
8-5 Battery-free Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 431
8-6 Memory Cassette Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
xii
TABLE OF CONTENTS
8-7 Program Protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 441
8-8 Failure Diagnosis Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .451
8-9 Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 455
SECTION 9
Using Expansion Units and Expansion I/O Units. . . . . . . . 457
9-1 Connecting Expansion Units and Expansion I/O Units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 458
9-2 Analog Input Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 459
9-3 Analog Output Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 472
9-4 Analog I/O Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 483
9-5 Temperature Sensor Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .513
9-6 CompoBus/S I/O Link Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 548
SECTION 10
Analog Input/Output Option Board . . . . . . . . . . . . . . . . . . . 553
10-1 General Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
10-2 Part Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
10-3 Installation and Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555
10-4 Memory Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
10-5 Analog Input Option Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .557
10-6 Analog Output Option Board. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 560
10-7 Analog I/O Option Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .564
10-8 Startup Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 568
10-9 Trouble Shooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569
10-10 The Use of Analog Option Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569
SECTION 11
LCD Option Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571
11-1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572
11-2 Specifications. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 573
11-3 Part Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 574
11-4 Installation and Removing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575
11-5 Basic Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 576
11-6 LCD Option Board Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
11-7 Trouble Shooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 630
SECTION 12
Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633
12-1 Error Classification and Confirmation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 634
12-2 Troubleshooting. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 637
12-3 Error Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 648
12-4 Troubleshooting Unit Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .649
xiii
TABLE OF CONTENTS
SECTION 13
Inspection and Maintenance . . . . . . . . . . . . . . . . . . . . . . . . . 651
13-1 Inspections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 652
13-2 Replacing User-serviceable Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 654
Appendices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
A Standard Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 657
B Dimensions Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .663
C Auxiliary Area Allocations by Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 671
D Auxiliary Area Allocations by Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 693
E Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 745
F Con nectio ns to Serial Com m unicat ions Option Boards . . . . . . . . . . . . . . . . . . . . . . . . . . . . 747
G PLC Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 773
H TCP Status Transitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .803
I Ethernet Network Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 805
J Buffer Configuration (CP1L-EL/EM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 807
K Ethernet Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 809
Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 811
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 819
xiv

About this Manual:

CS1-H CPU Units
CS-series Power Supply Units
Note:
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 Series CP 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 fol­lowing section.
Definition of the CP Series
The CP Series is centered around the CP1H and CP1L CPU Units and is designed with the same basic architecture as the CS and CJ Series. Always use CP-series Expansion Units and CP-series Expansion I/O Units when expanding I/O capacity.
I/O words are allocated in the same way as the CPM1A/CPM2A PLCs, i.e., using fixed areas for inputs and outputs.
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 speci­fications.
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 trouble­shooting.
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.
Cat. No. Model numbers Manual name D escription
W516 CP1L-EL20D@-@
CP1L-EM30D@-@ CP1L-EM40D@-@
W451 CP1H-X40D@-@
CP1H-XA40D@-@ CP1H-Y20DT-D CP1L-L10D@-@ CP1L-L14D@-@ CP1L-L20D@-@ CP1L-M30D@-@ CP1L-M40D@-@ CP1L-M60D@-@
W461 CP1L-L10D@-@
CP1L-L14D@-@ CP1L-L20D@-@ CP1L-M30D@-@ CP1L-M40D@-@ CP1L-M60D@-@
W446 CXONE-AL@@C-V4
CXONE-AL
W447 CXONE-AL@@C-V4
CXONE-AL@@D-V4
W463 CXONE-AL@@C-V4
CXONE-AL@@D-V4
W464 CXONE-AL@@C-V4
CXONE-AL@@D-V4
W344 WS02-PSTC1-E CX-Protocol Opera-
@@D-
V4
SYSMAC CP Series CP1L-EL/EM CPU Unit Operation Man­ual (this manual)
SYSMAC CP Series CP1H /CP1L CPU Unit Programming Manual
SYSMAC CP Series CP1L CPU Unit Intro­duction Manual
SYSMAC CX-Pro­grammer Operation Manual
CX-Programmer Operation Manual Function Blocks/ Structured Text
CX-One Setup Man­ual
CX-Integrator Opera­tion 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-Pro­grammer 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 func­tions, refer to the CX-Programmer Operation Man­ual (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 mac­ros.
The CX-Protocol is required to create protocol mac­ros for user-specific serial communications or to customize the standard system protocols.
xvii
Cat. No. Model numbers Manual name D escription
W342 CS1G/H-CPU@@H
CS1G/H-CPU@@-V1 CS1D-CPU@@H CS1D-CPU@@S CS1W-SCU@@-V1 CS1W-SCB@@-V1 CJ1G/H-CPU@@H CJ1G-CPU@@P CJ1M-CPU@@ CJ1G-CPU@@ CJ1W-SCU@@-V1
W420 CS1W-ETN21
CJ1W-ETN21
W421 CS1W-ETN21
CJ1W-ETN21
SYSMAC CS/CJ/CP/ NSJ-series Communi­cations Commands Reference Manual
Ethernet Units Opera­tion Manual Construc­tion of Networks
Ethernet Units Opera­tion Manual Construc­tion of Applications
Describes commands addressed to CS-series, CJ­series, and CP-series CPU Units, including C-mode commands and FINS commands.
Note This manual describes on commands
address to CPU Units regardless of the com­munications path. (CPU Unit serial ports, Serial Communications Unit/Board ports, and Communications Unit ports can be used.) Refer to the relevant operation manuals for information on commands addresses to Spe­cial I/O Units and CPU Bus Units.
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 ser­vice.
Provides information on constructing host applica­tions for 100Base-TX Ethernet Units, including func­tions 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 NON­INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE OF THE PRODUCTS. BUYER ACKNOWLEDGES THAT IT ALONE HAS DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR INTENDED USE.
Omron further disclaims all warranties and responsibility of any type for claims or expenses based on infringement by the Products or otherwise of any intellectual property right.
• Buyer Remedy
Omron’s sole obligation hereunder shall be, at Omron’s election, to (i) replace (in the form originally shipped with Buyer responsible for labor charges for removal or replacement thereof) the non-complying Product, (ii) repair the non-complying Product, or (iii) repay or credit Buyer an amount equal to the purchase price of the non-complying Product; provided that in no event shall Omron be responsible for warranty, repair, indemnity or any other claims or expenses regarding the Products unless Omron’s analysis confirms that the Products were properly handled, stored, installed and maintained and not subject to contamination, abuse, misuse or inappropriate modification. Return of any Products by Buyer must be approved in writing by Omron before shipment. Omron Companies shall not be liable for the suitability or unsuitability or the results from the use of Products in combination with any electrical or electronic components, circuits, system assemblies or any other materials or substances or environments. Any advice, recommendations or information given orally or in writing, are not to be construed as an amendment or addition to the above warranty.
See http://www.omron.com/global/ or contact your Omron representative for published information.
LIMITATION ON LIABILITY; ETC
OMRON COMPANIES SHALL NOT BE LIABLE FOR SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, LOSS OF PROFITS OR PRODUCTION OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED IN CONTRACT, WARRANTY, NEGLIGENCE OR STRICT LIABILITY.
Further, in no event shall liability of Omron Companies exceed the individual price of the Product on which liability is asserted.
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.
1 Intended Audience. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
2 General Precautions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiv
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvi
5 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxvii
6 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
6-1 Applicable Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
6-2 Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
6-3 Conformance to EC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxx
6-4 Relay Output Noise Reduction Methods. . . . . . . . . . . . . . . . . . . . . . xxxi
6-5 Conditions for Meeting EMC Directives
when Using CP-series Relay Expansion I/O Units. . . . . . . . . . . . . . xxxii
7 Software Licenses and Copyrights . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii
xxiii
Intended Audience 1

1 Intended Audience

This manual is intended for the following personnel, who must also have knowledge of electrical systems (an electrical engineer or the equivalent).
• Personnel in charge of installing FA systems.
• Personnel in charge of designing FA systems.
• Personnel in charge of managing FA systems and facilities.

2 General Precautions

The user must operate the product according to the performance specifica­tions described in the operation manuals.
Before using the product under conditions which are not described in the manual or applying the product to nuclear control systems, railroad systems, aviation systems, vehicles, combustion systems, medical equipment, amuse­ment machines, safety equipment, and other systems, machines, and equip­ment that may have a serious influence on lives and property if used improperly, consult your OMRON representative.
Make sure that the ratings and 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 man­ual close at hand for reference during operation.
!WARNING It is extremely important that a PLC and all PLC Units be used for the speci-
fied purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PLC System to the above-mentioned appli­cations.

3 Safety Precautions

!WARNING Do not attempt to take any Unit apart while the power is being supplied. Doing
so may result in electric shock.
!WARNING Do not touch any of the terminals or terminal blocks while the power is being
supplied. Doing so may result in electric shock.
!WARNING Do not attempt to disassemble, repair, or modify any Units. Any attempt to do
so may result in malfunction, fire, or electric shock.
!WARNING Provide safety measures in external circuits (i.e., not in the Programmable
Controller), including the following items, to ensure safety in the system if an abnormality occurs due to malfunction of the PLC or another external factor affecting the PLC operation. Not doing so may result in serious accidents.
xxiv
• Emergency stop circuit s, interlock circuits, limit circuits, and similar safety measures must be provided in external control circuits.
Safety Precautions 3
• 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 counter­measure for such problems, external safety measures must be provided to ensure safety in the system.
• When the 24-V DC output (service power supply to the PLC) is over­loaded or short-circuited, the voltage may drop and result in the outputs being turned OFF. As a countermeasure for such problems, external safety measures must be provided to ensure safety in the system.
!WARNING Fail-safe measures must be taken by the customer to ensure safety in the
event of incorrect, missing, or abnormal signals caused by broken signal lines, momentary power interruptions, or 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 Precautions 4
!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 dur­ing 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.

4 Operating 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 tem­perature.
• Locations subject to corrosive or flammable gases.
• Locations subject to dust (especially iron dust) or salts.
• Locations subject to exposure to water, oil, or chemicals.
• Locations subject to shock or vibration.
• 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 con­ditions 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 Precautions 5

5 Application Precautions

Observe the following precautions when using the PLC System.
!WARNING Always heed these precautions. Failure to abide by the following precautions
could lead to serious or possibly fatal injury.
• Always connect to 100 Ω or less when installing the Units. Not connecting to a ground of 100 Ω or less may result in electric shock.
• Always turn OFF the power supply to the PLC before attempting any of the following. Not turning OFF the power supply may result in malfunction or electric shock.
• Mounting or dismounting Expansion Units or any other Units
• Connecting or removing the Memory Cassette or Option Board
• Setting DIP switches or rotary switches
• Connecting or wiring the cables
• Connecting or disconnecting the connectors
!Caution Failure to abide by the following precautions could lead to faulty operation of
the PLC or the system, or could damage the PLC or PLC Units. Always heed these precautions.
• 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-cir­cuiting in external wiring. Insufficient safety measures against short-cir­cuiting may result in burning.
• Mount the Unit only after checking the connectors and terminal blocks completely.
• Be sure that all the terminal screws and cable connector screws are tight­ened to the torque specified in the relevant manuals. Incorrect tightening torque may result in malfunction.
• Wire all connections correctly according to instructions in this manual.
• 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 dis­sipation. Leaving the label attached may result in malfunction.
• Use crimp terminals for wiring. Do not connect bare stranded wires directly to terminals. Connection of bare stranded wires may result in burning.
• Do not apply voltages to the input terminals in excess of the rated input voltage. Excess voltages may result in burning.
xxvii
Application Precautions 5
• 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 burn­ing.
• Check that the DIP switches and data memory (DM) are properly set before starting operation.
• Check the user program for proper execution before actually running it on the Unit. Not checking the program may result in an unexpected opera­tion.
• Resume operation only after transferring to the new CPU Unit the con­tents of the DM, HR, and CNT Areas required for resuming operation. Not doing so may result in an unexpected operation.
• Confirm that no adverse effect will 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 mal­function 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 trans­ferred.
• When transporting or storing the product, cover the PCBs and the Units or put there in the antistatic bag with electrically conductive materials to pre­vent 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 Precautions 5
• 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 sup­ply 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 sub­jected to shock may leak if they are used.
• Always construct external circuits so that the power to the PLC it turned ON before the power to the control system is turned ON. If the PLC power supply is turned ON after the control power supply, temporary errors may result in control system signals because the output terminals on DC Out­put Units and other Units will momentarily turn ON when power is turned ON to the PLC.
• Fail-safe measures must be taken by the customer to ensure safety in the event that outputs from Output Units remain ON as a result of internal cir­cuit failures, which can occur in relays, transistors, and other elements.
xxix
Conformance to EC Directives 6
• 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.)

6 Conformance to EC Directives

6-1 Applicable Directives

•EMC Directives
• Low Voltage Directive

6-2 Concepts

EMC Directives
OMRON devices that comply with EC Directives also conform to the related EMC standards so that they can be more easily built into other devices or the overall machine. The actual products have been checked for conformity to EMC standards (see the following note). Whether the products conform to the standards in the system used by the customer, however, must be checked by the customer.
EMC-related performance of the OMRON devices that comply with EC Direc­tives will vary depending on the configuration, wiring, and other conditions of the equipment or control panel on which the OMRON devices are installed. The customer must, therefore, perform the final check to confirm that devices and the overall machine conform to EMC standards.
Note The applicable EMC (Electromagnetic Compatibility) standard is EN61131-2.
Low Voltage Directive
Always ensure that devices operating at voltages of 50 to 1,000 V AC and 75 to 1,500 V DC meet the required safety standards for the PLC (EN61131-2).

6-3 Conformance to EC Directives

The CP1L-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 devic­es 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 Directives 6
CR method
Power supply
Inductive
load
C
R
Diode method
Power supply
Inductive
load

6-4 Relay 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 out­put 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.
Note Refer to EN61131-2 for more details.
Countermeasure Examples
When switching an inductive load, connect an surge protector, diodes, etc., in parallel with the load or contact as shown below.
Circuit Current Characteristic Required element
AC DC
Yes Yes If the load is a relay or solenoid, there is
a time lag between the moment the cir­cuit is opened and the moment the load is reset.
If the supply voltage is 24 or 48 V, insert the surge protector in parallel with the load. If the supply voltage is 100 to 200 V, insert the surge protector between the contacts.
No Yes The diode connected in parallel with
the load changes energy accumulated by the coil into a current, which then flows into the coil so that the current will be converted into Joule heat by the resistance of the inductive load.
This time lag, between the moment the circuit is opened and the moment the load is reset, caused by this method is longer than that caused by the CR method.
The 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 experi­ments, and take into consideration that the capacitance suppresses spark dis­charge when the contacts are sepa­rated and the resistance limits the current that flows into the load when the circuit is closed again.
The dielectric strength of the capacitor must be 200 to 300 V. If the circuit is an AC circuit, use a capacitor with no polarity.
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 Directives 6
Varistor method
Power supply
Inductive
load
r
Circuit Current Characteristic Required element
AC DC
Yes Yes The varistor method prevents the impo-
sition of high voltage between the con­tacts by using the constant voltage characteristic of the varistor. There is time lag between the moment the cir­cuit is opened and the moment the load is reset.
If the supply voltage is 24 or 48 V, insert the varistor in parallel with the load. If the supply voltage is 100 to 200 V, insert the varistor between the con­tacts.
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-5 Conditions 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
32 33
1,2,3... 1. Cable Connection Method
Software Licenses and Copyrights 7
CH
NCNCNC
NC
NC
NC
COM
COM COM COM COM COM COM03 06 01 03 06
00 02 04 06 08 10
00 01 02 04 05 07 00 02 04 05 07
00 02 04 06 08 10
01 03 05 07 09 11 01 03 05 07 09 11
IN
40EDR
OUT
CH CH
CH CH
EXP
CH CH
CH
111009080706050403020100
111009080706050403020100
0706050403020100
0706050403020100
MAC Address: 01234567890A
01COM 0305070911010305070911
00NC 02 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.

7 Software Licenses and Copyrights

This product incorporates certain third party software. The license and copy­right 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 modifica­tion, 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, SPE­CIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SER­VICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUP­TION) 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 Copyrights 7
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.
1-1 Features and Main Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-1 CP1L-EL/EM Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-2 Features. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1-2 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1-2-1 Basic System. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1-2-2 System Expansion. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1-2-3 Restrictions on Syst em Configuration . . . . . . . . . . . . . . . . . . . . . . . 15
1-3 Function Charts. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1-4 Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1-4-1 Overview of Function Blocks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1-4-2 Advantages of Function Blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
1
Features and Main Functions Section 1-1
Program capacity
M: 10K steps L: 5K steps
Expansion capability
E: Ethernet port
Number of built-in normal I/O points
40: 40 30: 30 20: 20
Input classification
D: DC inputs
Power supply
D: DC
Output classification
R: Relay outputs T: Transistor outputs (sinking) T1: Transistor outputs (sourcing)

1-1 Features and Main Functions

1-1-1 CP1L-EL/EM Overview

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 Units EL CPU Units
Model CP1L-EM40DR-D
CP1L-EM40DT-D
CP1L-EM40DT1-D
Power supply 24 V DC Program capacity(See note 3.) 10K steps 5K steps FB capacity 10K steps DM Area capacity 32K words 10K words Maximum number of I/O points 160 (See note 1.) 150 (See note 1.) 60 (See note 2.) Normal I/O I/O points 40 30 20
Input points 24 18 12
Input specifications 24 VDC
Interrupt or quick-
response inputs
Output points 16 12 8
Output
specifications
High-speed counter inputs 4 counters/2 axes, 100 kHz (single-phase),
Pulse outputs 2 axes, 100 kHz (transistor outputs) Built-in analog input 2 channels (10 bits) Built-in Ethernet port 1
6 max
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 Functions Section 1-1
k
k

1-1-2 Features

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
01COM 03 05 07 09 11 01 03 05 07 09 11
00NC 02 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
Note In this manual, unless otherwise specified, “CP1W-CIF12” refers to the
CP1W-CIF12 and CP1W-CIF12-V1 Option Boards.
3
Features and Main Functions Section 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 inde­pendent 10K steps large FB capacity. Function blocks can be used in pro­gramming SYSMAC CP-series PLCs.
For details, refer to 1-4 Function Blocks.
Features and Main Functions Section 1-1
Built-in inputs (Functions can be assigned.)
High-speed counters (4 counters/2 axes) 100 kHz (single phase)
MAC Address: 01234567890A
01COM 03 05 07 09 11 01 03 05 07 09 11
00NC 02 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
Full Complement of High-speed Counter Functions
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 pos­sible 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 High­speed 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 Functions Section 1-1
Built-in outputs (Functions assigned.)
2 pulse outputs 100 kHz
MAC Address: 01234567890A
01COM 03 05 07 09 11 01 03 05 07 09 11
00NC 02 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 out­putting fixed duty ratio pulse output signals from the CPU Unit's built-in out­puts.
• Pulse outputs for 2 axes at 100 kHz maximum are provided as standard features. (See note.)
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 Functions Section 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 decel­eration is executed (for speed control or positioning), the target speed and acceleration and deceleration rates can be changed during acceleration or deceleration.
Lighting and Power Control by Outputting Variable Duty Ratio Pulses
Operations, such as lighting and power control, can be handled by outputting variable duty ratio pulse (PWM) output signals from the CPU Unit's built-in outputs.
Origin Searches Origin Search and Origin Return Operations Using a Single Instruction
An accurate origin search combining all I/O signals (origin proximity input sig­nal, origin input signal, positioning completed signal, error counter reset out­put, etc.) can be executed with a single instruction. It is also possible to move directly to an established origin using an origin return operation.
Input Interrupts In direct mode, an interrupt task can be started when a built-in input turns ON
or OFF. In counter mode, the rising or falling edges of built-in inputs can be counted, and an interrupt task started when the count reaches a specified value. The maximum number of interrupt input points is 6 for CPU Units with 20, 30 or 40 I/O points.
Note For 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 high­speed counter. The interrupt input response frequency in counter mode must be 5 kHz or less total for all interrupts.
Quick-response Inputs
Note For 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 num­ber 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 Input The 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 tem­peratures or potentiometer inputs.
7
Features and Main Functions Section 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
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
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
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 con­nect 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 indepen­dently of the program by turning software switches.
8
Features and Main Functions Section 1-1
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
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
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
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
Another CP1L-EL/EM CPU Unit
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
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 Cassettes Built-in flash memory data, such as programs and DM initial-value data, can
Security A 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, pro­grams 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 pro­gram from a CX-Programmer, access to the program is denied if the password that is entered does not match the registered password. If incorrect 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 Configuration Section 1-2
CPU Unit with 40 I/O Points CPU Unit with 30 I/O Points CPU Unit with 20 I/O Points
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
SYSMAC CP1L
MAC Address: 01234567890A
BKUP
ERR/ALM
LNK/ACT
POWER
RUN
INH
NC 02 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
SYSMAC CP1L
MAC Address: 01234567890A
BKUP
ERR/ALM
LNK/ACT
POWER
RUN
INH
00NC 02 04 06 08 10 00 02 04 NC
01COM 03 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-2 System Configuration

1-2-1 Basic System

Maximum Number of Normal I/O Points
Type I/O
capacity
EM 40 points 24 VDC CP1L-EM40DR-D 24 DC inputs 16 relay outputs 555 g max.
30 points 24 VDC CP1L-EM30DR-D 18 DC inputs 12 relay outputs 485 g max.
EL 20 points 24 VDC CP1L-EL20DR-D 12 DC inputs 8 relay outputs 400 g max.
Power supply
voltage
Model Normal built-
Normal built-in outputs Weight
in inputs
CP1L-EM40DT-D 16 transistor (sinking) outputs 515 g max. CP1L-EM40DT1-D 16 transistor (sourcing) outputs 515 g max.
CP1L-EM30DT-D 12 transistor (sinking) outputs 455 g max. CP1L-EM30DT1-D 12 transistor (sourcing) outputs 455 g max.
CP1L-EL20DT-D 8 transistor (sinking) outputs 380 g max. CP1L-EL20DT1-D 8 transistor (sourcing) outputs 380 g max.
Optional Products
Item Model Specifications Weight
Memory Cassette
LCD Option Board
Analog Option Board
Note CP1W-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 Ether­net ports (such as when using the CX-Programmer).
10
CP1W-ME05M Can be used to store user programs in
flash memory, parameters, DM initial values, comment memory, FB pro­grams, and data in RAM.
CP1W-DAM01 Can 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 Configuration Section 1-2
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
NS-series PT, personal computer, bar code reader, etc.
RS-232C (Expansion)
CP1W-CIF01 RS-232C Option Board
CP1W-CIF11/CIF12 RS-422A/485C Option Board
RS-422A (Expansion)
Inverter, etc.
COMM
COMM
Option Boards for Serial Communications
Appearance Name Model Port Serial communications modes
RS-232C Option Board
RS-422A/485 Option Board
CP1W-CIF01 One RS-232C port
(D-Sub, 9 pins, female)
CP1W-CIF11/CIF12 One RS-422A/485
port (terminal block for ferrules)
Host Link, NT Link (1: N or
Link Master, 1:1 Link Slave
1:1
), No-protocol, Serial PLC Link Slave, Serial PLC Link Master, Serial Gateway (conversion to CompoWay/F, conversion to Mod­bus-RTU), peripheral bus
11
System Configuration Section 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
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
SYSMAC CP1L
MAC Address: 01234567890A
BKUP
ERR/ALM
LNK/ACT
POWER
RUN
INH
NC 02 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-2 System 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 tem­perature 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
00NC 02 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 Configuration Section 1-2
Maximum I/O Points
Up to three Expansion Units or Expansion I/O Units can be connected to a CPU Unit with 30 or 40 I/O points and one Expansion Unit or Expansion I/O Unit can be connected to a CPU Unit with 20 I/O points. The maximum I/O capacity is thus achieved by connecting either one or three Expansion Units or Expansion I/O Units.
Type I/O capacity Model Built-in
inputs
EM 40 points CP1L-EM40DR-D
CP1L-EM40DT-D CP1L-EM40DT1-D
30 points CP1L-EM30DR-D
CP1L-EM30DT-D CP1L-EM30DT1-D
EL 20 points CP1L-EL20DR-D
CP1L-EL20DT-D
24 16 3 Units max.
18 12 3 Units max.
12 8 1 Unit max.
CP1L-EL20DT1-D
CP-series Expansion I/O Units
Appearance Model Normal
CP1W-40EDR 24 VDC:
NCNCNC
COM
01 03 05 07 09 11 01 03 05 07 09 11
NC
00 02 04 06 08 10
CH CH
CH
IN
CH CH
0706050403020100
OUT
CH
0706050403020100
CH CH
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-32ER None 32 relay outputs 465 g max.
EXP
CP1W-32ET CP1W-32ET1 CP1W-20EDR1 24 VDC: CP1W-20EDT 8 transistor outputs (sinking) CP1W-20EDT1 CP1W-16ER None 16 relay outputs 280 g max. CP1W-16ET CP1W-16ET1 CP1W-8ED 24 VDC:
CP1W-8ER None 8 relay outputs 250 g max. CP1W-8ET 8 transistor outputs (sinking) CP1W-8ET1 8 transistor outputs (sinking)
Built-in
outputs
inputs
24 inputs
12 inputs
8 inputs
Maximum number of
Expansion I/O Units or
Maximum total I/O
points
Expansion Units
Max.: 160 points Inputs: 24 × 3 Outputs: 16 × 3
Inputs: 96 points
Outputs: 64 points
Max.: 150 points Inputs: 24 × 3 Outputs: 16 × 3
Inputs: 90 points
Outputs: 60 points
Max.: 60 points Inputs: 24 Outputs: 16
Inputs: 36 points
Outputs: 24 points
Normal outputs Weight
16 relay outputs 380 g max. 16 transistor outputs (sinking)
320 g max.
16 transistor outputs (sourcing)
32 transistor outputs (sinking)
325 g max. 32 transistor outputs (sourcing) 8 relay outputs 300 g max.
8 transistor outputs (sourcing)
16 transistor outputs (sinking)
225 g max. 16 transistor outputs (sourcing) None 200 g max.
13
System Configuration Section 1-2
NC
NC
CH
I IN1 I IN3
I IN2
VIN1
VIN2
VIN3COM1
COM2
I IN4
VIN4
COM4NCAG
COM3
IN
CH
I OUT1 I OUT3
I OUT2
VOUT1
VOUT2
VOUT3
COM1
COM2
I OUT4
VOUT4
COM4NCAG
COM3
OUT
BD L NC(BS-) NC
BD H NC(BS+)
S
COMM ERR
No.
SRT21
EXP
CP-series Expansion Units
Name and
appearance
Analog I/O Units CP1W-MAD11 2 analog
Analog Input Units
Model Specifications Weight
inputs
0 to 5 V/1 to 5 V/0 to 10 V/10 to +10 V/0
Resolu­tion: 6,000
to 20 mA/4 to 20 mA
1 analog output
1 to 5 V/0 to 10 V/
10 to +10 V/0 to 20 mA/4 to 20 mA
CP1W-MAD42 4 analog
inputs
2 analog outputs
0 to 5 V/1 to 5 V/0 to 10 V/10 to +10 V/0 to 20 mA/4 to 20 mA
1 to 5 V/0 to 10 V/
10 to +10 V/0 to
Resolu­tion: 12,000
20 mA/4 to 20 mA
CP1W-MAD44 4 analog
inputs
0 to 5 V/1 to 5 V/0 to 10 V/10 to +10 V/0 to 20 mA/4 to 20 mA
4 analog outputs
1 to 5 V/0 to 10 V/
10 to +10 V/0 to 20 mA/4 to 20 mA
CP1W-AD041 4 analog
inputs
0 to 5 V/1 to 5 V/0 to 10 V/10 to +10 V/0
Resolu­tion: 6,000
to 20 mA/4 to 20 mA
150 g max.
260 g max.
200 g max.
Analog Output Units
Temperature Sensor Units
CompoBus/S I/O Link Unit
CP1W-AD042 4 analog
inputs
CP1W-DA021 2 analog
outputs
CP1W-DA041 4 analog
0 to 5 V/1 to 5 V/0 to 10 V/10 to +10 V/0 to 20 mA/4 to 20 mA
1 to 5 V/0 to 10 V/
10 to +10 V/0 to 20 mA/4 to 20 mA
Resolu­tion: 12,000
Resolu­tion: 6,000
outputs
CP1W-DA042 4 analog
outputs
1 to 5 V/0 to 10 V/
10 to +10 V/0 to 20 mA/4 to 20 mA
Resolu­tion:
12,000 CP1W-TS001 2 inputs Thermocouple input CP1W-TS002 4 inputs CP1W-TS003 4 inputs Thermocouple input
K, J
K or J, 4 inputs or 2 analog inputs
Resolu-
tion:
12,000
0 to 10V/1 to 5V/4 to 20mA
CP1W-TS004 12 inputs Thermocouple input
K, J CP1W-TS10 CP1W-TS102 4 inputs
1 2 inputs Platinum resistance thermometer
input
Pt100, JPt100 CP1W-SRT21 As 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 Configuration Section 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-3 Restrictions on System Configuration

The following restrictions apply to the CP-series Expansion Units and CP­series Expansion I/O Units that can be connected to CP1L-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-D CP1L-EM30DR-D CP1L-EM40DR-D
Note The 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
Note There are no restrictions on the transistor output load current from the CPU
Unit.
15
Function Charts Section 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 functions Normal inputs
Interrupt inputs
High-speed counter inputs
Quick-response inputs
Built-in output functions
Normal outputs
Pulse outputs
Variable duty ratio pulse outputs (PWM outputs)
Origin functions
Origin search
Origin return
Inverter positioning functions
Interrupt inputs (Direct mode)
Interrupt inputs (Counter mode)
No interrupts
High-speed counter interrupts
No-battery operation
User memory, parameters (such as PLC Setup), DM initial values, comment memory, etc., can be saved in the CPU Unit's built-in flash memory.
Memory Cassette
Data saved in the CPU Unit's built-in flash memory can be saved to a Memory Cassette (purchased separately) and transferred automatically from the Memory Cassette when the power supply is turned ON.
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 CP­series Expansion Units

1-3 Function Charts

16
Function Blocks Section 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
Setting Setting
Copy of function block A
Input
Variable Variable Output
Program 2
Copy of function block A
Variable Output

1-4 Function Blocks

Function blocks can be used in programming SYSMAC CP-series PLCs.

1-4-1 Overview of Function Blocks

A function block is a basic program element containing a standard processing function that has been defined in advance. Once the function block has been defined, the user just has to insert the function block in the program and set the I/O in order to use the function.
As a standard processing function, a function block is not created with actual physical addresses, but local variables. The user sets parameters (addresses or values) in those variables to use the function block. The addresses used for the variables themselves are automatically assigned by the system (CX-Pro­grammer) each time they are placed in the program.
In particular, each function block is saved by the CX-Programmer as an indi­vidual file that can be reused with programs for other PLCs. This makes it possible to create a library of standard processing functions.
17
Function Blocks Section 1-4

1-4-2 Advantages of Function Blocks

Function blocks allow complex programming units to be reused easily. Once standard program sections have been created as function blocks and saved in files, they can be reused just by placing a function block in a program and setting the parameters for the function block's I/O. Reusing standa rdized func­tion 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 Errors Coding mistakes can be reduced, because blocks that have already been
Data Protection The 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 con­stants, speed settings, and travel distances) in the standard process.
debugged can be reused.
outside, so the data can be protected. (Data cannot be changed unintention­ally.)
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 Libraries Processes that are independent and reusable (such as processes for individ-
ual steps, machinery, equipment, or control systems) can be saved as func­tion block definitions and converted to library functions.
The function blocks are created with local variable names that are not tied to physical addresses, so new programs can be developed easily just by 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.
2-1 Part Names and Functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2-1-1 CP1L-EL/EM CPU Units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2-1-2 CP1W-CIF01 RS-232C Option Boards . . . . . . . . . . . . . . . . . . . . . . 23
2-1-3 CP1W-CIF11/CIF12 RS-422A/485 Option Boards . . . . . . . . . . . . . 23
2-2 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2-2-1 CP1L-EL/EM CPU Units. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2-2-2 I/O Memory Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2-2-3 I/O Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
2-2-4 Built-in Analog Input Specifications . . . . . . . . . . . . . . . . . . . . . . . . 40
2-2-5 CP-series Expansion I/O Unit I/O Specifications. . . . . . . . . . . . . . . 40
2-3 CP1L-EL/EM CPU Unit Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
2-3-1 Overview of CPU Unit Configuration . . . . . . . . . . . . . . . . . . . . . . . 44
2-3-2 Flash Memory Data Transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
2-3-3 Memory Cassette Data Transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
2-4 CPU Unit Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
2-4-1 General Flow. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
2-4-2 I/O Refreshing and Peripheral Servicing . . . . . . . . . . . . . . . . . . . . . 52
2-4-3 I/O Refresh Methods. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
2-4-4 Initialization at Startup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
2-5 CPU Unit Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2-5-1 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
2-5-2 Status and Operations in Each Operating Mode. . . . . . . . . . . . . . . . 55
2-5-3 Operating Mode Changes and I/O Memory . . . . . . . . . . . . . . . . . . . 56
2-5-4 Startup Mode Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
2-6 Power OFF Operation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
2-6-1 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
2-6-2 Instruction Execution for Power Interruptions . . . . . . . . . . . . . . . . . 59
2-7 Computing the Cycle Time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
2-7-1 CPU Unit Operation Flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
2-7-2 Cycle Time Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
2-7-3 Functions Related to the Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . 62
2-7-4 I/O Refresh Times for PLC Units. . . . . . . . . . . . . . . . . . . . . . . . . . . 64
2-7-5 Cycle Time Calculation Example. . . . . . . . . . . . . . . . . . . . . . . . . . . 65
2-7-6 Online Editing Cycle Time Extension . . . . . . . . . . . . . . . . . . . . . . . 65
2-7-7 I/O Response Time. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
2-7-8 Interrupt Response Times. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
2-7-9 Serial PLC Link Response Performance . . . . . . . . . . . . . . . . . . . . . 69
2-7-10 Pulse Output Start Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
2-7-11 Pulse Output Change Response Time. . . . . . . . . . . . . . . . . . . . . . . . 70
19
Part Names and Functions Section 2-1
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
POWER
RUN
INH
1
2
00 01 02 03 04 06 00 01 03 04 06
COM 02 COM 05 07COMCOM(V+) 05 07
MAC Address: 01234567890A
Front Right Side
(1) Battery cover (2) Operation indicators
(6) Ethernet port
(4) Memory Cassette slot
(5) Built-in analog input
connector
(3) DIP switch
(8) Power supply, ground,
and input terminal block
(9) Option Board slots 1 (left) and 2 (right)
(7) Input indicators
(10) Expansion I/O
Unit connector
(12) Output indicators
(11) Output terminal block
POWER
ERR/ALM
BKUP
RUN
INH
LNK/ACT

2-1 Part Names and Functions

2-1-1 CP1L-EL/EM CPU Units

20
(1) Battery Cover
Covers the location where the battery is stored.
(2) Operation Indicators
Show CP1L-EL/EM operation status.
POWER (Green)
RUN (Green)
ERR/ALM (Red)
INH (Yellow)
LNK/ACT (Yellow)
BKUP (Yellow)
Lit Power is ON. Not lit Power is OFF. Lit The CP1L-EL/EM is executing a program in either
RUN or MONITOR mode.
Not lit Operation is stopped in PROGRAM mode or due to
a fatal error.
Lit A 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.
Flashing A non-fatal error has occurred (including FAL execu-
tion). CP1L-EL/EM operation will continue. Not lit Operation is normal. Lit The Output OFF Bit (A500.15) has turned ON. All
outputs will be turned OFF. Not lit Operation is normal. Lit A valid link is detected. Flashing Communications (either sending or receiving) are in
progress through the Ethernet port. Not lit Other than the above. Lit A user program, parameters, or Data Memory is
being written or accessed in the built-in flash mem-
ory (backup memory).
A user program, parameters, Data Memory, DM ini-
tial values, or comment memory is being written or
accessed in a Memory Cassette.
The BKUP indicator also lights while user programs,
parameters, and Data Memory are being restored
when the PLC power supply is turned ON.
Note Do not turn OFF the PLC power supply while
this indicator is lit.
Not lit Other than the above.
Part Names and Functions Section 2-1
ON
123456
ON
1234
(3) DIP Switch
CPU Units with 30 or 40 I/O Points
No. Setting Description Application Default
SW1 ON User memory write-
protected (See note.)
OFF User memory not
write-protected.
SW2 ON Data automatically
transferred from Memory Cassette at startup.
OFF Data not transferred.
SW3 ON A395.12 ON This pin enables control-
OFF A395.12 OFF
SW4 ON Used for peripheral
bus.
OFF According to PLC
Setup.
SW5 ON Used for peripheral
bus.
OFF According to PLC
Setup.
SW6 OFF Keep turned OFF. --- OFF
Used to prevent pro­grams from being inad­vertently overwritten.
Used to enable pro­grams, Data Memory, or parameters saved on a Memory Cassette to be opened by the CPU Unit at startup.
ling a bit in memory with­out 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. Setting Description Application Default
SW1 ON User memory write-
protected (See note.)
OFF User memory not
write-protected.
SW2 ON Data automatically
transferred from Memory Cassette at startup.
OFF Data not transferred.
SW3 ON A395.12 ON This pin enables control-
OFF A395.12 OFF
SW4 ON Used for peripheral
bus.
OFF According to PLC
Setup.
Used to prevent pro­grams from being inad­vertently overwritten.
Used to enable pro­grams, Data Memory, or parameters saved on a Memory Cassette to be opened by the CPU Unit at startup.
ling a bit in memory with­out 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 Functions Section 2-1
Note The following data will be write-protected if pin SW1 is turned ON:
• The entire user program (all tasks)
• All data in parameter areas (such as the PLC Setup) When SW1 is turned ON, the user program and the data in the pa-
rameter areas will not be cleared even if the All Clear operation is performed from a Peripheral Device (i.e., the CX-Programmer).
(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-Pro­grammer to PLCs Online or exchange data between CP1L-EL/EM seri es PLCs and other Ethernet devices from either OMRON or another manu­facturer. 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 terminals Used 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 con­nected. Up to three Expansion Units or Expansion I/O Units can be con­nected 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 Functions Section 2-1
r

2-1-2 CP1W-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.
Front Back
(1) Communications Status Indicator
(3) CPU Unit Connecto
COMM
(2) RS-232 Connector
RS-232C Connector
5
9
1
6
Pin Abbr. Signal name Signal direction
1 FG Frame Ground --­2 SD (TXD) Send Data Output 3 RD (RXD) Receive Data Input 4 RS (RTS) Request to Send Output 5 CS (CTS) Clear to Send Input 6 5V Power Supply --­7 DR (DSR) Data Set Retry Input 8 ER (DTR) Equipment Ready Output 9 SG (0V) Signal Ground --­Connector hood FG Frame Ground ---

2-1-3 CP1W-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 Functions Section 2-1
(2)
r
Front Back
(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.).
RDA
RDB+
SDA
FG
SDB+
DIP Switch for Operation Settings
CP1W-CIF11/12 CP1W-CIF12-V1 Settings
Pin Pin
SW
O
N
12345
1 SW1 1 ON ON (both ends) Terminating resistance selection
O
N
OFF OFF
2 2 ON 2-wire 2-wire or 4-wire selection (See
123
6
4
OFF 4-wire
3 3 ON 2-wire 2-wire or 4-wire selection (See
OFF 4-wire 4 4 --- --- Not used. 5 SW2 1 ON RS control enabled RS control selection for RD (See
O
N
OFF RS control disabled (Data
always received.)
6 2 ON RS control enabled RS control selection for SD (See
1
2
OFF RS 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
Specifications Section 2-2

2-2 Specifications

2-2-1 CP1L-EL/EM CPU Units

General Specifications
Type EM CPU Units EL CPU Units
Model CP1L-EM40DR-D
CP1L-EM40DT-D
CP1L-EM40DT1-D
Power supply 24 VDC Operating voltage range 20.4 to 26.4 VDC Power consumption
(See note 2.) Inrush current
(See note 1.) Insulation resistance No insulation between primary and secondary DC power supplies. Dielectric strength No insulation between primary and secondary DC power supplies. Noise resistance Conforms to IEC 61000-4-4 2 kV (power supply line) Vibration resistance Conforms to JIS 60068-2-6
Shock resistance Conforms to JIS 60068-2-27
Ambient operating 0 to 55°C Ambient humidity 10% to 90% (with no condensation) Atmosphere No corrosive gas. Ambient storage 20 to 75°C (excluding battery) Terminal screw size M3 Power interrupt time 2 ms min. Weight 555 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
Specifications Section 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 consump­tion × 5 V/70% (CP1L-EL/EM internal power efficiency) + 24 V current consumption × 24 V) × 1.1 (current fluctuation factor)
Calculation Example
CPU Unit Expansion Unit or Expansion I/O Unit Total
1st Unit 2nd Unit 3rd Unit
System
5 V 0.320 A 0.130 A 0.040 A 0.080 A 0.570 A 24 V 0.080 A 0.000 A 0.059 A 0.124 A 0.263 A
CP1L-EM40DR-D
CP1W-20EDT CP1W-TS001 CP1W-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 capacity Model Current consumption
5 V DC 24 V DC
40 I/O points CP1L-EM40DR-D 0.32 A 0.08 A
CP1L-EM40DT-D 0.42 A 0.01 A CP1L-EM40DT1-D 0.42 A 0.01 A
30 I/O points CP1L-EM30DR-D 0.30 A 0.07 A
CP1L-EM30DT-D 0.39 A 0.01 A CP1L-EM30DT1-D 0.39 A 0.01 A
20 I/O points CP1L-EL20DR-D 0.31 A 0.06 A
CP1L-EL20DT-D 0.37 A 0.01 A CP1L-EL20DT1-D 0.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
consumption of the CPU Unit.
Unit Model Current consumption
5 V DC 24 V DC
Interface Unit CP1W-CIF12 0.075 A --­LCD Option Board CP1W-DAM01 0.040 A --­Analog Input Option Board CP1W-ADB21 0.020 A --­Analog Output Option Board CP1W-DAB21V 0.060 A --­Analog I/O Option Board CP1W-MAB221 0.080 A ---
26
Specifications Section 2-2
(3) The current consumptions given in the following table must be added to
the current consumption of the CPU Unit if an Expansion Unit or Expan­sion I/O Unit is connected.
Expansion Units and Expansion I/O Units
Unit name Model Current consumption
5 VDC 24 VDC
Expansion I/O Units 40 I/O points
24 inputs 16 outputs
32 outputs CP1W-32ER 0.049 A 0.131 A
20 I/O points 12 inputs 8 outputs
16 outputs CP1W-16ER 0.042 A 0.090 A
8 inputs CP1W-8ED 0.018 A --­8 outputs CP1W-8ER 0.026 A 0.044 A
Expansion Units
Analog Input Unit 4 inputs CP1W-AD041 0.100 A 0.090 A
Analog Output Unit 2 outputs CP1W-DA021 0.040 A 0.095 A
4 outputs CP1W-DA041 0.080 A 0.124 A
Analog I/O Units 2 inputs
1 output 4 inputs 2 outputs 4 inputs 4 outputs
Temperature Sen­sor Units
CompoBus/S I/O Link Unit
K or J thermocouples CP1W-TS001 0.040 A 0.059 A
K or J thermocouples or analog inputs
Pt or JPt platinum resistance thermom­eters
8 inputs 8 outputs
CP1W-40EDR 0.080 A 0.090 A CP1W-40EDT 0.160 A --­CP1W-40EDT1
CP1W-32ET 0.113 A --­CP1W-32ET1 CP1W-20EDR1 0.103 A 0.044 A CP1W-20EDT 0.130 A --­CP1W-20EDT1
CP1W-16ET 0.076 A --­CP1W-16ET1
CP1W-8ET 0.075 A --­CP1W-8ET1
CP1W-AD042 0.100 A 0.050 A
CP1W-DA042 0.070 A 0.160 A CP1W-MAD11 0.083 A 0.110 A
CP1W-MAD42 0.120 A 0.120 A
CP1W-MAD44 0.120 A 0.170 A
CP1W-TS002 CP1W-TS004 0.080 A 0.050 A CP1W-TS003 0.070 A 0.030 A
CP1W-TS101 0.054 A 0.073 A CP1W-TS102
CP1W-SRT21 0.029 A ---
Note CP1W-32ER/32ET/32ET1’s maximum number of simultaneously ON points is
24 (75%).
27
Specifications Section 2-2
Characteristics
Type EM CPU Units EL CPU Units
Model CP1L-EM40DR-D
Program capacity (See note 1.)
FB capacity 10 K steps Control method Stored program method I/O control method Cyclic scan wit h im me di a te refreshing Program
language Function blocks Maximum number of function block definitions: 128
Instruction length 1 to 7 steps per instruction Instructions Approx. 500 (function codes: 3 digits) Instruction
execution time Common
processing time Number of
connectable Expan­sion Units and Expan­sion I/O Units
Maximum number of I/O points
Built-in terminals (Func­tions can be assigned.)
Pulse outputs (Tran­sistor output models only)
Buil t-in analog input 2 inputs (Resolution: 1/1000, Input range: 0 to 10 V) Ethernet port Supported. (1 Ethernet port built-in)
Built-in I/O 40 terminals
Inter­rupt inputs
Quick­response 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 steps 5 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
Specifications Section 2-2
Type EM CPU Units EL CPU Units
Model CP1L-EM40DR-D
Serial port (RS-232C , RS-422A/485)
Number of tasks 288 (32 cycle execution tasks and 256 interrupt tasks)
Scheduled interrupt
Input interrupt tasks
Maximum subroutine number
Maximum jump number
Scheduled interrupts 1 Clock function Supported.
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, com­ments, 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
Specifications Section 2-2

2-2-2 I/O Memory Details

Type EM CPU Units EL CPU Units
Model CP1L-EM40DR-D
CP1L-EM40DT-D
CP1L-EM40DT1-D
I/O
Input bits 24 bits
Areas
Output bits
1:1 Link Bit Area
Serial PLC Link Area
Work bits 4,800 bits (300 words): CIO 1200.00 to CIO 1499.15 (words CIO 1200 to CIO 1499)
Work bits 8,192 bits (512 words): W000.00 to W511.15 (words W0 to W511) TR Area 16 bits: TR0 to TR15 HR Area 8,192 bits (512 words): H0.00 to H511.15 (words H0 to H511) AR Area Read-only (Write-prohibited) 7,168 bits (448 words): A0.00 to A447.15 (words A0 to A447)
Timers 4,096 bits: T0 to T4095 Counters 4,096 bits: C0 to C4095 DM Area 32 Kwords: D0 to D32767
Data Register Area
Index Register Area
Task Flag Area 32 flags (32 bits): TK0 to TK31 Trace Memory 4,000 words (500 samples for the trace data maximum of 31 bits and 6 words.)
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 func­tion. 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
socket service D32400 to D32477 for Ethernet port
30
Specifications Section 2-2
Inputs (CIO 0) Inputs (CIO 1)
COM 01 03 05 07 09 11 01 03 05 07 09 11
00 02 04 06 10 00 04 06 08 10
0208
+
NC
Relay Output Models (CP1L-EM40DR-D)
NC
NC
COM
01 03
05
07
01
03
05
07
00 02 04 06
00
02
04 06
COM
CIO 100 CIO 101
COM
COM COM
COM
Sinking Transistor Output Models (CP1L-EM40DT-D)
V
+
V
-
COM
01 03
05
07
01
03
05
07
00 02 04 06
00
02
04 06
CIO 100 CIO 101
COM
COM(V-)
COM
Sourcing Transistor Output Models (CP1L-EM40DT1-D)
V
+
V
-
COM
01 03
05
07
01
03
05
07
00 02 04 06
00
02
04 06
CIO 100 CIO 101
COM
COM(V+)
COM
Inputs (CIO 0)
Inputs (CIO 1)
COM 01 03 05 07 09 11 01 03 05
00 02 04 06 10 00 04 NC
0208
+
NC

2-2-3 I/O Specifications

I/O Terminal Blocks of CPU Units with 40 I/O Points
Input Terminal Block (Top Block)
Output Terminal Block Arrangement (Bottom Block)
I/O Terminal Blocks of CPU Units with 30 I/O Points
Input Terminal Block (Top Block)
Note (1) COM(V-) has been connected with V- in inner circuit.
(2) V+/V- input terminals are used as the power supply terminals for
CIO100.00 to CIO100.03. Supply the power of 24 VDC when using CIO100.00 to CIO100.03.
Note (1) COM(V+) has been connected with V+ in inner circuit.
(2) V+/V- input terminals are used as the power supply terminals for
CIO100.00 to CIO100.03. Supply the power of 24 VDC when using CIO100.00 to CIO100.03.
31
Specifications Section 2-2
01
03
00 02
Relay Output Models (CP1L-EM30DR-D)
NC
NC
COM
CIO 100
CIO 101
COM COM
05 07
01 03
04
06
00 02
COM
COM
01
03
00 02
Sinking Transistor Output Models (CP1L-EM30DT-D)
V+
V
­CIO 100
CIO 101
COM(V-)
05 07
01 03
04
06
00 02
COM
COM
Sourcing Transistor Output Models (CP1L-EM30DT1-D)
CIO 100
CIO 101
01
03
00 02
V+
V
-
COM(V+)
05 07
01 03
04
06
00 02
COM
COM
COM 01 03 05 07 09 11
00 02 04 06 10
08
+
NC
Inputs (CIO 0)
Relay Output Models (CP1L-EL20DR-D)
NC
NC
COM
CIO 100
COM
COM
COM
07
03
05
06
01 0400 02
Sinking Transistor Output Models (CP1L-EL20DT-D)
V+
V
­CIO 100
COM(V-)
COM
07
03
05
06
01 0400 02
Output Terminal Block (Bottom Block)
Note (1) COM(V-) has been connected with V- in inner circuit.
(2) V+/V- input terminals are used as the power supply terminals for
CIO100.00 to CIO100.03. Supply the power of 24 VDC when using CIO100.00 to CIO100.03.
Note (1) COM(V+) has been connected with V+ in inner circuit.
I/O Terminal Blocks of CPU Units with 20 I/O Points
Input Terminal Block (Top Block)
Output Terminal Block (Bottom Block)
(2) V+/V- input terminals are used as the power supply terminals for
CIO100.00 to CIO100.03. Supply the power of 24 VDC when using CIO100.00 to CIO100.03.
32
Specifications Section 2-2
Sourcing Transistor Output Models (CP1L-EL20DT1-D)
CIO 100
V+
V
-
COM(V+)
COM
07
03
05
06
01 0400 02
Note (1) COM(V-) has been connected with V- in inner circuit.
Note (1) COM(V+) has been connected with V+ in inner circuit.
Allocating Built-in Input and Output Terminals
Setting Input Functions Using PLC Setup
Address Input operation settings High-speed counters Origin searches
Word Bit Normal
inputs
CIO 0 00 Normal
input 0
01 Normal
input 1
02 Normal
input 2
03 Normal
input 3
04 Normal
input 4
05 Normal
input 5
06 Normal
input 6
07 Normal
input 7
08 Normal
input 8
09
Normal input 9
10 Normal
input 10
11 Normal
input 11
Interrupt
inputs
(See note.)
--- --- Counter 0, incre-
--- --- Counter 1, incre-
--- --- Counter 2, incre-
--- --- Counter 3, incre-
Interrupt input 0
Interrupt input 1
Interrupt input 2
Interrupt input 3
Interrupt i
nput 4
Interrupt input 5
--- --- --- --- Pulse output 0: Origin
--- --- --- --- Pulse output 1: Origin
(2) V+/V- input terminals are used as the power supply terminals for
CIO100.00 to CIO100.03. Supply the power of 24 VDC when using CIO100.00 to CIO100.03.
(2) V+/V- input terminals are used as the power supply terminals for
CIO100.00 to CIO100.03. Supply the power of 24 VDC when using CIO100.00 to CIO100.03.
Quick-
response
inputs
Quick­response input 0
Quick­response input 1
Quick­response input 2
Quick­response input 3
Quick­response input 4
Quick­response input 5
Operation settings:
High-speed counters enabled
Phase-Z reset
Single-phase
(increment
pulse input)
ment input
ment input
ment input
ment input Counter 0,
phase-Z/reset input
Counter 1, phase-Z reset input
Counter 2, phase-Z reset input
Counter 3, phase-Z reset input
--- --- ---
--- --- ---
Two-phase (differential
phase x4, up/down, or
pulse/direction)
Counter 0, A phase, up, or count input
Counter 0, B phase, down, or direction input
Counter 1, A phase, up, or count input
Counter 1, B phase, down, or direction input
Counter 0, phase-Z reset input
Counter 1, phase-Z reset input
--- Pulse output 0: Origin
--- Pulse output 1: Origin
Origin searches
enabled for pulse
outputs 0 and 1
---
---
---
---
---
---
input signal
input signal
proximity input signal
proximity input signal
33
Specifications Section 2-2
Address Input operation settings High-speed counters Origin searches
Word Bit Normal
inputs
CIO 1 00 Normal
input 12
01 Normal
input 13
02 Normal
input 14
03 Normal
input 15
04 Normal
input 16
05 Normal
input 17
06 Normal
input 18
07 Normal
input 19
08 Normal
input 20
09 Normal
input 21
10 Normal
input 22
11 Normal
input 23
Interrupt
inputs
(See note.)
--- --- --- --- ---
--- --- --- --- ---
--- --- --- --- ---
--- --- --- --- ---
--- --- --- --- ---
--- --- --- --- ---
--- --- --- --- ---
--- --- --- --- ---
--- --- --- --- ---
--- --- --- --- ---
--- --- --- --- ---
--- --- --- --- ---
Quick-
response
inputs
Operation settings:
High-speed counters enabled
Phase-Z reset
Single-phase
(increment
pulse input)
Two-phase (differential
phase x4, up/down, or
pulse/direction)
Origin searches
enabled for pulse
outputs 0 and 1
Note The bits CIO 1.06 to CIO 1.11 cannot be used for CPU Units with 30 I/O
points. The bits CIO 1.00 to CIO 1.11 cannot be used for CPU Units with 20 I/O
points.
34
Specifications Section 2-2
Setting Output Functions Using Instructions and PLC Setup
Address When the
instructions to
the right are not
executed
Word Bit Normal outputs Fixed duty ratio pulse output Variable duty ratio
CIO 100 00 Normal output 0 Pulse output 0
01 Normal output 1 Pulse output 0
02 Normal output 2 Pulse output 1
03 Normal output 3 Pulse output 1
04 Normal output 4 --- --- Origin search 0 (Error counter
05 Normal output 5 --- --- Origin search 1 (Error counter
06 Normal output 6 --- --- --- --­07 Normal output 7 --- --- --- ---
CIO 101 00 Normal output 8 --- --- --- ---
01 Normal output 9 --- --- --- --­02 Normal output 10 --- --- --- --­03 Normal output 11 --- --- --- --­04 Normal output 12 --- --- --- --­05 Normal output 13 --- --- --- --­06 Normal output 14 --- --- --- --­07 Normal output 15 --- --- --- ---
When a pulse output
instruction (SPED, ACC,
PLS2, or ORG) is executed
CW/CCW Pulse plus
direction
Pulse output 0
(CW)
(CCW)
(CW)
(CCW)
(pulse) Pulse output 0
(direction) Pulse output 1
(pulse) Pulse output 1
(direction)
When origin searches are
enabled in the PLC Setup,
and an origin search is
executed with ORG
instruction
+ When the origin search
function is used
--- ---
--- PWM output 0
--- ---
--- PWM output 1
reset output)
reset output)
When the PWM
instruction is
executed
pulse output PWM output
---
---
Note The 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
Item Specification
High-speed Counter Inputs Interrupt Inputs and
CIO 0.00 to CIO 0.03 CIO 0.04 to CIO 0.09 (See
Input voltage Applicable inputs 2-wire and 3-wire sensors
Input impedance 3.0 kΩ 3.0 kΩ 4.7 kΩ Input current 7.5 mA typical 7.5 mA typical 5 mA typical ON voltage 17.0 VDC min. 17.0 VDC min. 14.4 VDC min. OFF voltage/current 1 mA max. at 5.0 VDC max. 1 mA max. at 5.0 VDC max. 1 mA max. at 5.0 VDC max. ON delay 2.5 μs max. 50 μs max. 1 ms max. (See note 3.)
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
Specifications Section 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
Item Specification
High-speed Counter Inputs Interrupt Inputs and
Quick-response Inputs
CIO 0.00 to CIO 0.03 CIO 0.04 to CIO 0.09 (See
note 1.)
OFF delay 2.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.
Bit Differential
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.)
50 kHz (4×) 100 kHz
frequency
Pulse plus
direction input
Up/down input
mode
mode
Pulse input Increment pulse
input
Direction input Decrement
pulse input
Increment
mode
Increment pulse input
Normal input
Specifications Section 2-2
Input Bits for High-speed Counters
Counter Single phase Phase A Phase B Phase Z
High-speed counter 0 CIO 0.00 CIO 0.00 CIO 0.01 CIO 0.04 High-speed counter 1 CIO 0.01 CIO 0.02 CIO 0.03 CIO 0.05 High-speed counter 2 CIO 0.02 --- --- --­High-speed counter 3 CIO 0.03 --- --- ---
Pulse plus direction input mode, Increment mode
Up/down input mode
10.0 μs min.
ON OFF
2.5 μs min.
2.5 μs min.
Input bits: CIO 0.04 to CIO 0.09
ON
OFF
50 μs min.
50 μs min.
90% 50% 10%
90%
10%
Differential phase mode
20.0 μs min.
ON OFF ON OFF
T1 T2 T3 T4
T1, T2, T3, T4: 2.5 μs min.
90% 50% 10%
90% 50% 10%
Interrupt Inputs and Quick-response Inputs
Output Specifications
Relay Outputs
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 quick­response inputs depending on the settings in the PLC Setup.
Input bits Interrupt inputs Quick-response inputs
CIO 0.04 Interrupt input 0 Quick-response input 0 CIO 0.05 Interrupt input 1 Quick-response input 1 CIO 0.06 Interrupt input 2 Quick-response input 2 CIO 0.07 Interrupt input 3 Quick-response input 3 CIO 0.08 Interrupt input 4 Quick-response input 4 CIO 0.09 Interrupt input 5 Quick-response input 5
Item Specification
Max. switching capacity 2 A, 250 VAC (cosφ = 1)
2 A, 24 VDC (4 A/common) Min. switching capacity 10 mA, 5 VDC Service life
of relay
ON delay 15 ms max. OFF delay 15 ms max. Circuit configuration
Electrical Resistive
100,000 operations (24 VDC)
load Inductive
48,000 operations (250 VAC, cosφ = 0.4)
load
Mechanical 20,000,000 operations
Output LED
OUT
Internal circuits
OUT
COM
Maximum 250 VAC: 2 A 24 VDC: 2 A
37
Specifications Section 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-D CP1L-EM30DR-D CP1L-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
Item Specification
CIO 100.00 to CIO 100.03 CIO 100.04 to CIO 101.07 (See note.)
Max. switching capacity
Min. switching capacity 4.5 to 30 VDC, 1 mA Leakage current 0.1 mA max. Residual voltage 0.6 V max. 1.5 V max. ON delay 0.1 ms max. OFF delay 0.1 ms max. 1 ms max.
4.5 to 30 VDC, 300 mA/output, 0.9 A/common, EM40D@-D 3.6 A/Unit EM30D@-D 2.7 A/Unit EL20D@-D 1.8 A/Unit
38
Specifications Section 2-2
OUT OUT
COM (V-)
L L
Internal circuits
Internal circuits
V+
V-
24 VDC/
20.4 to
26.4 VDC
OUT
OUT
COM (V+)
L
L
Internal circuits
Internal circuits
V+
V-
24 VDC/
20.4 to
26.4 VDC
4 μs min.
2 μs min.
ON
90%
10%
OFF
Item Specification
CIO 100.00 to CIO 100.03 CIO 100.04 to CIO 101.07 (See note.)
Fuse None 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)
Note The bits that can be used depend on the model of the CPU Unit.
!Caution Do not connect a load to an output terminal or apply a voltage in excess of the
maximum switching capaci ty.
Pulse Outputs (CIO 100.00 to CIO 100.03)
Max. switching capacity 30 mA/4.75 to 26.4 VDC Min. switching capacity 7 mA/4.75 to 26.4 VDC Max. output frequency 100 kHz Output waveform
•Normal outputs CIO 100.04 to CIO 101.07 (Sourcing Outputs)
Internal circuits
Item Specification
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
Specifications Section 2-2
Voltage Input 1 Voltage Input 2
V1 V2
COM Input Common
V1 V2
A643
COM
A642
PWM Outputs (CIO 100.01 and CIO 100.03)
Item Specification
Max. switching capacity 30 mA/4.75 to 26.4 VDC Max. output frequency 32.8 kHz PWM output accuracy For ON duty +1%, 0%:10 kHz output
For ON duty +5%, 0%: 0 to 32.8 kHz output
Output waveform
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-4 Built-in Analog Input Specifications

Built-in Analog Input Terminal Block Arrangement
Analog Input Specifications
Item Specification
Number of inputs 2 inputs (2 words allocated in the AR Area) Input signal range Voltage input: 0 V to 10 V Max. rated input 0 V to 15 V External input impedance 100 KΩ min. Resolution 1/1000 (full scale) Overall accuracy 25°C: ±2.0% (full scale)
0 to 55°C: ±3.0% (full scale) A/D conversion data 0000 to 03E8 hex Averaging function Not supported Conversion time Same as PLC cycle time Isolation method None

2-2-5 CP-series Expansion I/O Unit I/O Specifications

Input Specifications (CP1W-40EDR/40EDT/40EDT1/20EDR1/20EDT/20EDT1/8ED)
Item Specification
Input voltage Input impedance 4.7 kΩ
Input current 5 mA typical ON voltage 14.4 VDC min. OFF voltage 5.0 VDC max. ON delay 1 ms max. (See note 1.)
24 VDC
+10%
/
15%
40
Specifications Section 2-2
COM
OUT
OUT
Output LED
Internal circuits
Maximum 250 VAC: 2 A 24 VDC: 2 A
r
Item Specification
OFF delay 1 ms max. (See note 1.) Circuit configuration
IN
Input LED
Note (1) The response time is the hardware delay value. The delay set in the PLC
Setup (0 to 32 ms, default: 8 ms) must be added to this value. For the CP1W-40EDR/EDT/EDT1, a fixed value of 16 ms must be added.
(2) Do not apply voltage in excess of the rated voltage to the input terminal.
Output Specifications
Relay Outputs (CP1W-40EDR/32ER/20EDR1/16 ER/8ER)
Item Specification
Max. switching capacity 2 A, 250 VAC (cosφ = 1), Min. switching capacity 5 VDC, 10 mA
Service life of relay (See note.)
ON delay 15 ms max. OFF delay 15 ms max. Circuit configuration
Electrical Resistive
Mechanical 20,000,000 operations
IN
COM
load Inductive
load
4.7 kΩ 750 Ω
Internal circuits
2 A, 24 VDC (4 A/common)
150,000 operations (24 VDC) 100,000 operations (240 VAC, cosφ = 0.4)
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 1 2 3 5
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
Specifications Section 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 (CP1W­8ER/16ER/20EDR1/32ER/40EDR)
Added to CP1L-EL20DR-D Added to CP1L-EM30DR-D Added to CP1L-EM40DR-D
Added to CP1L-EL20DT@-D Added to CP1L-EM30DT@-D Added to CP1L-EM40DT@-D
Specifications Section 2-2
Transistor Outputs (Sinking or Sourcing)
Item Specification
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 current 0.1 mA max. 0.1 mA max. 0.1 mA max. 0.1 mA max. 0.1 mA max. Residual voltage 1.5 V max. 1.5 V max. 1.5 V max. 1.5 V max. 1.5 V max. ON delay 0.1 ms max. 0.1 ms max. 0.1 ms. 0.1 ms max. 0.1 ms max. OFF delay 1 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 Outputs Sourcing 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 Operation Section 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-3 CP1L-EL/EM CPU Unit Operation

2-3-1 Overview 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 built­in 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 trans­ferred 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 Operation Section 2-3
• When the power supply is turned ON, data is transferred from the Memory Cassette to the built-in flash memory and RAM. Data can also be transferred from the Memory Cassette to the built-in flash memory and RAM using the CX-Programmer.
User Program The user program consists of up to 288 tasks, including interrupt tasks. Each
task is programmed from the CX-Programmer and then transferred to the CPU Unit.
There are two types of tasks: cyclic tasks and interrupt tasks. Cyclic tasks are executed once each cycle and interrupt tasks are executed only when the interrupt conditions are met. There can be up to 32 cyclic tasks and up to 256 interrupt tasks. Cyclic tasks are executed in the order of the task numbers.
Instructions programmed in the tasks are executed in order from the first instruction and then I/O memory is refreshed. When all cyclic tasks have been executed, I/O refreshing with PLC Units is performed and then the cyclic tasks are executed again starting from the one with the lowest task number. This is called the cyclic scan method.
I/O Memory The I/O memory area is a RAM area read and written by the user. Some parts
of the I/O memory are cleared when the power is interrupted. Other parts are maintained. There are parts that used for data exchange with PLC Units and parts that are used internally.
There are two ways to refresh the parts of I/O memory used for data exchange with PLC Units: Once each program execution cycle and immedi­ately when needed when executing specific instructions.
Parameter Area In addition to the I/O memory used as instructions operands by the user, there
is also a separate memory area that can be manipulated only from the CX­Programmer. This area, called the parameter area, contains the following.
• PLC Setup
• Routing tables
PLC Setup The PLC Setup contains configuration parameters that can be set by the user
to define the basic specifications of the CPU Unit. Included are serial port set­tings, a minimum cycle time setting, and other parameters. For details, refer to the CX-Programmer Operation Manu al.
Routing Tables Tables specifying the communications paths from the Communications Units
on the local PLC to remote PLCs connected on other networks must be regis­tered in all the CPU Units in network PLCs to send and receive data between networks. These tables are called the routing tables. The routing tables con­sist of the relay network table and local network table.
Routing tables are created from the CX-Programmer or Support Software for Communications Units (e.g., CX-Integrator) and then transferred to each CPU Unit.
45
CP1L-EL/EM CPU Unit Operation Section 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 Memory Flash 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 CX­Programmer 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 Cassette Memory Cassettes can be used as required in system operation and mainte-
Note The 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 con­tents, PLC Setup data, or I/O comments from the CX-Programmer. The contents of a Memory Cassette can also be automatically transferred if desired.
46
CP1L-EL/EM CPU Unit Operation Section 2-3

2-3-2 Flash Memory Data Transfers

Built-in Flash Memory
Writing to Flash Memory
Data Transfer method
User program and parameter data
DM Area data This 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 mem­ory when a project is transferred from the CX-Programmer, when the data is written to RAM from a PT or other external device, or when the data is transferred from a Memory Cas­sette.
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-Pro­grammer.
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 Operation Section 2-3
Reading from Flash Memory
Data Read method
User program and parameter data
DM Area data Reading 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 Operation Section 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-3 Memory Cassette Data Transfers

Writing to a Memory Cassette
Data Method Source
User program and parameter data
Comment memory and function block source data
DM Area data
Data is written to a Memory Cassette using write opera­tions from the CX-Program­mer.
Data in the built-in flash mem­ory is written to the Memory Cassette.
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 Operation Section 2-3
Reading from a Memory Cassette
Data Method Destination
User program and parameter data
Comment memory and function block source data
DM Area data DM 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 built­in flash memory.
the built-in flash memory is transferred back to the flash memory and DM Area data originally from RAM is trans­ferred 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 Operation Section 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-4 CPU Unit Operation

2-4-1 General Flow

The following flowchart shows the overall operation of the CPU Unit. First the user program is executed and then I/O is refreshed and perip heral servicing is performed. These processes are then repeated in cyclic fashion.
51
CPU Unit Operation Section 2-4

2-4-2 I/O Refreshing and Peripheral Servicing

I/O Refreshing I/O refreshing involves cyclically transferring data with external devices using
preset words in memory. I/O refreshing includes the following:
• 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.
Units Max. data exchange Data exchange area
CPU Unit built-in I/O 2 input words
2 output words
CP-series Expansion Units and Expansion I/O Units
Fixed depending on Units I/O Bit Area
Peripheral Servicing Peripheral 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.
Service Description
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 CX­Programmer, PTs, or host computers (e.g., requests for program transfers, monitoring, forced­set/reset operations, or online editing)
• Non-scheduled servicing from the CPU Unit trans­mitted from a serial port (non-solicited communica­tions)
Communications port servic­ing
Built-in flash memory access servicing
Memory Cassette access ser­vicing
•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 com­pletion of the servicing, set the same allocated time (same time for all ser­vices) 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 Operation Section 2-4

2-4-3 I/O Refresh Methods

I/O for CPU Unit built-in I/O and I/O on CP-series Expansion Units and Expan­sion 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 Refreshing I/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 Refreshing When 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)
!LD 0.00
!OUT 100.00
!MOV 1 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 contain­ing the specified bit will be refreshed.
• Word Operands The ON/OFF status of the 16 I/O points allocated to the specified word will be refreshed.
(3) Refresh Timing
• Input or source operands are read just before the instruction is executed.
• Output or destination (results) operands are written just after the in­struction is executed.
53
CPU Unit Operation Section 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) Refreshing When IORF(097) (I/O REFRESH) is executed, the I/O bits in the specified
range of words are refreshed. IORF(097) can be used for CP-series Expan­sion 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.
Note IORF(097) has a relatively long execution time which increases with the num-
ber of words being refreshed. Be sure to consider the affect of this time on the overall cycle time. Refer to the CP Series Programmable Cont rollers Progr am- ming Manual for instruction execution times.

2-4-4 Initialization at Startup

The following initializing processes will be performed once each time the power is turned ON.
• 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 Modes Section 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 process­ing.

2-5 CPU Unit Operating Modes

2-5-1 Operating Modes

The CPU Unit has three operating modes that control the entire user program and are common to all tasks.
PROGRAM: Programs are not executed and preparations, such as initial-
izing the PLC Setup and other settings, transferring pro­grams, checking programs, force-setting and force-resetting can be executed prior to program execution.
MONITOR: Programs are executed, but some operations, such as online
editing, forced-set/reset, and changes to present values in I/O memory, are enabled for trial operation and other adjust­ments.
RUN: Programs are executed and some operations are disabled.
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-2 Status and Operations in Each Operating Mode

The following table lists status and operations for each mode.
Operation PROGRAM mode RUN mode MONITOR mode
Program execution Stopped Executed Executed I/O refreshing Executed Executed Executed External I/O status OFF According to program According to program I/O memory Non-holding memory Cleared According to program According to program
Holding memory Held
55
CPU Unit Operating Modes Section 2-5
Operation PROGRAM mode RUN mode MONITOR mode
CX-Programmer operations
I/O memory monitoring OK OK OK Program monitoring OK OK OK Program
transfers Checking program OK XX
Setting PLC Setup OK XX Changing program OK X OK Force-setting/resetting OK X OK Changing timer/counter SV OK X OK Changing timer/counter PV OK X OK Change I/O memory PV OK X OK
From CPU Unit OK OK OK To CPU Unit OK XX
Note The following table shows the relationship of operating modes to tasks.
Mode Cyclic task status Interrupt task
PROGRAM Disabled 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 star­tup 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 inter­rupt condition is met.

2-5-3 Operating Mode Changes and I/O Memory

Operating Mode Changes and I/O Memory
Mode Changes Non-holding areas Holding Areas
• I/O bits
• Data Link bits
•Work bits
• Timer PV/Completion Flags
• Index Registers
• Data Registers
• Task Flags Auxiliary Area bits/words are holding or
non-holding depending on the address. 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
Note 1. The following processing is performed if the I/O Memory Hold Bit is ON.
Outputs from Output Units will be turned OFF when operation stops even if I/O bit status is held in the CPU Unit.
CPU Unit Operating Modes Section 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.
I/O Memory
Hold Bit status
(A500.12)
OFF Cleared Cleared Held OFF OFF OFF ON Held Held Held Held OFF OFF
Mode changed
between
PROGRAM
and RUN/
MONITOR
I/O Memory Output bits allocated to Output Units
Operation stopped Mode changed
Fatal error other than
FALS
FALS
executed
between
PROGRAM
and RUN/ MONITOR
Operation stopped
Fatal error other than
FALS
Note Refer to SECTION 4 I/O Memory Allocation.

2-5-4 Startup Mode Setting

This setting in the PLC Setup determines the operating mode that will be used by the CPU Unit when the power supply is turned ON.
PLC Setup
Name Description Settings Default
Startup Mode Specifies the
CPU Unit oper­ating mode at startup
•Program (See note.)
• Monitor
•Run
• Use programming console
Note A Programming Console cannot be connected to the CP1L-EL/EM.
Use program­ming console (See note.)
FALS
executed
Note A 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 Operation Section 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-6 Power OFF Operation

2-6-1 Overview

The following processing is performed when CPU Unit power is turned OFF. Power OFF processing will be performed if the power supply voltage falls below the specified value while the CPU Unit is in RUN or MONITOR mode.
1,2,3... 1. The CPU Unit will stop.
2. Outputs from all Output Units will be turned OFF.
Note (1) All outputs will turn OFF despite the status of the I/O Memory Hold Bit or
I/O Memory Hold Bit at power ON settings in the PLC Setup.
(2) 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 Operation Section 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-2 Instruction 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 Time Section 2-7

2-7 Computing the Cycle Time

2-7-1 CPU Unit Operation Flowchart

The CPU Unit processes data in repeating cycles from the overseeing pro­cessing up to peripheral servicing as shown in the following diagram.
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 Time Section 2-7

2-7-2 Cycle Time Overview

The cycle time depends on the following conditions.
• Type and number of instructions in the user program (in all cyclic tasks that are executed during a cycle, and within interrupt tasks for which the execution conditions have been satisfied)
• Type and number of CP-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
Note 1. The cycle time is not affected by the number of tasks that are used in the
user program. The tasks that affect the cycle time are those cyclic tasks that are READY in the cycle.
2. When the mode is switched from MONITOR mode to RUN mode, the cycle time will be extended by 10 ms (this will not, however, take the cycle time over its limit).
The cycle time is the total time required for the PLC to perform the five opera­tions given in the following tables.
Cycle time = (1) + (2) + (3) + (4) + (5)
1: Overseeing
Details Processing time and fluctuation cause
Checks the I/O bus and user program memory, checks for battery errors, etc.
2: Program Execution
Details Processing 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
Details Processing time and fluctuation cause
Waits for the specified cycle time to elapse when a minimum (fixed) cycle time has been set in the PLC Setup.
Calculates the cycle time.
4: I/O Refreshing
Details Processing time and fluctuation cause
CPU Unit built­in 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 Time Section 2-7
5: Peripheral Servicing
Details Processing 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, servic­ing will be performed for the set time. Servicing will be performed for at least 0.1 ms, however, whether the peripheral servicing time is set or not.
If the ports are not connected, the servicing time is 0 ms.
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, servic­ing will be performed for the set time. Servicing will be performed for at least 0.1 ms, however, whether the peripheral servicing time is set or not.
If no communications ports are used, the servicing time is 0 ms.
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, servic­ing will be performed for the set time. Servicing will be performed for at least 0.1 ms, however, whether the peripheral servicing time is set or not.
If there is no access, the servicing time is 0 ms.

2-7-3 Functions Related to the Cycle Time

Minimum Cycle Time Set 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 mini­mum 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
Name Settings Default
Minimum cycle time 0000 to 7D00 hex
0000 hex: Variable cycle time (1 to 32,000 ms in 1-ms incre­ments)
Computing the Cycle Time Section 2-7
Watch Cycle Time
If the cycle time exceeds the watch (maximum) cycle time setting, the Cycle Time Too Long Flag (A401.08) will be turned ON and PLC operation will be stopped.
PLC Setup
Name Settings Default
Enable Watch Cycle Time Setting
Watch Cycle Time 001 to FA0: 10 to 40,000 ms
Related Flags
Name Address Description
Cycle Time Too Long Flag
0: Default (1 s) 1: User setting
(10-ms increments)
A401.08 Turns 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.
Name Addresses Description
Maximum Cycle Time
Present Cycle Time A264 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- Pro­grammer.
Note The following methods are effective in reducing the cycle time.
• Place tasks that do not need to be executed on standby.
• Use JMP-JME instructions to skip instructions that do not need to be exe­cuted.
63
Computing the Cycle Time Section 2-7

2-7-4 I/O Refresh Times for PLC Units

CP-series Expansion Unit and Expansion I/O Unit I/O Refresh Times
Name Model I/O refresh time per Unit
Expansion I/O Units CP1W-40EDR 0.39 ms
CP1W-40EDT 0.39 ms CP1W-40EDT1 0.39 ms CP1W-32ER 0.33 ms CP1W-32ET 0.33 ms CP1W-32ET1 0.33 ms CP1W-20EDT 0.18 ms CP1W-20EDT1 0.18 ms CP1W-16ER 0.25 ms CP1W-16ET 0.25 ms CP1W-16ET1 0.25 ms CP1W-8ED 0.13 ms CP1W-8ER 0.08 ms CP1W-8ET 0.08 ms CP1W-8ET1 0.08 ms
Analog Input Units CP1W-AD041 0.61 ms
CP1W-AD042 0.87 ms
Analog Output Units CP1W-DA021 0.33 ms
CP1W-DA041 0.33 ms CP1W-DA042 0.40 ms
Analog I/O Units CP1W -MAD11 0.32 ms
CP1W-MAD42 0.87 ms CP1W-MAD44 0.97 ms
Temperature Sensor Units CP1W-TS001 0.25 ms
CP1W-TS002 0.52 ms CP1W-TS003 0.67 ms CP1W-TS004 0.47 ms CP1W-TS101 0.25 ms CP1W-TS102 0.52 ms
CompoBus/S I/O Link Unit CP1W-SRT21 0.21 ms
64
Note The I/O refresh time for CPU Unit built-in I/O is included in overhead process-
ing.
Computing the Cycle Time Section 2-7

2-7-5 Cycle Time Calculation Example

The following example shows the method used to calculate the cycle time when CP-series Expansion I/O Units only are connected to a CP1L-EL/EM CPU Unit.
Conditions
Item Details
CP1L-EL/EM CP1W-40EDR
40-pt I/O Unit
User program 5 K steps LD instructions: 2.5 K steps,
Ethernet port connection Yes and no Fixed cycle time processing No Serial port connection No Other peripheral servicing No
Calculation Example
Process name Calculation Processing time
(1) Overseeing --- 0.4 ms 0.4 ms (2) Program execution 0.55 μs × 2,500 + 1.1 μs
× 2,500
(3) Cycle time calculation (Minimum cycle time not
set) (4) I/O refreshing 0.39 ms 0.39 ms 0.39 ms (5) Peripheral servicing (Only Ethernet port con-
nected)
1 Unit
OUT instructions: 2.5 K steps
Ethernet port
connected
4.1 ms 4.1 ms
0 ms 0 ms
0.1 ms 0 ms
Ethernet port
not
connected
Cycle time (1) + (2) + (3) + (4) + (5) 4.99 ms 4.89 ms

2-7-6 Online Editing Cycle Time Extension

When online editing is executed to change the program from the CX-Program­mer while the CPU Unit is operating in MONITOR mode, the CPU Unit will momentarily suspend operation while the program is being changed. The period of time that the cycle time is extended is determined by the following conditions.
• Number of steps changed
• Editing operations (insert/delete/overwrite)
• Types of 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 Unit Increase in cycle time for online editing
CP1L-EL/EM CPU Unit Maximum: 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 edit­ing that is performed. Be sure that the additional time will not adversely affect system operation.
65
Computing the Cycle Time Section 2-7
Input
I/O refresh
Input ON delay
Output ON delay
Cycle time Cycle time
(Interrupt to CPU Unit)
Output
Minimum I/O response time
Instruction execution
Instruction execution
Instruction execution
Note When there is one task, online editing is processed all in the cycle time follow-
ing the cycle in which online editing is executed ( written). When there are mul­tiple tasks (cyclic tasks and interrupt tasks), online editing is separated, so that for n tasks, processing is executed over n to n × 2 cycles max.

2-7-7 I/O Response Time

The I/O response time is the time it takes from when an input turns ON, the data is recognized by the CPU Unit, and the user program is executed, up to the time for the result to be output to an output terminal. The length of the I/O response time depends on the following conditions.
• Timing of Input Bit turning ON.
• Cycle time.
Minimum I/O Response Time
The I/O response time is shortest when data is retrieved immediately before I/ O refresh of the CPU Unit. The minimum I/O response time is calculated as follows:
Minimum I/O response time = Input ON delay + Cycle time + Output ON delay
Note The input and output ON delays depend on the type of terminals used on the
CPU Unit or the model number of the Unit being used.
Maximum I/O Response Time
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...