OPERATION MANUAL
Programmable Controllers
SYSMAC
CPM2A
Cat. No. W352-E1-07
CPM2A Programmable Controllers
Operation Manual
Revised November 2005
iv
Notice:
OMRON products are manufactured for use according to proper procedures by a qualified operator
and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this manual. Always heed
the information provided with them. Failure to heed precautions can result in injury to people or damage to property.
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 hazardous 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 “PC” means Programmable Controller and is not used as an abbreviation for anything else.
Visual Aids
The following headings appear in the left column of the manual to help you locate different types of
information.
OMRON, 1999
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any
form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.
No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is
constantly striving to improve its high-quality products, the information contained in this manual is subject to change
without notice. Every precaution has been taken in the preparation of this manual. Nevertheless, OMRON assumes no
responsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in this publication.
Note Indicates information of particular interest for efficient and convenient operation
of the product.
1, 2, 3… 1. Indicates lists of one sort or another, such as procedures, checklists, etc.
v
vi
TABLE OF CONTENTS
PRECAUTIONS xv. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1 Intended Audience xvi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions xvi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions xvi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Operating Environment Precautions xvii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Application Precautions xviii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 EC Directives xx. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 CPM2A 24-VDC CPU Unit Conformance to NK Standards xxiii. . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 1
Introduction 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1 CPM2A Features and Functions 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2 Basic System Configurations 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3 Structure and Operation 12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4 Functions Listed by Usage 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5 Comparison with the CPM1A 21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-6 Preparation for Operation 26. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 2
Unit Specifications and Components 29. . . . . . . . . . . . . . . .
2-1 Specifications 30. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 Unit Components 37. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 3
Installation and Wiring 47. . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1 Design Precautions 48. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2 Selecting an Installation Site 48. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3 Installing the CPM2A 50. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-4 Wiring and Connections 53. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 4
Using a Programming Console 89. . . . . . . . . . . . . . . . . . . . .
4-1 Compatible Programming Consoles 90. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2 Programming Console Operations 96. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-3 Programming Example 120. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 5
Test Runs and Error Processing 127. . . . . . . . . . . . . . . . . . . .
5-1 Initial System Checks and Test Run Procedure 128. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-2 Self-diagnostic Functions 129. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-3 Programming Console Operation Errors 132. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-4 Programming Errors 132. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-5 Troubleshooting Flowcharts 133. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-6 Maintenance Inspections 141. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5-7 Battery Replacement 142. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SECTION 6
Expansion Memory Unit 145. . . . . . . . . . . . . . . . . . . . . . . . . .
6-1 Overview 146. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-2 Specifications and Nomenclature 147. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-3 Handling 148. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
vii
TABLE OF CONTENTS
Appendices
A Standard Models 155. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
B Dimensions 159. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index 167. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Revision History 171. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
viii
About this Manual:
The CPM2A is a compact, high-speed Programmable Controller (PC) designed for control operations in
systems requiring from 10 to 120 I/O points per PC. There are two manuals describing the setup and
operation of the CPM2A: The CPM2A Operation Manual (this manual) and the CPM1/CPM1A/CPM2A/
CPM2C/SRM1(-V2) Programming Manual (W353). (The CPM1/CPM1A/CPM2A/CPM2C/SRM1(-V2)
Programming Manual is referred to as simply the Programming Manual in this manual.)
This manual describes the system configuration and installation of the CPM2A and provides a basic
explanation of operating procedures for the Programming Consoles. It also introduces the capabilities of
CX-Programmer, the SYSMAC Support Software (SSS) and SYSMAC-CPT Support Software. Read this
manual first to acquaint yourself with the CPM2A.
The Programming Manual (W353) provides detailed descriptions of the CPM2A’s programming functions
and application methods for Expansion Units. The SYSMAC Support Software Operation Manuals:
Basics and C-series PCs (W247 and W248) provide descriptions of SSS operations for the CPM2A and
other SYSMAC C-series PCs. The WS02-CXPjj-E CX-Programmer Operation Manual (W414) provides details of operations for the WS02-CXPjj-E CX-Programmer. The SYSMAC-CPT Support Soft-
ware Quick Start Guide (W332) and User Manual (W333) provide descriptions of ladder diagram operations in the Windows environment.
Please read this manual carefully and be sure you understand the information provided before attempting
to install and operate the CPM2A.
Section 1 gives a brief overview of the steps involved in developing of a CPM2A System, describes the
possible system configurations, and describes the CPM2A’s special features and functions.
Section 2 provides the technical specifications of the Units that go together to create a CPM2A PC and
describes the main components of the Units.
Section 3 describes how to install and wire a CPM2A PC.
Section 4 describes how to connect the Programming Console, and how to perform the various program-
ming operations.
Section 5 describes how to perform a test run and how to diagnose and correct the hardware and software errors that can occur during PC operation.
Section 6 describes how to use the CPM1-EMU01-V1 Expansion Memory Unit. Follow the handling precautions and procedures to properly use the Unit.
Appendix A provides tables of CPM2A Units and related products.
Appendix B provides the dimensions of CPM2A Units.
!
WARNING Failure to read and understand the information provided in this manual may result in
personal injury or death, damage to the product, or product failure. Please read each
section in its entirety and be sure you understand the information provided in the section
and related sections before attempting any of the procedures or operations given.
ix
Read and Understand this Manual
Please read and understand this manual before using the product. Please consult your OMRON
representative if you have any questions or comments.
Warranty and Limitations of Liability
WARRANTY
OMRON’s exclusive warranty is that the products are free from defects in materials and workmanship for
БББББББББББББББББББББББББББББББ
a period of one year (or other period if specified) from date of sale by OMRON.
БББББББББББББББББББББББББББББББ
OMRON MAKES NO WARRANTY OR REPRESENTATION, EXPRESS OR IMPLIED, REGARDING
БББББББББББББББББББББББББББББББ
NON–INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR PARTICULAR PURPOSE OF THE
БББББББББББББББББББББББББББББББ
PRODUCTS. ANY BUYER OR USER ACKNOWLEDGES THAT THE BUYER OR USER ALONE HAS
БББББББББББББББББББББББББББББББ
DETERMINED THAT THE PRODUCTS WILL SUITABLY MEET THE REQUIREMENTS OF THEIR
INTENDED USE. OMRON DISCLAIMS ALL OTHER WARRANTIES, EXPRESS OR IMPLIED.
БББББББББББББББББББББББББББББББ
БББББББББББББББББББББББББББББББ
LIMITATIONS OF LIABILITY
OMRON SHALL NOT BE RESPONSIBLE FOR SPECIAL, INDIRECT, OR CONSEQUENTIAL
DAMAGES, LOSS OF PROFITS OR COMMERCIAL LOSS IN ANY WAY CONNECTED WITH THE
БББББББББББББББББББББББББББББББ
PRODUCTS, WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR
БББББББББББББББББББББББББББББББ
STRICT LIABILITY.
БББББББББББББББББББББББББББББББ
In no event shall the responsibility of OMRON for any act exceed the individual price of the product on
БББББББББББББББББББББББББББББББ
which liability is asserted.
БББББББББББББББББББББББББББББББ
IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS
БББББББББББББББББББББББББББББББ
REGARDING THE PRODUCTS UNLESS OMRON’S ANALYSIS CONFIRMS THAT THE PRODUCTS
БББББББББББББББББББББББББББББББ
WERE PROPERLY HANDLED, STORED, INSTALLED, AND MAINTAINED AND NOT SUBJECT TO
БББББББББББББББББББББББББББББББ
CONTAMINATION, ABUSE, MISUSE, OR INAPPROPRIATE MODIFICATION OR REPAIR.
xi
Application Considerations
SUITABILITY FOR USE
OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to
БББББББББББББББББББББББББББББББ
the combination of products in the customer’s application or use of the products.
БББББББББББББББББББББББББББББББ
At the customer’s request, OMRON will provide applicable third party certification documents identifying
БББББББББББББББББББББББББББББББ
ratings and limitations of use that apply to the products. This information by itself is not sufficient for a
БББББББББББББББББББББББББББББББ
complete determination of the suitability of the products in combination with the end product, machine,
БББББББББББББББББББББББББББББББ
system, or other application or use.
БББББББББББББББББББББББББББББББ
The following are some examples of applications for which particular attention must be given. This is not
БББББББББББББББББББББББББББББББ
intended to be an exhaustive list of all possible uses of the products, nor is it intended to imply that the
БББББББББББББББББББББББББББББББ
uses listed may be suitable for the products:
БББББББББББББББББББББББББББББББ
• Outdoor use, uses involving potential chemical contamination or electrical interference, or conditions
БББББББББББББББББББББББББББББББ
or uses not described in this manual.
БББББББББББББББББББББББББББББББ
• Nuclear energy control systems, combustion systems, railroad systems, aviation systems, medical
БББББББББББББББББББББББББББББББ
equipment, amusement machines, vehicles, safety equipment, and installations subject to separate
БББББББББББББББББББББББББББББББ
industry or government regulations.
БББББББББББББББББББББББББББББББ
• Systems, machines, and equipment that could present a risk to life or property.
БББББББББББББББББББББББББББББББ
Please know and observe all prohibitions of use applicable to the products.
БББББББББББББББББББББББББББББББ
БББББББББББББББББББББББББББББББ
NEVER USE THE PRODUCTS FOR AN APPLICATION INVOLVING SERIOUS RISK TO LIFE OR
БББББББББББББББББББББББББББББББ
PROPERTY WITHOUT ENSURING THAT THE SYSTEM AS A WHOLE HAS BEEN DESIGNED TO
ADDRESS THE RISKS, AND THAT THE OMRON PRODUCTS ARE PROPERLY RATED AND
БББББББББББББББББББББББББББББББ
INSTALLED FOR THE INTENDED USE WITHIN THE OVERALL EQUIPMENT OR SYSTEM.
БББББББББББББББББББББББББББББББ
БББББББББББББББББББББББББББББББ
PROGRAMMABLE PRODUCTS
OMRON shall not be responsible for the user’s programming of a programmable product, or any
БББББББББББББББББББББББББББББББ
consequence thereof.
xii
Disclaimers
CHANGE IN SPECIFICATIONS
БББББББББББББББББББББББББББББББ
Product specifications and accessories may be changed at any time based on improvements and other
reasons.
БББББББББББББББББББББББББББББББ
БББББББББББББББББББББББББББББББ
It is our practice to change model numbers when published ratings or features are changed, or when
significant construction changes are made. However, some specifications of the products may be
БББББББББББББББББББББББББББББББ
changed without any notice. When in doubt, special model numbers may be assigned to fix or establish
БББББББББББББББББББББББББББББББ
key specifications for your application on your request. Please consult with your OMRON representative
БББББББББББББББББББББББББББББББ
at any time to confirm actual specifications of purchased products.
БББББББББББББББББББББББББББББББ
DIMENSIONS AND WEIGHTS
Dimensions and weights are nominal and are not to be used for manufacturing purposes, even when
tolerances are shown.
БББББББББББББББББББББББББББББББ
PERFORMANCE DATA
Performance data given in this manual is provided as a guide for the user in determining suitability and
БББББББББББББББББББББББББББББББ
does not constitute a warranty. It may represent the result of OMRON’s test conditions, and the users
БББББББББББББББББББББББББББББББ
must correlate it to actual application requirements. Actual performance is subject to the OMRON
БББББББББББББББББББББББББББББББ
Warranty and Limitations of Liability.
БББББББББББББББББББББББББББББББ
The information in this manual has been carefully checked and is believed to be accurate; however, no
responsibility is assumed for clerical, typographical, or proofreading errors, or omissions.
БББББББББББББББББББББББББББББББ
ERRORS AND OMISSIONS
xiii
xiv
PRECAUTIONS
This section provides general precautions for using the Programmable Controller (PC) and related devices.
The information contained in this section is important for the safe and reliable application of the Programmable Controller. You must read this section and understand the information contained before attempting to set up or operate a
PC system.
1 Intended Audience xvi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 General Precautions xvi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions xvi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Operating Environment Precautions xvii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Application Precautions xviii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 EC Directives xx. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
7 CPM2A 24-VDC CPU Unit Conformance to NK Standards xxiii. . . . . . . . . . . . . . . . . . . . . . . . . . .
xv
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 specifications
described in the operation manuals.
Before using the product under conditions which are not described in the manual
or applying the product to nuclear control systems, railroad systems, aviation
systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment, and other systems, machines, and equipment that
may have a serious influence on lives and property if used improperly, consult
your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide the
systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating the Unit. Be
sure to read this manual before attempting to use the Unit and keep this manual
close at hand for reference during operation.
5Safety Precautions
WARNING It is extremely important that a PC and all PC Units be used for the specified
!
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 PC System to the above-mentioned
applications.
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, in order to ensure safety in the system
if an abnormality occurs due to malfunction of the PC or another external factor
affecting the PC operation. Not doing so may result in serious accidents.
xvi
• Emergency stop circuits, interlock circuits, limit circuits, and similar safety
measures must be provided in external control circuits.
• The PC will turn OFF all outputs when its self-diagnosis function detects any
error or when a severe failure alarm (FALS) instruction is executed. As a countermeasure for such errors, external safety measures must be provided to ensure safety in the system.
Operating Environment Precautions
• The PC outputs may remain ON or OFF due to deposition or burning of the
output relays or destruction of the output transistors. As a countermeasure for
such problems, external safety measures must be provided to ensure safety in
the system.
• When the 24-VDC output (service power supply to the PC) is overloaded or
short-circuited, the voltage may drop and result in the outputs being turned
OFF. As a countermeasure for such problems, external safety measures must
be provided to ensure safety in the system.
WARNING When transferring programs to other nodes, or when making changes to I/O
!
memory, confirm the safety of the destination node before transfer. Not doing so
may result in injury.
Caution Execute online edit only after confirming that no adverse effects will be caused
!
by extending the cycle time. Otherwise, the input signals may not be readable.
Caution Tighten the screws on the terminal block of the AC Power Supply Unit to the
!
torque specified in the operation manual. The loose screws may result in burning
or malfunction.
4
Caution When connecting the PC to a personal computer or other peripheral device, ei-
!
ther ground the 0-V side of the PC or do not ground the PC at all. Although some
grounding methods short the 24-V side, as shown in the following diagram, never do so with the PC.
INCORRECT Grounding: Shorting the 24-V side of the Power Supply
Non-isolated DC
0 V
power supply
0 V 0 V
PC
24 V
4 Operating Environment Precautions
Caution Do not operate the control system in the following places:
!
• 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 tempera-
ture.
• 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.
Peripheral device
Caution Take appropriate and sufficient countermeasures when installing systems in the
!
following locations:
xvii
• 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 PC System can have a large effect on the lon-
!
gevity and reliability of the system. Improper operating environments can lead to
malfunction, failure, and other unforeseeable problems with the PC System. Be
sure that the operating environment is within the specified conditions at installation and remains within the specified conditions during the life of the system.
5 Application Precautions
Observe the following precautions when using the PC System.
WARNING Always heed these precautions. Failure to abide by the following precautions
!
could lead to serious or possibly fatal injury.
• Always connect to a ground such that the grounding resistance does not exceed 100 Ω when installing the Units. Not connecting to the correct ground
may result in electric shock.
• Always turn OFF the power supply to the PC before attempting any of the following. Not turning OFF the power supply may result in malfunction or electric
shock.
• Mounting or dismounting I/O Units, CPU Units, or any other Units.
• Assembling the Units.
• Setting DIP switches or rotary switches.
• Connecting or wiring the cables.
• Connecting or disconnecting the connectors.
5Application Precautions
Caution Failure to abide by the following precautions could lead to faulty operation of the
!
PC or the system, or could damage the PC or PC Units. Always heed these precautions.
• Fail-safe measures must be taken by the customer to ensure safety in the
event of incorrect, missing, or abnormal signals caused by broken signal lines,
momentary power interruptions, or other causes.
• Construct a control circuit so that power supply for the I/O circuits does not
come ON before power supply for the Unit. If power supply for the I/O circuits
comes ON before power supply for the Unit, normal operation may be temporarily interrupted.
• If the operating mode is changed from RUN or MONITOR mode to PROGRAM
mode, with the IOM Hold Bit ON, the output will hold the most recent status. In
such a case, ensure that the external load does not exceed specifications. (If
operation is stopped because of an operation error (including FALS instructions), the values in the internal memory of the CPU Unit will be saved, but the
outputs will all turn OFF.)
• Always use the power supply voltage specified in the operation manuals. An
incorrect voltage may result in malfunction or burning.
• Take appropriate measures to ensure that the specified power with the rated
voltage and frequency is supplied. Be particularly careful in places where the
power supply is unstable. An incorrect power supply may result in malfunction.
• Install external breakers and take other safety measures against short-circuiting in external wiring. Insufficient safety measures against short-circuiting may
result in burning.
xviii
Application Precautions
5
• Do not apply voltages to the input terminals in excess of the rated input voltage.
Excess voltages may result in burning.
• Do not apply voltages or connect loads to the output terminals in excess of the
maximum switching capacity. Excess voltage or loads may result in burning.
• Disconnect the functional ground terminal when performing withstand voltage
tests. Not disconnecting the functional ground terminal may result in burning.
• Install the Unit properly as specified in the operation manual. Improper installation of the Unit may result in malfunction.
• Be sure that all the mounting screws, terminal screws, and cable connector
screws are tightened to the torque specified in the relevant manuals. Incorrect
tightening torque may result in malfunction.
• Be sure to leave the labels attached at the time of shipment on the CPM1 or
CPM2A when wiring in order to prevent wiring cuttings from entering the Unit.
• Remove the label after the completion of wiring to ensure proper heat dissipation. Leaving the label attached may result in malfunction.
• Be sure to perform wiring in accordance with the relevant operation manual.
Incorrect wiring may result in burning.
• Use crimp terminals for wiring. Do not connect bare stranded wires directly to
terminals. Connection of bare stranded wires may result in burning.
• Double-check all the wiring before turning ON the power supply. Incorrect wiring may result in burning.
• Be sure that the terminal blocks, expansion cables, and other items with locking devices are properly locked into place. Improper locking may result in malfunction.
• Be sure that terminal blocks and connectors are connected in the specified direction with the correct polarity. Not doing so may result in malfunction.
• Check the user program for proper execution before actually running it on the
Unit. Not checking the program may result in an unexpected operation.
• Confirm that no adverse effect will occur in the system before attempting any of
the following. Not doing so may result in an unexpected operation.
• Changing the operating mode of the PC.
• Force-setting/force-resetting any bit in memory.
• Changing the present value of any word or any set value in memory.
• Resume operation only after transferring to the new CPU Unit the contents of
the DM and HR Areas required for resuming operation. Not doing so may result
in an unexpected operation.
• 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.
• Do not short the battery terminals or charge, disassemble, heat, or incinerate
the battery. Do not subject the battery to strong shocks. Doing any of these
may result in leakage, rupture, heat generation, or ignition of the battery. Dispose of any battery that has been dropped on the floor or otherwise subjected
to excessive shock. Batteries that have been subjected to shock may leak if
they are used.
• When replacing parts, be sure to confirm that the rating of a new part is correct.
Not doing so may result in malfunction or burning.
• Before touching the Unit, be sure to first touch a grounded metallic object in
order to discharge any static build-up. Not doing so may result in malfunction or
damage.
• Do not touch the expansion I/O connecting cable while the power is being supplied in order to prevent any malfunction due to static electricity.
xix
• When using a thermocouple-input type Temperature Sensor Unit, observe the
following precautions:
• Do not remove the cold junction compensator attached at the time of deliv-
ery. If the cold junction compensator is removed the Unit will not be able to
measure temperatures correctly.
• Each of the input circuits is calibrated with the cold junction compensator
attached to the Unit. If the Unit is used with the cold junction compensator
from other Units, the Unit will not be able to measure temperatures correctly.
• Do not touch the cold junction compensator. Doing so may result in incor-
rect temperature measurement.
6 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 Directives will vary depending on the configuration, wiring, and other conditions of the
equipment or control panel on which the OMRON devices are installed. The customer must, therefore, perform the final check to confirm that devices and the
overall machine conform to EMC standards.
6EC Directives
Note Applicable EMC (Electromagnetic Compatibility) standards are as follows:
EMS (Electromagnetic Susceptibility): EN61131-2
EMI (Electromagnetic Interference): EN61000-6-4
Low Voltage Directive
Always ensure that devices operating at voltages of 50 to 1,000 VAC and 75 to
1,500 VDC meet the required safety standards for the PC (EN61131-2).
6-3 Conformance to EC Directives
The CPM2A PCs comply with EC Directives. To ensure that the machine or device in which the CPM2A PC is used complies with EC directives, the PC must be
installed as follows:
1, 2, 3… 1. The CPM2A PC must be installed within a control panel.
2. Reinforced insulation or double insulation must be used for the DC power
supplies used for the communications and I/O power supplies.
3. CPM2A PCs complying with EC Directives also conform to the Common
Emission Standard (EN61000-6-4). Radiated emission characteristics
(10-m regulations) may vary depending on the configuration of the control
panel used, other devices connected to the control panel, wiring, and other
conditions. You must therefore confirm that the overall machine or equipment complies with EC Directives.
(Radiated emission: 10-m regulations)
xx
EC Directives
6-4 Relay Output Noise Reduction Methods
The CPM2A PCs conform to the Common Emission Standards (EN61000-6-4)
of the EMC Directives. However, the noise generated when the PC is switched
ON or OFF using the relay output 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 PC.
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
(Refer to EN61000-6-4 for more details.)
Countermeasures are not required if the frequency of load switching for the
whole system with the PC included is less than 5 times per minute.
Countermeasures are required if the frequency of load switching for the whole
system with the PC included is 5 times or more per minute.
6
xxi
Countermeasure Examples
When switching an inductive load, connect a surge protector, diodes, etc., in parallel with the load or contact as shown below.
Circuit Current Characteristic Required element
AC DC
CR method
Power
supply
Diode method
Power
supply
Varistor method
Power
supply
Yes Yes If the load is a relay or solenoid, there
Inductive
load
No Yes The diode connected in parallel with
Inductive
load
Yes Yes The varistor method prevents the
Inductive
load
is a time lag between the moment the
circuit is opened and the moment the
load is reset.
If the supply voltage is 24 to 48 V,
insert the surge protector in parallel
with the load. If the supply voltage is
100 to 200 V, insert the surge
protector between the contacts.
the 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.
imposition of high voltage between the
contacts by using the constant voltage
characteristic of the varistor. There is
time lag between the moment the
circuit is opened and the moment the
load is reset.
If the supply voltage is 24 to 48 V,
insert the varistor in parallel with the
load. If the supply voltage is 100 to
200 V, insert the varistor between the
contacts.
6EC Directives
The capacitance of the capacitor must
be 1 to 0.5 µF per contact current of
1 A and resistance of the resistor must
be 0.5 to 1 Ω per contact voltage of
1 V. These values, however, vary with
the load and the characteristics of the
relay. Decide these values from
experiments, and take into
consideration that the capacitance
suppresses spark discharge when the
contacts are separated and the
resistance limits the current that flows
into the load when the circuit is closed
again.
The dielectric strength of the capacitor
must be 200 to 300 V. If the circuit is
an AC circuit, use a capacitor with no
polarity.
The reversed dielectric strength value
of the diode must be at least 10 times
as large as the circuit voltage value.
The forward current of the diode must
be the same as or larger than the load
current.
The reversed dielectric strength value
of the diode may be two to three times
larger than the supply voltage if the
surge protector is applied to electronic
circuits with low circuit voltages.
—
xxii
CPM2A 24
—VDC CPU Unit Conformance to NK Standards
6-5 CPM1A-MAD01 Conformance to EMC Directives
Immunity testing conditions when using the current I/O of the CPM1A-MAD01
are as follows.
• Total accuracy: +10%/-1%
• Insert the following core in each line as shown below.
Recommended core: 2643-002402
Manufacturer: Fair Rite Products Corp.
7
7 CPM2A 24—VDC CPU Unit Conformance to NK Standards
Surge immunity testing conditions when using a 24-VDC CPU Unit of the
CPM2A are as follows:
• Connect a Transit Voltage Suppressor (TVS) diode between the 24-V and 0-V
DC power supply wiring. The polarity of the TVS diode is bidirectional, i.e., it
has no set polarity.
Recommended TVS: 1.5KE33CA
Manufacturer: Vishay Semiconductors (formerly General Semiconductors)
ST Microelectronics K.K.
xxiii
SECTION 1
Introduction
This section describes the CPM2A’s special features and functions, shows the possible system configurations, and outlines the
steps required before operation. Read this section first when using the CPM2A for the first time.
Refer to the CPM1/CPM1A/CPM2A/CPM2C/SRM1(-V2) Programming Manual (W353) for details on programming opera-
tion.
1-1 CPM2A Features and Functions 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1-1 CPM2A Features 2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-1-2 Overview of CPM2A Functions 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2 Basic System Configurations 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-1 Stand-alone CPU Unit 9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-2-2 CPU Unit, Expansion Units, and Expansion I/O Units 9. . . . . . . . . . . . . . . . . . . . .
1-3 Structure and Operation 12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3-1 CPU Unit Structure 12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3-2 Operating Modes 13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3-3 Operating Mode at Startup 13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3-4 PC Operation at Startup 14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-3-5 Cyclic Operation and Interrupts 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-4 Functions Listed by Usage 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-5 Comparison with the CPM1A 21. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1-6 Preparation for Operation 26. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1
1-1 CPM2A Features and Functions
1-1-1 CPM2A Features
The CPM2A PCs incorporate a variety of features in a compact Unit, including
synchronized pulse control, interrupt inputs, pulse outputs, analog settings, and
a clock function. Also, the CPM2A CPU Unit is a stand-alone Unit that can handle a broad range of machine control applications, so it is ideal for use as a builtin control unit in equipment.
The full complement of communications functions provide communications with
personal computers, other OMRON PCs, and OMRON Programmable Terminals. These communications capabilities allow the user to design a low-cost distributed production system.
1-1SectionCPM2A Features and Functions
The CPU Unit contains 20, 30, 40, or 60 I/O points and
Expansion I/O Units can be added to provide a total I/O
capacity of up to 120 I/O points. Analog I/O Units, Temperature Sensor Units, CompoBus/S I/O Link Units, and
DeviceNet I/O Link Units can also be connected.
Basic Functions
CPU Unit Variations
Expansion I/O Units
2
Peripheral Port
Programming Devices are compatible with
other models of OMRON PCs. This port
can also be used for Host Link or no-protocol communications.
The CPM2A PCs are one-piece PCs with 20, 30, 40, or 60 built-in I/O terminals.
There are 3 types of outputs available (relay outputs, sinking transistor outputs,
and sourcing transistor outputs) and 2 types of power supplies available
(100/240 VAC or 24 VDC).
Up to 3 Expansion I/O Units can be connected to the CPU Unit to increase the
PC’s I/O capacity to a maximum of 120 I/O points. There are 3 types of Expansion I/O Units available: a 20-point I/O Unit, an 8-point Input Unit, and an 8-point
Output Unit. The maximum I/O capacity of 120 I/O points is achieved by connecting three 20-point I/O Units to a CPU Unit with 60 built-in I/O terminals.
RS-232C Port
This port can be used for a Host Link,
no-protocol, 1:1 PC Link, or 1:1 NT Link
communications.
1-1SectionCPM2A Features and Functions
Analog I/O Units
Temperature Sensor
Units
Up to 3 Analog I/O Units can be connected to provide analog inputs and outputs.
Each Unit provides 2 analog inputs and 1 analog output, so a maximum of 6 analog inputs and 3 analog outputs can be achieved by connecting 3 Analog I/O
Units.
Unit Analog inputs Analog outputs
CPM1A-MAD01 Signal range: 0 to 10 V, 1 to 5 V, or
4 to 20 mA, Resolution of 1/256
The open-circuit detection function
can be used with the 1 to 5 VDC
and 4 to 20 mA settings.
CPM1A-MAD11 Signal range: 0 to V 5, 0 to 10 V, 1
to 5 V, –10 to 10 V, 0 to 20 mA, or 4
to 20 mA, Resolution of 1/6,000
The open-circuit detection function
can be used with the 1 to 5 VDC
and 4 to 20 mA settings.
Signal range: 0 to 10 V,
–10 to 10 V, or 4 to
20 mA,
Resolution of 1/256
Signal range: 0 to 10 V, 1
to 5 V, –10 to 10 V, 0 to
20 mA, or 4 to 20 mA,
Resolution of 1/6,000
A Temperature Sensor Unit can be connected to provide up to 6 inputs for temperature input from sensors, such as thermocouples or platinum resistance
thermometers.
Temperature Sensor Unit Functions
Thermocouple input (CPM1A-TS001/002; 2/4 input points):
K: –200° to 1,300°C (–300° to 2,300°F)
0.0° to 500.0°C (0.0° to 900.0°F)
J: –100° to 850°C (–100° to 1,500°F)
0.0° to 400.0°C (0.0° to 750.0°F)
Platinum resistance thermometer input (CPM1A-TS101/102; 2/4 input points):
Pt100: –200.0° to 650.0°C (–300.0° to 1,200.0°F)
JPt100: –200.0° to 650.0°C (–300.0° to 1,200.0°F)
CompoBus/S I/O Link
Units
CompoBus/S I/O Link Units can be connected to make the CPM2A a Slave Device in a CompoBus/S Network. The I/O Link Unit has 8 input bits (internal) and
8 output bits (internal).
The CompoBus/S Network provides distributed CPU control based on a “PC +
compact PC” configuration, which is an improvement on the earlier distributed
I/O control based on a “PC + remote I/O” configuration. The distributed CPU
control makes equipment modular, so designs can be standardized, special
needs can be addressed, and modules can be replaced easily in the event of a
breakdown.
CompoBus/S Master Unit
Master PC
(or SRM1 CompoBus/S Master Control Unit)
CPM2A (Slave) CompoBus/S I/O Link Unit
CompoBus/S
Distributed CPU control
DeviceNet I/O Link Units DeviceNet I/O Link Units can be connected to enable using the CPM2A as a De-
viceNet slave. Up to 32 internal input and 32 internal outputs points are supported for each Unit, and up to 3 Units can connected. DeviceNet application
allows networks to be constructed including devices from other manufacturers.
3
1-1SectionCPM2A Features and Functions
Share Programming
Devices
The same Programming Devices, such as Programming Consoles and Support
Software, can be used for the C200H, C200HS, C200HX/HG/HE, CQM1,
CPM1, CPM1A, CPM2C, and SRM1 (-V2) PCs, so existing ladder program resources can be used effectively.
Built-in Motor Control Capability
Synchronized Pulse
Control
(Transistor Outputs Only)
High-speed Counters and
Interrupts
Synchronized pulse control provides an easy way to synchronize the operation
of a peripheral piece of equipment with the main equipment. The output pulse
frequency can be controlled as some multiple of the input pulse frequency, allowing the speed of a peripheral piece of equipment (such as a supply conveyor)
to be synchronized with the speed of the main piece of equipment.
The CPM2A has a total of five high-speed counter inputs. The one high-speed
counter input has a response frequency of 20 kHz/5 kHz and the four interrupt
inputs (in counter mode) have a response frequency of 2 kHz.
The high-speed counter can be used in any one of the four input modes: differential phase mode (5 kHz), pulse plus direction input mode (20 kHz), up/down
pulse mode (20 kHz), or increment mode (20 kHz). Interrupts can be triggered
when the count matches a set value or falls within a specified range.
The interrupt inputs (counter mode) can be used for incrementing counters or
decrementing counters (2 kHz) and trigger an interrupt (executing the interrupt
program) when the count matches the target value.
Encoder
CPM2A
Motor driver Motor
Pulses are output as a fixed multiple of the input frequency.
Easy Position Control
with Pulse Outputs
(Transistor Outputs Only)
CPM2A PCs with transistor outputs have two outputs that can produce 10 Hz to
10 kHz pulses (single-phase outputs).
When used as single-phase pulse outputs, there can be two outputs with a frequency range of 10 Hz to 10 kHz with a fixed duty ratio or 0.1 to 999.9 Hz with a
variable duty ratio (0 to 100% duty ratio).
When used as pulse plus direction or up/down pulse outputs, there can be just
one output with a frequency range of 10 Hz to 10 kHz.
High-speed Input Capabilities for Machine Control
High-speed Interrupt
Input Function
Quick-response Input
Function
Stabilizing Input Filter
Function
There are four inputs used for interrupt inputs (shared with quick-response inputs and interrupt inputs in counter mode) with a minimum input signal width of
50 µs and response time of 0.3 ms. When an interrupt input goes ON, the main
program is stopped and the interrupt program is executed.
There are four inputs used for quick-response inputs (shared with interrupt inputs and interrupt inputs in counter mode) that can reliably read input signals
with a signal width as short as 50 µs.
The input time constant for all inputs can be set to 1 ms, 2 ms, 3 ms, 5 ms,
10 ms, 20 ms, 40 ms, or 80 ms. The effects of chattering and external noise can
be reduced by increasing the input time constant.
Other Functions
Interval Timer Interrupts
The interval timer can be set between 0.5 and 319,968 ms and can be set to generate just one interrupt (one-shot mode) or periodic interrupts (scheduled interrupt mode).
Analog Settings
4
There are two controls on the CPU Unit that can be turned to change the analog
settings (0 to 200 BCD) in IR 250 and IR 251. These controls can be used to eas-
1-1SectionCPM2A Features and Functions
ily change or fine-tune machine settings such as a conveyor belt’s pause time or
feed rate.
Calendar/Clock
The built-in clock (accuracy within 1 minute/month) can be read from the program to show the current year, month, day, day of the week, and time. The clock
can be set from a Programming Device (such as a Programming Console) or the
time can be adjusted by rounding up or down to the nearest minute.
Long-term Timer
TIML(––) is a long-term timer that accommodates set values up to 99,990 seconds (27 hours, 46 minutes, 30 seconds). When combined with the SECONDS
TO HOURS conversion instruction (HMS(––)), the long-term timer provides an
easy way to control equipment scheduling.
Analog PID Control
The PID(––) instruction can be used with an Analog I/O Unit to control analog
I/O.
Complete Communications Capabilities
Host Link
1:1 Host Link Communications
A Host Link connection can be made through the PC’s RS-232C port or Peripheral port. A personal computer or Programmable Terminal (only for 1:1 communications) connected in Host Link mode can be used for operations such as
reading/writing data in the PC’s I/O memory or reading/changing the PC’s operating mode.
1:N Host Link Communications
B500-AL004
Link Adapter
Responses
No-protocol
Communications
Inputting data from
a bar code reader
Bar code reader
Commands
CPM1-CIF01
CPM2A (Peripheral port connection*)
*An RS-232C Adapter is needed
to connect to the Peripheral port.
The TXD(48) and RXD(47) instructions can be used in no-protocol mode to exchange data with standard serial devices. For example, data can be received
from a bar code reader or transmitted to a serial printer. The serial devices can
be connected to the RS-232C port or Peripheral port.
NT-AL001
Responses
Outputting data to
a serial printer
Serial printer
Commands
CPM2A
(RS-232C port connection)
RS-232C/RS-422A Adapter
(Up to 32 PCs can be connected.)
(RS-232C port connection*)
*An RS-232C Adapter is needed to connect to the Peripheral port.
CPM2A
(RS-232C port connection*)
CPM2A
5
1-1SectionCPM2A Features and Functions
High-speed 1:1 NT Link
Communications
One-to-one PC Link
Expansion Memory Unit
In a 1:1 NT Link, an OMRON Programmable Terminal (PT) can be connected
directly to the CPM2A. The PT must be connected to the RS-232C port; it cannot
be connected to the Peripheral port.
OMRON PT
(RS-232C port connection)
CPM2A
A CPM2A can be linked directly to another CPM2A, CQM1, CPM1, CPM1A,
CPM2C, SRM1(-V2), or a C200HS or C200HX/HG/HE PC. The 1:1 PC Link allows automatic data link connections. The PC must be connected through the
RS-232C port; it cannot be connected through the Peripheral port.
(RS-232C port connection)
CPM2A
(RS-232C port connection)
CPM2A
The CPM1-EMU01-V1 Expansion Memory Unit is a program loader for smallsize or micro PLCs. Using the CPM1-EMU01-V1, simple on-site transfer of user
programs and data memory is possible with PLCs.
EEPROM
Uploading
Downloading
SYSMAC
6
1-1-2 Overview of CPM2A Functions
Main function Variations/Details
Interrupts
High-speed counters High-speed counter
Pulse outputs 2 outputs:
Synchronized pulse control 1 point, see notes 2 and 3.
Quick-response input 4 inputs, see note 1.
Analog settings 2 controls (setting ranges: 0 to 200 BCD)
Input time constant Determines the input time constant for all inputs. (Settings: 1, 2, 3, 5, 10, 20, 40, or 80 ms)
Calendar/Clock Shows the current year, month, day of the week, day of the month, hour, minute, and
Interrupt inputs
4 inputs, see note 1.
Response time: 0.3 ms
Interval timer interrupts
1 input
Set value: 0.5 to 319,968 ms
Precision: 0.1 ms
nput, see note 2.
Differential phase mode (5 kHz)
Pulse plus direction input mode (20 kHz)
Up/down input mode (20 kHz)
Increment mode (20 kHz)
Interrupt inputs (counter mode)
4 inputs, see note 1.
Incrementing counter (2 kHz)
Decrementing counter (2 kHz)
Single-phase pulse output without acceleration/deceleration (See note 3.)
10 Hz to 10 kHz
2 outputs:
Variable duty ratio pulse output (See note 3.)
0.1 to 999.9 Hz, duty ratio 0 to 100%
1 output:
Pulse output with trapezoidal acceleration/deceleration (See note 3.)
Pulse plus direction output, up/down pulse output, 10 Hz to 10 kHz
Input frequency range: 10 to 500 Hz, 20 Hz to 1 kHz, or 300 Hz to 20 kHz
Output frequency range: 10 Hz to 10 kHz
Minimum input signal width: 50 µs
second.
Scheduled interrupts
One-shot interrupt
No interrupt
Count-check interrupt
(An interrupt can be generated when the
count equals the set value or the count
lies within a preset range.)
No interrupt
Count-up interrupt
1-1SectionCPM2A Features and Functions
7
Main function Variations/Details
Expansion Unit functions
Analog I/O Unit functions (CPM1A-MAD01) (resolution: 1/256)
Two analog inputs: input range 0 to 10 V, 1 to 5 V, or 4 to 20 mA
One analog output: output range 0 to 10 V, –10 to 10 V, or 4 to 20 mA
Analog I/O Unit functions (CPM1A-MAD11) (resolution: 1/6000)
Two analog inputs: input range 0 to 5 V, 1 to 5 V, 0 to 10 V, –10 to 10 V, 0 to 20 mA, or
4 to 20 mA
One analog output: output range 1 to 5 V, 0 to 10 V, –10 to 10 V, 0 to 20 mA, or 4 to
20 mA
Temperature Sensor Unit functions
Thermocouple input (CPM1A-TS001/002; 2/4 input points):
K: –200° to 1,300°C (–300° to 2,300°F)
0.0° to 500.0°C (0.0° to 900.0°F)
J: –100° to 850°C (–100° to 1,500°F)
0.0° to 400.0°C (0.0° to 750.0°F)
Platinum resistance thermometer input (CPM1A-TS101/102; 2/4 input points):
Pt100: –200.0° to 650.0°C (–300.0° to 1,200.0°F)
JPt100: –200.0° to 650.0°C (–300.0° to 1,200.0°F)
CompoBus/S Slave functions (CPM1A-SRT21)
Exchanges 8 input bits and 8 output bits of data with the Master Unit.
DeviceNet Slave functions
Exchanges 32 input bits and 32 output bits of data with the DeviceNet Master Unit.
1-1SectionCPM2A Features and Functions
Note 1. These four inputs are shared by interrupt inputs, interrupt inputs in counter
mode, and quick-response inputs, but each input can be used for only one
purpose.
2. This input is shared by the high-speed counter and synchronized pulse control functions.
3. This output is shared by the pulse output and synchronized pulse control
functions. These functions can be used with transistor outputs only.
8
1-2 Basic System Configurations
1-2-1 Stand-alone CPU Unit
CPU Unit with 20/30 I/O Points CPU Unit with 40 I/O Points CPU Unit with 60 I/O Points
Number of I/O points Power supply Inputs Outputs Model
20 I/O points
(12 inputs and 8 outputs)
30 I/O points
(18 inputs and 12 outputs)
40 I/O points
(24 inputs and 16 outputs)
60 I/O points
(36 inputs and 24 outputs)
100 to 240 VAC 24 VDC Relay CPM2A-20CDR-A
24 VDC
100 to 240 VAC 24 VDC Relay CPM2A-30CDR-A
24 VDC
100 to 240 VAC 24 VDC Relay CPM2A-40CDR-A
24 VDC
100 to 240 VAC 24 VDC Relay CPM2A-60CDR-A
24 VDC
24 VDC Relay CPM2A-20CDR-D
24 VDC Sinking Transistor CPM2A-20CDT-D
24 VDC Sourcing Transistor CPM2A-20CDT1-D
24 VDC Relay CPM2A-30CDR-D
24 VDC Sinking Transistor CPM2A-30CDT-D
24 VDC Sourcing Transistor CPM2A-30CDT1-D
24 VDC Relay CPM2A-40CDR-D
24 VDC Sinking Transistor CPM2A-40CDT-D
24 VDC Sourcing Transistor CPM2A-40CDT1-D
24 VDC Relay CPM2A-60CDR-D
24 VDC Sinking Transistor CPM2A-60CDT-D
24 VDC Sourcing Transistor CPM2A-60CDT1-D
1-2SectionBasic System Configurations
1-2-2 CPU Unit, Expansion Units, and Expansion I/O Units
Up to 3 Expansion Units or Expansion I/O Units can be connected to the expansion connector with expansion I/O connecting cables. (Only one Expansion Unit
or Expansion I/O Unit can be connected if an NT-AL001 Adapter is connected to
the RS-232C port because the CPU Unit’s 5-VDC power supply is limited.)
There are four types of Units available: Expansion I/O Units, an Analog I/O Unit,
Temperature Sensor Units, a CompoBus/S I/O Link Unit, and a DeviceNet I/O
Link Unit.
Expansion connector
Expansion I/O Unit or Expansion Unit
(Analog I/O Unit, Temperature Sensor
Unit, CompoBus/S I/O Link Unit, or
DeviceNet I/O Link Unit)
Expansion I/O connecting cable
A PC with 120 I/O points (the maximum) can be assembled by connecting three
Expansion I/O Units to a CPU Unit with 60 I/O points.
CPM2A-60CDR-A
(36 inputs, 24 outputs)
× 1 Unit + × 3 Units = 72 inputs, 48 outputs
CPM1A-20EDR1
(12 inputs, 8 outputs)
9
1-2SectionBasic System Configurations
A PC with 6 analog inputs and 3 analog outputs (the maximum) can be assembled by connecting three Analog I/O Units. (Only one Analog I/O Unit can be
connected if an NT-AL001 Adapter is connected to the CPU Unit’s RS-232C
port.)
A PC with up to 6 temperature inputs for input from thermocouples or platinum
resistance thermometers can be assembled by connecting Temperature Sensor
Units.
CompoBus/S I/O Link Units (Slave Units) can be connected to a CPU Unit. I/O
data (8 inputs and 8 outputs) is transferred between the CPU Unit and the area
allocated to the CompoBus/S Slave. (The I/O data exchanged with the Slave is
internal data; there are no external input or output terminals.)
DeviceNet I/O Link Units can be connected to a CPU Unit. I/O data (32 inputs
and 32 outputs) is transferred between the CPU Unit and the area allocated to
the DeviceNet I/O Link Unit. (The I/O data exchanged with the Slave is internal
data; there are no external input or output terminals.)
Note 1. Different types of Expansion I/O Units or Expansion Units can be connected
at the same time. For example, an Expansion I/O Unit, an Analog I/O Unit, a
CompoBus/S I/O Link Unit, and DeviceNet I/O Link Unit can be connected to
the CPU Unit.
Expansion I/O Units
Unit Max. number
Expansion
I/O Units points
20 I/O
8 outputs
8 inputs 24 VDC — CPM1A-8ED
8 outputs
2. When an NT-AL001 Adapter is connected to the RS-232C port, only one Ex-
of Units
3 Units max.
ee note.
pansion Unit or Expansion I/O Unit can be connected to the CPU Unit because of power supply limitations.
8-point Input Unit 8-point Output Unit20-point I/O Unit
Inputs Outputs Model
24 VDC Relays CPM1A-20EDR1
24 VDC Sinking transistors CPM1A-20EDT
24 VDC Sourcing transistors CPM1A-20EDT1
— Relays CPM1A-8ER
— Sinking Transistors CPM1A-8ET
— Sourcing Transistors CPM1A-8ET1
Note Only one Expansion I/O Unit can be connected if an NT-AL001 Adapter is con-
nected to the CPU Unit’s RS-232C port.
10
Expansion Units
CPM1A-MAD01
Analog I/O Unit
CPM1A-MAD11
Analog I/O Unit
1-2SectionBasic System Configurations
Temperature Sensor Unit
CompoBus/S I/O
Link Unit
Unit Max. number
Analog I/O Unit
2 analog inputs (2 words)
1 analog output (1 word)
Temperature
Sensor Unit
CompoBus/S I/O Link Unit
8 inputs and 8 outputs
DeviceNet I/O Link Unit
32 inputs and 32 outputs
Thermocouple
inputs
Platinum
resistance
thermometer
inputs
DeviceNet I/O
Link Unit
Inputs Outputs Model
of Units
3 Units max.
(See note.)
3 Units max.
(See note.)
1 Unit max. 4 inputs (K, J) CPM1A-TS002
3 Units max.
(See note.)
1 Unit max. 4 inputs (Pt100, JPt100) CPM1A-TS102
3 Units max.
(See note.)
3 Units max.
(See note.)
2 analog inputs 1 analog output CPM1A-MAD01
CPM1A-MAD11
2 inputs (K, J)
2 inputs (Pt100, JPt100) CPM1A-TS101
8 bits
(Inputs from the Master.)
32 bits
(Inputs from the Master.)
—
8 bits
(Outputs to the Master.)
32 bits
(Outputs to the Master.)
CPM1A-TS001
CPM1A-SRT21
CPM1A-DRT21
Note 1. Only one CPM1A-TS002/TS102 Temperature Sensor Unit can be con-
nected to the CPU Unit. If a CPM1A-TS002/102 is connected to the CPU
Unit, only one additional Expansion Unit (other than a CPM1A-TS002/102)
or one Expansion I/O Unit can be connected to the CPU Unit.
2. Only one Expansion Unit can be connected if an NT-AL001 Adapter is connected to the CPU Unit’s RS-232C port.
11
1-3 Structure and Operation
1-3-1 CPU Unit Structure
The following diagram shows the internal structure of the CPU Unit.
I/O memory
1-3SectionStructure and Operation
I/O Memory
Program
External
input
devices
External
output
devices
Input circuits
Peripheral
port
Program
Settings
Communications
processing
Settings
Settings
Communications switch
PC Setup
Output circuits
RS-232C
port
The program reads and writes data in this memory area during execution. Part of
the I/O memory contains the bits that reflect the status of the PC’s inputs and
outputs. Parts of the I/O memory are cleared when the power is turned ON and
other parts are retained.
Note Refer to Section 3 Memory Areas in the Programming Manual (W353) for more
details on I/O memory.
This is the program written by the user. The CPM2A executes the program cyclically. (Refer to 1-3-5 Cyclic Operation and Interrupts for details.)
The program can be divided broadly into two parts: the “main program” that is
executed cyclically and the “interrupt programs” that are executed only when the
corresponding interrupt is generated.
PC Setup
Communications Switch
12
The PC Setup contains various startup and operating parameters. The PC Setup parameters can be changed from a Programming Device only; they cannot
be changed from the program.
Some parameters are accessed only when PC’s power supply is turned on and
others are accessed regularly while the power is on. It will be necessary to turn
the power off and then on again to enable a new setting if the parameter is accessed only when the power is turned on.
Note Refer to Section 1 PC Setup in the Programming Manual (W353) for more de-
tails.
The Communications Switch determines whether the peripheral port and
RS-232C port operate with the standard communications settings or the communications settings in the PC Setup.
1-3-2 Operating Modes
CPM2A CPU Units have 3 operating modes: PROGRAM, MONITOR, and RUN.
1-3SectionStructure and Operation
PROGRAM Mode
MONITOR Mode
RUN Mode
The program cannot be executed in PROGRAM mode. This mode is used to
perform the following operations in preparation for program execution
• Changing initial/operating parameters such as those in the PC Setup
• Writing, transferring, or checking the program
• Checking wiring by force-setting and force-resetting I/O bits
The program is executed in MONITOR mode and the following operations can
be performed from a Programming Device. In general, MONITOR mode is used
to debug the program, test operation, and make adjustments.
• Online editing
• Monitoring I/O memory during operation
• Force-setting/force-resetting I/O bits, changing set values, and changing pres-
ent values during operation
The program is executed at normal speed in RUN mode. Operations such as
online editing, force-setting/force-resetting I/O bits, and changing set values/
present values cannot be performed in RUN mode, but the status of I/O bits can
be monitored.
Note When the PC is in RUN mode with a Programming Console connected to the
peripheral port, if a PT is connected to the RS-232C port via Host Link, the Programming Console will display a message prompting the user to enter a password. (For details, refer to page 85.) This is because, in order to write data to the
PC, the PT automatically switches the operating mode from RUN mode to MONITOR mode.
• This automatic mode change will not be performed if the PT is connected via
NT Link.
• When a Programming Device installed on a computer is connected to the
peripheral port, the display (at the computer) for the CPU Unit’s operating
mode will simply change from “RUN” to “MONITOR.”
1-3-3 Operating Mode at Startup
The operating mode of the CPM2A when the power is turned on depends upon
the PC Setup settings and the Programming Console’s mode switch setting if a
Programming Console is connected.
PC Setup setting
Word Bits Setting
DM6600 08 to 15
00 to 07
Note The default setting is 00. With this default setting, the startup operating mode is
determined by the Programming Console’s mode switch setting if a Programming Console is connected to the Peripheral port. If a Programming Console is
not connected, the PC will automatically enter RUN mode.
Programming Console
connected
00 Startup mode determined
by the mode switch
setting.
01 Startup mode is the same as the operating mode
before power was interrupted.
02 Startup mode is determined by bits 00 to 07.
00 PROGRAM mode
01 MONITOR mode
02 RUN mode
Programming Console
not connected
Startup mode is RUN
mode. (See note.)
13
1-3-4 PC Operation at Startup
1-3SectionStructure and Operation
Time Required for
Initialization
Power OFF Operation
The time required for startup initialization depends on several factors, such as
the operating conditions (including power supply voltage, system configuration,
and ambient temperature) and the program contents.
Minimum Power Supply Voltage
The PC will stop and all outputs will be turned OFF if the power supply voltage
falls below 85% of the rated value.
Momentary Power Interruption
A power interruption will not be detected and CPU Unit operation will continue if
the power interruption lasts less than 10 ms for an AC power supply or 2 ms for a
DC power supply.
A power interruption may or may not be detected for power interruptions somewhat longer than 10 ms for an AC power supply or 2 ms for a DC power supply.
When a power interruption is detected, the CPU Unit will stop operating and all
outputs will be turned OFF.
Automatic Reset
Operation will restart automatically when the power supply voltage is restored to
more than 85% of the rated voltage.
Timing Chart of Power OFF Operation
The power interruption detection time is the time required for a power interruption to be detected after the power supply voltage drops below 85% of the rated
value.
1, 2, 3… 1. Minimum power interruption detection time
Power interruptions that are shorter than 10 ms (AC power supply) or 2 ms
(DC power supply) will not be detected.
2. Undetermined additional time
Power interruptions only slightly longer than the minimum power interruption time may not be detected.
85% of rated voltage
Detection of
power interruption
2. Additional
time
CPU Unit operation may
continue if voltage is
restored in this region.
Program execution
CPU reset signal
1. Minimum time
Executing Stopped
CPU Unit operation will
continue if voltage is
restored in this region.
Note If the power supply voltage fluctuates around 85% of the PC’s rated voltage, PC
operation may stop and restart repeatedly. When repeated stopping and starting
will cause problems with the controlled system, set up a protective circuit such
as a circuit that shuts off the power supply to sensitive equipment until the power
supply voltage returns to the rated value.
14
1-3-5 Cyclic Operation and Interrupts
1-3SectionStructure and Operation
Basic CPU Operation
Initialization processing is performed when the power is turned on. If there are no
initialization errors, the overseeing processes, program execution, I/O refreshing, and communications port servicing are performed repeatedly (cyclically).
S Check hardware.
Startup initialization
Overseeing
processes
Program execution
S Check memory.
S Read data from flash memory (program,
read-only DM data, and PC Setup settings).
S Check for battery error.
S Preset the watch (maximum) cycle time.
S Check program memory.
S Refresh bits for expansion functions.
S Execute the program.
(Refer to the Programming Manual (W353) for
details on cycle time and I/O response times.)
S Wait for minimum cycle time if a minimum
Cycle time
PC cycle time
calculation
I/O refreshing
RS-232C port
servicing
Peripheral port
servicing
cycle time has been set in the PC Setup
(DM 6619).
S Calculate cycle time.
S Read input data from input bits.
S Write output data to output bits.
S Perform RS-232C port communications
processing. (Can be changed in DM 6616.)
S Perform Peripheral port communications
processing. (Can be changed in DM 6617.)
The cycle time can be read from a Programming Device.
AR 14 contains the maximum cycle time and AR 15 contains the present cycle
time in multiples of 0.1 ms.
15
1-3SectionStructure and Operation
The cycle time will vary slightly depending on the processing being performed in
each cycle, so the calculated cycle time will not always match the actual cycle
time.
Program Execution in
Cyclic Operation
The following diagram shows the cyclic operation of the CPM2A when the program is being executed normally.
Normally, the results of program execution are transferred to I/O memory just
after program execution (during I/O refreshing), but IORF(97) can be used to refresh a specified range of I/O words during program execution. The specified
range of I/O words will be refreshed when IORF(97) is executed.
The cycle time is the sum of the time required for program execution, I/O refreshing, and communications port servicing.
A minimum cycle time (1 to 9,999 ms) can be set in the PC Setup (DM 6619).
When a minimum cycle time has been set, CPU operation is paused after program execution until the minimum cycle time is reached. CPU operation will not
be paused if the actual cycle time is longer than the minimum cycle time set in
DM 6619.
Note A fatal error will occur and PC operation will stop if a maximum cycle time has
been set in the PC Setup (DM 6618) and the actual cycle time exceeds that setting.
The default settings for RS-232C port servicing and Peripheral port servicing are
5% of the cycle time, but these settings can be changed (between 1% and 99%)
in the PC Setup. The RS-232C port’s setting is in DM 6616 and the Peripheral
port’s setting is in DM 6617.
Refer to Section 7 PC Operations and Processing Time in the Programming
Manual (W353) for more details and precautions on the cycle time.
Cycle
time
Overseeing processes
Main program
I/O refreshing
RS-232C port servicing
Peripheral port servicing
If a minimum cycle time has been
set in DM 6619, CPU operation is
paused until the minimum cycle
time is reached.
The servicing time can be set
in DM 6616.
The servicing time can be set
in DM 6617.
16
1-3SectionStructure and Operation
Interrupt Program
Execution
When an interrupt is generated during execution of the main program, main program execution is interrupted immediately and the interrupt program is executed. The following diagram shows the cyclic operation of the CPM2A when an
interrupt program is executed.
Normally, the results of interrupt program execution are transferred to I/O
memory just after program execution (during I/O refreshing), but IORF(97) can
be used to refresh a specified range of I/O words during execution of the interrupt program. The specified range of I/O words will be refreshed when IORF(97)
is executed.
The normal cycle time is extended by the time required for execution of the interrupt program.
Refer to Section 7 PC Operations and Processing Time in the Programming
Manual (W353) for more details and precautions on the cycle time.
Overseeing processes
Main program
Interrupt generated.
Interrupt program
Cycle
time
I/O refreshing
RS-232C port servicing
Peripheral port servicing
Caution Although IORF(97) can be used in interrupt subroutines, you must be careful of
!
the interval between IORF(97) executions. If IORF(97) is executed too frequently, a fatal system error may occur (FALS 9F), stopping operation. The interval
between executions of IORF(97) should be at least 1.3 ms + total execution time
of the interrupt subroutine.
Immediate Refreshing
IORF(97) can be executed in the program to refresh a specified range of I/O
words. The specified I/O words will be refreshed when IORF(97) is executed.
IORF(97) can be used to refresh I/O from the main program or the interrupt program.
17
1-4SectionFunctions Listed by Usage
When IORF(97) is used, the cycle time is extended by the time required to refresh the specified I/O words.
Overseeing processes
Main program
IORF(97) executed.
Cycle
time
I/O refreshing
RS-232C port servicing
Peripheral port servicing
1-4 Functions Listed by Usage
Immediate refreshing
I/O refreshing
Machine Control Functions
Receive high-speed
count inputs
(For example, calculating
length or position with an
encoder).
Generate a pulse output based on a multiple of an input pulse to
synchronize control of a peripheral process with the main process.
The multiple for the peripheral process (such as tool feed rate) can be
changed during operation by calculating the multiple from another input
value (such as an encoder) in the peripheral process.
This method can be used to change the process for different products
or models without stopping the equipment.
18
Usage Function Refer
Max. count frequency of 2 kHz
(single-phase)
Max. count frequency of 5 kHz (differential
phase) or 20 kHz (single-phase)
Use interrupt input (counter mode) to
read the present value without
interrupts.
Use high-speed counter to read the
present value without interrupts.
Pulse synchronization
to
W353
1-4SectionFunctions Listed by Usage
Usage Refer
Multiply the input pulse frequency from a high-speed counter by a fixed
multiple, convert that value to an analog value, and output as an
analog output.
(For example, synchronizing the speed of a supply conveyor with the
rotational position of the main piece of equipment (such as a label
inserter) measured by an analog input.)
Reliably receive input pulses with an ON-time shorter than the cycle
time (such as inputs from a photomicrosensor).
Interrupt functions
Perform simple positioning by outputting pulses to a motor driver that
accepts pulse-train inputs.
Use a variable duty-ratio output to perform time-allocated temperature
control.
Easily set and fine-tune settings such as the low-speed feed rate when
a conveyor is temporarily stopped.
Receive an analog input and output an analog output. Analog I/O Unit
Receive temperature sensor input directly at the PC. Temperature Sensor Unit
Reduce required wiring, space, and PC load by controlling equipment
with a few low-capacity PCs dispersed near the equipment rather than
a single, large, centralized PC.
(Create a remote I/O link with a CompoBus/S Master and CompoBus/S
Slaves.)
Execute a special process very quickly
when an input goes ON.
(For example, operating a cutter when an
interrupt input is received from a Proximity
Switch or Photoelectric Switch.)
Count input ON pulses and execute a
special process very quickly when the
count reaches the preset value.
(For example, stopping the supply feed
when a preset number of workpieces have
passed through the system.)
Execute a special process at a preset
count value.
(For example, cutting material very
precisely at a given length.)
Execute a special process when the count
is within a preset range.
(For example, sorting material very quickly
when it is within a given length range.)
Execute a special process when a timer
times out.
(For example, stopping a conveyor at very
precise time (independent of the cycle
time) after the workpiece is detected.)
Repeat a special process at regular
intervals.
(For example, the speed of a sheet feeder
can be monitored by measuring the input
signal from an encoder at regular intervals
and calculating the speed.)
Pulse synchronization and analog
output function
Quick-response input function
Interrupt input (interrupt input mode)
Interrupt input (counter mode)
High-speed counter interrupt
generated when the count matches
the set value.
High-speed counter interrupt
generated when the count is within the
set range.
Interval timer interrupt
(One-shot mode)
Interval timer interrupt
(Scheduled interrupt mode)
Pulse output function
Analog input + Variable duty-ratio
output pulse function (PWM(––))
Analog controls
(Connect the Analog I/O Unit to the
CPU Unit.)
(Connect the Temperature Sensor
Unit to the CPU Unit.)
CompoBus/S I/O Link Unit
(Connect the CompoBus/S I/O Link
Unit to the CPU Unit.)
Function
to
W353
19
Basic Functions
Usage Function Refer
Set the cycle time to a fixed interval. Set a minimum (fixed) cycle time in the PC Setup.
Stop PC operation when the cycle time exceeds a
maximum setting.
Keep all outputs ON when PC operation stops. Turn ON the IOM Hold Bit (SR 25212).
Retain the contents of I/O memory when starting
operation.
Retain the contents of I/O memory when the PC is
turned on.
Eliminate effects from chattering and external noise. Set a longer input time constant in the PC Setup.
Set a maximum (watch) cycle time in the PC Setup.
Turn ON the IOM Hold Bit (SR 25212).
Turn ON the IOM Hold Bit (SR 25212) and set the PC
Setup (DM 6601) so that the status of the IOM Hold Bit
is maintained at startup.
Maintenance Functions
Usage Function Refer
Record data with time-stamp. Clock/calendar function
Establish user-defined errors for desired input
conditions. (Fatal and non-fatal errors can be defined.)
Read the number of power interruptions. The number of power interruptions is stored in AR 23.
Set the startup operating mode. Set the startup operating mode in the PC Setup
FAL(06) defines non-fatal errors. (PC operation
continues.)
FALS(07) defines fatal errors. (PC operation stops.)
(DM 6600).
1-4SectionFunctions Listed by Usage
to
W353
to
W353
Communications Functions
Usage Function Refer
to
Read/write I/O memory data and change the operating
mode from a host computer.
Connect to a serial device such as a bar code reader
or serial printer.
Make a high-speed connection with an OMRON
Programmable Terminal.
Make a PC-PC data link connection with another
CPM2A, or a CPM1, CPM1A, CPM2C, SRM1, CQM1,
C200HS, or C200HX/HG/HE PC.
Connect a Programming Console. Connect the Programming Console to the Peripheral
Connect a personal computer running
CX-Programmer, SYSMAC Support Software (SSS) or
SYSMAC-CPT Support Software.
Monitor equipment with a Programmable Terminal and
program the PC with a Programming Device.
Reduce both resources and space by using remote
I/O.
Creating a link with a DeviceNet Master. Use a DeviceNet Link Unit. W353
Host Link communications (Set the communications
mode to Host Link in the PC Setup.)
No-protocol communications (Set the communications
mode to no-protocol in the PC Setup.)
1:1 NT Link (Set the communications mode to 1:1 NT
Link in the PC Setup.)
1:1 PC Link (Set the communications mode to 1:1 PC
Link in the PC Setup.)
port. (The CPU Unit’s Communications Switch setting
has no effect on this connection.)
The computer can be connected to the Peripheral port
or RS-232C port.
(The Host Link settings in the PC Setup are used
when the switch is OFF; the standard Host Link
communications settings are used when the CPU
Unit’s Communications Switch is ON.)
The RS-232C port and Peripheral port can be used
simultaneously.
Use a CompoBus/S Link Unit. W353
W353
Page
93
W353
Page
81
W353
Page
93
Page
43
Page
44
20
1-5 Comparison with the CPM1A
Item CPM2A CPM1A
Instruction set
Instruction
execution times
Program capacity 4,096 words 2,048 words
Maximum number
of I/O points
Expansion Units
and Expansion I/O
Units
I/O memory
Memory backup
Interrupt inputs (interrupt input mode) 4 Same as CPM2A.
Interrupt inputs
(counter mode)
Basic instructions 14 Same as CPM2A.
Special instructions 105 instructions, 185 variations 79 instructions, 139 variations
Basic instructions LD: 0.64 µs LD: 1.72 µs
Special instructions MOV(21): 7.8 µs MOV(21): 16.3 µs
Stand-alone CPU Unit 30, 40, or 60 points 10, 20, 30, or 40 points
CPU Unit with Expansion I/O
Units
Maximum number of Units A maximum of 3 Units can be
Available models Expansion I/O Units,
Input bits IR 00000 to IR 00915 Same as CPM2A.
Output bits IR 01000 to IR 01915 Same as CPM2A.
Work bits 928 bits:
SR (Special Relay) area 448 bits:
TR (Temporary Relay) area 8 bits: TR0 to TR7 Same as CPM2A.
HR (Holding Relay) area 320 bits:
AR (Auxiliary Relay) area 384 bits:
LR (Link Relay) area 256 bits:
Timer/Counter area 256 bits:
DM (Data
Memory) area
Program area, read-only DM
area (including PC Setup)
Read/write DM area, HR area,
AR area, and counters
Counter mode Incrementing counter
Counter upper limit 2 kHz 1 kHz
SR 244 to SR 247 Contains counter PV. Contains counter PV–1.
Method(s) to read counter PV Read SR 244 to SR 247.
Method to change counter PV Execute INI(61). Not supported.
Read/write
area
Read-only
area
PC Setup 56 words
90, 100, or 120 points max. 90 or 100 points max.
A maximum of 3 Units can be
connected to any of the CPU
Units.
(If the CPM1A-TS002/102 is
connected, the maximum is 2.)
Analog I/O Unit, Temperature
Sensor Units, CompoBus/S I/O
Link Unit, and DeviceNet I/O
Link Unit
IR 02000 to IR 04915,
IR 20000 to IR 22715
SR 22800 to SR 25515
HR 0000 to HR 1915
AR 0000 to AR 2315
LR 0000 to LR 1515
TIM/CNT 0 to TIM/CNT 256
2,048 words
(DM 0000 to DM 2047)
456 words
(DM 6144 to DM 6599)
(DM 6600 to DM 6655)
Flash memory backup Same as CPM2A.
Internal battery backup
(5-year lifetime, replaceable)
Decrementing counter
Execute PRV(62).
(Counter PV)
connected to the 30-point and
40-point CPU Units.
Same as CPM2A.
512 bits:
IR 20000 to IR 23115
384 bits:
SR 23200 to SR 25515
Same as CPM2A.
256 bits:
AR 0000 to AR 1515
Same as CPM2A.
128 bits:
TIM/CNT 0 to TIM/CNT 127
1,024 words
(DM 0000 to DM 1023)
Same as CPM2A.
Same as CPM2A.
Capacitor backup
(20-day backup at 25°C)
Decrementing counter
Read SR 244 to SR 247.
(Counter PV – 1)
1-5SectionComparison with the CPM1A
21
Item CPM1ACPM2A
Interval timer
Quick-response
inputs
High-speed
counter
Pulse synchronization Supported. Not supported.
One-shot mode Yes Yes
Scheduled interrupt mode Ye s Yes
Setting the quick-response
function
INT(89) (Mask) Not supported (ignored) Supported.
INT(89) (Read mask) Reads mask status. Reads result of mask setting.
INT(89) (Clear) Not supported (ignored) Supported.
Minimum pulse width 50 µs min. 200 µs min.
Count mode Differential-phase (up/down)
Max. counter frequency 5 kHz in differential-phase
Counter PV range –8,388,608 to 8,388,607 in
Check when registering target
value match table
Method used to reference the
target value match interrupt
table
Reading range-comparison
results
Reading status Check AR 1108 (comparison in
PC Setup PC Setup and INT(89)
(Unmask interrupt input.)
Differential-phase (up/down)
mode
Pulse plus direction mode
Up/down pulse mode
Increment mode
(up/down) mode
20 kHz in pulse plus direction
mode, up/down pulse mode,
and increment mode
differential-phase (up/down)
mode, pulse plus direction
mode, and up/down pulse
mode
0 to 16,777,215 in increment
mode
Same direction, same SV not
possible
Comparison of all values in the
table, regardless of order of
appearance in table
Check AR 1100 to AR 1107 or
execute PRV(62).
progress), check AR 1109
(high-speed counter PV
overflow/underflow), or
execute PRV(62).
mode
Increment mode
2.5 kHz in differential-phase
(up/down) mode,
5 kHz in increment mode
–32,768 to 32,767 in
differential-phase (up/down)
mode
0 to 65,535 in increment mode
Same direction, same SV
possible
Comparison in order of
appearance in table
Check AR 1100 to AR 1107.
—
1-5SectionComparison with the CPM1A
22
Item CPM1ACPM2A
Pulse output
control
Analog controls 2 2
Clock function
Analog I/O Analog I/O Units can be
Temperature monitoring The CPU Unit can receive
CompoBus/S communications A CompoBus/S I/O Link Unit
DeviceNet communications A DeviceNet Link Unit can be
Communications switch This switch determines
Battery
Communications
(in CPU Unit)
Input time constant Can be set to 1, 2, 3, 5, 10, 20,
Trapezoidal acceleration/
deceleration
PWM(––) output Supported. Not supported.
Number of simultaneous pulse
outputs
Maximum frequency 10 kHz max. 2 kHz max.
Minimum frequency 10 Hz 20 Hz
Pulse output quantity –16,777,215 to 16,777,215 0 to 16,777,215
Direction control Supported. Not supported.
Positioning to absolute positions Supported. Not supported.
Bit status while pulses are being
output
Reading PV Read SR 228 through SR 231
Resetting PV Supported. Not supported.
Status outputs Accelerating/decelerating
Words containing time info. AR 17 to AR 21 —
Battery Lithium None (capacitor backup only)
Battery replacement Possible —Life expectancy/backup time 5-year lifetime at 25°C 20-day backup at 25°C
Battery error detection Supported. —
Peripheral port Programming Console
RS-232C port Host Link
Supported with ACC(––). The
initial frequency can be set.
2 max. 1 max.
No effect Turned ON/OFF by pulse
or execute PRV(62).
PV overflow/underflow
Pulse quantity set
Pulse output completed
Pulse output status
Internal None
connected.
temperature sensor input from
either thermocouples or
platinum resistance
thermometers.
can be connected to provide
CompoBus/S Slave functions.
connected to provide
DeviceNet slave functions.
whether communications are
governed by the standard
settings or PC Setup settings.
(auto-detect)
Peripheral bus (auto-detect)
Host Link (with Slave-initiated
communications)
No-protocol
No-protocol
1:1 PC LInk
1:1 NT Link
40, or 80 ms. (Default: 10 ms)
1-5SectionComparison with the CPM1A
Not supported.
output
Not supported.
Pulse output status
Same as CPM2A.
Same as CPM2A.
Same as CPM2A.
Same as CPM2A.
None
Programming Console
(auto-detect)
Peripheral bus (auto-detect)
Host Link
1:1 PC LInk
1:1 NT Link
None
Can be set to 1, 2, 4, 8, 16, 32,
64, or 128 ms. (Default: 8 ms)
23
Differences in Instruction Sets
Instructions added to the CPM2A
Mnemonic Name
TXD(48) TRANSMIT
RXD(47) RECEIVE
SCL(66) SCALING
SCL2(––) SIGNED BINARY TO BCD SCALING
SCL3(––) BCD TO SIGNED BINARY SCALING
SRCH(––) DATA SEARCH
MAX(––) FIND MAXIMUM
MIN(––) FIND MINIMUM
SUM(––) SUM CALCULATION
FCS(––) FCS CALCULATE
HEX(––) ASCII-TO-HEXADECIMAL
AVG(––) AVERAGE VALUE
PWM(––) PULSE WITH VARIABLE DUTY RATIO
PID(––) PID CONTROL
ZCP(––) AREA RANGE COMPARE
ZCPL(––) DOUBLE AREA RANGE COMPARE
NEG(––) 2’S COMPLEMENT
ACC(––) ACCELERATION CONTROL
STUP(––) CHANGE RS-232C SETUP
SYNC(––) SYNCHRONIZED PULSE CONTROL
BINL(58) DOUBLE BCD TO DOUBLE BINARY
BCDL(59) DOUBLE BINARY TO DOUBLE BCD
TMHH(––) VERY HIGH-SPEED TIMER
TIML(––) LONG TIMER
SEC(––) HOURS-TO-SECONDS
HMS(––) SECONDS-TO-HOURS
1-5SectionComparison with the CPM1A
Instructions with Changed Specifications
Mnemonic Name CPM2A CPM1A
INI(61) MODE CONTROL Supports the interrupt input (counter mode) PV
change operation.
Supports the pulse output PV change operation.
Supports the pulse synchronization control stop
operation.
PRV(62) HIGH-SPEED
COUNTER PV READ
CTBL(63) COMPARISON TABLE
LOAD
PULS(65) SET PULSES Supports absolute pulse specification, but the
INT(89) INTERRUPT CONTROL Supports a count-up interrupt for incrementing
Supports the interrupt input (counter mode) PV read
operation.
Supports the pulse output PV read operation.
The count is compared with all of the target values
in the target value comparison table.
coordinate system must be set to absolute
coordinates.
counters.
Does not support these
operations.
Does not support these
operations.
The count is compared
with each target value in
the order that they
appear in the target
value comparison table.
Does not support
absolute pulse
specification.
Does not support this
interrupt function.
24
Caution Before using a CPM1A program containing one or more of the instructions in the
!
table above, check the program to be sure that it will operate properly and edit
the program if necessary. The CPM2A may not operate properly if a CPM1A program with these instructions is transferred and executed unchanged.
1-5SectionComparison with the CPM1A
Added Function Code
Allocations
Differences in I/O Memory
SR Area Differences
AR Area Differences
The following three instructions are allocated function codes that were not used
in the CPM1A.
Instruction CPM2A CPM1A
RXD(47) RECEIVE
TXD(48) TRANSMIT
SCL(66) SCALING
Not allocated. (NOP(00))
The following table shows differences in the SR area. (PV is the abbreviation for
present value.)
Function CPM2A CPM1A
Pulse output 0 PV SR 228 to SR 229
Pulse output 1 PV SR 230 to SR 231
Pulse output 0 PV Reset Bit SR 25204
Pulse output 1 PV Reset Bit SR 25205
RS-232C Port Reset Bit SR 25209
Battery Error Flag SR 25308
Changing RS-232C Port Setup Flag SR 25312
Not
supported.
The following table shows differences in the AR area.
Function CPM2A CPM1A
Clock/calendar data AR 17 to AR 21
RS-232C Communications Error Code AR 0800 to AR 0803
RS-232C Error Flag AR 0804
RS-232C Transmission Enabled Flag AR 0805
RS-232C Reception Completed Flag AR 0806
RS-232C Reception Overflow Flag AR 0807
Peripheral Port Reception Completed Flag AR 0814
Peripheral Port Reception Overflow Flag AR 0815
RS-232C Reception Counter AR 09
High-speed Counter Comparison Flag AR 1108
High-speed Counter Overflow/Underflow Flag AR 1109
Pulse Output 0 Condition AR 1111
Pulse Output 0 PV Overflow/Underflow Flag AR 1112
Pulse Output 0 Pulse Quantity Set Flag AR 1113
Pulse Output 0 Output Completed Flag AR 1114
Pulse Output 1 PV Overflow/Underflow Flag AR 1212
Pulse Output 1 Pulse Quantity Set Flag AR 1213
Pulse Output 1 Output Completed Flag AR 1214
Pulse Output 1 Output Status AR 1215
Power OFF Counter AR 23 (See note.) AR 10
Not
supported.
Note CPM1A programs that use AR 10 (the Power OFF Counter) cannot be used in
the CPM2A without editing the program. In the CPM2A, the Power OFF Counter
is in AR 23.
25
1-6SectionPreparation for Operation
DM Area Differences
The following table shows differences in the DM area other than the PC Setup.
Function CPM2A CPM1A
Error Log Area DM 2000 to DM 2021 DM 1000 to DM 1021
Note CPM1A programs that use the Error Log Area cannot be used in the CPM2A
without editing the program to change the location of the Error Log Area.
The following table shows differences in the PC Setup.
Function CPM2A CPM1A
RS-232C Port Servicing Time Setting DM 6616 bits 00 to 07
RS-232C Port Servicing Time Enable DM 6616 bits 08 to 15
Pulse Output 0 Coordinate System DM 6629 bits 00 to 03
Pulse Output 1 Coordinate System DM 6629 bits 04 to 07
RS-232C Communications Settings Selector DM 6645 bits 00 to 03
RS-232C Port CTS Control Settings DM 6645 bits 04 to 07
RS-232C Port Link Words for 1:1 PC Link DM 6645 bits 08 to 11
RS-232C Port Communications Mode DM 6645 bits 12 to 15
RS-232C Port Baud Rate DM 6646 bits 00 to 07
RS-232C Port Frame Format DM 6646 bits 08 to 15
RS-232C Port Transmission Delay DM 6647
RS-232C Port Host Link Node Number DM 6648 bits 00 to 07
RS-232C Port No-protocol Start Code Enable DM 6648 bits 08 to 11
RS-232C Port No-protocol End Code Enable DM 6648 bits 12 to 15
RS-232C Port No-protocol Start Code Setting DM 6649 bits 00 to 07
RS-232C Port No-protocol End Code Setting
or Number of Bytes Received
Peripheral Port No-protocol Start Code Enable DM 6653 bits 08 to 11
Peripheral Port No-protocol End Code Enable DM 6653 bits 12 to 15
Peripheral Port No-protocol Start Code Setting DM 6654 bits 00 to 07
Peripheral Port No-protocol End Code Setting
or Number of Bytes Received
Battery Error Detect Setting DM 6655 bits 12 to 15
DM 6649 bits 08 to 15
DM 6654 bits 08 to 15
Not
supported
1-6 Preparation for Operation
Follow the steps listed below when setting up a CPM2A system.
1, 2, 3… 1. System Design
• Select a CPM2A CPU Unit, Expansion Units and Expansion I/O Units with
the specifications required in the controlled system.
• Design external fail-safe circuits such as interlock circuits and limit circuits.
Refer to 2-1 Specifications and 3-1 Design Precautions for details.
2. Installation
• Install the CPU Unit. (Surface-mount or DIN-track installation)
• Install the Expansion Unit(s) and Expansion I/O Unit(s).
Refer to 3-3 Installing the CPM2A and 3-4 Wiring and Connections for details.
3. Wiring
• Wire the power supply and I/O devices.
• Connect communications devices if necessary.
• Connect the Programming Console.
Refer to 3-4 Wiring and Connections for details.
26
4. Initial Settings
• Turn OFF the CPU Unit’s Communications Switch, if necessary.
(When this switch is OFF, communications with devices other than the
Programming Console are governed by the settings in the PC Setup.)
• Connect the Programming Console, set the mode switch to PROGRAM
mode, and turn ON the PC.
• Check the CPU Unit’s LED indicators and the Programming Console’s dis-
play.
• Clear the PC’s memory. (All Clear)
• Make PC Setup settings.
Refer to 3-3 Installing the CPM2A for details.
5. Create Ladder Program
• Create a ladder program to control the system.
Refer to the Programming Manual for details.
6. Write Ladder Program in PC
• Write the ladder program in the PC with the Programming Console or
transfer the program to the PC from the Support Software.
Refer to Section 4 Using Programming Devices, to the SYSMAC Support
Software Operation Manuals and to the CPT User Manual for details.
7. Test Run
• Check I/O wiring in PROGRAM mode.
• Check and debug program execution in MONITOR mode.
Refer to Section 5 Test Runs and Error Processing for details.
1-6SectionPreparation for Operation
27
SECTION 2
Unit Specifications and Components
This section provides the technical specifications of the Units that go together to create a CPM2A PC and describes the main
components of the Units.
2-1 Specifications 30. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-1 General Specifications of CPU Units 30. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-2 Characteristics 31. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1-3 I/O Specifications 33. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 Unit Components 37. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-1 CPU Unit Components 37. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-2 Expansion I/O Unit Components 40. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-3 Analog I/O Unit Components 41. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-4 Temperature Sensor Unit Components 42. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-5 CompoBus/S I/O Link Unit Components 43. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2-6 DeviceNet I/O Link Unit Components 44. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
29
Specifications Section 2-1
2-1 Specifications
2-1-1 General Specifications of CPU Units
Item CPU Units with
20 I/O points
Supply voltage
Operating
voltage range
Power
consumption
Inrush current
External power
supply
(AC power
supplies only)
Insulation resistance 20 MΩ min. (at 500 VDC) between the external AC terminals and protective earth
Dielectric strength 2,300 VAC 50/60 Hz for 1 min between the external AC and protective earth
Noise immunity Conforms to IEC6100-4-4; 2 kV (power lines)
Vibration resistance 10 to 57 Hz, 0.075-mm amplitude, 57 to 150 Hz, acceleration: 9.8 m/s2 in X, Y, and Z
Shock resistance 147 m/s2 three times each in X, Y, and Z directions
Ambient temperature Operating: 0° to 55°C
Humidity 10% to 90% (with no condensation)
Atmosphere Must be free from corrosive gas
Terminal screw size M3
Power interrupt time AC power supply: 10 ms min.
CPU Unit
weight
Expansion I/O Unit weight Units with 20 I/O points: 300 g max.
Expansion Unit weight Analog I/O Units (MAD01): 150 g max.
AC power 100 to 240 VAC, 50/60 Hz
DC power 24 VDC
AC power 85 to 264 VAC
DC power 20.4 to 26.4 VDC
AC power 60 VA max.
DC power 20 W max.
AC power 60 A max.
DC power 30 A max.
Supply voltage 24 VDC
Output
capacity
AC power 650 g max. 700 g max. 800 g max. 1,000 g max.
DC power 550 g max. 600 g max. 700 g max. 900 g max.
300 mA: Use for input devices only. Cannot be used to drive outputs.
(When the external power supply provides an overcurrent or is short circuited, the
external power supply voltage will drop and PC operation will stop.)
(If 3 CPM1A-MAD11 Units are connected to the CPM2A-60CDR-A, then only a
maximum of 200 mA can be used from the external power supply.)
terminals
terminals, leakage current: 10 mA max.
directions for 80 minutes each
(Time coefficient; 8 minutes × coefficient factor 10 = total time 80 minutes)
Storage: –20° to 75°C
DC power supply: 2 ms min.
(A power interruption occurs if power falls below 85% of the rated voltage for longer
than the power interrupt time.)
Units with 8 output points: 250 g max.
Units with 8 input points: 200 g max.
Analog I/O Units (MAD11): 250 g max.
Temperature Sensor Units: 250 g max.
CompoBus/S I/O Link Units: 200 g max.
DeviceNet I/O Link Units: 200 g max.
CPU Units with
30 I/O points
CPU Units with
40 I/O points
CPU Units with
60 I/O points
30
Loading…
Cat.No. W353–E1–2SYSMACCPM1/CPM1A/CPM2A/CPM2C/SRM1(-V2)Programmable ControllerPROGRAMMING MANUALCPM1/CPM1A/CPM2A/CPM2C/SRM1(-V2)Programmable ControllersProgramming ManualRevised January 2000Notice:OMRON products are manufactured for use according to proper procedures by a qualified operatorand only for the purposes described in this manual.The following conventions are used to indicate and classify precautions in this manual. Always heedthe information provided with them. Failure to heed precautions can result in injury to people or damage to property.DANGERIndicates an imminently hazardous situation which, if not avoided, will result in death orserious injury.! WARNINGIndicates a potentially hazardous situation which, if not avoided, could result in death orserious injury.! CautionIndicates a potentially hazardous situation which, if not avoided, may result in minor ormoderate injury, or property damage.!OMRON Product ReferencesAll OMRON products are capitalized in this manual.
The word “Unit” is also capitalized when it refersto 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 “PC” means Programmable Controller and is not used as an abbreviation for anything else.Visual AidsThe following headings appear in the left column of the manual to help you locate different types ofinformation.Note Indicates information of particular interest for efficient and convenient operationof the product.1, 2, 3…1. Indicates lists of one sort or another, such as procedures, checklists, etc. OMRON, 1999All rights reserved.
No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in anyform, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON isconstantly striving to improve its high-quality products, the information contained in this manual is subject to changewithout notice. Every precaution has been taken in the preparation of this manual.
Nevertheless, OMRON assumes noresponsibility for errors or omissions. Neither is any liability assumed for damages resulting from the use of the information contained in this publication.vTABLE OF CONTENTSPRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . .1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . .3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5 Application Precautions . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .SECTION 1PC Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-11-2PC Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . .Basic PC Operation and I/O Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .SECTION 2Special Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2-12-22-32-42-52-62-72-82-92-102-112-122-132-142-152-162-172-182-19CPM2A/CPM2C Interrupt Functions . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .CPM2A/CPM2C High-speed Counters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .CPM1/CPM1A Interrupt Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . .SRM1(-V2) Interrupt Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .CPM2A/CPM2C Pulse Output Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . .CPM1A Pulse Output Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Synchronized Pulse Control (CPM2A/CPM2C Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . .Data Computation Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .Analog I/O Functions (CPM1/CPM1A/CPM2A/CPM2C Only) . . . . . . . . . . . . . . . . . . . .Temperature Sensor Input Functions (CPM1A/CPM2A/CPM2C Only) . . . . . . . . . . . . . .CompoBus/S I/O Slave Functions (CPM1A/CPM2A/CPM2C Only) . .
. . . . . . . . . . . . . .CompoBus/S I/O Master Functions (SRM1(-V2) Only) . . . . . . . . . . . . . . . . . . . . . . . . . .Analog Controls (CPM1/CPM1A/CPM2A Only) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Quick-response Inputs . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Macro Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Calculating with Signed Binary Data . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . .Differential Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Expansion Instructions (CPM2A/CPM2C/SRM1(-V2) Only) . . . . . . . . . . . . . . . . . . . . . .Using the CPM2A/CPM2C Clock Function .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .SECTION 3Using Expansion Units . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-13-23-3Analog I/O Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Temperature Sensor Units . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .CompoBus/S I/O Link Units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .SECTION 4Communications Functions . . . . . . . . . . . . . . . . . . . . . . . .4-14-24-34-44-5Introduction . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .CPM1/CPM1A Communications Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .CPM2A/CPM2C Communications Functions . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . .SRM1(-V2) Communications Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Host Link Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . .SECTION 5Memory Areas . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .5-15-25-3Memory Area Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .I/O Allocation for CPM1/CPM1A/CPM2A PCs . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . .I/O Allocation for CPM2C PCs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xiiixivxivxivxvxvii1216232437688689121124134136136136137138140145146147148151153154176197203204205209242254279280285295viiTABLE OF CONTENTSSECTION 6Ladder-diagram Programming .
. . . . . . . . . . . . . . . . . . .6-16-26-36-46-56-66-7Basic Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Instruction Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . .Basic Ladder Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Controlling Bit Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . .Work Bits (Internal Relays) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Programming Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
(Ocr-Read Summary of Contents of some pages of the Omron CPM2A — 11-2005 Document (Main Content), UPD: 23 March 2023)
-
63, Omron CPM2A — 11-2005 ! 43 CPM1A-TS101/102 Set value Platinum resistance thermometer Range (°C) Range (°F) 0 Pt100 –200.0 to 650.0 –300.0 to 1,200.0 1 JPt100 –200.0 to 650.0 –300.0 to 1,200.0 2 to F — Setting not possible 4. Expansion I/O Connecting Cable Connects the Temperature Sensor Unit to the expansion connector on the PC’s CPU Unit, an Expansion I/O Unit, or another Expansion Unit. The cable is connected to the Temperature Sensor Unit and cannot be removed. Caution Do not touch the expansio…
-
60, 40 2-2-2 Expansion I/O Unit Components Expansion I/O Unit with 20 I/O Terminals 1. Input terminals 5. Expansion I/O connecting cable 3. Input indicators 6. Expansion connector 4. Output indicators 2. Output terminals Expansion I/O Unit with 8 Input Terminals 1. Input terminals 5. Expansion I/O connecting cable 3. Input indicators 6. Expansion connector 1. Input terminals 04 05 06 07 Expansion I/O Unit with 8 O…
-
73, 54 Floor Ducts Leave at least 200 mm between the wiring and the top of the duct, as shown in the following diagram. 200 mm min. Metal plate (iron) CPM2A I/O lines Control cables and CPM2A power lines Power cables Conduits Separate the CPM2A I/O lines, power and control lines, and power cables, as shown in the following diagram. CPM2A I/O lines Control cables and CPM2A power lines Power cables 3-4-2 Removing the Terminal Block The terminal block on the CPM2A CPU Unit can be remov…
-
37, 1-3SectionStructure and Operation 16 The cycle time will vary slightly depending on the processing being performed in each cycle, so the calculated cycle time will not always match the actual cycle time. The following diagram shows the cyclic operation of the CPM2A when the pro- gram is being executed normally. Normally, the results of program execution are transferred to I/O memory just after program executi…
-
165, ! ! 6-3SectionHandling 149 Lift up the lock lever and detach the EEPROM. 6-3-2 PC Connections Caution Mount the EEPROM to the CPM1-EMU01-V1 before connecting the CPM1-EMU01-V1 to the PC. Caution Do not disconnect the CPM1-EMU01-V1 from the PC when the indicator is blink- ing green. When connecting to the CPM1, CPM1A, CPM2A, CQM1 or SRM1 (-V2),insert the connector into the peripheral port making sure that the con…
-
181, 167 Index Numbers 1:1 communications, 82 1:N communications, 84 A Adapters, 157 Analog I/O Units, 3 standard model, 156 analog volume controls, location, 39 arc killer, examples, xxii ASCII, converting displays, Programming Console, 118 atmosphere, 30 B battery, replacing, 142 binary data, modifying, Programming Console, 115 bit status, force-set/reset, Programming Console, 117 bits, searching, Programming Co…
-
72, Omron CPM2A — 11-2005 ! 53 3. Replace the cover on the CPU Unit’s or the Expansion I/O Unit’s expansion connector. 3-4 Wiring and Connections This section provides basic information on wiring the Power Supply Unit, Expan- sion Units, and Expansion I/O Units, and on connecting Programming Devices. 3-4-1 General Precautions for Wiring Caution Leave the protective label in place while wiring. The Unit may malfunction if strands…
-
16, ! ! ! 5Application Precautions xviii • 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 PC System can have a large effect on the lon- gevity and reliability of the system. Improper operating environments can lead to malfunction, fa…
-
54, Omron CPM2A — 11-2005 ! 34 The minimum pulse widths for inputs IN00000 (A-phase input) and IN00001 (B- phase input) are as follows: 100 µs min. T 1 T 2 T 3 T 4 : 12.5 µs min. Phase A Phase B 50 µs min. 12.5 µs min. Pulse plus direction input mode, Up/down input mode, Increment mode Differential phase mode 12.5 µs min. T 1 T 2 T 3 T 4 The minimum pulse width for input IN00002 (Z-phase input) is as follows: 50 µs min. 500 µs min. Phase Z Interrupt Inputs Inputs IN00003 through IN00006 can be used as…
-
111, 4-1SectionCompatible Programming Consoles 93 The operating mode of the CPM2A when the power is turned ON depends upon the PC Setup setting in DM 6600 and the Programming Console’s mode switch setting if the Programming Console is connected. PC Setup setting (DM 6600) Programming Console connected Programming Console not connected 0000 The startup mode determined by the mode switch setting. RUN mode if no Programming Device is connected. PROGRAM mode if another Programming Devi…
-
136, ! 4-2SectionProgramming Console Operations 118 c) When the PC stops because of a power interruption d) When the Clear Force Set/Reset Operation is performed 4-2-27 Clear Force Set/Reset This operation is used to restore the status of all bits which have been force set or reset. It is possible in MONITOR or PROGRAM mode only. RUN MONITOR PROGRAM No OK OK Caution Before changing the contents of I/O memory, be sure that the changes will not cause equipment to operate unexpe…
-
131, 4-2SectionProgramming Console Operations 113 2. Press the CHG Key to begin 3-word data modification. The cursor will ap- pear next to the contents of the leftmost word. CHG D0002 3CH CHG? 0123 4567 89AB 3. Input the new value for the leftmost word on the display and press the CHG Key if more changes will be made. (Input the new value and press the WRITE Key to write the changes in memory if no more changes will be made.) B 1 CHG D0002 3CH CHG? 0001 4567 89AB 4. Input the new value…
-
25, 1-1SectionCPM2A Features and Functions 4 The same Programming Devices, such as Programming Consoles and Support Software, can be used for the C200H, C200HS, C200HX/HG/HE, CQM1, CPM1, CPM1A, CPM2C, and SRM1 (-V2) PCs, so existing ladder program re- sources can be used effectively. Built-in Motor Control Capability Synchronized pulse control provides an easy way to synchronize the operation of a peripheral pie…
-
66, 47 SECTION 3 Installation and Wiring This section provides information on installing and wiring a CPM2A PC. Be sure to follow the directions and precautions in this section when installing the CPM2A in a panel or cabinet, wiring the power supply, or wiring I/O. 3-1 Design Precautions 48. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1-1 Power Supply Wiring 48. . . . . . . . . . . . . . . . . . . . . . . .…
-
29, 1-1SectionCPM2A Features and Functions 8 Main function Variations/Details Expansion Unit functions Analog I/O Unit functions (CPM1A-MAD01) (resolution: 1/256) Two analog inputs: input range 0 to 10 V, 1 to 5 V, or 4 to 20 mA One analog output: output range 0 to 10 V, –10 to 10 V, or 4 to 20 mA Analog I/O Unit functions (CPM1A-MAD11) (resolution: 1/6000) Two analog inputs: input range 0 to 5 V, 1 to 5 V, 0 to 10 V, –1…
-
156, Omron CPM2A — 11-2005 5-5SectionTroubleshooting Flowcharts 139 Environmental Conditions Check Consider using a fan or cooler. Is the ambient temperature below 55°C? Is the ambient temperature above 0°C? Is noise being controlled? Is the installation environment okay? Consider using a heater. Consider using an air conditioner. Install surge protec- tors or other noise- reducing equipment at noise sources. Consider constructing an instr…
-
175, Appendix BDimensions 160 CPM2A-40CDj-j CPU Units CPU Units with DC Power CPU Units with AC Power Four, 4.5 dia. CPM2A-60CDj-j CPU Units CPU Units with DC Power CPU Units with AC Power Four, 4.5 dia.
… -
51, 31 2-1-2 Characteristics Item Specification Control method Stored program method I/O control method Cyclic scan with direct output (Immediate refreshing can be performed with IORF(97).) Programming language Ladder diagram Instruction length 1 step per instruction, 1 to 5 words per instruction Instructions Basic instructions: 14 Special instructions: 105 instructions, 185 variations Execution time Basic instructions: 0.64 µs (LD instruction) Special instructions: 7.8 µs…
-
55, 35 CPU Unit and Expansion I/O Unit Output Specifications Relay Outputs Item Specification 20CDR-j 30CDR-j 40CDR-j 60CDR-j 8ER 20EDR1 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 (See note.) Electrical: 150,000 operations (24-VDC resistive load) 100,000 operations (240-VAC inductive load, cosφ = 4) Mechanical: 20,000,000 operations ON delay 15 ms max. OFF…
Автор | Сообщение |
---|---|
Заголовок сообщения: CPM2A Добавлено: Вт дек 25, 2007 16:31 |
|
|
Здравствуйте! Вопрос следующий: |
В начало |
|
PS |
Заголовок сообщения: Добавлено: Вт дек 25, 2007 17:30 |
|
То, что Вы называете ЧПУ — CPM2A — на самом деле является программируемым логическим контроллером (ПЛК) базового уровня.
Это далеко не ЧПУ. В действительности, вы можете изменить программу контроллера из компьютера, используя софт SYSWIN или CX-Programmer и кабель для соединения портов ПК и ПЛК. Языки программирования ПЛК не схожи со стандартным языком G-кодов для ЧПУ! Могу посоветовать Вам курсы «Программируемые контроллеры ОМРОН» в центральном офисе ОМРОН (Москва) или самостоятельно изучать литературу, которая есть в свободном доступе. |
В начало |
|
allasur |
Заголовок сообщения: Добавлено: Ср дек 26, 2007 11:49 |
|
Тоесть слова, сказанные мне разработчиком станка: «для управления станком требуется только программа, никаких модулей сопряжения между CPM2A и персональным компьютером не надо.» можно считать наглой ложью? Ведь насколько мне известно, RS232 на CPM2A может служить как вход. Тоесть может получать команды. Если это не так, то подскажите, пожалуйста, есть ли у OMRON-а какой-то ЧПУ-шный модуль, чтобы построить связь CPM2A<->модуль<->PC? |
В начало |
|
Олег |
Заголовок сообщения: Добавлено: Ср дек 26, 2007 17:09 |
|
CPM2A никакого отношения к понятию ЧПУ не имеет, по принятой терминологии CPM2A это ПЛК (PLC), разработчик тебя не обманул…С компьютера управлять станком через CPM2A в принципе можно, но это вообще-то извращение. здесь на сайте есть ссылки на руссские мануалы на CPM1A, есть и темы про подключение, пользуйся поиском. Ну и желательно найти в инете пару статей на тему «что такое PLC» |
В начало |
|
allasur |
Заголовок сообщения: Добавлено: Ср дек 26, 2007 17:16 |
|
Что такое PLC я представляю примерно. Тоесть ни о каких Г- или М-коммандах мне не мечтать? |
В начало |
|
Олег |
Заголовок сообщения: Добавлено: Ср дек 26, 2007 18:12 |
|
Да нет, проблема что с самых азов нужно начинать. только в некоторых случаях програма в контроллере работает с 232 портом, в основном обслуживание порта и связь с контроллером идёт автоматически. чтобы что-то менять или исправлять нужно сначала разобратся с контроллером, а это только через мануалы. После этого хоть заново переписывай прогу для контроллера, если старая не устраивает, и вешай на этот контроллер чё душа пожелает, хоть скаду, хоть терминал, принтер, да и много что ещё прицепить можно. |
В начало |
|