OMRON products are manufactured for use according to proper procedures by a qualified operator
and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this manual. Always heed
the information provided with them. Failure to heed precautions can result in injury to people or damage to property.
DANGERIndicates an imminently hazardous situation which, if not avoided, will result in death or
!
serious injury.
WARNINGIndicates a potentially hazardous situation which, if not avoided, could result in death or
!
serious injury.
CautionIndicates 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, 2000
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.
This manual describes the installation and operation of the CPM2B and includes the sections described
below.
The CPM2B is a compact, high-speed board Programmable Controller (PC) designed for control operations. There are two manuals describing the setup and operation of the CPM2B: The CPM2B OperationManual (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 CPM2B and provides a basic
explanation of operating procedures for the Programming Consoles. Read this manual first to acquaint
yourself with the CPM2B.
The Programming Manual (W353) provides detailed descriptions of the CPM2B’s programming functions. The SYSMAC Support Software Operation Manuals: Basics and C-series PCs (W247 and W248)
provide descriptions of SSS operations for the CPM2B and other SYSMAC C-series PCs. The SYSMAC-CPT Support Software Quick Start Guide (W332) and User Manual (W333) provide descriptions of ladder
diagram operations in the Windows environment. The WS02-CXPC1-E CX-Programmer User Manual
(W361) and the CX-Server User Manual (W362) provide details of operations for the WS02-CXPC1-E
CX-Programmer.
Please read this manual carefully and be sure you understand the information provided before attempting
to install and operate the CP2MB.
Section 1 describes the CPM2B’s special features and functions, shows the possible system configura-
tions, and outlines the steps required before operation. Read this section first when using the CPM2B for
the first time. Refer to the CPM1/CPM1A/CPM2A/CPM2C/SRM1(-V2) Programming Manual (W353) for
details on programming.
Section 2 provides the technical specifications of the CPM2B Boards and describes the main components of the Boards.
Section 3 provides information on installing and wiring a CPM2B PC. Be sure to follow the directions and
precautions in this section when installing the CPM2B in a panel or cabinet, wiring the power supply, or
wiring I/O.
Section 4 describes the structure of the PC memory areas and explains how to use them.
Section 5 provides a brief summary of the instruction set. Refer to the CPM1/CPM1A/CPM2A/
CPM2C/SRM1(-V2) Programming Manual (W353) for details on specific instructions.
Section 6 provides information on Programming Console operations.
Section 7 describes procedures for trial CPM2B operation, self-diagnosis functions, and error processing
to identify and correct the hardware and software errors that can occur during PC operation.
Appendices provides lists of standard models and Board dimensions.
!
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
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.
This manual is intended for the following personnel, who must also have knowledge of electrical systems (an electrical engineer or the equivalent).
• Personnel in charge of installing FA systems.
• Personnel in charge of designing FA systems.
• Personnel in charge of managing FA systems and facilities.
2General Precautions
The user must operate the product according to the performance specifications
described in the operation manuals.
Before using the product under conditions which are not described in the manual
or applying the product to nuclear control systems, railroad systems, aviation
systems, vehicles, combustion systems, medical equipment, amusement machines, safety equipment, and other systems, machines, and equipment that
may have a serious influence on lives and property if used improperly, consult
your OMRON representative.
Make sure that the ratings and 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.
3Safety 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.
3Safety Precautions
WARNING Do not attempt to take any board apart while the power is being supplied. Doing
!
so may result in electric shock.
WARNING Do not touch any of the terminals, terminal blocks or, for the CPM2B, the CPU
!
board or expansion I/O board while the power is being supplied. Doing so may
result in electric shock.
WARNING When handling the Memory Backup Battery, never drop, disassemble, distort,
!
short-circuit, heat to a high temperature, or throw into fire. Otherwise the Battery
may explode, catch fire, or leak fluid.
WARNING Do not attempt to disassemble, repair, or modify any Units. Any attempt to do so
!
may result in malfunction, fire, or electric shock.
xii
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.
• 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.
• 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.
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.
CautionExecute 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.
CautionTighten the screws on the terminal block to the torque specified in the operation
!
manual. The loose screws may result in burning or malfunction.
4Operating Environment Precautions
5Application Precautions
CautionDo 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 temperature.
• Locations subject to corrosive or flammable gases.
• Locations subject to dust (especially iron dust) or salts.
• Locations subject to exposure to water, oil, or chemicals.
• Locations subject to shock or vibration.
CautionTake appropriate and sufficient countermeasures when installing systems in the
!
following locations:
• Locations subject to static electricity or other forms of noise.
• Locations subject to strong electromagnetic fields.
• Locations subject to possible exposure to radioactivity.
• Locations close to power supplies.
CautionThe 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.
5Application 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 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.
xiii
• Mounting or dismounting the CPU board or expansion I/O board.
• Setting switches or rotary switches.
• Connecting or wiring the cables.
• Connecting or disconnecting the connectors.
CautionFailure to abide by the following precautions could lead to faulty operation of the
!
PC or the system, or could damage the PC. 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 PC. If power supply for the I/O circuits
comes ON before power supply for the PC, 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 board 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 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.
• 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.
• 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.
• When wiring the CPM2B, take countermeasures to prevent wiring cuttings
from coming into contact with the product, such as covering the whole product
with a dustproof cover . I f wiring cuttings adhere to the PCB or circuit elements
they may cause short-circuiting.
• Be sure to perform wiring in accordance with the relevant operation manual.
Incorrect wiring 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
PC. 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.
5Application Precautions
xiv
• 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 board 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.
• Under no circumstances should batteries be short-circuited between positive
(+) and negative (–) terminals, charged, disassembled, heated, or thrown into
fire.
• 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.
• When transporting or storing the CPM2B, cover the circuit boards in antistatic
material to protect them from static electricity and maintain the proper storage
temperature.
• 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.
• Do not touch CPM2B circuit boards or the components mounted to them with
your bare hands. There are sharp leads and other parts on the boards that may
cause injury if handled improperly.
• When disposing the product, observe local ordinances and regulations.
6EC Directives
6EC Directives
6-1Applicable Directives
• EMC Directives
• Low Voltage Directive
6-2Concepts
EMC Directives
OMRON devices that comply with EC Directives also conform to the related
EMC standards so that they can be more easily built into other devices or the
overall machine. The actual products have been checked for conformity to EMC
standards (see the following note). Whether the products conform to the standards in the system used by the customer, however, must be checked by the
customer.
EMC-related performance of the OMRON devices that comply with EC Directives will vary depending on the configuration, wiring, and other conditions of the
equipment or control panel on which the OMRON devices are installed. The customer must, therefore, perform the final check to confirm that devices and the
overall machine conform to EMC standards.
Note Applicable EMC (Electromagnetic Compatibility) standards are as follows:
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).
(Radiated emission: 10-m regulations)
xv
6-3Conformance to EC Directives
The CPM2B PCs comply with EC Directives. To ensure that the machine or device in w h i c h t h e C P M 2 B P C i s u s e d c o mplies with EC directives, the PC must be
installed as follows:
1, 2, 3...1. The CPM2B 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. CPM2B PCs complying with EC Directives also conform to the Common
Emission Standard (EN50081-2). 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.
6-4Relay Output Noise Reduction Methods
The CPM2B PCs conform to the Common Emission Standards (EN50081-2) 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.
6EC Directives
Countermeasures
(Refer to EN50081-2 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.
xvi
Countermeasure Examples
When switching an inductive load, connect a surge protector, diodes, etc., in parallel with the load or contact as shown below.
CircuitCurrentCharacteristicRequired element
ACDC
CR method
Power
supply
Diode method
Power
supply
Varistor method
Power
supply
YesYesIf the load is a relay or solenoid, there
Inductive
load
NoYesThe diode connected in parallel with
Inductive
load
YesYesThe 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.
---
xvii
SECTION 1
Introduction
This section describes the CPM2B’ s special features and functions, shows the possible system configurations, and outlines the
steps required before operation. Read this section first when using the CPM2B for the first time.
Refer to the CPM1/CPM1A/CPM2A/CPM2C/SRM1(-V2) Programming Manual (W353) for details on programming.
The CPM2B PCs are compact Board PCs that can be incorporated easily into
control equipment. The PCs are equipped with a variety of advanced features
including synchronized pulse control, interrupt inputs, high-speed counters,
pulse outputs, and a clock function.
• The compact Board design is ideal for incorporation into control equipment.
• The CPU Board itself can handle a wide range of machine control applications,
so it is ideal for use as a built-in control unit in control equipment.
• The CPM2B is equipped with a full complement of communications functions
to 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-1SectionCPM2B Features and Functions
Relay Output Board
Basic Functions
CPU Board I/O
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.
Transistor Output Board
The CPU Board has 32 I/O points and Expansion
I/O Boards can be added to provide a total I/O capacity of up to 128 I/O points.
RS-232C Port
This port can be used for a Host Link,
no-protocol, 1:1 PC Link, or 1:1 NT Link
communications.
The CPM2B CPU Board itself is equipped with 32 I/O points in I/O terminals or
I/O connectors. There are 2 types of outputs available (relay outputs and sinking
transistor outputs). The power supply is 24 V DC only.
Expansion I/O Boards
Up to 3 Expansion I/O Boards can be connected to the CPU Board to increase
the PC’s I/O capacity to a maximum of 128 I/O points. There are 2 types of
32-point Expansion I/O Boards available: one with relay outputs and the other
with sinking transistor outputs.
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, CPM2A, 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)
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, al-
2
1-1SectionCPM2B Features and Functions
lowing 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.
Encoder
CPM2B
Pulses are output as a fixed multiple of the input frequency.
Motor driver Motor
High-speed Counters and
Interrupts
Easy Position Control
with Pulse Outputs
(Transistor Outputs Only)
The CPM2B 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 in 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.
CPM2B 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
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.
Quick-response Input
Function
Stabilizing Input Filter
Function
Other Functions
Interval Timer Interrupts
Analog Settings
DIP Switch Inputs
Calendar/Clock
Long-term Timer
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 ef fects of chattering and external noise can
be reduced by increasing the input time constant.
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).
There are two controls on the CPU Board 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
easily change or fine-tune machine settings such as a conveyor belt’s pause
time or feed rate.
A DIP switch is provided that controls the status of four input bits.
The built-in clock (accuracy within 1 minute/month) can be read from the pro-
gram 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.
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
3
1-1SectionCPM2B Features and Functions
TO HOURS conversion instruction (HMS(––)), the long-term timer provides an
easy way to control equipment scheduling.
Expansion Memory Unit
The CPM1-EMU01-V1 Expansion Memory Unit is a program loader for smallsize or micro PCs. Using the CPM1-EMU01-V1, simple on-site transfer of user
programs and data memory is possible with PCs.
Expansion Memory Unit
EEPROM
Indicator
UPLOAD+DM ButtonUPLOAD Button
Note1. Refer to t h e CPM 2A Operation Manual (W352) or CPM2C Operation Manu-
al for details on the CPM1-EMV01-V1.
2. The CPM2C-CN111 can be connected only to the peripheral port.
Peripheral port
CPM2C-CN111
(0.1 m) (See note 2.)
CS1W-CN114
(0.05 m)
CPM2B CPU Board
Complete Communications Capabilities
Host Link
1:1 Host Link Communications
Responses
A Host Link connection can be made through the PC’s RS-232C port or Periph-
eral port. A personal computer or Programmable Terminal 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.
Commands
CPM2B
1:N Host Link Communications
Commands
CPM2B
Responses
(Up to 32 PCs can be connected.)
No-protocol
Communications
4
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
1-1SectionCPM2B Features and Functions
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.
Inputting data from a bar code reader
High-speed 1:1 NT Link
Communications
Bar code
reader
Outputting data to a serial printer
Serial
printer
CPM2B
CPM2B
In a 1:1 NT Link, an OMRON Programmable Terminal (PT) can be connected
directly to the CPM2B. The PT must be connected to the RS-232C port; it cannot
be connected to the Peripheral port.
CPM2B
OMRON PT
One-to-one PC Link
A CPM2B can be linked directly to another CPM2B, CQM1, CPM1, CPM1A,
CPM2A, CPM2C, SRM1(-V2), C200HS or C200HX/HG/HE PC. The 1:1 PC Link
allows automatic data link connections. The PCs must be connected through the
RS-232C ports; they cannot be connected through the Peripheral ports.
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
Synchronized pulse control 1 point, see notes 2 and 3.
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
Quick-response input4 inputs, see note 1.
Maximum input signal width: 50 µs
Analog settings2 controls (setting ranges: 0 to 200 BCD)
Input time constantDetermines the input time constant for all inputs. (Settings: 1, 2, 3, 5, 10, 20, 40, or 80 ms)
Calendar/ClockShows the current year, month, day of the week, day of the month, hour, minute, and
second.
Error logRecords the time of occurrence and error code.
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
Note1. 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.
24 V DC(Terminal-block)
16 inputs,16 sinking transistor
24 V DCoutputs (Connector)
---------CPM2B-32C1DR-D
YesYesYesCPM2B-32C2DR-D
---------CPM2B-32C1DT-D
YesYesYesCPM2B-32C2DT-D
1-2-2Expansion I/O Boards
Up to 3 Expansion I/O Boards can be connected to the CPU Board.
Expansion I/O Board with 32 I/O points
(Relay outputs)
CPU Board
Expansion I/O Board with 32 I/O points
(Transistor outputs)
Expansion connector
port
Model
Expansion I/O Board
Expansion I/O Boards
Expansion connector
A PC with 128 I/O points (the maximum) can be assembled by connecting three
Expansion I/O Boards. The following configuration provides 64 inputs and 64
sinking transistor outputs:
CPM2B-32C1DT-D
(16 inputs, 16 outputs)
Expansion I/O
Board
32 I/O points
(16 inputs,
16 outputs)
× 1 Board+× 3 Boards = 64 inputs, 64 outputs
16 inputs, 24 V DC16 relay outputs
16 inputs, 24 V DC16 sinking transistor
CPM2B-32EDT
(16 inputs, 16 outputs)
InputsOutputsModel
CPM2B-32EDR
(Terminal-block)
CPM2B-32EDT
outputs (Connector)
Note When an NT-AL001-E Adapter is connected to the RS-232C port, only one Ex-
pansion I/O Board can be connected because of power supply limitations.
7
1-2-3Connecting a Programming Console
A Programming Console can be connected to the CPM2B CPU Board’s periph-
eral port, as shown below.
1-2SectionSystem Configurations
CQM1-PRO01-E
C200H-PRO27-E
Attached
cable (2 m)
C200H-CN222 (2 m) or
C200H-CN422 (4 m)
Connecting Cable
CS1W-CN224 (2 m) or
CS1W-CN624 (4 m)
Connecting Cable
Note1. Always turn OFF SW 201 before connecting the Programming Console.
CS1W-CN114
Connecting Cable
(0.05 m)
Peripheral port
connector
CPM2C-CN111
Connecting Cable
(0.1 m) (See note 2.)
SW201
(See note 1.)
Peripheral port
CPM2B CPU Board
2. Only the peripheral port connector can be used when a CPM2C-CN111
1-2-4Support Software
A personal computer running the CX-Programmer or SYSMAC-CPT Support
Software (in MS Windows) or the SSS (in MS-DOS) can be connected to the
CPU Board’s Peripheral port or RS-232C port. Refer to 1-2-5 One-to-one Com-puter Connections for details on the computer connection.
Always turn ON Communications Switch SW201 when using Support Software
instead of a Programming Console. The setting on Communications Switch
SW202 determines whether the communications settings in the PC Setup or th e
standard settings will be used, as shown in the following table.
SW202
setting
ONStandard settings (The standard settings and PC Setup default settings
OFFPC Setup settings in DM 6650 and
When using the SSS, set the PC Model to “CQM1.” When using the SYSMACCPT, set the PC Model to “CQM1” with the “CPU43” CPU version.
Connecting Cable is connected.
Communications settings
Peripheral portRS-232C port
are Host Link communications at 9,600 bps with 1 start bit, 7-bit data, 2
stop bits, and even parity.)
DM 6651
PC Setup settings in DM 6645 and
DM 6646
8
1-2-5One-to-one Computer Connections
Use one of the connecting cables shown in the following diagram to connect a
personal computer with Support Software to the CPM2B for a 1:1 Host Link communications or no-protocol (serial) communications.
1-2SectionSystem Configurations
RS-232C Port Connection
IBM PC/AT or
compatible computer
Connecting Cable
XW2Z-200S-V (2 m)
XW2Z-500S-V (5 m)
RS-232C port
(D-sub 9-pin)
Peripheral Port Connection
IBM PC/AT or
compatible computer
Connecting Cable
XW2Z-200S-V (2 m)
XW2Z-500S-V (5 m)
CPM2B CPU Board
CQM1-CIF02
(3.3 m)
CS1W-CN114
(0.05 m)
Peripheral port
CPM1-CIF01
RS-232C Adapter
CPM2B CPU Board
Note1. The CQM1-CIF11 Connecting Cable cannot be used. (If one is connected,
the CPM2C will not recognize it; the PC will enter RUN mode at startup if
Communications Switch SW201 is ON and DM 6600 of the PC Setup is set
to its default setting so that the Programming Console’s mode switch controls the startup mode.)
2. Refer to Appendix A Standard Models for details on the Support Software
that can be used with the CPM2B.
9
1-2-6One-to-N Computer Connections
Up to 32 OMRON PCs, including CPM2B PCs, can be connected to a host computer.
Using the RS-232C Port
1-2SectionSystem Configurations
Connecting Cable
XW2Z-j00S-V
IBM PC/AT or
compatible computer
Using the Peripheral Port
Connecting Cable
XW2Z-j00S-V
IBM PC/AT or
compatible computer
3G2A9-AL004-E or NT-AL001-E (requires +5 V)
(See notes 1 and 2.)
RS-422 (Total length: 500 m max.)
NT-AL001-E
(See note 1.)
CPM2B CPU BoardCPM2B CPU BoardCPM2B CPU Board
Up to 32 PCs
3G2A9-AL004-E or NT-AL001-E (requires +5 V)
(See notes 1.)
RS-422 (Total length: 500 m max.)
CPM1-CIF11
(See note 3.)
CS1W-CN114
CS1W-CN114
NT-AL001-E
(See note 1.)
CPM1-CIF11
(See note 3.)
CS1W-CN114
NT-AL001-E
(See note 1.)
CPM1-CIF11
(See note 3.)
10
CPM2B CPU BoardCPM2B CPU Board
Up to 32 PCs
CPM2B CPU Board
Note1. The NT-AL001-E must be supplied externally with 5 V DC. When an NT-
AL001-E is connected to a CPM2B PC, pin 6 of the CPM2B’s RS-232C port
supplies +5 V DC and an external power supply is not necessary . When the
NT-AL001-E is connected to a host computer, it is necessary to supply 5 V
DC from an external power supply.
If an NT-AL001-E is connected to the CPM2B’s RS-232C port, only one Expansion I/O Board can be connected to the CPU Board because the NTAL001-E draws its 5-V DC power from the CPU Board.
Use an XW2Z-070T-1 (0.7 m) or XW2Z-200T-1 (2 m) cable to connect the
NT-AL001-E to the CPM2B’s RS-232C port.
2. The 3G2A9-AL004-E requires an external AC power supply (110 V AC or
220 V AC).
3. The CPM1-CIF11 is supplied +5 V DC from the peripheral port so an external power supply is not necessary.
1-2-7OMRON PT Connections
In a 1:1 NT Link, a CPM2B can be connected directly to a Programmable Terminal through the RS-232C port. (The Programmable Terminal cannot be connected directly to the peripheral port.)
An OMRON PT can also be connected to the CPM2B with a host link connection.
Either the RS-232C port or peripheral port can be used for a host link connection.
Connecting Cable
XW2Z-200T (2 m)
XW2Z-500T (5 m)
1-2SectionSystem Configurations
RS-232C port
(D-sub 9-pin)
OMRON
Programmable
Terminal
RS-422
connection
Connecting Cable
XW2Z-200T (2 m)
XW2Z-500T (5 m)
CPM1-CIF01
RS-232C Adapter
CPM1-CIF02
RS-422
Adapter
NT-AL001-E
RS-232C Adapter
XW2Z-070T-1 (0.7 m)
XW2Z-200T-1 (2 m)
CS1W-CN114
(0.05 m)
Peripheral port
CPM2B CPU Board
Note The Programmable Terminal cannot be connected through the peripheral port
for direct access.
11
1-2-8One-to-one PC Link Connections
A CPM2B can be linked to another CPM2B, a CQM1, CPM1, CPM1A, CPM2A,
CPM2C, SRM1 (-V2) or a C200HS or C200HX/HG/HE PC. The PCs must be
connected through the RS-232C ports; they cannot be connected through the
Peripheral ports.
1-2SectionSystem Configurations
1:1 Link Master
RS-232C port
(D-sub 9-pin)
CPM2B CPU BoardCPM2B CPU Board
OMRON PC (CQM1, CPM1, CPM1A,
CPM2A, CPM2B, CPM2C, SRM1(-V2),
C200HS, or C200HX/HG/HE)
1:1 Link Slave
RS-232C port
(D-sub 9-pin)
Connecting Cable
XW2Z-200T (2 m)
XW2Z-500T (5 m)
OMRON PC (CQM1, CPM1, CPM1A,
CPM2A, CPM2B, CPM2C, SRM1(-V2),
C200HS, or C200HX/HG/HE)
12
1-3Structure and Operation
1-3-1CPU Board Structure
The following diagram shows the internal structure of the CPU Board.
I/O memory
1-3SectionStructure and Operation
I/O Memory
Program
External
input
devices
External
output
devices
Input circuits
RS-232C
port
Peripheral
port
Settings
Program
Settings
Settings
Communications switch
PC Setup
Output circuits
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 4 Memory Areas for more details on I/O memory.
This is the program written by the user. The CPM2B 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
Switches
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 4-5 PC Setup for more details.
The Communications Switches determine whether the peripheral port and
RS-232C port operate with the standard communications settings or the communications settings in the PC Setup. Refer to 2-2 Board Components and theirFunctions for more details.
13
1-3-2Operating Modes
CPM2B CPU Boards have 3 operating modes: PROGRAM, MONITOR, and
RUN.
PROGRAM Mode
CautionThe PC continues to refresh I/O bits even if the PC is in PROGRAM mode, so
!
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
devices connected to output points on the CPU Board or Expansion I/O Boards
may operate unexpectedly if the corresponding output bit is turned ON by
changing the contents of I/O memory from a Programming Device.
1-3SectionStructure and Operation
MONITOR Mode
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
RUN Mode
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.
1-3-3Operating Mode at Startup
The operating mode of the CPM2B 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
WordBitsSetting
DM 660008 to 15
00 to 07
Note The startup mode depends upon the setting of Communications Switch SW201
and the Programming Device connected to the peripheral port.
Operating mode
00See note.
01Startup mode is the same as the operating mode before
power was interrupted.
02Startup mode is determined by bits 00 to 07.
00PROGRAM mode
01MONITOR mode
02RUN mode
14
Programming
Device
NonePROGRAM modeRUN mode (see note 2)
Programming
Console
Other devicePROGRAM mode (see note 1)PROGRAM mode
Operating mode set on the
Programming Console’s mode switch
SW201 OFFSW201 ON
PROGRAM mode
(see note 1)
Note1. The CPM2B will not be able to communicate with the Programming Device
in these cases.
2. The default setting of bits 08 to 15 of DM 6600 is 00. With this default setting,
the PC will automatically enter RUN mode if a Programming Console is not
connected and SW201 is ON. Be sure that it is safe for the PC to operate
before turning it ON under these conditions.
1-3-4PC 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 Board operation will continue
if the power interruption lasts less than 2 ms for a DC power supply.
A power interruption may or may not be detected for power interruptions somewhat longer than 2 ms for a DC power supply.
When a power interruption is detected, the CPU Board 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 2 ms 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
Program execution
CPU reset signal
1. Minimum time 2. Additional
ExecutingStopped
CPU Board operation
will continue if voltage is
restored in this region.
time
CPU Board operation
may 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.
15
1-3-5Cyclic 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 4-digit BCD.
16
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 CPM2B 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.
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.
17
Loading...
+ 119 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.