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
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 CPM2B 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 CPM1/CPM1A/
(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
CautionAlthough 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
18
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.
1-3SectionStructure and Operation
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
Immediate refreshing
I/O refreshing
I/O refreshing
RS-232C port servicing
Peripheral port servicing
19
SECTION 2
Board Specifications and Components
This section provides the technical specifications of the CPM2B Boards and describes the main components of the Boards.
Power consumption20 W max.--Inrush current20 A max.--Insulation resistance 20 MΩ min. (at 500 V DC) between the external DC terminals and non-current carrying metal
Dielectric strength 1,000 V AC 50/60 Hz for 1 min between the external DC terminals and non-current carrying
Noise immunityConforms to IEC6100-4-4; 2 kV (power lines)
Vibration resistance10 to 57 Hz, 0.075-mm amplitude, 57 to 150 Hz, acceleration: 9.8 m/s2 in X, Y, and Z directions
Shock resistance147 m/s2 three times each in X, Y, and Z directions
Ambient temperature Operating: 0 to 55°C
Ambient humidityOperating: 10% to 90% (with no condensation)
Ambient atmosphere Operating: Must be free from corrosive gas
I/O configurationInputs: Connector
Power supply
retention time
Weight300 g max.300 g max.
(Allowable range: 20.4 to 26.4 V DC)
parts
metal parts
for 80 minutes each
(8 minutes of vibration × 10 repetitions= total time 80 minutes)
Storage: –25 to 70°C (excluding the battery)
Outputs: Terminal block
2 ms min.
CPU BoardsExpansion I/O Boards
outputs
Inputs: Connector
Outputs: Connector
With relay outputsWith transistor
Supplied from CPU Board.
Inputs: Connector
Outputs: Terminal block
outputs
Inputs: Connector
Outputs: Connector
22
2-1-2Characteristics
2-1SectionSpecifications
Item
With relay outputsWith transistor outputs
Control methodStored program method
I/O control methodCyclic scan with direct output (Immediate refreshing can be performed with
Programming languageLadder diagram
Instruction length1 step per instruction, 1 to 5 words per instruction
Instructions
Execution time
Program capacity4,096 words
Max. I/O
capacity
Input bitsIR 00000 to IR 00915 (Words not used for input bits can be used for work bits.)
Output bitsIR 01000 to IR 01915 (Words not used for output bits can be used for work bits.)
Work bits928 bits:IR 02000 to IR 04915 and IR 20000 to IR 22715
Special bits (SR area)448 bits: SR 22800 to SR 25515
Temporary bits (TR area)8 bits (TR0 to TR7)
Holding bits (HR area)320 bits: HR 0000 to HR 1915 (Words HR 00 to HR 19)
Auxiliary bits (AR area)384 bits: AR 0000 to AR 2315 (Words AR 00 to AR 23)
Link bits (LR area)256 bits:LR 0000 to LR 1515 (Words LR 00 to LR 15)
Timers/Counters256 timers/counters (TIM/CNT 000 to TIM/CNT 255)
Data memory
Interrupt
processing
High-speed
counter
Pulse output2 points with no acceleration/deceleration, 10 Hz to 10 kHz each, and no direction
Basic instructions 14
Special
instructions
Basic instructions 0.64 µs (LD instruction)
Special
instructions
CPU Board only32 points
With Expansion
I/O Boards
Read/Write2,048 words (DM 0000 to DM 2047) The Error Log is contained in DM 2000 to
Read-only456 words (DM 6144 to DM 6599)
PC Setup56 words (DM 6600 to DM 6655)
External interrupts4 (Also used for external interrupt inputs in counter mode and quick-response
inputs.)
1 (Scheduled Interrupt Mode or Single Interrupt Mode)
4 inputs (Also used for interrupt inputs and quick-response inputs.)
control.
1 point with trapezoidal acceleration/deceleration, 10 Hz to 10 kHz, and direction
control.
2 points with variable duty-ratio outputs.
(Pulse outputs can be used with transistor outputs only, they cannot be used with
relay outputs.)
CPU Boards
23
2-1SectionSpecifications
ItemCPU BoardsItem
With transistor outputsWith relay outputs
Synchronized pulse control1 point:
Quick-response inputs4 points (Min. input pulse width: 50 µs max.) (Also used for interrupt inputs and for
Input time constant
(ON response time = OFF response
time)
Clock functionShows the year, month, day of the week, day, hour, minute, and second.
Communications functionsBuilt-in peripheral port:
Memory protection
(See notes 1 and 2.)
Memory backup
(See notes 1 and 2.)
Self-diagnostic functionsCPU error (watchdog timer), I/O bus error, battery error, and memory error
Program checksNo END instruction, programming errors (checked when operation is started)
A pulse output can be created by combining the high-speed counter with pulse
outputs and multiplying the frequency of the input pulses from the high-speed
counter by a fixed factor.
(This output is possible with transistor outputs only, it cannot be used with relay
outputs.)
interrupt inputs in counter mode.)
Can be set for all input points.
(Backed up by the battery.)
(The clock function is available only in CPU Boards equipped with a clock.)
Supports Host Link, peripheral bus, no-protocol, or Programming Console
connections.
Built-in RS-232C port:
Supports Host Link, no-protocol, 1:1 PC Link (Master/Slave), or 1:1 NT Link
connections.
(RS-232C communications are available only in CPU Boards equipped with an
RS-232C port.)
HR area, AR area, program contents, read/write DM area contents, and counter
values maintained during power interruptions.
Flash memory:
Program, read-only DM area, and PC Setup
Battery or capacitor backup:
The read/write DM area, HR area, AR area, and counter values are backed up by
a battery.
CPU Boards with clock:Backup is approximately 5 years at 25°C.
CPU Boards without clock: Backup is approximately 5 days at 25°C.
Note1. The DM area, HR area, AR area, and counter values are backed up by the
CPU Board’s built-in battery or capacitor. If the battery or capacitor is discharged, the contents of these areas will be lost and the data values will revert to the defaults.
2. The contents of the program area, read-only DM area (DM 6144 to
DM 6599), and PC Setup (DM 6600 to DM 6655) are stored in flash
memory. The contents of these areas will be read from flash memory the
next time the power is turned ON, even if the backup battery or capacitor is
discharged.
When data has been changed in any of these areas, write the new values to
flash memory by switching the CPM2B to MONITOR or RUN mode, or by
turning the power OFF and then ON again.
24
2-1-3I/O Specifications
CPU Board Input Specifications
ItemInputsSpecification
Input voltageAll24 V DC
Input impedance
IN00000 to IN00001 2.7 kΩ
IN00002 to IN00006 3.9 kΩ
IN00007 and up4.7 kΩ
Input current
IN00000 to IN00001 8 mA typical
IN00002 to IN00006 6 mA typical
IN00007 and up5 mA typical
ON voltage/current
IN00000 to IN00001 17 V DC min., 5 mA
IN00002 and up14.4 V DC min., 3 mA
OFF voltage/current All5.0 V DC max., 1 mA
ON delayAll1 to 80 ms max. Default: 10 ms (See note.)
OFF delayAll1 to 80 ms max. Default: 10 ms (See note.)
Circuit configuration
IN00000 to IN00001
+10%
/
–15%
COM
IN
2.7 kΩ
IN
0.01 µF
680 Ω
Input LED
Internal
circuits
2-1SectionSpecifications
IN00002 to IN00006
IN00007 and up
Max. Number of Inputs
Simultaneously ON
1, 2, 3...1. Installation orientation: Vertical with edge down
COM
COM
IN
3.9 kΩ
IN
IN
IN
4.7 kΩ
750 Ω
750 Ω
Input LED
Input LED
Internal
circuits
Internal
circuits
Note The input time constant can be set to 1, 2, 3, 5, 10, 20, 40, or 80 ms in the PC
Setup. See page 66.
The maximum number of inputs that can be ON simultaneously depends upon
the ambient operating temperature and the installation orientation, as shown in
the following diagrams.
All inputs can be ON simultaneously with this orientation.
25
2. Installation orientation: Vertical with end down
2-1SectionSpecifications
16
14
Max. number of inputs ON
at the same time
0102030405055
49
3. Installation orientation: Horizontal
16
13
Max. number of inputs ON
at the same time
0102030405055
45
Input voltage
26.4 V DC
(°C)
Input voltage
26.4 V DC
(°C)
16
14
Max. number of inputs ON
at the same time
0102030405055
16
13
Max. number of inputs ON
at the same time
0102030405055
Input voltage
24 V DC
(°C)
49
Input voltage
24 V DC
(°C)
45
High-speed Counter
Inputs
Inputs IN00000 through IN00002 can be used as high-speed counter inputs, as
shown in the following table. The maximum count frequency is 5 kHz in differential phase mode and 20 kHz in the other modes.
(IN00002 can be used as a normal input when it is not used as a high-speed counter input.)
Function
Up/down input modeIncrement mode
The minimum pulse widths for inputs IN00000 (A-phase input) and IN00001 (Bphase input) are as follows:
Pulse plus direction input mode, Up/down input
mode, Increment mode
50 µs min.
12.5 µs
min.
12.5 µs
min.
Phase A
Phase B
Differential phase mode
100 µs min.
T1T2T3T
T
4
T
T
T
2
3
: 12.5 µs min.
4
1
The minimum pulse width for input IN00002 (Z-phase input) is as follows:
26
Phase Z
50 µs min.
500 µs
min.
2-1SectionSpecifications
Interrupt Inputs
Inputs IN00003 through IN00006 can be used as interrupt inputs (interrupt input
mode or counter mode) and quick-response inputs. The minimum pulse width
for these inputs is 50 µs.
Expansion I/O Board Input Specifications
ItemSpecification
Input voltage24 V DC
Input impedance4.7 kΩ
Input current5 mA typical
ON voltage14.4 V DC min.
OFF voltage5.0 V DC max.
ON delay1 to 80 ms max. Default: 10 ms (See note.)
OFF delay1 to 80 ms max. Default: 10 ms (See note.)
Circuit configuration
+10%
/
–15%
IN
4.7 kΩ
COM
750 Ω
Internal circuits
Note The input time constant can be set to 1, 2, 3, 5, 10, 20, 40, or 80 ms in the PC
Setup. See page 66.
CPU Board and Expansion I/O Board Output Specifications
Relay Outputs
ItemSpecification
Max. switching capacity2 A, 250 V AC (cosφ = 1)
Min. switching capacity10 mA, 5 V DC
Service life of relay
(See note.)
ON delay15 ms max.
OFF delay15 ms max.
Circuit configuration
2 A, 24 V DC
(4 A/common)
Electrical:150,000 operations (24-V DC resistive load)
100,000 operations (240-V AC inductive load, cosφ = 0.4)
Mechanical:20,000,000 operations
Input LED
OUT
Output LED
COM
27
2-1SectionSpecifications
Note The service life of the CPM2B’s relay output contacts shown in the table as-
sumes the worst conditions. The following graph shows the results of OMRON’s
service life tests at a switching rate of 1,800 times/hour.
120 V AC, resistive load
24 V DC, τ = 7 ms
Life (x 104)
120 V AC, cosφ = 0.4
240 V AC, cosφ = 0.4
24 V DC/240 V AC, resistive load
Switching rate:
1,800 times/hour
Contact current (A)
Transistor Outputs (Sinking or Sourcing)
ItemSpecification
Max. switching
capacity
OUT01000 and OUT01001:4.5 to 30 V DC, 0.2 A/output (See note 1.)
OUT01002 and up:4.5 to 30 V DC, 0.3 A/output (See note 1.)
Leakage current0.1 mA max.
Residual voltage1.5 V max.
ON delayOUT01000 and OUT01001:20 µs max.
OUT01002 and up:0.1 ms max.
OFF delayOUT01000 and OUT01001:40 µs max. for 4.5 to 26.4 V, 10 to 100 mA
0.1 ms max. for 4.5 to 30 V, 10 to 200 mA
OUT01002 and up:1 ms max. for 4.5 to 30 V, 10 to 300 mA
Fuse1 fuse/output (cannot be replaced by user)
Circuit configuration
Sinking Outputs
Output LED
Internal
circuits
OUT
OUT
COM (–)
24 V DC
Note When using OUT01000 or OUT01001 for pulse outputs, connect a dummy re-
sistor as required to bring the load current between 0.01 and 0.1 A. If the load
current is below 0.01 A, the ON-to-OFF response time will be too long and highspeed pulses will not be output.
28
CautionDo not apply voltage in excess of the maximum switching capacity to an output
!
terminal. It may result in damage to the product or fire.
2-2Board Components and their Functions
2-2-1CPU Board Components
CPU Boards with Relay Outputs
9. Communications Switch SW201
9. Communications Switch SW202
10. Analog settings
8. RS-232C port
7. Peripheral port
11. DIP Switch inputs
2. Input connector
2-2SectionBoard Components and their Functions
4. PC status indicators
5. Input indicators
12. Expansion I/O connector
6. Output indicators
1. Power supply terminals
13. Battery
CPU Boards with Transistor Outputs
8. RS-232C port
7. Peripheral port
3. Output terminals
9. Communications Switch SW201
9. Communications Switch SW202
10. Analog settings
11. DIP Switch inputs
2. Input connector
4. PC status indicators
5. Input indicators
12. Expansion I/O connector
6. Output indicators
13. Battery
1. Power supply terminals
3. Output connector
29
CPU Board Component Descriptions
1, 2, 3...1. Power Supply Terminals
Connect the power supply (24 V DC) to these terminals.
2. Input Connector
Connects the CPU Board to external input devices.
3. Output Terminals/Connector
Connects the CPU Board to external output devices.
4. PC Status Indicators
These indicators show the operating status of the PC, as shown in the fol-
lowing table.
IndicatorStatusMeaning
PWR
(green)
RUN
(green)
ERR
(red)
PERI
(orange)
COMM
(orange)
LitPower is being supplied to the PC.
Not litPower isn’t being supplied to the PC.
LitThe PC is operating in RUN or MONITOR mode.
Not litThe PC is in PROGRAM mode or a fatal error has
occurred.
LitA fatal error has occurred. (PC operation stops.)
Flashing A non-fatal error has occurred. (PC operation continues.)
Not litIndicates normal operation.
Flashing Data is being transferred through the peripheral port.
Not litThe peripheral port is not in use.
Flashing Data is being transferred through the RS-232C port.
Not litThe RS-232C port is not in use.
2-2SectionBoard Components and their Functions
5. Input Indicators
The input indicators are lit when the corresponding input terminal is ON. The
status of an input indicator will reflect the status of the input even when that
input is being used for a high-speed counter.
Note a) When interrupt inputs are used in interrupt input mode, the indica-
tor may not light even when the interrupt condition is met if the input is not ON long enough. When a high-speed counter is being
used, the indicator may not light depending on the speed of the
pulses.
b) Input indicators will reflect the status of the corresponding inputs
even when the PC is stopped, but the corresponding input bits will
not be refreshed.
6. Output Indicators
The output indicators are lit when the corresponding output terminal is ON.
The indicators are lit during I/O refreshing. When an output is being used as
a pulse output, the corresponding will remain lit while pulses are being output.
7. Peripheral Port
Connects the PC to a Programming Device (including Programming
Consoles), host computer, or standard external device.
8. RS-232C Port
Connects the PC to a Programming Device (excluding Programming
Consoles), host computer, Programmable Terminal, or standard external
device.
30
9. Communications Switches SW201 and SW202
The Communications Switches control the communications settings for the
(DM 6650 to DM 6654) are used.
ONOFFProgramming Console connection
ONONOther Programming Device:
The standard settings are used.
Peripheral portRS-232C port
communicationscommunications
ONON
(OFF when shipped.)
The settings in the PC
Setup (DM 6645 to
DM 6649) are used.
The standard settings
are used.
Note a) The standard settings are 1 start bit, 7 data bits, 2 stop bits, even
parity, and 9,600 bps baud rate.
b) Be sure that Communications Switch SW201 is OFF when con-
necting a Programming Console.
10. Analog Settings
Turning these controls changes the contents of IR 250 and IR 251. The con-
tents of these words can be set independently between 0 and 200.
11. DIP Switch Inputs
The ON/OFF status of IR 00108 through IR 00111 reflects the ON/OFF sta-
tus of these DIP switch pins.
PinCorresponding input bit
1IR 00108
2IR 00109
3IR 00110
4IR 00111
12. Expansion I/O Connector
Connects the CPU Board to an Expansion I/O Board. Up to 3 Expansion I/O
Boards can be connected to a CPU Board.
13. Battery
This battery backs up memory in CPU Boards equipped with an internal
clock. The battery is connected when the Unit is shipped.
31
2-2-2Expansion I/O Boards
Expansion I/O Boards with Relay Outputs
3. Input indicators
2-2SectionBoard Components and their Functions
1. Input connector
4. Output indicators
Expansion I/O Boards with Transistor Outputs
3. Input indicators
4. Output indicators
5. Expansion I/O
connector
2. Output terminals
1. Input connector
5. Expansion I/O
connector
32
2. Output connector
1, 2, 3...1. Input Connector
Connects the Expansion I/O Board to external input devices.
2. Output Terminals/Connector
Connects the Expansion I/O Board to external output devices.
3. Input Indicators
The input indicators are lit when the corresponding input terminal is ON.
4. Output Indicators
The output indicators are lit when the corresponding output terminal is ON.
5. Expansion I/O Connector
Connects the Expansion I/O Board to the CPU Board or the previous Expan-
sion Unit or Expansion I/O Unit. Up to 3 Expansion I/O Boards can be connected to a CPU Board. An Expansion I/O Cable is included with each Expansion I/O Board.
Note Do not touch the cables during operation to prevent unexpected op-
eration due to static discharge.
2-3I/O Connector and Terminal Pin Allocation
CPU Boards
IR 001IR 000
2-3SectionI/O Connector and Terminal Pin Allocation
192003 02 01 00
COM
03 02 01 00
07 06 05 04NC07 06 05 04
COM
1
NC
2
Inputs (24 V DC)
CPU Board with relay outputsCPU Board with transistor outputs
Relay outputs
IR 010IR 011
00 01 02 03
11000010203
COM
04 05 06 07
COM
COM
110
04 05 06 07
COM
Sinking transistor
outputs
IR 010IR 011
192000 01 02 03
04 05 06 0704 04 06 0712
COM
00 01 02 03
COMCOM
COM
33
Expansion I/O Boards
2-3SectionI/O Connector and Terminal Pin Allocation
Expansion I/O Board #1: IR 002
Expansion I/O Board #2: IR 003
Expansion I/O Board #3: IR 004
Expansion I/O Board
with relay outputs
Relay outputs
192011 10 09 08
15 14 13 12NC07 06 05 04
Inputs (24 V DC)
Expansion I/O Board #1: IR 012
Expansion I/O Board #2: IR 013
Expansion I/O Board #3: IR 014
COM
03 02 01 00
Expansion I/O Board
with transistor outputs
COM
1
NC
2
Sinking
transistor
outputs
00 01 02 03
11008091011
COM
04 05 06 07
COM
COM
110
12 13 14 15
COM
Expansion I/O Board #1: IR 012
Expansion I/O Board #2: IR 013
Expansion I/O Board #3: IR 014
192000 01 02 03
04 05 06 0712 13 14 1512
COM
08 09 10 11
COMCOM
COM
34
SECTION 3
Installation and Wiring
This section 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.
Observe the following precautions when designing a system incorporating a
CPM2B PC.
3-1-1Power Supply Wiring
Separate the power supply wiring from the power system, control system,
CPM2B system, and DC I/O system wiring. Separate the control circuits that
supply power to the main Unit from the main circuits using dedicated circuit protectors and fuses.
3-1-2Power Supply Voltage
CautionUse the power supply voltages indicated in Section 2-1 Specification. Failure to
!
adhere to the specifications may result in fire.
If the power supply voltage falls below 85% of the rated voltage, the CPM2B will
stop and all outputs will be turned OFF. If low voltage affects the equipment, etc.,
provide a protection circuit which shuts off the output until the supply voltage returns to the rated value.
In places where power supply conditions are poor, take steps to ensure that
power is supplied at the rated voltage. Be sure to adhere to safety precautions,
such as providing breakers to prevent short circuits in external wiring.
When conducting any of the following operations, turn OFF the power to the PC.
Electrocution, product damage and malfunction may result.
3-2SectionSelecting an Installation Site
• Connecting or disconnecting Expansion I/O Boards and CPU Boards.
• Assembling equipment.
• Connecting cables and wiring.
3-1-3Interlock and Limit Circuits
WARNING Emergency stop circuits, interlock circuits, limit circuits, and similar safety
!
measures must be provided in external control circuits (i.e., not in the
Programmable Controller) 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 providing proper safety measures may result in serious
accidents.
The following diagram shows an example of an interlock circuit.
CPM2B
01005
01006
Interlock Circuit
MC2
MC1
MC1
Motor forward
MC2
Motor reverse
In the interlock circuit above, MC1 and MC2 can’t be ON at the same time even if
CPM2B outputs 01005 and 01006 are both ON (an incorrect PC operation).
3-2Selecting an Installation Site
The CPM2B is resistant to harsh conditions and highly reliable, but installing the
PC in a favorable site will maximize its reliability and operating lifetime.
36
CautionBe sure to install the CPM2B correctly, as outlined in this manual. Failure to do s o
!
may result in Board malfunction.
3-2-1Installation Site Conditions
Note Do not install the CPM2B under any of the following conditions.
• Locations subject to direct sunlight.
• Locations subject to an ambient temperature below 0°C or over 55°C.
• Locations subject to an ambient humidity below 10% or over 90%.
• 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 shock or vibration.
• Locations subject to exposure to water, oil, or chemicals.
Be sure that the conditions at the installation site conform to the CPM2B’s general specifications. Refer to 2-1-1 General Specifications for details.
Note Provide proper shielding when installing in the following locations:
• Locations subject to static electricity or other sources of noise.
• Locations subject to strong electromagnetic fields.
• Locations subject to possible exposure to radiation.
• Locations near to power supply lines.
3-2SectionSelecting an Installation Site
3-2-2Panel/Cabinet Installation
Consider PC operation, maintenance, and surrounding conditions when installing the CPM2B in a panel or cabinet.
Overheating
Electrical Noise
The ambient operating temperature range for the CPM2B is 0_C to 55_C. Be
sure that there is adequate ventilation for cooling.
• Allow enough space for air circulation.
• Do not install the CPM2B above equipment that generates a large amount of
heat, such as heaters, transformers, or large resistors.
• Install a cooling fan or system when the ambient temperature exceeds 55_C.
Power lines and high-voltage equipment can cause electrical noise in the PC.
• Do not install the CPM2B in a panel or cabinet with high-voltage equipment.
• Allow at least 200 mm between the CPM2B and nearby power lines.
Control panel
Fan
CPM2B
Air vent
200 mm min.
CPM2B
200 mm min.
37
3-3SectionAssembling the CPM2B Boards
Accessibility
Ensure that the CPM2B can be accessed for normal operation and maintenance. High-voltage equipment, power lines, and moving machinery could be
dangerous if they are in the way during routine operations.
3-3Assembling the CPM2B Boards
Board Assembly
Up to 3 Expansion I/O Boards can be connected to a CPM2B CPU Board. The
following diagram shows how to assemble the Boards. The screws and standoffs are included with the CPU Board, Expansion I/O Board, and Mounting
Bracket.
Note Use M3 screws for the standoffs and tighten to a torque of 0.5 NSm.
CPM2B-ATT01
Mounting Bracket
(See note.)
Note The CPM2B-ATT01 Mounting Bracket is required
when the system must meet UL/CSA standards.
Board or Bracket
CPU BoardFour M3 standoffs (short)
Four M3 screws
Expansion I/O Board
Mounting BracketFour M3 screws
Four M3 standoffs (long)
One CPM2B-CN601
Expansion I/O Cable
Hardware and cables included
Note Some of the CPM2B’s electrical components such as leads are sharp, so do no t
touch the components or the surface of the circuit board.
38
Installing the Expansion I/O Connecting Cables
1, 2, 3...1. Insert the Expansion I/O Cable into the connectors on the CPU Board and
Expansion I/O Board.
3-4SectionInstalling the CPM2B
CPU Board
The cable from the CPU Board
connects to the upper Expansion
I/O Connector (the one with the
short locks.)
2. Push the cable’s connector into the Board’s connector until both lock levers
lock solidly.
To remove the Expansion I/O Cable, open the connectors lock levers and
pull out the cable’s connector.
3-4Installing the CPM2B
Expansion
I/O Board
Expansion I/O Cable
(included with the Expansion
I/O Board)
Install the shorter connector of
the cable in the lower Board and
the longer connector in the upper Board.
Lock lever
Lock lever
Install the CPM2B as shown in the following diagram. The CPM2B cannot be
installed on DIN T rack.
Four M4 screws
186
100
39
Example Installations
3-5SectionWiring and Connections
Mounting Bracket
Note1. Use M4 screws and tighten to a torque of 1.2 NSm.
2. The CPM2B can be installed without a CPM2B-ATT01 Mounting Bracket,
but the Mounting Bracket must be used to conform to UL/CSA standards.
Refer to Appendix B for mounting dimensions.
3. Installing the CPM2B horizontally or with its narrow edge down affects cooling and limits the number of inputs that can be ON simultaneously at high
temperatures. Refer to page 26 for details.
3-5Wiring and Connections
This section provides basic information on power supply wiring and I/O wiring.
General Precautions for Wiring
CautionCover the CPM2B Boards with plastic or use some other method to prevent
!
strands of wire from getting on the Board or inside the Board’s components dur-
ing wiring. Wire strands may short circuit the Board’s components.
I/O Line Noise
Do not run CPM2B I/O lines in the same duct or conduit as power lines.
Hanging Ducts
Leave at least 300 mm between the power cables and the I/O or control wiring,
as shown in the following diagram.
Screw and nut
installation
Screw and tapped
panel installation
40
CPM2B I/O lines
300 mm min.
Control cables and
CPM2B power lines
Power cables
300 mm min.
Floor Ducts
Leave at least 200 mm between the wiring and the top of the duct, as shown in
the following diagram.
CPM2B I/O lines
Control cables and
CPM2B power lines
Power cables
Metal plate (iron)
200 mm min.
3-5SectionWiring and Connections
Conduits
Separate the CPM2B I/O lines, power and control lines, and power cables, as
shown in the following diagram.
3-5-1Power Supply Wiring
The power supply terminal specifications are shown below. Supply the power
supply terminals with 24 V DC.
Terminal Specifications
Screw sizeM3
Recommended torque
CPM2B I/O lines
24 V DC(Not connected)
ItemSpecifications
Control cables and
CPM2B power lines
0 V
0.5 to 0.6 NSm
Recommended screwdriver: OMRON XW4E-00C
Power cables
Compatible Wires and
Terminals
Wire/terminalSpecification
Solid wire0.2 to 2.5 mm2 (AWG 24 to AWG 12)
Stranded wire0.2 to 2.5 mm2 (AWG 24 to AWG 12)
Two-condu
ctor wires
Pin terminals0.2 to 2.5 mm2 diameter, 7-mm long pin terminal
Solid2 × (0.2 to 1.0 mm2) (AWG 24 to AWG 20)
Stranded2 × (0.2 to 1.5 mm2) (AWG 24 to AWG 16)
Stranded
with pin
terminal
Strip 7 mm (1/4 inch) of insulation.
Strip 7 mm (1/4 inch) of insulation.
2 × (0.25 to 1.0 mm2) (AWG 24 to AWG 20)
without an insulating sleeve
The following diagram shows how to wire the power supply.
The power supply terminal
block is removable.
24 V DC0 V
Note1. Do not perform a voltage withstand test on the DC power supply terminals.
The test might damage the PC’s internal components.
2. When equipment must conform to the EC Directives (Low-voltage Directives), use a power supply with double insulation or reinforced insulation.
41
3-5-2I/O Wiring Procedures
Removing and Wiring I/O Terminal Blocks
The following tables provide output terminal block specifications.
3-5SectionWiring and Connections
CPU Boards and Expansion I/O Boards
with relay outputs
Output terminal blocks
T erminal Block
Specifications
Recommended Wire and
Terminals
ItemSpecification
Screw sizeM3
Recommended tightening
torque
ItemSpecification
Solid wire0.2 to 2.5 mm
Stranded wire (See notes.) 0.2 to 2.5 mm2 (AWG 24 to AWG12) (Strip 7 mm.)
Two-cond
uctor
wires
Pin terminals0.2 to 2.5 mm2 diameter, 7-mm long pin terminal
Bridge (shorts terminals)Terminal pitch 5.08 mm
Solid2 × (0.2 to 1.0 mm2) (AWG 24 to AWG 20)
Stranded2 × (0.2 to 1.5 mm2) (AWG 24 to AWG 16)
Stranded with
pin terminal
0.5 to 0.6 NSm
Recommended screwdriver: OMRON XW4E-00C
2
(AWG 24 to AWG12) (Strip 7 mm.)
2 × (0.25 to 1.0 mm2) (AWG 24 to AWG 20)
without an insulating sleeve
Note1. When using stranded wire, be sure to avoid stray wire strands that might
short-circuit an adjacent terminal.
2. Do not solder the ends of stranded wires. Solder can break and cause wiring
problems. Also, the solder can cause corrosion on the contact surface.
3. Be sure to use the correct pin allocation when assembling and wiring connectors or terminal blocks.
Removing and Wiring a
T erminal Block
1, 2, 3...1. Use a flatblade screwdriver to loosen the screws at the left and right sides of
42
Use the following procedure when wiring a terminal block.
the terminal block.
3-5SectionWiring and Connections
2. Pull the terminal block out of the Board.
3. Insert each lead wire into the terminal block and tighten that terminal’s
screw.
4. After wiring the terminal block, insert the block into the Unit and tighten the
screws at the left and right sides of the terminal block.
Removing and Wiring I/O Connectors
The following tables provide specifications of compatible OMRON I/O connectors.
MIL 20P Flat Cable Connector
Note The max. rated current for flat cable is 1 A. Be sure that the
XG4T-2004
Strain Relief
XG4M-2030
Socket
Flat cable: XY3A-200j
current at the common terminal does not exceed 1A.
XG4M-2030
Set
43
OMRON Crimping Tools
Crimping ToolXY2B-0002
AttachmentXY2B-1007
MIL 20P Loose-wire Pressure Connector
OMRON Pressing Tools
3-5SectionWiring and Connections
XG5S-2012
Full Cover*
XG5S-1001
Partial Cover*
Sockets
For AWG 24: XG5M-2032N
For AWG 26 to AWG 28: XG5M-2035N
Note Two Full Covers or Partial Covers are required for each socket.
Using Relay Terminal and
T erminal Blocks
Inserting and Removing
I/O Connectors
Pressing Tool Set (Handy Press)XY2B-2104
Simple Pressing ToolXY2B-7006
A G79-AjC (Loose-wire Connecting Cable) can be used to connect to a Relay
Terminal. (A pressure connector must be attached on the PC side of the cable.)
A special cable is not provided for connection to the XW2B-20G4 or
XW2B-20G5 Terminal Blocks, so one must be made. (The Terminal Block requires the kind of MIL 20P connector described above.)
When inserting a cable, first open the lock levers on each side of the connector
and then insert the cable’s connector. Press the cable’s connector firmly until
both lock levers lock onto the connector.
To remove the cable, open the lock levers to the left and right before removing
the cable’s connector.
44
3-5-3Connecting Input Devices
Wire inputs to the CPM2B CPU Board and Expansion I/O Boards as shown in
the following diagrams.
Note When equipment must conform to the EC Directives (Low-voltage Directives),
use a power supply with double insulation or reinforced insulation.
CPU Boards (All Models)
Input Connector
00103
00102
00101
00100
COM
00003
00002
00001
191715131197531
2018161412108642
00107
00106
00105
00104NC00007
00006
00005
00000
00004
3-5SectionWiring and Connections
COM
NC
Expansion I/O Boards (All Models)
Input Connector
j
00 11
00 10j00 09j00 08j00 03j00 02j00 01j00 00
191715131197531
2018161412108642
00 15j00 14j00 13j00 12j00 07j00 06j00 05j00 04
COM
NC
j
j
COM
NC
45
3-5SectionWiring and Connections
Input Devices
DeviceCircuit diagram
Relay output
NPN open collector
NPN current output
Constant
current
circuit
The following table shows how to connect various input devices.
IN
5 mA/6 mA/8 mA
COM (+)
Sensor
power supply
Output
5 mA/6 mA/8 mA
0 V
Output
5 mA/6 mA/8 mA
0 V
IN
COM (+)
Use the same power supply for
the input and sensor.
+
COM (+)
CPM2B
CPM2B
CPM2BIN
PNP current output
Voltage output
Sensor power
supply
5 mA/6 mA/8 mA
IN
Output
COM (–)
0 V
COM (+)
Output
IN
0 V
Sensor power
supply
Note Do not use the following wiring with voltage-output devices:
Output
0 V
Sensor power
supply
Incorrect Wiring
IN
COM(+)
CPM2B
CPM2B
CPM2B
46
High-speed Counter Inputs
3-5SectionWiring and Connections
Using IR 00000 to IR 00002 as High-speed Counter Inputs
In these examples, Encoders with an external 24-V DC open-collector output
are connected.
Differential Phase Mode
(Count frequency: 5 kHz)
Encoder
Up/Down Mode
(Count frequency: 20 kHz)
Sensor
Sensor
Sensor or switch
24 V DC
Pulse Plus Direction Input Mode
(Count frequency: 20 kHz)
CPM2BCPM2B
00000 A-phase input
00001 B-phase input
00002 Z-phase input
COM
CPM2B
00000 CW input*
00001 CCW input*
00002 Reset input
Encoder
Sensor or switch
Sensor or switch
24 V DC
Increment Mode
(Count frequency: 20 kHz)
Encoder
00000 Pulse input
00001 Direction input
00002 Reset input
COM
00000 Pulse input
00001 Normal input
00002 Normal input
CPM2B
PC Setup Settings
COM
24 V DC
COM
24 V DC
Note *CW is clockwise and CCW is counter-clockwise.
Using IR 00003 to IR 00006 as Interrupt Inputs (Counter Mode)
In these examples, an Encoder with an external 24-V DC open-collector output
is connected.
Increment or decrement
(Count frequency: 2 kHz)
Encoder
24 V DC
CPM2B
Input (00003 to 00006)
COM
The input bits shown in the following tables can operate as normal inputs or they
can be assigned special functions in the PC Setup.
Special functions for input bits IR 00000 through IR 00002 are set in DM 6642:
Bit
address
IR 00000
IR 00001
Used as normalUsed as high-speed Used as inputs for
inputs.counter inputs.synchronized pulse
IR 00002Used as a normal input.
PC Setup setting (DM 6642 bits 08 to15)
000102, 03, or 04
control.
47
3-5SectionWiring and Connections
Special functions for input bits IR 00003 through IR 00006 are set in DM 6628:
BitBits in
addressDM 6628
IR 00003 00 to 03
IR 00004 04 to 07
IR 00005 08 to 11
IR 00006 12 to 15
High-speed Counter Input Connection Examples
Differential Phase Mode
(Count frequency: 5 kHz)
E6B2-CWZ6C
Encoder
(NPN open-collector output)
Leakage Current
Black
White
Orange
Brown
Blue
24 V DC
CPM2BCPM2B
00000 A-phase input
00001 B-phase input
00002 Z-phase input
COM
A leakage current can cause false inputs when using 2-wire sensors (proximity
switches or photoelectric switches) or limit switches with LEDs. False inputs
won’t occur if the leakage current is less than 1.0 mA (2.5 mA for IN00000 to
IN00002). If the leakage current exceeds these values, insert a bleeder resistor
in the circuit to reduce the input impedance, as shown in the following diagram.
PC Setup setting (in DM 6628)
012
Used as normalUsed as interruptUsed as
inputs.inputs (includingquick-response
counter mode).inputs.
Pulse Plus Direction Input mode
(Count frequency: 20 kHz)
E6A2-CS5C
Encoder
Sensor or
switch
Sensor or
switch
Sensor
power
24 V DC
00000 Pulse input
00001 Direction input
00002 Reset input
COM
Inductive Loads
Input power
supply
Bleeder
resistor
2-wire sensor, etc.
I: Device’s leakage current (mA)
R: Bleeder resistance (kΩ)
W: Bleeder resistor’s power rating (W)
LC 5.0
R +
I LC–5.0
The equations above were derived from the following equations:
Input voltage (24)
R
I
W y
Refer to 2-1-3 I/O Specifications for details on the values LC, IC, and EC.
The input impedance, input current, and OFF voltage may vary depending on the
input being used. (IN00000 through IN00002 have different values.)
Input Current (IC)
Input voltage (24)
R )
Input Current (IC)
Input voltage (24)
R
R
kW max.
x OFF voltage (EC:5.0)
Input voltage (24)tolerance (4)
CPM2B
LC: CPM2B’s input impedance (kΩ)
IC: CPM2B’s input current (mA)
EC: CPM2B’s OFF voltage (V) = 5.0 V
2.3
W +
R
Wmin.
When connecting an inductive load to an input, connect a diode in parallel with
the load. The diode should satisfy the following requirements:
48
1, 2, 3...1. Peak reverse-breakdown voltage must be at least 3 times the load voltage.
2. Average rectified current must be 1 A.
3-5SectionWiring and Connections
IN
3-5-4Output Wiring
Relay Output Wiring
WARNING The PC outputs may remain ON or OFF due to fusing or burning of the output
!
CPU Boards with Relay Outputs
Terminal Block #1
(Left side)
1234567891012345678910
Diode
CPM2B
COM
Wire the outputs to the CPM2B’s CPU Board and Expansion I/O Boards as
shown in the following diagrams.
Don’t exceed the output capacity or the maximum common current. Refer to
2-1-3 I/O Specifications for details.
relays or destruction of the output transistors. External safety measures must b e
provided to ensure safety in the system. Not providing proper safety measures
may result in serious accidents.
Terminal Block #2
(Right side)
01000
01001
01002
01003
LLLLLLLLLLLLLLLL
COM
01004
01005
Output capacityMax. common capacity
2 A (250 V AC or 24 V DC)4 A/common
Expansion I/O Boards with Relay Outputs
Terminal Block #1
(Left side)
1234567891012345678910
j
01 00
01 01j01 02j01 03j01 04j01 05j01 06j01 07
LLLLLLLLLLLLLLLL
COM
Output capacityMax. common capacity
2 A (250 V AC or 24 V DC)4 A/common
01006
01007
j
COM
COM
01100
j
01 08
01101
01102
j
01 09j01 10j01 11
01103
COM
COM
01105
01106
01107
01104
01 12j01 13j01 14j01 15
COM
j
COM
Terminal Block #2
(Right side)
49
CPU Boards with Sinking Transistor Outputs
Output connector
LLLLLLLL
01000
19 17 15 13 11 97 5 3 1
01004
Output capacityMax. common capacity
01000, 01001:200 mA (30 V DC)
01002 and up:300 mA (30 V DC)
Expansion I/O Boards with Sinking Transistor Outputs
Output connector
01101
01102
01105
01106
01103
01107
01001
01002
01003
01100
COM
18 16 14 12 10 86 4 220
01005
01006
01007
01104
COM
LLLLLLLL
1.2 A/common
3-5SectionWiring and Connections
COM
COM
LLLL
j
01 00
19 17 15 13 11 97 5 3 1
01 04j01 05j01 06j01 07
LLLLLLLL
j
01 01j01 02j01 03
18 16 14 12 10 86 4 220
j
LLLL
j
COM
01 08
COM
01 12j01 13j01 14j01 15
Output capacityMax. common capacity
300 mA (30 V DC)1.2 A/common
j
01 09j01 10j01 11
j
COM
COM
50
3-5SectionWiring and Connections
Using Pulse Outputs
Single-phase pulse output
(Fixed duty ratio)
CPM2B
Pulse output 0: 01000
Pulse output 1: 01001
Pulse plus direction output
CPM2B
Pulse output 0: 01000
COM
COM
Use the PULS(65), SPED(––), ACC(––), PWM(––), and SYNC(––) instructions
to produce pulse outputs (rather than normal outputs) from output bits IR 01000
and IR 01001. Pulse outputs are possible from CPU Boards with transistor outputs only.
Single-phase pulse output
(Variable duty ratio)
Motor driver
Pulse output 0: 01000
Motor driver
Pulse output 1: 01001
Motor driver
CW* pulse output: 01000
CPM2B
COM
COM
Increment pulse output
CPM2B
Relay
Relay
Motor driver
CW input
Direction output: 01001
Output Wiring
Precautions
COM
Direction
input
CCW* pulse output: 01001
COM
Note *CW is clockwise and CCW is counter-clockwise.
Observe the following precautions to protect the PC’s internal components.
Output Short Protection
The output or internal circuitry might be damaged when the load connected to an
output is short-circuited, so it is recommended to install a protective fuse in each
output circuit.
Inductive Loads
When connecting an inductive load to an input, connect a surge protector or
diode in parallel with the load.
The surge protector’s components should have the following ratings:
Relay Output
CPM2B
OUT
COM
Surge protector
COM
CCW input
COM
Relay Output
Transistor Output
(Sinking)
CPM2B
OUT
COM
Diode
51
3-5SectionWiring and Connections
The diode should satisfy the following requirements:
Peak reverse-breakdown voltage must be at least 3 times the load voltage.
Average rectified current must be 1 A.
Inrush Current Considerations
When a relay or transistor output is used to switch a load with a high inrush current such as an incandescent lamp, suppress the inrush current as shown
below.
Countermeasure 1
OUT
R
COM
Providing a dark current of
approx. one-third of the rated
value through an incandescent
lamp
Countermeasure 2
OUT
COM
R
Providing a limiting resistor
Fuse Insertion
The CPM2B with transistor output may burn if the load is short-circuited, therefore, insert a protective fuse in series with the load.
52
This section describes the structure of the PC memory areas and explains how to use them.
Most data areas in the CPM2B can be accessed as bits or words. (The TR area
can be accessed by bit address only and the DM area can be accessed by word
address only.)
The following diagram shows the structure of the IR area and the relationship
between bit and word addresses.
Bit number
15 14 13 12 11 10 98 76 54 32 1 0
IR 000
IR 001
IR 010
IR 011
Word addresses
Data areaSizeWordsBitsFunction
Input area160 bits
Output area160 bits
Work area928 bits
SR area448 bits
TR area8 bitsTR 0 to TR 7These bits are used to temporarily store
HR area320 bits
AR area384 bits
LR area256 bits
Timer/Counter
area
DM
Read/write 2,026
area
Error log22 wordsDM 2000 to DM 2021
Read-only456 words DM 6144 to DM 6599
PC Setup56 wordsDM 6600 to DM 6655
(10 words)
(10 words)
(58 words)
(28 words)
(20 words)
(24 words)
(16 words)
256 bitsTIM/CNT 000 to TIM/CNT 255The same numbers are used for both
words
IR 000 to IR 009 IR 00000 to IR 00915
IR 010 to IR 019 IR 01000 to IR 01915
IR 020 to IR 049
IR 200 to IR 227
SR 228 to
SR 255
HR 00 to HR 19HR 0000 to HR 1915These bits store data and retain their
AR 00 to AR 23AR 0000 to AR 2315These bits serve specific functions such as
LR 00 to LR 15LR 0000 to LR 1515Used for a 1:1 data link with another PC.
DM 0000 to DM 1999
DM 2022 to DM 2047
(See note 1.)
IR 02000 to IR 04915
IR 20000 to IR 22715
SR 22800 to SR 25515 These bits serve specific functions such as
These bits can be allocated to the external
I/O terminals.
Work bits can be freely used within the
program.
flags and control bits.
ON/OFF status at program branches.
ON/OFF status when power is turned off.
flags and control bits.
timers and counters.
DM area data can be accessed in word
units only. Word values are retained when
the power is turned off.
The read-only area and PC Setup cannot
be overwritten from program. Change
these settings with a Programming Device.
Note1. Input bits IR 00108 to IR 00111 reflect the status of the DIP switch on the
CPU Board.
2. The contents of the HR area, AR area, Counter area, and read/write DM
area are backed up by the CPU Board’s backup battery or capacitor. If the
battery or capacitor discharges completely, memory contents will be returned to their default settings.
3. The program and data in DM 6144 to DM 6655 are stored in flash memory.
Bit addresses
IR 00011
Word
Bit number
IR 01107
Word Bit number
4-1SectionIntroduction
4-1-1Functions
IR Area
54
The functions of the IR area are explained below.
IR area bits in the input and output areas are allocated to terminals on the CPU
Board and Expansion I/O Boards. They reflect the ON/OFF status of input and
output signals. Input bits begin at IR 00000, and output bits begin at IR 01000.
4-2SectionI/O Allocation
IR words that are not allocated to inputs or outputs can be used as work words.
Work Bits
SR Area
TR Area
HR Area
AR Area
LR Area
The work bits can be used freely within the program. They can only be used within the program, however , and not for direct external I/O.
These bits mainly serve as flags for CPM2B operation or contain present and set
values for various functions. SR 253 to SR 255 are read-only. Refer to 4-3 SRArea for details on the various bit functions.
When a complex ladder diagram cannot be programmed in mnemonic code just
as it is, these bits are used to temporarily store ON/OFF execution conditions at
program branches. They are used only for mnemonic code. When programming
directly with ladder diagrams using the Support Software, TR bits are automatically processed for you.
The same TR bits cannot be used more than once within the same instruction
block, but can be used again in different instruction blocks. The ON/OFF status
of TR bits cannot be monitored from a Programming Device.
These bits retain their ON/OFF status even after the PC power supply has been
turned off or when operation begins or stops. They are used in the same way as
work bits.
These bits mainly serve as flags related to PC operation. These bits retain their
status even after the PC power supply has been turned off or when operation
begins or stops. Refer to 4-4 AR Area for details on the various bit functions.
When the CPM2B is linked 1:1 with another CPM2B or a CPM1/CPM1A/
CPM2A/CPM2C/SRM1(-V2), a CQM1, a C200HS or a C200HX/HG/HE PC,
these bits are used to share data.
LR words can be used as work words when they are not used for a 1:1 PC Link.
Timer/Counter Area
DM Area
4-2I/O Allocation
This area is used to manage timers and counters created with TIM, TIMH(15),
TMHH(––), TIML(––), CNT, and CNTR(12). The same numbers are used for
both timers and counters and each number can be used only once in the user
program. Do not use the same TC number twice even for different instructions.
Use TC numbers 000 to 003 for TIMH(15) and TC numbers 004 to 007 for
TMHH(––). When these timer numbers are used, timing is performed as an interrupt process and the cycle time is not affected.
TC numbers are used to create timers and counters, as well as to access
Completion Flags and present values (PVs). If a TC number is designated for
word data, it will access the present value (PV); if it is used for bit data, it will access the Completion Flag for the timer/counter.
DM area data is accessed in word units only. The contents of the DM area are
retained even after the PC power supply has been turned off or when operation
begins or stops.
DM words DM 0000 to DM 1999 and DM 2022 to DM 2047 can be used freely in
the program; other DM words are allocated specific functions.
DM 2000 to DM 2021 contain the error log information. Refer to Section 4-6 ErrorLog for details on the error log.
DM 6600 to DM 6655 contain the PC Setup. Refer to 4-5 PC Setup for details.
IR bits are allocated to actual input terminals and output terminals on the CPU
Board and Expansion I/O Boards. IR words that are not allocated to inputs or
outputs can be used as work words.
55
4-2SectionI/O Allocation
CPU Board I/O Allocation
15141312111009080706050403020100
Inputs
Outputs
Bits
IR 000
IR 001
IR 010
IR 011
Expansion I/O Board I/O
Allocation
CPU Board inputs are allocated input bits starting from IR 00000 and CPU Board
outputs are allocated output bits starting from IR 01000. Input bits IR 00108 to
IR 00111 are allocated to the CPU Board’s DIP switch inputs.
16 inputs
IR 00000 to IR 00007
IR 00100 to IR 00107
16 outputs
IR 01000 to IR 01007
IR 01100 to IR 01107
Do not use
Note1. The unused bits in IR 000 and IR 001 cannot be used as work bits.
2. IR 00108 to IR 00111 are used as an input DIP switch.
Up to 3 Expansion I/O Boards can be connected.
Input bits are allocated to Expansion I/O Boards starting from word (m+1), where
“m” is the last input word allocated to the CPU Board or to the previous Expansion I/O Board if one is already connected.
Output bits are allocated to Expansion I/O Boards starting from word (n+1),
where “n” is the last output word allocated to the CPU Board or to the previous
Expansion I/O Board if one is already connected.
Bits
Inputs
Outputs
m+1
n+1
CPU Board and One
Expansion I/O Board
Bits
IR 000
Inputs
Outputs
IR 001
IR 002
IR 010
IR 011
IR 012
16 inputs
Bits 00 to 15 in IR (m+1)
16 outputs
Bits 00 to 15 in IR (n+1)
15141312111009080706050403020100
The following example shows the I/O allocation when one Expansion I/O Board
is connected to the CPU Board. Expansion I/O Board inputs are allocated
IR 00200 through IR 00215 and the outputs are allocated IR 01200 through
IR 01215.
15141312111009080706050403020100
Do not use
as work bits.
56
4-2SectionI/O Allocation
CPU Board and Three
Expansion I/O Boards
CPU Board
(32 I/O points)
16 inputs
IR 00000 to IR 00007
IR 00100 to IR 00107
16 outputs
IR 01000 to IR 01007
IR 01100 to IR 01107
15141312111009080706050403020100
Inputs
Outputs
Bits
IR 000
IR 001
IR 002
IR 003
IR 004
IR 010
IR 011
IR 012
IR 013
IR 014
The following example shows the I/O allocation when three Expansion I/O
Boards are connected to the CPU Board.
Expansion I/O Board
(32 I/O points)
16 inputs
IR 00200 to IR 00215
16 outputs
IR 01200 to IR 01215
Do not use
as work bits.
Expansion I/O Board
(32 I/O points)
16 inputs
IR 00300 to IR 00315
16 outputs
IR 01300 to IR 01315
Expansion I/O Board
(32 I/O points)
16 inputs
IR 00400 to IR 00415
16 outputs
IR 01400 to IR 01415
57
4-3SR Area
4-3SectionSR Area
These bits mainly serve as flags related to CPM2A/CPM2C operation or contain
present and set values for various functions. The functions of the SR area are
explained in the following table.
Note “Read-only” words and bits can be read as status in controller PC operation, but
they cannot be written from the ladder program. Bits and words that are “Not
used” are also read-only.
Word(s)Bit(s)FunctionRead/
SR 228,
SR 229
SR 230,
SR 231
SR 232
to
SR 235
SR 236
to
SR 239
SR 24000 to 15 Interrupt Input 00003 Counter Mode SV
SR 24100 to 15 Interrupt Input 00004 Counter Mode SV
SR 24200 to 15 Interrupt Input 00005 Counter Mode SV
SR 24300 to 15 Interrupt Input 00006 Counter Mode SV
SR 24400 to 15 Interrupt Input 00003 Counter Mode PV
SR 24500 to 15 Interrupt Input 00004 Counter Mode PV
SR 24600 to 15 Interrupt Input 00005 Counter Mode PV
SR 24700 to 15 Interrupt Input 00006 Counter Mode PV
SR 248,
SR 249
SR 25000 to 15 Analog Setting 0
SR 25100 to 15 Analog Setting 1
00 to 15Pulse Output PV 0
Contains the pulse output PV (–16,777,215 to 16,777,215). SR 22915 acts as the sign
bit; a negative number is indicated when SR 22915 is ON.
(The same PV data can be read immediately with PRV(62).)
Only Pulse Output PV 0 is used for ACC(––).
00 to 15Pulse Output PV 1
Contains the pulse output PV (–16,777,215 to 16,777,215). SR 23115 acts as the sign
bit; a negative number is indicated when SR 23115 is ON.
(The same PV data can be read immediately with PRV(62).)
00 to 15Macro Function Input Area
Contains the input operands for MCRO(99).
(Can be used as work bits when MCRO(99) is not used.)
00 to 15Macro Function Output Area
Contains the output operands for MCRO(99).
(Can be used as work bits when MCRO(99) is not used.)
SV when interrupt input 00003 is used in counter mode (4 digits hexadecimal).
(Can be used as work bits when interrupt input 00003 is not used in counter mode.)
SV when interrupt input 00004 is used in counter mode (4 digits hexadecimal).
(Can be used as work bits when interrupt input 00004 is not used in counter mode.)
SV when interrupt input 00005 is used in counter mode (4 digits hexadecimal).
(Can be used as work bits when interrupt input 00005 is not used in counter mode.)
SV when interrupt input 00006 is used in counter mode (4 digits hexadecimal).
(Can be used as work bits when interrupt input 00006 is not used in counter mode.)
Counter PV when interrupt input 00003 is used in counter mode (4 digits hexadecimal).
Counter PV when interrupt input 00004 is used in counter mode (4 digits hexadecimal).
Counter PV when interrupt input 00005 is used in counter mode (4 digits hexadecimal).
Counter PV when interrupt input 00006 is used in counter mode (4 digits hexadecimal).
00 to 15High-speed Counter PV Area
The PVs can have the following values. The leftmost digit of SR 249 acts as the sign
indicator; a negative number is indicated when the leftmost digit of SR 249 is F.
Differential phase input mode:–8,388,608 (F838 8608) to 8,388,607
Pulse +direction input mode:–8,388,608 (F838 8608) to 8,388,607
Up/down pulse input mode:–8,388,608 (F838 8608) to 8,388,607
Increment mode:0 to 16,777,215
Synchronized pulse control:0 to 20,000 Hz
(Can be used as work bits when the high-speed counter is not used.)
Used to store the 4-digit BCD set value (0000 to 0200) from analog control 0.
Used to store the 4-digit BCD set value (0000 to 0200) from analog control 1.
write
Readonly
Read/
write
Readonly
58
4-3SectionSR Area
Word(s)Read/
SR 252
SR 253
00High-speed Counter Reset BitRead/
01 to 03Not used.
04Pulse Output 0 PV Reset Bit
Turn ON to clear the PV of pulse output 0.
05Pulse Output 1 PV Reset Bit
Turn ON to clear the PV of pulse output 1.
06, 07Not used.
08Peripheral Port Reset Bit
Turn ON to reset the peripheral port. Automatically turns OFF when reset is complete.
09RS-232C Port Reset Bit
Turn ON to reset the RS-232C port. Automatically turns OFF when reset is complete.
10PC Setup Reset Bit
Turn ON to initialize PC Setup (DM 6600 through DM 6655). Automatically turns OFF
again when reset is complete. Only effective if the PC is in PROGRAM mode.
11Forced Status Hold Bit (See note.)
OFF:The forced status of bits that are forced set/reset is cleared when switching be-
tween PROGRAM mode and MONITOR mode.
ON: The status of bits that are forced set/reset are maintained when switching between
PROGRAM mode and MONITOR mode.
The PC Setup can be set to maintain the status of this bit when the PC is turned off.
12I/O Hold Bit (See note.)
OFF:IR and LR bits are reset when starting or stopping operation.
ON: IR and LR bit status is maintained when starting or stopping operation.
The PC Setup can be set to maintain the status of this bit when the PC is turned off.
13Not used.
14Error Log Reset Bit
Turn ON to clear error log. Automatically turns OFF again when operation is complete.
15Not used.
00 to 07FAL Error Code
The error code (a 2-digit number) is stored here when an error occurs. The FAL number
is stored here when FAL(06) or FALS(07) is executed. This word is reset (to 00) by
executing a FAL 00 instruction or by clearing the error from a Programming Device.
08Battery Error Flag
Turns ON when the CPU Board backup battery’s voltage is too low.
09Cycle Time Overrun Flag
Turns ON when a cycle time overrun occurs (i.e., when the cycle time exceeds the maxi-
mum cycle time set in the PC Setup).
10,11Not used.
12Changing RS-232C Setup Flag
Turns ON when the RS-232C port’s settings are being changed.
13Always ON Flag
14Always OFF Flag
15First Cycle Flag
Turns ON for 1 cycle at the start of operation.
FunctionBit(s)
write
write
Read/
write
Read/
write
Read/
write
Readonly
Read/
write
Readonly
59
4-4SectionAR Area
Word(s)Read/
SR 254
SR 255
001-minute clock pulse (30 seconds ON; 30 seconds OFF)
010.02-second clock pulse (0.01 second ON; 0.01 second OFF)
02Negative (N) Flag
Turns ON when the result of a calculation is negative (leftmost bit of binary result ON.)
03Not used.
04Overflow (OF) Flag
Turns ON when an overflow occurs in a signed binary calculation.
05Underflow (UF) Flag
Turns ON when an underflow occurs in a signed binary calculation.
06Differential Monitor Complete Flag
Turns ON when differential monitoring is completed.
07STEP(08) Execution Flag
Turns ON for 1 cycle only at the start of process based on STEP(08).
08 to 15Not used.
000.1-second clock pulse (0.05 second ON; 0.05 second OFF)
010.2-second clock pulse (0.1 second ON; 0.1 second OFF)
021.0-second clock pulse (0.5 second ON; 0.5 second OFF)
03Instruction Execution Error (ER) Flag
Turns ON when an error occurs during execution of an instruction.
04Carry (CY) Flag
Turns ON when there is a carry in the results of an instruction execution.
05Greater Than (GR) Flag
Turns ON when the result of a comparison operation is “greater.”
06Equals (EQ) Flag
Turns ON when the result of a comparison operation is “equal,” or when the result of an
instruction execution is 0.
07Less Than (LE) Flag
Turns ON when the result of a comparison operation is “less.”
08 to 15Not used.
FunctionBit(s)
write
Readonly
Readonly
Readonly
Note DM 6601 in the PC Setup can be set to maintain the previous status of the
Forced Status Hold Bit (SR 2521 1) and the I/O Hold Bit (SR 25212) when power
is turned OFF. Refer to 4-5 PC Setup for details.
4-4AR Area
These bits mainly serve as flags related to CPM2B operation. These bits retain
their status even after the CPM2B power supply has been turned off or when
operation begins or stops.
Word(s)Bit(s)Function
AR 00,
AR 01
AR 02
AR 03 to
AR 07
00 to 15Not used.
00 to 07Not used.
08 to 11Number of Expansion I/O Boards Connected
12 to 15Not used.
00 to 15Not used.
60
Word(s)FunctionBit(s)
AR 08
AR 0900 to 15RS-232C Port Reception Counter (4-digit BCD)
AR 1000 to 15Peripheral Port Reception Counter (4-digit BCD)
Turns ON when a peripheral port communications error occurs.
13Peripheral Port Transmit Ready Flag
Turns ON when the PC is ready to transmit data. (No-protocol and Host Link only)
14Peripheral Port Reception Completed Flag
Turns ON when the PC has completed reading data. (No-protocol only)
15Peripheral Port Reception Overflow Flag
Turns ON when an overflow has occurred. (No-protocol only)
Valid only when no-protocol communications are used.
Valid only when no-protocol communications are used.
4-4SectionAR Area
61
Word(s)FunctionBit(s)
AR 11
(Note 1)
AR 12
(Note 1)
00 to 07High-speed Counter Range Comparison Flags
08High-speed Counter Comparison Operation
09High-speed Counter PV Overflow/Underflow Flag
10Not used.
11Pulse Output 0 Output Status
12Pulse Output 0 Overflow/Underflow Flag
13Pulse Output 0 Pulse Quantity Set Flag
14Pulse Output 0 Pulse Output Completed Flag
15Pulse Output 0 Output Status
00 to 10Not used.
11Pulse Output 1 Output Status
12Pulse Output 1 Overflow/Underflow Flag
13Pulse Output 1 Pulse Quantity Set Flag
14Pulse Output 1 Pulse Output Completed Flag
15Pulse Output 1 Output Status
4-4SectionAR Area
00 ON: Counter PV is within comparison range 1
01 ON: Counter PV is within comparison range 2
02 ON: Counter PV is within comparison range 3
03 ON: Counter PV is within comparison range 4
04 ON: Counter PV is within comparison range 5
05 ON: Counter PV is within comparison range 6
06 ON: Counter PV is within comparison range 7
07 ON: Counter PV is within comparison range 8
ON:Operating
OFF:Stopped
ON:An overflow or underflow occurred.
OFF:Normal operation
ON:Pulse output 0 is accelerating or decelerating.
OFF:Pulse output 0 is operating at a constant rate.
ON:An overflow or underflow occurred.
OFF:Normal operation
ON:Pulse quantity has been set.
OFF:Pulse quantity has not been set.
ON:Completed
OFF:Not completed
ON:Pulses being output.
OFF:Stopped.
ON:Pulse output 1 is accelerating or decelerating.
OFF:Pulse output 1 is operating at a constant rate.
ON:An overflow or underflow occurred.
OFF:Normal operation
ON:Pulse quantity has been set.
OFF:Pulse quantity has not been set.
ON:Completed
OFF:Not completed
ON:Pulses being output.
OFF:Stopped.
62
Word(s)FunctionBit(s)
AR 13
00Power-up PC Setup Error Flag
01Start-up PC Setup Error Flag
02RUN PC Setup Error Flag
03, 04Not used.
05Cycle Time Too Long Flag
06, 07Not used.
08Memory Area Specification Error Flag
09Flash Memory Error Flag
10Read-only DM Error Flag
11PC Setup Error Flag
12Program Error Flag
13Expansion Instruction Area Error Flag
14Data Save Error Flag
15Not used.
4-4SectionAR Area
Turns ON when there is an error in DM 6600 to DM 6614 (the part of the PC Setup area that is
read at power-up).
Turns ON when there is an error in DM 6615 to DM 6644 (the part of the PC Setup area that is
read at the beginning of operation).
Turns ON when there is an error in DM 6645 to DM 6655 (the part of the PC Setup area that is
always read).
Turns ON if the actual cycle time is longer than the cycle time set in DM 6619.
Turns ON when a non-existent data area address is specified in the program.
Turns ON when there is an error in flash memory.
Turns ON when a checksum error occurs in the read-only DM (DM 6144 to DM 6599).
Turns ON when a checksum error occurs in the PC Setup area.
Turns ON when a checksum error occurs in the program memory (UM) area, or when an improper instruction is executed.
Turns ON when a checksum error occurs in the expansion instruction assignments area. The
expansion instruction assignments will be cleared to their default settings.
Turns ON if data could not be retained with the backup battery or capacitor.
The following words are normally backed up:
DM read/write words (DM 0000 to DM 1999 and DM 2022 to DM 2047), Error Log (DM 2000 to
DM 2021), HR area, counter area, SR 25511, SR 25512 (if DM 6601 is set to hold I/O memory at
startup), AR 23, operating mode (if DM 6600 is set to use the previous operating mode).
If the above words cannot be retained, all data will be cleared except that AR 2114 will be turned
ON in CPU Boards equipped with a clock. The CPU Board will start in PROGRAM mode if DM
6600 is set to use the previous operating mode. (If DM 6604 is set to generate an error, the PC
will start in PROGRAM mode regardless.)
AR 1400 to 15Maximum Cycle Time (4-digit BCD, see note 3)
AR 1500 to 15Current Cycle Time (4-digit BCD, see note 3)
AR 1600 to 15Not used.
AR 17
(Note 2)
AR 18
(Note 2)
AR 19
(Note 2)
AR 20
(Note 2)
00 to 07Minute (00 to 59, BCD)
08 to 15Hour (00 to 59, BCD)
00 to 07Second (00 to 59, BCD)
08 to 15Minute (00 to 59, BCD)
00 to 07Hour (00 to 23, BCD)
08 to 15Day of the Month (01 to 31, BCD)
00 to 07Month (01 to 12, BCD)
08 to 15Year (00 to 99, BCD)
The longest cycle time since the beginning of operation is stored. It is not cleared when operation stops, but it is cleared when operation starts again.
The most recent cycle time during operation is stored. The Current Cycle Time is not cleared
when operation stops.
63
Word(s)FunctionBit(s)
AR 21
(Note 2)
AR 2200 to 15Not used.
AR 2300 to 15Power-off Counter (4-digit BCD)
00 to 07Day of the Week (00 to 06, BCD)
00: Sunday01: Monday02: Tuesday03: Wednesday
04: Thursday05: Friday06: Saturday
08 to 12Not used.
1330-second Compensation Bit
Turn this bit ON to round off to the nearest minute. When the seconds are 00 to 29, the seconds
are cleared to 00 and the rest of the time setting is left unchanged. When the seconds are 30 to
59, the seconds are cleared to 00 and the time is incremented by one minute.
14Clock Stop Bit
Turn this bit ON to stop the clock. The time/date can be overwritten while this bit is ON.
15Clock Set Bit
To change the time/date, turn ON AR 2114, write the new time/date (being sure to leave AR
2114 ON), and then turn this bit ON to enable a new time/date setting. The clock will restart and
both AR 2114 and AR 2115 will be turned OFF automatically.
This is the count of the number of times that the power has been turned off.
To clear the count, write “0000” from a Programming Device.
Note1. The same data can be read immediately with PRV(62).
2. The time and date can be set while AR 2114 is ON. The new setting becomes effective when AR 2115 is turned ON. (AR 2114 and AR 2115 are
turned OFF automatically when the new setting goes into effect.)
3. The units for the maximum and current cycle times are determined by the
setting in bits 08 to 15 of DM 6618. A setting of 00 specifies 0.1-ms units, 01
specifies 0.1-ms units, 02 specifies 1-ms units, and 03 specifies 10-ms
units.
4-5SectionPC Setup
4-5PC Setup
The PC Setup comprises various operating parameters that control PC operation. In order to make the maximum use of PC functionality when using interrupt
processing and communications functions, the PC Setup may be customized
according to operating conditions.
After the PC Setup has been changed, be sure to switch the CPM2B to MONITOR or RUN mode or turn the power OFF and then ON again.
4-5-1Changing the PC Setup
The PC Setup settings in DM 6600 to DM 6655 can be changed from a Programming Device. The CPM2B must be in PROGRAM mode in order to change the
settings in DM 6600 to DM 6644. The settings in DM 6645 to DM 6655 can be
changed in MONITOR or PROGRAM mode, but CPM2B’s cycle time will be long
if the settings are changed in MONITOR mode.
All of the PC Setup settings are set to their defaults when the CPM2B is shipped.
The default values for the PC Setup are 0000 for all words (except for the low
battery error enable in DM 6655 bits 12 to 15).
Effectiveness of Changes
PC Setup settings are accessed at various times depending on the setting, as
described below.
WordsTiming
DM 6600 to DM 6614 Accessed only when PC’s power supply is turned ON.
DM 6615 to DM 6644 Accessed only when program execution begins.
DM 6645 to DM 6655 Accessed regularly when the power is ON.
64
Since changes in the PC Setup become effective only at the times given above,
the PC will have to be restarted to make changes in DM 6600 to DM 6614 effec-
4-5SectionPC Setup
tive, and program execution will have to be restarted to make changes in
DM 6615 to DM 6644 effective.
Errors in the PC Setup
If an incorrect PC Setup setting is accessed, a non-fatal error (error code 9B) will
be generated, the corresponding error flag (AR 1300 to AR 1302) will be turned
ON, and the default setting will be used instead of the incorrect setting.
4-5-2PC Setup Settings
Word(s)Bit(s)Function
Startup Processing (DM 6600 to DM 6614)
The following settings are effective after transfer to the PC only after the PC is restarted.
DM 6600
DM 6601
DM 6602
DM 660300 to 15Not used.
DM 6604
DM 6605 to
DM 6614
00 to 07Startup mode (effective when bits 08 to 15 are set to 02).
00: PROGRAM; 01: MONITOR; 02: RUN
08 to 15Startup mode designation
00: According to communications switch SW201 and peripheral port connection
(See table at the bottom of this page.)
01: Continue operating mode last used before power was turned OFF.
02: Setting in 00 to 07
00 to 07Not used.
08 to 11IOM Hold Bit (SR 25212) Status at Startup
0: Reset to 0; 1: Maintain previous status
12 to 15Forced Status Hold Bit (SR 25211) Status at Startup
0: Reset to 0; 1: Maintain previous status
00 to 03Program memory write-protection
0: Program memory unprotected
1: Program memory write-protected (except DM 6602 itself)
04 to 07Programming Console display language
0: English; 1: Japanese
08 to 11Expansion instruction function code assignments
0: Default settings
1: User assignments
12 to 15Not used.
00 to 0700: A memory error will not be generated if data could not be retained by the battery.
01: A memory error will be generated if data could not be retained by the battery.
08 to 15Not used.
00 to 15Not used.
Note The startup operating mode will be as shown in the following table is bits 08 to 15
of DM 6600 are set to 00.
Peripheral port
connected to
NothingPROGRAMRUN
Programming
Console
Other Programming
Device
Word(s)Bit(s)Function
Cycle Time Settings (DM 6615 to DM 6619)
The following settings are effective after transfer to the PC the next time operation is started.
DM 661500 to 15 Not used.
Mode set on Programming
Console mode switch
PROGRAM (The CPM2B will
not be able to communicate
with Programming Device.)
Communications switch SW201
OFFON
PROGRAM (The CPM2B will
not be able to communicate
with Programming Console.)
PROGRAM
65
Word(s)FunctionBit(s)
DM 6616
DM 6617
DM 6618
DM 661900 to 15 Minimum cycle time
Interrupt Processing (DM 6620 to DM 6639)
The following settings are effective after transfer to the PC the next time operation is started.
DM 6620
DM 6621
DM 6622
DM 6623
DM 6624
DM 6625
DM 6626 to
DM 6627
DM6628
DM 6629
DM 6630 to
DM 6641
00 to 07 Servicing time for RS-232C port (Effective when bits 08 to 15 are set to 01.)
00 to 99 (BCD): Percentage of cycle time used to service RS-232C port.
08 to 15 RS-232C port servicing setting enable
00: 5% of the cycle time
01: Use time in bits 00 to 07.
00 to 07 Servicing time for peripheral port (Effective when bits 08 to 15 are set to 01.)
00 to 99 (BCD): Percentage of cycle time used to service peripheral.
08 to 15 Peripheral port servicing setting enable
00: 5% of the cycle time
01: Use time in bits 00 to 07.
00 to 07 Cycle monitor time (Effective when bits 08 to 15 are set to 01, 02, or 03.)
00 to 99 (BCD): Setting (See bits 08 to 15, below.)
A fatal error will be generated and PC operation will stop if the cycle time exceeds the cycle mon-
itor time set here.
08 to 15 Cycle monitor enable (Setting in 00 to 07 × units; 99 s max.)
00: 120 ms (setting in bits 00 to 07 disabled)
01: Setting units: 10 ms
02: Setting units: 100 ms
03: Setting units: 1 s
0000: Variable (no minimum)
0001 to 9999 (BCD): Minimum time in ms
00 to 03 Input time constant for IR 00000 to IR 00002
0: 10 ms; 1: 1 ms; 2: 2 ms; 3: 3 ms; 4: 5 ms; 5: 10 ms; 6: 20 ms; 7: 40 ms; 8: 80 ms
04 to 07 Input time constant for IR 00003 and IR 00004 (Setting same as bits 00 to 03)
08 to 11 Input time constant for IR 00005 and IR 00006 (Setting same as bits 00 to 03)
12 to 15 Input time constant for IR 00007 to IR 00011 (Setting same as bits 00 to 03)
00 to 07 Input time constant for IR 001
00: 10 ms01: 1 ms02: 2 ms03: 3 ms04: 5 ms
05: 10 ms06: 20 ms07: 40 ms08: 80 ms
08 to 15 Input constant for IR 002 (Setting same as for IR 001.)
00 to 07 Input constant for IR 003 (Setting same as for IR 001.)
08 to 15 Input constant for IR 004 (Setting same as for IR 001.)
00 to 07 Input constant for IR 005 (Setting same as for IR 001.)
08 to 15 Input constant for IR 006 (Setting same as for IR 001.)
00 to 07 Input constant for IR 007 (Setting same as for IR 001.)
08 to 15 Input constant for IR 008 (Setting same as for IR 001.)
00 to 07 Input constant for IR 009 (Setting same as for IR 001.)
08 to 15 Not used.
00 to 15 Not used.
00 to 03 Interrupt enable for IR 00003 (0: Normal input; 1: Interrupt input; 2: Quick-response)
04 to 07 Interrupt enable for IR 00004 (0: Normal input; 1: Interrupt input; 2: Quick-response)
08 to 11 Interrupt enable for IR 00005 (0: Normal input; 1: Interrupt input; 2: Quick-response)
12 to 15 Interrupt enable for IR 00006 (0: Normal input; 1: Interrupt input; 2: Quick-response)
00 to 03 PV coordinate system for pulse output 0
0: Relative coordinates; 1: Absolute coordinates
04 to 07 PV coordinate system for pulse output 1
0: Relative coordinates; 1: Absolute coordinates
08 to 15 Not used.
00 to 15 Not used.
4-5SectionPC Setup
66
Word(s)FunctionBit(s)
High-speed Counter Settings (DM 6642 to DM 6644)
The following settings are effective after transfer to the PC the next time operation is started.
DM 6642
DM 6643,
DM 6644
RS-232C Port Communications Settings
The following settings are effective after transfer to the PC.
If CPU Board communications switch SW202 is ON, communications through the RS-232C port are governed by the
default settings (all 0) regardless of the settings in DM 6645 through DM 6649.
DM 6645
DM 6646
DM 664700 to 15 Transmission delay (0000 to 9999 BCD sets a delay of 0 to 99,990 ms.)
00 to 03 High-speed counter mode (Effective only when bits 08 to 15 are not set to 00.)
0: Differential phase mode (5 kHz)
1: Pulse + direction input mode (20 kHz)
2: Up/down input mode (20 kHz)
4: Increment mode (20 kHz)
04 to 07 High-speed counter reset mode (Effective only when bits 08 to 15 are set to 01.)
0: Z phase and software reset; 1: Software reset only
08 to 15 High-speed counter/Synchronized pulse control for IR 00000 to IR 00002
00: Don’t use either function.
01: Use as high-speed counters.
02: Use for synchronized pulse control (10 to 500 Hz).
03: Use for synchronized pulse control (20 Hz to 1 kHz).
04: Use for synchronized pulse control (300 Hz to 20 kHz).
00 to 15 Not used.
00 to 03 Port settings
0: Standard (1 start bit, 7 data bits, even parity, 2 stop bits, 9,600 bps, Host Link unit number: 0)
1: Settings in DM 6646
(Any other setting will cause a non-fatal error and AR 1302 will turn ON.)
04 to 07 CTS control setting
0: Disable CTS control; 1: Enable CTS control
(Any other setting will cause a non-fatal error and AR 1302 will turn ON.)
08 to 11 Link words for 1:1 PC Link
0: LR 00 to LR 15 (Any other settings are ineffective.)
12 to 15 Communications mode
0: Host Link; 1: No-protocol; 2: 1:1 PC Link Slave; 3: 1:1 PC Link Master; 4: NT Link
(Any other setting causes a non-fatal error and turns ON AR 1302.)
00 to 07 Baud rate
00: 1,200 bps; 01: 2,400 bps; 02: 4,800 bps; 03: 9,600 bps; 04: 19,200 bps
08 to 15 Frame format
(Any other setting specifies standard settings (1 start bit, 7 data bits; even parity, 2 stop bits),
causes a non-fatal error, and turns ON AR 1302.)
(Any other setting specifies a delay of 0 ms, causes a non-fatal error, and turns ON AR 1302.)
4-5SectionPC Setup
67
Word(s)FunctionBit(s)
DM 6648
DM 6649
Peripheral Port Communications Settings
The following settings are effective after transfer to the PC.
If CPU Board Communications Switch SW202 is ON, communications through the peripheral port are governed by the
default settings (all 0) regardless of the settings in DM 6650 through DM 6654. Communications through the peripheral
port are governed by the Programming Console protocol if Communications Switch SW201 is OFF.
DM 6650
DM 6651
00 to 07 Node number (Host Link)
00 to 31 (BCD)
(Any other setting specifies a node number of 00, causes a non-fatal error, and turns ON AR
1302.)
08 to 11 Start code selection for no-protocol communications
0: Disables start code; 1: Enables start code in DM 6649
(Any other setting disables the start code, causes a non-fatal error, and turns ON AR 1302.)
12 to 15 End code selection for no-protocol communications
0: Disables end code; 1: Enables end code in DM 6649; 2: Sets end code of CR, LF.
(Any other setting disables the end code, causes a non-fatal error, and turns ON AR 1302.)
00 to 07 Start code (00 to FF)
(This setting is valid only when bits 8 to 11 of DM 6648 are set to 1.)
08 to 15 When bits 12 to 15 of DM 6648 set to 0:
Sets the number of bytes to receive. (00: 256 bytes; 01 to FF: 1 to 255 bytes)
When bits 12 to 15 of DM 6648 set to 1:
Sets the end code. (00 to FF)
00 to 03 Port settings
00:Standard (1 start bit, 7 data bits, even parity, 2 stop bits, 9,600 bps, Host Link unit number: 0)
01:Settings in DM 6651
(Any other setting specifies standard settings, causes a non-fatal error, and turns ON AR 1302.)
04 to 11 Not used.
12 to 15 Communications mode
0: Host Link or peripheral bus; 1: No-protocol
(Any other setting specifies Host Link, causes a non-fatal error, and turns ON AR 1302.)
(Any other setting specifies standard settings (1 start bit, 7 data bits; even parity, 2 stop bits),
causes a non-fatal error, and turns ON AR 1302.)
4-5SectionPC Setup
68
Word(s)FunctionBit(s)
DM 665200 to 15 Transmission delay (0000 to 9999 BCD sets a delay of 0 to 99,990 ms.)
(Any other setting specifies a delay of 0 ms, causes a non-fatal error, and turns ON AR 1302.)
DM 6653
00 to 07 Node number (Host Link)
00 to 31 (BCD)
(Any other setting specifies a node number of 00, causes a non-fatal error, and turns ON AR
1302.)
08 to 11 Start code selection for no-protocol communications
0: Disables start code; 1: Enables start code in DM 6654
(Any other setting disables the start code, causes a non-fatal error, and turns ON AR 1302.)
12 to 15 End code selection for no-protocol communications
0: Disables end code; 1: Enables end code in DM 6654; 2: Sets end code of CR, LF.
(Any other setting disables the end code, causes a non-fatal error, and turns ON AR 1302.)
DM 6654
00 to 07 Start code (00 to FF)
(This setting is valid only when bits 8 to 11 of DM 6653 are set to 1.)
08 to 15 When bits 12 to 15 of DM 6653 set to 0:
Sets the number of bytes to receive. (00: 256 bytes; 01 to FF: 1 to 255 bytes)
When bits 12 to 15 of DM 6653 set to 1:
Sets the end code. (00 to FF)
Error Log Settings (DM 6655)
The following settings are effective after transfer to the PC.
DM 6655
00 to 03 Style
0: Shift after 7 records have been stored
1: Store only first 7 records (no shifting)
2 to F: Do not store records
04 to 07 Not used.
08 to 11 Cycle time monitor enable
0: Generate a non-fatal error for a cycle time that is too long.
1: Do not generate a non-fatal error.
12 to 15 Low battery error enable
0: Generate a non-fatal error for low battery voltage.
1: Do not generate a non-fatal error.
Low battery error detection is disabled (i.e., set to 1) by default in CPU Boards that do not have a
clock. If the PC Setup is cleared, the setting will changed to 0 and a low battery error will occur.
4-6SectionError Log
4-6Error Log
DM 2000
DM 2021
DM 2022
DM 2023
to
DM 2019
DM 2020
DM 2021
Error log pointer
Error log record 1
(3 words used.)
Error log record 7
(3 words used.)
The error log function registers the error code of any fatal or non-fatal error that
occurs in the PC. The date and time at which the error occurred are registered
along with the error code. The error code is also stored in AR 253.
The error log is stored in DM 2000 through DM 2021. Up to 7 error records can be
stored.
Indicates the number of records stored in the log (0 to 7). A 0 indicates no records.
Each error log record is configured as follows:
158 70
Leading word
Leading word + 1
Leading word + 2
Error classificationError code
MinSec
DayHour
Error classification: 00: Non-fatal
80: Fatal
Each stored in
2 digits BCD.
Note1. An error record with an error code of 00 will be stored in the error log for pow-
er interruptions. Refer to 7-3 Self-diagnostic Functions for tables listing error
codes.
69
2. In CPU Boards without a clock, the time that the error occurred will be set to
all zeroes.
Error Log Storage Methods
The error log storage method is set in the PC Setup (bits 00 to 03 of DM 6655).
Set any of the following methods.
1, 2, 3...1. DM 6655 bits 00 to 03 set to 0:
Stores the most recent 7 error log records and discard older records. This is
achieved by shifting the records as shown below so that the oldest record
(record 0) is lost whenever a new record is generated.
Error log record 1
Error log record 2
Error log record 6
Error log record 7
2. DM 6655 bits 00 to 03 set to 1:
Stores only the first 7 error log records, and ignores any subsequent errors
beyond those 7.
3. DM 6655 bits 00 to 03 set to any value other than 0 or 1:
Disables the log so that no records are stored.
The default setting is the first method. Refer to the preceding page for details on
the error log settings in DM 6655.
Clearing the Error Log
To clear the entire error log, turn ON SR 25214 from a Programming Device. (After the error log has been cleared, SR 25214 will turn OFF again automatically.)
4-6SectionError Log
Lost
All records shifted
New record added
70
SECTION 5
Instruction Set
The CPM2B PCs have large a programming instruction set that allows for easy programming of complicated control processes. This section provides a brief summary of the instruction set.
The following table lists the CPM2B instructions that have fixed function codes.
Each instruction is listed by mnemonic and by instruction name. Use the numbers in the leftmost column as the left digit and the number in the column heading
as the right digit of the function code.
LeftRight digit
digit
0
1
2
3
4
5
6
7
8
9
0123456789
NOP
NO
OPERATION
SFT
SHIFT
REGISTER
CMP
COMPARE
(@) ADD
BCD ADD
(@) STC
SET CARRY
(@) ADB
BINARY ADD
CMPL
DOUBLE
COMPARE
(@) XFER
BLOCK
TRANSFER
(@) DIST
SINGLE
WORD
DISTRIBUTE
---(@) SBS
END
END
KEEP
KEEP
(@) MOV
MOVE
(@) SUB
BCD
SUBTRACT
(@) CLC
CLEAR
CARRY
(@) SBB
BINARY
SUBTRACT
(@) INI
MODE CONTROL
(@) BSET
BLOCK SET
(@) COLL
DATA
COLLECT
SUBROUTINE
ENTRY
IL
INTERLOCK
CNTR
REVERSIBLE
COUNTER
(@) MVN
MOVE NOT
(@) MUL
BCD
MULTIPLY
------------(@) MSG
(@) MLB
BINARY
MULTIPLY
(@) PRV
HIGHSPEED
COUNTER
PV READ
---(@) XCHG
(@) MOVB
MOVE BIT
SBN
SUBROUTINE
DEFINE
ILC
INTERLOCK
CLEAR
DIFU
DIFFERENTIATE UP
(@) BIN
BCD TO
BINARY
(@) DIV
BCD
DIVIDE
(@) DVB
BINARY
DIVIDE
(@) CTBL
COMPARISON TABLE
LOAD
DATA
EXCHANGE
(@) MOVD
MOVE DIGIT
RET
SUBROUTINE
RETURN
JMP
JUMP
DIFD
DIFFERENTIATE
DOWN
(@) BCD
BINARY TO
BCD
(@) ANDW
LOGICAL
AND
(@) ADDL
DOUBLE
BCD ADD
(@) SPED
SPEED OUTPUT
(@) SLD
ONE DIGIT
SHIFT LEFT
(@) SFTR
REVERSIBLE SHIFT
REGISTER
---------(@) IORF
JME
JUMP END
TIMH
HIGHSPEED
TIMER
(@) ASL
SHIFT LEFT
(@) ORW
LOGICAL OR
(@) SUBL
DOUBLE
BCD
SUBTRACT
(@) PULS
SET PULSES
(@) SRD
ONE DIGIT
SHIFT
RIGHT
(@) TCMP
TABLE
COMPARE
(@) FAL
FAILURE
ALARM AND
RESET
(@) WSFT
WORD
SHIFT
(@) ASR
SHIFT
RIGHT
(@) XORW
EXCLUSIVE
OR
MESSAGE
DISPLAY
(@) MULL
DOUBLE
BCD
MULTIPLY
(@) SCL
SCALING
(@) MLPX
4-TO-16
DECODER
(@) ASC
ASCII
CONVERT
FALS
SEVERE
FAILURE
ALARM
(@) ASFT
ASYNCHRONOUS SHIFT
REGISTER
(@) ROL
ROTATE
LEFT
(@) XNRW
EXCLUSIVE
NOR
(@) RXD
RECEIVE
(@) DIVL
DOUBLE
BCD
DIVIDE
(@) BCNT
BIT COUNTER
(@) DMPX
16-TO-4
ENCODER
------(@) INT
I/O
REFRESH
STEP
STEP
DEFINE
------
(@) ROR
ROTATE
RIGHT
(@) INC
INCREMENT
(@) TXD
TRANSMIT
(@) BINL
DOUBLE
BCD-TODOUBLE
BINARY
(@) BCMP
BLOCK
COMPARE
(@) SDEC
7-SEGMENT
DECODER
---(@) MCRO
SNXT
STEP START
(@) COM
COMPLEMENT
(@) DEC
DECREMENT
---
(@) BCDL
DOUBLE
BINARY-TODOUBLE
BCD
(@) STIM
INTERVAL
TIMER
---
INTERRUPT
CONTROL
MACRO
5-1SectionCPM2B Function Codes
Note1. The shaded areas are function codes to which expansion instructions are
allocated by default or to which the user can allocate expansion instructions.
Refer to 5-3 Expansion Instructions for more details.
2. Instruction execution times are the same as those for the CPM2A and
CPM2C. Refer to the Programming Manual (W353) for details.
72
5-2Alphabetic List by Mnemonic
Dashes (“––”) in the Code column indicate expansion instructions, which do not
have fixed function codes. “None” indicates instructions for which function
codes are not used.
MnemonicCodeWordsName
ACC (@)––4ACCELERATION CONTROL
ADB (@)504BINARY ADD
ADD (@)304BCD ADD
ADDL (@)544DOUBLE BCD ADD
ANDNone1AND
AND LDNone1AND LOAD
AND NOTNone1AND NOT
ANDW (@) 344LOGICAL AND
ASC (@)864ASCII CONVERT
ASFT(@)174ASYNCHRONOUS SHIFT REGISTER
ASL (@)252ARITHMETIC SHIFT LEFT
ASR (@)262ARITHMETIC SHIFT RIGHT
AVG––4AVERAGE VALUE
BCD (@)243BINARY TO BCD
BCDL (@)593DOUBLE BINARY-TO-DOUBLE BCD
BCMP (@)684BLOCK COMPARE
BCNT (@)674BIT COUNTER
BIN (@)233BCD-TO-BINARY
BINL (@)583DOUBLE BCD-TO-DOUBLE BINARY
BSET (@)714BLOCK SET
CLC (@)411CLEAR CARRY
CMP203COMPARE
CMPL604DOUBLE COMPARE
CNTNone2COUNTER
CNTR123REVERSIBLE COUNTER
COLL (@)814DATA COLLECT
COM (@)292COMPLEMENT
CTBL(@)634COMPARISON TABLE LOAD
DEC (@)392BCD DECREMENT
DIFD142DIFFERENTIATE DOWN
DIFU132DIFFERENTIATE UP
DIST (@)804SINGLE WORD DISTRIBUTE
DIV (@)334BCD DIVIDE
DIVL (@)574DOUBLE BCD DIVIDE
DMPX (@)77416-TO-4 ENCODER
DVB (@)534BINARY DIVIDE
END011END
FAL (@)062FAILURE ALARM AND RESET
FALS072SEVERE FAILURE ALARM
FCS (@)––4FCS CALCULATE
HEX (@)––4ASCII-TO-HEXADECIMAL
HMS––4SECONDS TO HOURS
IL021INTERLOCK
ILC031INTERLOCK CLEAR
5-2SectionAlphabetic List by Mnemonic
73
MnemonicCodeWordsName
INC (@)382INCREMENT
INI (@)614MODE CONTROL
INT (@)894INTERRUPT CONTROL
IORF (@)973I/O REFRESH
JME052JUMP END
JMP042JUMP
KEEP112KEEP
LDNone1LOAD
LD NOTNone1LOAD NOT
MAX (@)––4FIND MAXIMUM
MCRO (@) 994MACRO
MIN (@)––4FIND MINIMUM
MLB (@)524BINARY MULTIPLY
MLPX (@)7644-TO-16 DECODER
MOV (@)213MOVE
MOVB (@) 824MOVE BIT
MOVD (@) 834MOVE DIGIT
MSG (@)462MESSAGE
MUL (@)324BCD MULTIPLY
MULL (@)564DOUBLE BCD MULTIPLY
MVN (@)223MOVE NOT
NEG (@)––42’S COMPLEMENT
NOP001NO OPERATION
ORNone1OR
OR LDNone1OR LOAD
OR NOTNone1OR NOT
ORW (@)354LOGICAL OR
OUTNone2OUTPUT
OUT NOTNone2OUTPUT NOT
PID––4PID CONTROL
PRV (@)624HIGH-SPEED COUNTER PV READ
PULS (@)654SET PULSES
PWM (@)––4PULSE WITH VARIABLE DUTY RATIO
RET931SUBROUTINE RETURN
ROL (@)272ROTATE LEFT
ROR (@)282ROTATE RIGHT
RSETNone2RESET
RXD (@)474RECEIVE
SBB (@)514BINARY SUBTRACT
SBN922SUBROUTINE DEFINE
SBS (@)912SUBROUTINE ENTRY
SCL (@)664SCALING
SCL2 (@)––4SIGNED BINARY TO BCD SCALING
SCL3 (@)––4BCD TO SIGNED BINARY SCALING
SDEC (@)7847-SEGMENT DECODER
SEC––4HOURS TO SECONDS
SETNone2SET
SFT103SHIFT REGISTER
SFTR (@)844REVERSIBLE SHIFT REGISTER
5-2SectionAlphabetic List by Mnemonic
74
MnemonicCodeWordsName
SLD (@)743ONE DIGIT SHIFT LEFT
SNXT092STEP START
SPED (@)644SPEED OUTPUT
SRCH (@)––4DATA SEARCH
SRD (@)753ONE DIGIT SHIFT RIGHT
STC (@)401SET CARRY
STEP082STEP DEFINE
STIM (@)694INTERVAL TIMER
STUP––3CHANGE RS-232C SETUP
SUB (@)314BCD SUBTRACT
SUBL (@)554DOUBLE BCD SUBTRACT
SUM (@)––4SUM
SYNC (@)––4SYNCHRONIZED PULSE CONTROL
TCMP (@)854TABLE COMPARE
TIMNone2TIMER
TIMH153HIGH-SPEED TIMER
TIML––4LONG TIMER
TMHH––4VERY HIGH-SPEED TIMER
TXD (@)484TRANSMIT
WSFT (@)163WORD SHIFT
XCHG (@)733DATA EXCHANGE
XFER (@)704BLOCK TRANSFER
XNRW (@) 374EXCLUSIVE NOR
XORW (@) 364EXCLUSIVE OR
ZCP––4AREA RANGE COMPARE
ZCPL––4DOUBLE AREA RANGE COMPARE
5-2SectionAlphabetic List by Mnemonic
75
5-3Expansion Instructions
A set of expansion instructions is provided to aid in special programming needs.
Function codes can be assigned to up to 18 of the expansion instructions to enable using them in programs. This allows the user to pick the instructions needed
by each program to more effectively use the function codes required to input
instructions.
The mnemonics of expansion instructions are followed by “(––)” as the function
code to indicate that they must be assigned function codes by the user in the
instructions table before they can be used in programming (unless they are used
under their default settings).
Refer to the 6-2-5 Assigning Expansion Instruction Function Codes for a description of the Programming Console operations used to change expansion instruction allocations.
Refer to the SYSMAC Support Software Operation Manuals: C-series PCs
(W248), the SYSMAC-CPT Support Software User Manual (W333), or the
WS02-CXPC1-ECX-Programmer User Manual (W361) for a description of the
corresponding Support Software operations.
This section provides information on connecting and using a Programming Console.
6-1-1Compatible Programming Consoles
There are two Programming Consoles that can be used with the CPM2B: The
CQM1-PRO01-E and the C200H-PRO27-E. The key functions for these Programming Consoles are identical.
Press and hold the Shift Key to input a letter shown in the upper-left corner of the
key or the upper function of a key that has two functions. For example, the
CQM1-PRO01-E’s AR/HR Key can specify either the AR or HR Area; press and
release the Shift Key and then press the AR/HR Key to specify the AR Area.
CQM1-PRO01-E
6-1SectionUsing a Programming Console
C200H-PRO27-E
Attached Connecting
Cable (2 m)
LCD display
Mode switch
Operation keys
LCD display
Mode switch
Operation keys
78
Cassette recorded jack
(Cannot be used with the CPM2B).
Connecting Cables
C200H-CN222 (2 m)
C200H-CN422 (4 m)
6-1SectionUsing a Programming Console
Different Keys
Mode Switch
The following keys are labeled differently on the CQM1-PRO01-E and the
C200H-PRO27-E, but the operation of the keys in each pair is identical.
CQM1-PRO01-E KeysC200H-PRO27-E Keys
AR
HR
SET
RESET
HR
PLAY
SET
REC
RESET
Note To specify the AR area, use SHIFT and HR Keys for the C200H-PRO27-E and
use SHIFT and AR/HR Keys for the CQM1-PRO01-E.
A shift symbol will be displayed in the upper-right corner of the screen when the
Shift Key is pressed. The shift input can be cleared by pressing the Shift Key
again.
SHIFT
^
Shift input
symbol
The mode switch controls the CPM2B’s operating mode. The key can be removed when the switch is set to RUN or MONITOR but it cannot be removed
when the switch is set to PROGRAM.
Contrast Control
Buzzer Volume
The display contrast can be adjusted with the control on the right side of the Programming Console.
Contrast control
The C200H-PRO27-E’s buzzer volume can be adjusted with the lever on the
right side of the Programming Console. The CQM1-PRO01-E’s buzzer volume
cannot be adjusted.
Low volume
High volume
C200H-PRO27-E
Note The buzzer volume can be turned on and off with a key operation. See 6-2-4
Buzzer Operation for details.
79
6-1-2Changing the CPM2B’s Mode with the Mode Switch
Once the Programming Console has been connected, its mode switch can be
used to change the CPM2B’s operating mode. The mode display (<PROGRAM>, <MONITOR>, or <RUN>) will appear on the Programming Console
screen.
• No key operations can be performed while the mode display is displayed on
the Programming Console screen. Press CLR to clear the display so that key
operations can be performed.
• If the SHIFT Key is pressed while the mode switch is turned, the original display will remain on the Programming Console’s screen and the mode display
won’t appear.
• The CPM2B will enter RUN mode automatically if a Programming Console
isn’t connected when the CPM2B is turned on.
6-1SectionUsing a Programming Console
MONITOR
RUN
Mode display
PROGRAMRUN
<PROGRAM> BZ
OperationOperation
Operating Modes
Initial display
PROGRAM Mode
The CPM2B program isn’t executed in PROGRAM mode. Use PROGRAM
mode to create and edit the program, clear memory, or check the program for
errors, or check output wiring.
MONITOR Mode
The CPM2B program is executed in MONITOR mode and I/O is processed just
as it is in RUN mode. Use MONITOR mode to test system operations, such as
monitoring CPM2B operating status, force-setting and resetting I/O bits, changing the SV/PV of timers and counters, changing word data, and online editing.
RUN Mode
This is the CPM2B’s normal operating mode. The CPM2B’s operating status can
be monitored from a Programming Device, but bits can’t be force-set/force-reset
and the SV/PV of timers and counters can’t be changed.
MONITOR
PROGRAM
MONITOR
<MONITOR> BZ<RUN> BZ
CLRSHIFTCLR
00000
PROGRAMRUN
80
CautionCheck the system thoroughly before changing the operating mode of the PC to
!
prevent any accidents that might occur when the program is first started.
CautionNever change the mode while pressing any of the keys.
!
6-1SectionUsing a Programming Console
Startup Operating Mode
The operating mode of the CPM2B 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)
00xxThe startup mode
01xxThe startup mode is the same as the operating mode before
0200PROGRAM mode
0201MONITOR mode
0202RUN mode
Programming
Console connected
determined by the
mode switch setting.
power was interrupted.
Note The default setting is 00xx. 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.
6-1-3Connecting the Programming Console
Programming Console not
connected
RUN mode if no Programming Device
is connected. PROGRAM mode if
another Programming Device is
connected.
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
Connect the Programming Console’s connecting cable to the CPM2B’s periph-
eral port, as shown below.
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
Note1. Always turn OFF SW 201 before connecting the Programming Console.
2. Only the peripheral port connector can be used when a CPM2C-CN111
Connecting Cable is connected.
81
6-1SectionUsing a Programming Console
Panel InstallationThe C200H-PRO27-E Programming Console can be installed in a control panel
as shown in the following diagram. (The C200H-ATT01 Mounting Bracket is sold
separately.)
Mounting Bracket
Two screws
Panel thickness: 1.0 to 3.2 mm
Mounting hole dimensions
(DIN43700 standards)
+1.1
186
–0
+0.8
92
–0
Allow at least 80 mm for the cable connector above the Programming Console.
37
15
At least 80 mm is required.
Either connector may
be used.
6-1-4Preparation for Operation
This section describes the procedures required to begin Programming Console
operation when using the Programming Console for the first time.
CautionAlways confirm that the Programming Console is in PROGRAM mode when
!
turning ON the PC with a Programming Console connected unless another
mode is desired for a specific purpose. If the Programming Console is in RUN
mode when PC power is turned ON, any program in Program Memory will be
executed, possibly causing a PC-controlled system to begin operation.
The following sequence of operations must be performed before beginning initial program input.
1, 2, 3...1. Be sure that the PC is OFF.
2. Connect the Programming Console to the CPU Board’s peripheral port. See
6-1-3 Connecting the Programming Console for details.
(The CPU Board’s Communications Switch setting has no effect on communications with the Programming Console.)
3. Set the mode switch to PROGRAM mode.
4. Turn ON the PC.
5. Enter the password. See 6-1-5 Entering the Password for details.
6. Clear (All Clear) the PC’s memory. See 6-2-2 Clearing Memory for details.
7. Read and clear all errors and messages. See 6-2-3 Reading/Clearing ErrorMessages for details.
About 70 mm is required.
82
8. Start programming.
6-1-5Entering the Password
To gain access to the PC’s programming functions, you must first enter the pass-
word. The password prevents unauthorized access to the program.
The PC prompts you for a password when PC power is turned on or, if PC power
is already on, after the Programming Console has been connected to the PC. To
gain access to the system when the “Password!” message appears, press CLR
and then MONTR. Then press CLR to clear the display.
If the Programming Console is connected to the PC when PC power is already
on, the first display below will indicate the mode the PC was in before the Programming Console was connected. Ensure that the PC is in PROGRAM modebefore you enter the password. When the password is entered, the PC will
shift to the mode set on the mode switch, causing PC operation to begin if the
mode is set to RUN or MONITOR. The mode can be changed to RUN or MONITOR with the mode switch after entering the password.
6-1SectionUsing a Programming Console
<PROGRAM>
PASSWORD!
<PROGRAM> BZ
Indicates the mode set by the mode selector switch.
83
6-2Programming Console Operations
6-2-1Overview
The following table lists the programming and monitoring operations that can be
performed from a Programming Console. Refer to the rest of this section for
details on operational procedures.
NameFunctionPage
Clearing memoryClears all or part of the Program Memory and any data areas that are not
Reading/clearing error
messages
Buzzer operationTurns on and off the buzzer that sounds when Programming Console keys
Assigning expansion
instruction function codes
Setting a program memory
address
Reading a program memory
address
Instruction searchFinds occurrences of the specified instruction in the program.91
Bit operand searchFinds occurrences of the specified operand bit in the program.92
Inserting and deleting
instructions
Entering or editing programsOverwrites the contents of the current Program Memory to either input a
Checking the programChecks for programming errors and displays the program address and
Bit, digit, word monitorMonitors the status of up to 16 bits and words, although only 3 can be
Multiple address monitorMonitors the status of up to 6 bits and words simultaneously.96
Differentiation monitorMonitors the up or down differentiation status of a particular bit.96
Binary monitorMonitors the ON/OFF status of any word’s 16 bits.97
Three-word monitorMonitors the status of three consecutive words.98
Signed decimal monitorConverts the contents of the specified word from signed hexadecimal
Unsigned decimal monitorConverts hexadecimal data in a word to unsigned decimal for display.99
3-word data modificationChanges the contents of one or more of the 3 consecutive words
Changing timer, counter SV 1Changes the SV of a timer or counter.100
Changing timer, counter SV 2Makes fine adjustment changes to the SV of the timer or counter.100
Hexadecimal, BCD data
modification
Binary data modificationChanges the status of a word’s bits when the word is being monitored.101
Signed decimal data
modification
Unsigned decimal data
modification
Force set/resetForces bits ON (force set) or OFF (force reset.)104
Clear force set/resetRestores the status of all bits which have been force set of reset.104
Hex-ASCII display changeConverts word data displays back and forth between 4-digit hexadecimal
read-only, as well as the contents of the Programming Console’s memory.
Displays and clears error messages and displays MESSAGE instruction
messages.
are pressed.
Reads or changes the function codes assigned to expansion instructions87
Sets the specified program memory address when reading, writing,
inserting and deleting programs.
Reads the contents of the Program Memory. Displays the status of the
currently displayed bit in PROGRAM and MONITOR modes.
Inserts or deletes instructions from the program.93
program for the first time or to change a program that already exists.
error when errors are found.
shown on the display at one time.
(two’s complement format) to signed decimal for display.
displayed in the 3-Word Monitor operation.
Changes the BCD or hexadecimal value of a word being monitored.101
Changes the decimal value of a word being monitored as signed decimal
data, within a range of –32,768 to 32,767. The contents of the specified
word are converted automatically to signed hexadecimal (two’s
complement format.)
Changes the decimal value of a word being monitored as unsigned
decimal data, within a range of 0 to 65,535. A change into hexadecimal
data is made automatically.
data and ASCII.
6-2SectionProgramming Console Operations
85
86
86
88
88
88
94
94
98
99
102
103
105
84
6-2SectionProgramming Console Operations
NamePageFunction
Displaying the cycle timeDisplays the current average cycle time (scan time.)105
Reading and setting the clock Reads or sets the internal clock.106
6-2-2Clearing Memory
This operation is used to clear all or part of the Program Memory and data areas,
as well as the contents of the Programming Console’s memory. This operation is
possible in PROGRAM mode only.
RUNMONITORPROGRAM
NoNoOK
Before beginning to program for the first time or when installing a new program,
clear all areas.
All ClearThe following procedure is used to clear memory completely, including the pro-
gram, all data areas, counter PVs, Data Memory , and the PC Setup (DM 6600 to
DM 6655).
1, 2, 3...1. Bring up the initial display by pressing the CLR Key repeatedly.
2. Press the SET, NOT, and then the RESET Key to begin the operation.
SET
NOT
00000MEMORY CLR?
RESET
HR CNT DM
3. Press the MONTR Key to clear memory completely.
00000MEMORY CLR
MONTR
END HR CNT DM
CautionThe PC Setup (DM 6600 through DM 6655) will be cleared when this operation is
!
performed.
Partial ClearIt is possible to retain the data in specified areas or part of the Program Memory.
To retain the data in the HR, TC, or DM Areas, press the appropriate key after
pressing SET, NOT, and RESET. Any data area that still appears on the display
will be cleared when the MONTR Key is pressed.
The HR Key is used to specify both the AR and HR Areas, the CNT Key is used to
specify the entire timer/counter area, and the DM Key is used to specify the DM
Area.
It is also possible to retain a portion of the Program Memory from the first
memory address to a specified address. After designating the data areas to
be retained, specify the first Program Memory address to be cleared. For
example, input 030 to leave addresses 000 to 029 untouched, but to clear
addresses from 030 to the end of Program Memory.
As an example, follow the procedure below to retain the timer/counter area and
Program Memory addresses 000 through 122:
1, 2, 3...1. Press the CLR Key to bring up the initial display.
2. Press the SET, NOT, and then the RESET Key to begin the operation.
3. Press the CNT Key to remove the timer/counter area from the data areas
shown on the display. (Counter PVs will not be cleared.)
00000MEMORY CLR?
CNT
HR DM
4. Press 123 to specify 123 as the starting program address.
B
C
1
2D3
00123MEMORY CLR?
HR DM
85
5. Press the MONTR Key to clear the specified regions of memory.
00000MEMORY CLR
MONTR
END HR DM
6-2-3Reading/Clearing Error Messages
This operation is used to display and clear error messages. It is possible to display and clear non-fatal errors and MESSAGE instruction messages in any
mode, but fatal errors can be cleared in PROGRAM mode only.
RUNMONITORPROGRAM
OKOKOK
Before inputting a new program, any error messages recorded in memory
should be cleared. It is assumed here that the causes of any of the errors for
which error messages appear have already been taken care of. If the buzzer
sounds when an attempt is made to clear an error message, eliminate the
cause of the error, and then clear the error message. (Refer to Section 7 TestRuns and Error Processing for troubleshooting information.)
Key SequenceFollow the procedure below to display and clear messages.
1, 2, 3...1. Press the CLR Key to bring up the initial display.
2. Press the FUN and then the MONTR Key to begin the operation. If there are
no messages, the following display will appear:
6-2SectionProgramming Console Operations
6-2-4Buzzer Operation
This operation is used to turn on and off the buzzer that sounds when Programming Console keys are pressed. This buzzer will also sound whenever an error
occurs during PC operation. Buzzer operation for errors is not affected by this
setting.
This operation is possible in any mode.
ERR/MSG CHK OK
MONTR
FUN
If there are messages, the most serious message will be displayed when the
MONTR Key is pressed. Pressing MONTR again will clear the present message and display the next most serious error message. Continue pressing
MONTR until all messages have been cleared. These are some examples
of error messages:
A memory error:
MEMORY ERR
MONTR
A system error:
SYS FAIL FAL01
MONTR
A message (displayed with MSG(46)):
MATERIAL USED UP
MONTR
All messages cleared:
ERR/MSG CHK OK
MONTR
86
RUNMONITORPROGRAM
OKOKOK
Key SequenceFollow the procedure below to turn the key-input buzzer on and off.
1, 2, 3...1. Press the CLR, SHIFT, and then the CLR Key to bring up the mode display.
In this case the PC is in PROGRAM mode and the buzzer is ON.
6-2SectionProgramming Console Operations
CLRSHIFT CLR
<MONITOR> BZ
2. Press the SHIFT and then the 1 Key to turn off the buzzer.
B
SHIFT
<MONITOR>
1
The buzzer will not sound
when “BZ” is not displayed.
3. Press the SHIFT and then the 1 Key again to turn the buzzer back ON.
SHIFT
1
<MONITOR> BZ
B
6-2-5Assigning Expansion Instruction Function Codes
This operation is used to display or change the expansion instructions assigned
to expansion instruction function codes. The assignments can be displayed in
any mode, but can be changed in PROGRAM mode only.
OperationRUNMONITORPROGRAM
Read assignmentOKOKOK
Change assignmentNoNoOK
Assign expansion instruction function codes before inputting the program.
The CPM2B will not operate properly if expansion instructions aren’t assigned correctly. An expansion instruction can be assigned to one function
code only.
The PC Setup must be set for user-defined expansion instruction assignments. Set bits 8 to 11 of DM 6602 to 1 and turn the PC’s power off and then
on again to enable the new setting.
There are tables in Section 5 Instruction Set showing the default function
code assignments in the CPM2B.
1, 2, 3...1. Press the CLR Key to bring up the initial display.
2. Press the EXT Key to display the assignment for the first function code (17).
INST TBL READ
EXT
FUN017:ASFT
3. Press the Up and Down Arrow Keys to scroll through the expansion instruction function codes.
INST TBL READ
↓
FUN018:FUN
4. Press the CHG Key to assign a different expansion instruction to the selected function code.
INST TBL CHG?
CHG
FUN018:FUN ~????
5. Press the Up and Down Arrow Keys to scroll through the expansion instructions that can be assigned to the selected function code.
INST TBL CHG?
↓
FUN018:FUN ~HEX
87
6. Press the WRITE Key to assign the displayed instruction to the function
code.
INST TBL READ
WRITE
FUN018:HEX
6-2-6Setting and Reading a Program Memory Address and Monitoring
I/O Bit Status
This operation is used to display the specified program memory address and is
possible in any mode. In the RUN or MONIT OR mode, the I/O bit status of bits in
the program will be displayed.
RUNMONITORPROGRAM
OKOKOK
When inputting a program for the first time, it is generally written to Program
Memory starting from address 000. Because this address appears when the
display is cleared, it is not necessary to specify it.
When inputting a program starting from other than 000 or to read or modify a
program that already exists in memory, the desired address must be designated.
6-2SectionProgramming Console Operations
1, 2, 3...1. Press the CLR Key to bring up the initial display.
2. Input the desired address. It is not necessary to input leading zeroes.
C
A
2
0A0
00200
3. Press the Down Arrow Key.
00200READ OFF
↓
LD 00000
Pressing the MONTR Key will change to the I/O monitor display. Bits can be
force-set or force-reset from the I/O monitor display . Press the CLR Key to
return to I/O bit status monitoring of the initial address.
Note The ON/OFF status of any displayed bit will be shown if the PC is in
RUN or MONITOR mode.
4. Press the Up and Down Arrow Keys to scroll through the program.
00201READ ON
↓
AND 00001
00200READ OFF
↑
LD 00000
In the RUN or MONITOR
mode, ON/OFF status of
the bit will be displayed.
6-2-7Entering or Editing Programs
This operation is used enter or edit programs. It is possible in PROGRAM mode
only.
RUNMONITORPROGRAM
NoNoOK
The same procedure is used to either input a program for the first time or to
change a program that already exists. In either case, the current contents of
Program Memory is overwritten.
88
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.