Download as pdf or txt
Download as pdf or txt
You are on page 1of 152

Cat.No.

W329–E1–2

SYSMAC
CPM1
Programmable Controllers

OPERATION MANUAL
CPM1 Programmable Controllers
Operation Manual
Revised April 1998
Notice:
OMRON products are manufactured for use according to proper procedures by a qualified operator
and only for the purposes described in this manual.
The following conventions are used to indicate and classify precautions in this manual. Always heed
the information provided with them. Failure to heed precautions can result in injury to people or dam-
age to the product.

! DANGER Indicates an imminently hazardous situation which, if not avoided, will result in death or
serious injury.

! WARNING Indicates a potentially hazardous situation which, if not avoided, could result in death or
serious injury.

! Caution Indicates a potentially hazardous situation which, if not avoided, may result in minor or
moderate injury, or property damage.

OMRON Product References


All OMRON products are capitalized in this manual. The word “Unit” is also capitalized when it refers
to an OMRON product, regardless of whether or not it appears in the proper name of the product.
The abbreviation “Ch,” which appears in some displays and on some OMRON products, often means
“word” and is abbreviated “Wd” in documentation in this sense.
The abbreviation “PC” means Programmable Controller and is not used as an abbreviation for any-
thing else.

Visual Aids
The following headings appear in the left column of the manual to help you locate different types of
information.
Note Indicates information of particular interest for efficient and convenient operation
of the product.

1, 2, 3... 1. Indicates lists of one sort or another, such as procedures, checklists, etc.

 OMRON, 1997
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 permis-
sion 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 informa-
tion contained in this publication.

v
TABLE OF CONTENTS
PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
5 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
SECTION 1
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1-1 CPM1 Features and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-2 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1-3 Revised Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
SECTION 2
Unit Specifications and Components . . . . . . . . . . . . . . . . 15
2-1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2-2 Unit Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
SECTION 3
Installation and Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3-1 Design Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3-2 Selecting an Installation Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3-3 Installing the CPM1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3-4 Wiring and Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
SECTION 4
Using Peripheral Devices . . . . . . . . . . . . . . . . . . . . . . . . . . 47
4-1 Support Software Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4-2 Using a Programming Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4-3 Programming Console Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
4-4 Programming Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
SECTION 5
Test Runs and Error Processing . . . . . . . . . . . . . . . . . . . . 85
5-1 Initial System Checks and Test Run Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
5-2 The CPM1 Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
5-3 Self-diagnosis Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
5-4 Programming Console Operation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
5-5 Programming Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
5-6 Troubleshooting Flowcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
5-7 Maintenance Inspections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
5-8 Handling Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
SECTION 6
Analog I/O Unit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
6-1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
6-2 Nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6-3 Connection and I/O Area Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6-4 I/O Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
6-5 I/O Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Appendices
A Standard Models . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
B Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115

vii
TABLE OF CONTENTS
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 121
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

viii
About this Manual:
The CPM1 is a compact, high-speed Programmable Controller (PC) designed for control operations in
systems requiring from 10 to 50 I/O points per PC. There are two manuals describing the setup and opera-
tion of the CPM1: the CPM1 Operation Manual (this manual) and the CQM1/CPM1/CPM1A/SRM1 Pro-
gramming Manual.
This manual describes the system configuration and installation of the CPM1 and provides a basic
explanation of operating procedures for the Programming Consoles and introduces the capabilities of the
SYSMAC Support Software (SSS). Read this manual first to acquaint yourself with the CPM1.
The CQM1/CPM1/CPM1A/SRM1 Programming Manual (W228) provides detailed descriptions of the
CPM1’s programming functions. The SYSMAC Support Software Operation Manual: C-series PCs pro-
vides descriptions of SSS operations for the CPM1 and C-series PCs.
Please read this manual carefully and be sure you understand the information provide before attempting
to install and operate the CPM1.

Section 1 gives a brief overview of the steps involved in developing of a CPM1 System, describes the
possible system configurations, and describes the CPM1’s special features and functions.
Section 2 provides the technical specifications of the Units that go together to create a CPM1 PC and
describes the main components of the Units.
Section 3 describes how to install and wire a CPM1 PC.
Section 4 describes SSS capabilities, how to connect the Programming Console, and how to perform the
various Programming Console operations.
Section 5 describes how to perform a test run and how to diagnose and correct the hardware and soft-
ware errors that can occur during PC operation.
Section 6 describes the Analog I/O Unit that can be used as part of a CPM1 PC.
Appendix A provides tables of CPM1 Units and related products.
Appendix B provides the dimensions of CPM1 Units.

! WARNING Failure to read and understand the information provided in this manual may result in
personal injury or death, damage to the product, or product failure. Please read each
section in its entirety and be sure you understand the information provided in the section
and related sections before attempting any of the procedures or operations given.

ix
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 PC. You must read
this section and understand the information contained before attempting to set up or operate a PC system.

1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii


2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
4 Operating Environment Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xii
5 Application Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii

xi
Application Precautions Section 5

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

2 General Precautions
The user must operate the product according to the performance specifications
described in the operation manuals.
Before using the product under conditions which are not described in the manual
or applying the product to nuclear control systems, railroad systems, aviation
systems, vehicles, combustion systems, medical equipment, amusement
machines, safety equipment, and other systems, machines, and equipment that
may have a serious influence on lives and property if used improperly, consult
your OMRON representative.
Make sure that the ratings and performance characteristics of the product are
sufficient for the systems, machines, and equipment, and be sure to provide the
systems, machines, and equipment with double safety mechanisms.
This manual provides information for programming and operating OMRON PCs.
Be sure to read this manual before attempting to use the software and keep this
manual close at hand for reference during operation.

! 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 abovementioned
applications.

3 Safety Precautions
! WARNING Never attempt to disassemble any Units while power is being supplied. Doing so
may result in serious electrical shock or electrocution.

! WARNING Never touch any of the terminals while power is being supplied. Doing so may
result in serious electrical shock or electrocution.

4 Operating Environment Precautions


Do not operate the control system in the following places.
• Locations subject to direct sunlight.
• Locations subject to temperatures or humidity outside the range specified in
the specifications.
• Locations subject to condensation as the result of severe changes in tempera-
ture.
• Locations subject to corrosive or flammable gases.
• Locations subject to dust (especially iron dust) or salts.
• Locations subject to shock or vibration.
• Locations subject to exposure to water, oil, or chemicals.

xii
Application Precautions Section 5

• Take appropriate and sufficient countermeasures when installing systems in


the following locations.
• Locations subject to static electricity or other forms of noise.
• Locations subject to strong electromagnetic fields.
• Locations subject to possible exposure to radioactivity.
• Locations close to power supplies.

! Caution The operating environment of the 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 installa-
tion and remains within the specified conditions during the life of the system.

5 Application Precautions
Observe the following precautions when using the PC.

! WARNING Failure to abide by the following precautions could lead to serious or possibly
fatal injury. Always heed these precautions.

• Always ground the system to 100 Ω or less when installing the system to pro-
tect against electrical shock.
• Always turn off the power supply to the PC before attempting any of the follow-
ing. Performing any of the following with the power supply turned on may lead
to electrical shock:
• Mounting or removing any Units.
• Assembling any Unit.
• Connecting or disconnecting any cables or wiring.

! Caution Execute online edit only after confirming that no adverse effects will be caused
by extending the cycle time. Otherwise, the input signals may not be readable.

! Caution Tighten the screws on the terminal block of the AC Power Supply Unit to the
torque specified in the manuals. Loose screws may result in burning or malfunc-
tion.

! Caution Always clear memory before beginning to program the CPM1. Although
memory is cleared before the CPU Unit is shipped (except for bits with specific
functions), AR 1314, which turns ON when the internal capacitor cannot back up
memory, may have turned ON during shipment.

! Caution If the CPM1 will be turned off for periods exceeding the data backup period of the
internal capacitor, design the system so that it will not be influenced if data in the
DM, HR, and CNT areas is cleared when power is turned off.

! Caution Either switch the CPM1 to RUN or MONITOR mode, or turn off and on power to
the CPM1 after changing from a Programming Device any data that is backed up
in flash memory. This data includes the user program, read-only DM area (DM
6144 to DM 6599), and the PC Setup (DM 6600 to DM 6655).

xiii
Application Precautions Section 5

• The user program and memory area data in the CPM1 are backed up either by
an internal capacitor or in flash memory as shown in the following table.
Backup method Data
Internal capacitor Read/write DM area (DM 0000 to DM 0999, DM 1022, and
DM 1023)
Error log area (DM 1000 to DM 1021)
HR area (HR 00 to HR 19)
Counter area (CNT 000 to CNT 127)
Flash memory User program
Read-only DM area (DM 6144 to DM 6599)
PC Setup (DM 6600 to DM 6655)

Note 1. The IR, TR, LR, and timer areas are not normally backed up when power is
turned off and all contents will be cleared the next time power is turned on.
(The PC Setup setting in DM 6601 can be used to back up this data. Refer to
details on the PC Setup later in this manual for details.)
2. The bits in the AR and SR areas have special functions and are set accord-
ing to these functions when power is turned on.
• The capacitor backup time depends on the ambient temperature, as shown in
the following graph. The backup time, however, assumes that the capacitor is
fully charged, which requires that power be supplied to the CPU Unit continu-
ously for at least 15 minutes.
Backup time (days)

20

10
7

1
25 40 80
Ambient temperature (C)

If the power remains off for a period exceeding the data backup period,
AR 1314 will turn ON to indicate that the capacitor can no longer back up data
and the data backed up by the capacitor will be cleared. AR 1314 will remain
ON unless it is turned OFF using I/O monitor operations, using memory clear
operations, or from the user program.
If desired, the PC Setup setting in DM 6604 can be set to create a fatal error
and thus stop the system when AR 1314 goes ON.
• The data stored in flash memory will not be lost even if power remains off for a
period exceeding the data backup period, because the data stored in flash
memory will be read to the CPU Unit when the CPM1 is turned on.
• If the power is turned off without changing the mode from PROGRAM mode to
RUN or MONITOR mode after having made changes in the data that is backed
up in flash memory, the changes will not be written to flash memory. If the
power is then left off for more than 20 days (at 25C), the changes (i.e., the
contents of the RAM) will be erased and the data values will become unde-
fined.

xiv
Application Precautions Section 5

! Caution Failure to abide by the following precautions could lead to faulty operation or the
PC or the system or could damage the PC or PC Units. Always heed these pre-
cautions.

• Use the Units only with the power supplies and voltages specified in the opera-
tion manuals.
• Take appropriate measures to ensure that the specified power with the rated
voltage and frequency is supplied, particularly in places where the power sup-
ply is unstable.
• Provide circuit breakers and other safety measures to provide protection
against shorts in external wiring.
• Do not apply voltages to input sections in excess of the rated input voltage.
• Do not apply voltages or connect loads to output sections in excess of the max-
imum switching capacity.
• Always disconnect the LG terminal when performing withstand voltage tests.
• Always connect to a class-3 ground (to 100 Ω or less) when installing the Units.
• Always turn the power supply to the PC off before attempting any of the follow-
ing:
• Mounting or dismounting Expansion I/O Units, CPU Units, or any other
Units.
• Assembling the Units.
• Connecting or wiring the cables.
• Connecting or disconnecting the connectors.
• Do not attempt to take any Units apart, to repair any Units, or to modify any
Units in any way.
• Be sure that all the mounting screws, terminal screws, and cable connector
screws are tightened to the torque specified in this manual.
• For Units that have labels attached on the ventilation holes at the time of ship-
ment, be sure to leave them attached when wiring in order to prevent wiring
cuttings from entering the Unit.
• Remove the labels after the completion of wiring to ensure proper heat dissipa-
tion.
• Use crimp terminals or solid wires for wiring. Do not connect bare stranded
wires directly to terminals.
• Double-check all the wiring before turning on the power supply.
• Be sure to check polarity and directions when connecting terminal blocks or
connectors.
• Be sure that the terminal blocks, expansion cables, and other items with lock-
ing devices are properly locked into place.
• Check the user program for proper execution before actually running it on the
Unit.
• Be sure to confirm that no adverse effect will occur in the equipment before
changing the operation mode of the PC.
• Be sure to confirm that no adverse effect will occur in the equipment before
executing forced set/reset of the relay contact.
• Be sure to confirm that no adverse effect will occur in the equipment before
changing the set values or present values.
• Be sure to resume operation only after transferring to the replaced CPU Unit
the contents of the data memory or hold relay required for resuming operation.
• Never pull on, bend to extreme angles, or place heavy objects on cables.
• Install all Units according to instructions in the operation manuals.

xv
Application Precautions Section 5

• When replacing parts, be sure to confirm that the rating of a new part is correct.
• Before touching the Unit, be sure to first touch a grounded metallic object in
order to discharge any static built-up.

! Caution The following precautions are necessary to ensure the general safety of the sys-
tem. 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.
• The interlock circuits, limit circuits, and similar safety measures must be pro-
vided by the customer for external circuits (i.e., not in the Programmable Con-
troller).
• Do not touch the Expansion I/O Unit Connecting Cable while the power is
being supplied in order to prevent any malfunction due to static electricity.

xvi
SECTION 1
Introduction
This section describes the CPM1’s special features and functions and shows the possible system configurations.

1-1 CPM1 Features and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2


1-1-1 CPM1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1-1-2 I/O Terminal – IR Bit Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1-1-3 CPM1 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1-2 System Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1-2-1 CPU Unit and Expansion I/O Unit Configuration . . . . . . . . . . . . . . . . . . . . . . . . 8
1-2-2 Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1-2-3 1-to-1 Communications Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1-2-4 NT Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1-2-5 Peripheral Device Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
1-3 Revised Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

1
CPM1 Features and Functions Section 1-1

1-1 CPM1 Features and Functions


1-1-1 CPM1 Features
One-piece Construction The CPM1 is a one-piece PC with 10, 20, or 30 I/O terminals built into the CPU
Unit.
CPM1-10CDR- (10 I/O Terminals)

CPM1-20CDR- (20 I/O Terminals)

CPM1-30CDR-(-V1) (30 I/O Terminals)

Extra I/O Capacity Either one Expansion I/O Unit or one Analog I/O Unit can be connected to a
CPM1-10CDR-/20CDR-/30CDR- CPU Unit. Also, up to three Expansion
I/O Units and/or Analog I/O Units can be connected in any combination to a
CPM1-30CDR--V1 CPU Unit.
Analog I/O Unit The CPM1A-MAD01 Analog I/O Unit can be connected as part of a CPM1 PC to
provide two analog inputs and one analog output. (Up to three Analog I/O Units
can be connected at the same time.) Refer to Section 6 Analog I/O Unit for
details on the Analog I/O Unit.
Input Filter Function The CPM1 is equipped with a filter function to prevent incorrect operation
caused by chatter or noise in the input signal. The user can select an input time
constant of 1 ms, 2 ms, 4 ms, 8 ms, 16 ms, 32 ms, 64 ms, or 128 ms.
Low-maintenance Design Flash memory provides memory backup without a battery.
Conforms to EC Directives The CPM1 PCs conform to EC directives (EMC and low-voltage directives), so
they can be incorporated in equipment destined for the EC. Contact your
OMRON representative for more details.
Input Interrupts The CPM1-10CDR- PCs can handle 2 interrupt inputs; the CPM1-20CDR-
and CPM1-30CDR- PCs can handle 4 interrupt inputs. In addition to normal
input interrupts, the CPM1 has a counter mode that counts high-speed input sig-
nals and triggers interrupts at fixed count multiples.
Quick-response Inputs Quick-response inputs can detect input signals with a pulse width as short as
0.2 ms regardless of their timing during the PC cycle. Quick-response inputs
and interrupt inputs use the same input terminals.

2
CPM1 Features and Functions Section 1-1

Interval Timer CPM1 PCs have a high-speed interval timer which can be set from 0.5 ms to
319968 ms. The timer can be set to trigger a single interrupt (one-shot mode) or
repeat scheduled interrupts (scheduled interrupt mode).

High-speed Counter CPM1 PCs have a high-speed counter that can be used in incremental mode or
up/down mode. The high-speed counter can be combined with input interrupts
to perform target value control or zone comparison control that isn’t affected by
the PC’s cycle time.

Analog Setting Function The CPM1 PCs have 2 analog volume controls that can be used to make manual
analog settings.

Host Link Communications The CPM1 PCs are compatible with the Host Link, which allows communica-
tions with personal computers. The CPM1 using the Host Link can also commu-
nicate with Programmable Terminal using host link commands.
An RS-232C Adapter is used for 1-to-1 communications and an RS-422 Adapter
is used for 1-to-n communications.

1-to-1 Link A data link can be created with a data area in another CPM1, CQM1, or C200HS
PC. An RS-232C Adapter is used to make the 1-to-1 connection.

NT Link Communications High-speed operations can be achieved by providing a direct access by con-
necting the CPM1 to the Programmable Terminal through the NT Link Interface.
An RS-232 Adapter is used for this connection.

Standard Peripheral Devices The CPM1 uses the same Programming Consoles, SYSMAC Support Software
(SSS), and Ladder Support Software (LSS) as the Mini H-type and CQM1 PCs.

Programming is Possible Programming operation is possible through the PT screen by using an OMRON
Using the PT PT that has a built-in Programming Console function.

1-1-2 I/O Terminal – IR Bit Allocation


The following table shows which IR bits are allocated to the I/O terminals on the
CPM1’s CPU Unit and Expansion I/O Unit.

Note Refer to Section 6 Analog I/O Unit for details on I/O allocation for the Analog I/O
Unit.

Number of CPU Unit terminals Expansion I/O Unit terminals Power Model number
I/O terminals supply
on the CPU Inputs Outputs Inputs Outputs
Unit
10 6 points: 4 points: 12 points: 8 points: AC CPM1-10CDR-A
00000 to 00005 01000 to 01003 00100 to 00111 01100 to 01107 DC CPM1-10CDR-D
20 12 points: 8 points: 12 points: 8 points: AC CPM1-20CDR-A
00000 to 00011 01000 to 01007 00100 to 00111 01100 to 01107 DC CPM1-20CDR-D
30 18 points: 12 points: 12 points: 8 points: AC CPM1-30CDR-A
00000 to 00011 01000 to 01007 00200 to 00211 01200 to 01207 DC CPM1-30CDR-D
00100 to 00105 01100 to 01103 36 points: 24 points: AC CPM1-30CDR-A-V1
00200 to 00211 01200 to 01207
00300 to 00311 01300 to 01307 DC CPM1-30CDR-D-V1
00400 to 00411 01400 to 01407

3
CPM1 Features and Functions Section 1-1

1-1-3 CPM1 Functions


Analog Setting Function CPM1 PCs have 2 analog volume controls that can be used to make analog
timer and counter settings manually. When one of the volume controls is turned,
the content of the corresponding IR word is set automatically between 0 and 200
(BCD).
Adjust the volume control with a Phillips-head screwdriver.

Analog volume control 0


Analog volume control 1

The following table shows which IR words are allocated to the analog controls on
the CPM1’s CPU Unit.
Control Corresponding IR word Setting range (BCD)
Analog volume control 0 IR 250 0000 to 0200
Analog volume control 1 IR 251

Input Filter Function The input time constant for the CPM1’s external inputs can be set to 1, 2, 4, 8, 16,
32, 64, or 128 ms. Increasing the input time constant can reduce the effects of
chatter or noise in the input signal.

Input from an input device


such as a limit switch

Input bit status


t t Input time constant

With the CPM1, actual response time for each set input time constant for word
000 is different from that for word 001 or later.
Set value Word 000 Word 001 or later
1 ms 1 to 1.5 ms 0.1 to 0.3 ms
2 ms 2 to 2.5 ms 0.7 to 1.5 ms
4 ms 4 to 4.5 ms 1.5 to 2.5 ms
8 ms 8 to 8.5 ms 3 to 4.5 ms
16 ms 16 to 16.5 ms 6 to 9 ms
32 ms 32 to 32.5 ms 12 to 18 ms
64 ms 64 to 64.5 ms 24 to 35 ms
128 ms 128 to 128.5 ms 50 to 70 ms

The input response time of the CPM1 is obtained with the following:
2 ms max. (hardware performance) + input time constant (see above table)
+ cycle time

4
CPM1 Features and Functions Section 1-1

Input Interrupts The CPM1-10CDR- PCs have 2 interrupt input terminals and the
CPM1-20CDR- and CPM1-30CDR- PCs have 4 interrupt input terminals.
There are two modes for input interrupts: input interrupt mode and counter
mode.
1, 2, 3... 1. When an interrupt occurs in Input Interrupt Mode, the main program is inter-
rupted and the interrupt program is executed immediately, regardless of the
cycle time.
2. In Counter Mode, external input signals are counted at high speed (up to
1 kHz) and an interrupt is generated each time the count reaches the set
value. When an interrupt occurs, the main program is interrupted and the
interrupt program is executed. The set value can be set from 0 to 65,535.
The following diagram shows the program execution when an interrupt occurs.
Main program

MOV Input interrupt

ADD Interrupt program

SBN00

MOV

END RET

PC model Input bits Response time


CPM1-10CDR- IR 00003 to IR 00004 0.3 ms
CPM1-20CDR-/30CDR-(-V1) IR 00003 to IR 00006 (1 kHz in Counter Mode)

Note When not using as interrupt input terminals, the input bits IR 00003 to IR 00006
can be used as normal input terminals.
Refer to the CQM1/CPM1/CPM1A/SRM1 Programming Manual (W228) for set-
ting and using the input interrupts.

5
CPM1 Features and Functions Section 1-1

Quick-response Inputs The CPM1-10CDR- PCs have 2 quick-response input terminals and the
CPM1-20CDR-/30CDR-(-V1) PCs have 4 quick-response input terminals.
(The same terminals are used for quick-response inputs and interrupt inputs.)
Quick-response inputs have an internal buffer, so input signals shorter than one
cycle can be detected.

Overseeing Program I/O Overseeing Program I/O


processes execution refreshing processes execution refreshing

Input signal
(00003)

IR 00003
One cycle

PC model Input bits Min. input pulse


width
CPM1-10CDR- IR 00003 to IR 00004 0.2 ms
CPM1-20CDR-/30CDR-(-V1) IR 00003 to IR 00006

Interval Timer Function CPM1 PCs are equipped with an interval timer which can be set from 0.5 ms to
(Scheduled Interrupts) 319,968 ms in units of 0.1 ms. The timer can be set to trigger a single interrupt
(one-shot mode) or repeat scheduled interrupts (scheduled interrupt mode).

Main program

MOV Interval timer time-out

ADD
Interrupt program

SBN00

MOV

END RET

Mode Function
One-shot Generates a single interrupt the first time that the timer times
out.
Scheduled interrupt Generates an interrupt each time that the timer times out.

Refer to the CQM1/CPM1/CPM1A/SRM1 Programming Manual (W228) for set-


ting and using the interval timer function.

6
CPM1 Features and Functions Section 1-1

High-speed Counter CPM1 PCs have a high-speed counter that can be used in incremental mode or
up/down mode. The high-speed counter can be combined with input interrupts
to perform target value control or zone comparison control that isn’t affected by
the PC’s cycle time.
Count input

Reset input

00000
00001
00002
Solenoid

Sensor Rotary Encoder

Motor
Motor
Controller
controller

Mode Input functions Input method Count Count Control methods


frequency range
Up/Down 00000: A-phase input Phase-difference, 2.5 kHz –32767 Target value control:
00001: B-phase input 4× inputs to Up to 16 target values and interrupt
00002: Z-phase input 32767 subroutine numbers can be
registered.
Zone comparison control:
Incremental 00000: Count input Individual inputs 5.0 kHz 0
Up to 8 sets of upper limit values,
00001: See note. to
lower limit values, and interrupt
00002: Reset input 65535
subroutine numbers can be
registered.

Note In incremental mode, this input (00001) can be used as an regular input.
Refer to the CQM1/CPM1/CPM1A/SRM1 Programming Manual (W228) for set-
ting and using the high-speed counter.

7
System Configuration Section 1-2

1-2 System Configuration


A CPM1 PC can consist of a single CPU Unit, a CPU Unit plus an Expansion I/O
Unit, or a CPU Unit plus an Analog I/O Unit. The CPU Units and Expansion I/O
Unit are described in this section. Refer to Section 6 Analog I/O Unit for details
on the Analog I/O Unit.

1-2-1 CPU Unit and Expansion I/O Unit Configuration

CPM1 CPU Unit Expansion I/O Unit

Connecting Cable

CPM1 CPU Units The following table describes the six CPM1 CPU Units. All outputs are relay out-
puts.
Number of Inputs Outputs Power Model number
I/O terminals supply
10 6 points 4 points AC CPM1-10CDR-A
DC CPM1-10CDR-D
20 12 points 8 points AC CPM1-20CDR-A
DC CPM1-20CDR-D
30 18 points 12 points AC CPM1-30CDR-A
DC CPM1-30CDR-D
AC CPM1-30CDR-A-V1
DC CPM1-30CDR-D-V1

CPM1 Expansion I/O Unit The following table describes the CPM1 Expansion I/O Unit. All outputs are relay
outputs.
Number of Inputs Outputs Model number
I/O terminals
20 12 points 8 points CPM1-20EDR
CPM1A-20EDT
CPM1A-20EDT1

• CPM1 Expansion I/O Units can also be connected to CPM1A Expansion I/O
Units with transistor output.
• Either one Expansion I/O Unit or one Analog I/O Unit can be connected to a
CPM1-10CDR-/20CDR-/30CDR- CPU Unit. Also, up to three Expan-
sion I/O Units and/or Analog I/O Units can be connected in any combination to
a CPM1-30CDR--V1 CPU Unit. (Refer to Section 6 Analog I/O Unit for
details on the Analog I/O Unit.

8
System Configuration Section 1-2

1-2-2 Host Link Communications


Host Link communications which allows up to 32 OMRON PCs to be controlled
from a host computer. The computer-PC connections can be made connectors
such as RS-232C and RS-422 Adapters.
1-to-1 Communications The following diagram shows the possible methods for a 1-to-1 connection
between a CPM1 and an IBM PC/AT or compatible computer.
RS-232C Adapter

CPM1 CPU Unit


IBM PC/AT or
compatible RS-232C Cable

CQM1-CIF02

Connecting to a The following diagram shows the possible methods for a connection between a
Programmable Terminal CPM1 PC and an OMRON Programmable Terminal (a display device).

Programmable Terminal RS-232C Adapter


CPM1 CPU Unit

RS-232C Cable

9
System Configuration Section 1-2

1-to-n Communications The following diagram shows how to connect up to 32 CPM1 PCs to an IBM
PC/AT or compatible computer.

IBM PC/AT or compatible

RS-422 Adapters CPM1 CPU Units


RS-232C Cable

RS-422 Cable

3G2A9-AL004-E
Link Adapter

CPM1 PCs
The maximum cable length of RS-422 should be 500 m. (32 PCs max.)

Adapters and Cables The following table lists some of the Adapters and Cables used in Host Link com-
munications.

Name Usage Model Number


RS-232C Adapter Converts to peripheral port-level CPM1-CIF01
RS-422 Adapter communications. CPM1-CIF11
Connecting Cables Used to connect IBM PC/AT or CQM1-CIF02
compatible computers.
(Cable length: 3.3 m)
Link Adapter Converts between the RS-232C and 3G2A9-AL004-E
RS-422 formats.

10
System Configuration Section 1-2

1-2-3 1-to-1 Communications Links


A data link can be created with a data area in another CPM1, CQM1, or C200HS
PC. An RS-232C Adapter must be used to make the 1-to-1 connection.

RS-232C Adapters CPM1 CPU Units

RS-232C Cable

CQM1-series PC

C200HS-series PC

Name Usage Model Number


RS-232C Adapter Converts to the Peripheral Port format. CPM1-CIF01

11
System Configuration Section 1-2

1-2-4 NT Link Communications


Using the NT Link, the CPM1 PC can connected to the Programmable Terminal
(NT Link Interface) through an RS-232C Adapter.
Programmable Terminal RS-232C Adapter CPM1 CPU Unit

RS-232C Cable

Name Usage Model Number


RS-232C Adapter Converts to the Peripheral Port format. CPM1-CIF01

1-2-5 Peripheral Device Connections


CPM1 programming can be created or edited with a Programming Console or a
personal computer running the SYSMAC Support Software (SSS).
Programming Console A CQM1-PRO01-E or C200H-PRO27-E Programming Console can be con-
nected to the CPM1 as shown in the following diagram.

CPM1 CPU Unit

C200H-CN222

CQM1-PRO01-E C200H-PRO27-E

Name Model Number


CQM1-series Programming Console CQM1-PRO01-E
(The Connecting Cable is attached.)
C200H-series Programming Console C200H-PRO27-E
C200H-series Connecting Cables Cable length: 2 m C200H-CN222
Cable length: 4 m C200H-CN422

12
System Configuration Section 1-2

SYSMAC Support Software An IBM PC/AT or compatible personal computer running SYSMAC Support
Software (SSS) or SYSMAC-CPT Support Software can be connected to the
CPM1A as shown in the following diagram. Refer to 3-4-7 Host Link Connec-
tions for a diagram showing the standard wiring for the RS-232C cable.
Any version of the Support Software may be used. Refer to 4-1 SSS Capabilities
for further details on installing and using the SYSMAC Support Software.
RS-232C Adapter

CPM1 CPU Unit

IBM PC/AT or compatible


RS-232C Cable

CQM1-CIF02

SSS

Name Usage Model Number


RS-232C Adapter Converts to Peripheral Port format level communications. CPM1-CIF01
Connecting Cable Used to connect IBM PC/AT or compatible computers. (Length: 3.3 m) CQM1-CIF02
(see note)
SYSMAC Support Software For IBM PC/AT or compatible computers (3.5” disks, 2HD) C500-ZL3AT1-E
SYSMAC-CPT Support For IBM PC/AT or compatible computers WS01-CPTB1-E
Software (3.5” disks (2HD) and CDROM)

Note Specify the model number when making a new purchase of a product.

13
Revised Specifications Section 1-3

1-3 Revised Specifications


The following table shows the changes that have been made in product specifi-
cations beginning with lots produced in January 1998 (December 1997 for some
models).
Item Previous specifications New specifications Relevant pages
Input indicator operation The input indicators will The input indicators will Item 8., Input Indicators, on
when an error occurs maintain the current status change with the status of page 24.
and will not change with the the input signal when a
status of the input signal memory error, no END
when a memory error, no instruction error, or system
END instruction error, or error occurs.
system error occurs.
Memory holding operation If the power remains OFF If the power remains OFF Page xiii and xiv under 5
of built-in capacitor for a period exceeding the for a period exceeding the Application Precautions.
data backup period, the data backup period, Page 18 under 2-1-2
capacitor will not be able to AR 1314 will turn ON to Characteristics.
back up data and the indicate that the capacitor
status of the data backed can no longer back up data See also information on the
up by the capacitor and the data backed up by PC Setup in the
(Read/write DM area, Error the capacitor (Read/write CQM1/CPM1/CPM1A/SRM1
log area, HR area, and DM area, Error log area, Programmable Controllers
Counter area) will become HR area, and Counter Programming Manual (W228).
unstable. area) will be cleared. The
PC Setup setting in
DM 6604 can be set to
create a fatal error and thus
stop the system when
AR 1314 goes ON.
Online editing and changing If unsupported addresses If unsupported addresses 4-1-2 CPM1 Restrictions and
set values from the SSS are set in the program for are set in the program for Precautions
operands or for set values operands or for set values
for timers or counters from for timers or counters from
the SSS during online the SSS during online
editing, the values will be editing, error messages will
accepted, but a memory be displayed and the
error will occur in values will not be accepted.
MONITOR or RUN mode.
Communications Communications are not Communications are See information on the PC
parameters for the possible if unsupported possible using the following Setup in the
peripheral port settings are made for the parameters if unsupported CQM1/CPM1/CPM1A/SRM1
peripheral port’s settings are made for the Programmable Controllers
communications peripheral port’s Programming Manual (W228).
parameters. communications
parameters.
Mode: Host Link
Standard format
1 start bit
7-bit data
Even parity
2 stop bits
9,600 bps baud
Transmission delay: None
Unit number: 0

14
SECTION 2
Unit Specifications and Components
This section provides the technical specifications of the Units that go together to create a CPM1 PC and describes the main
components of the Units.
Refer to Section 6 Analog I/O Unit for details on the Analog I/O Unit.

2-1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2-1-1 General Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2-1-2 Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2-1-3 I/O Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2-1-4 Communications Adapter Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2-2 Unit Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2-2-1 CPU Unit Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2-2-2 Expansion I/O Unit Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2-2-3 Communications Adapter Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

15
Specifications Section 2-1

2-1 Specifications
2-1-1 General Specifications
Item CPM1-10CDR- CPM1-20CDR- CPM1-30CDR-(-V1)
Supply voltage AC type 100 to 240 VAC, 50/60 Hz
DC type 24 VDC
Operating voltage range AC type 85 to 264 VAC
DC type 20.4 to 26.4 VDC
Power consumption AC type 60 VA max.
DC type 20 W max.
Inrush current 60 A max.
External power supply Supply voltage 24 VDC
(AC type only) Output capacity 300 mA (see note)
Insulation resistance 20 MΩ min. (at 500 VDC) between the external AC terminals and
protective earth terminals
Dielectric strength 2,300 VAC 50/60 Hz for 1 min between the external AC and protective
earth terminals, leakage current: 10 mA max.
Noise immunity 1,500 Vp-p, pulse width: 0.1 to 1 µs, rise time: 1 ns (via noise simulation)
Vibration resistance 10 to 57 Hz, 0.075-mm amplitude, 57 to 150 Hz, acceleration: 9.8 m/s2
(1G) in X, Y, and Z directions for 80 minutes each
(Time coefficient; 8 minutes × coefficient factor 10 = total time 80 minutes)
Shock resistance 147 m/s2 (15G) three times each in X, Y, and Z directions
Ambient temperature Operating: 0° to 55°C
Storage: –20° to 75°C
Humidity 10% to 90% (with no condensation)
Atmosphere Must be free from corrosive gas
Terminal screw size M3
Grounding Less than 100 W
Power interrupt time AC type: 10 ms min.
DC type: 2 ms min.
(A power interruption occurs if power falls below 85% of the rated voltage
for longer than the power interrupt time.)
CPU Unit weight AC type 600 g max. 800 g max. 900 g max.
DC type 500 g max. 700 g max. 800 g max.
Expansion I/O Unit weight 600 g max.
Note When the external power supply provides an excessive current or is short cir-
cuited, the external power supply voltage drops. The PC will, however, continue
to operate.

16
Specifications Section 2-1

2-1-2 Characteristics

Item CPM1-10CDR- CPM1-20CDR- CPM1-30CDR-(-V1)


Control method Stored program method
I/O control method Cyclic scan with direct output; immediate refresh processing
Programming language Ladder diagram
Instruction length 1 step per instruction, 1 to 5 words per instruction
Types of instructions Basic instructions: 14
Special instructions: 77 types, 134 instructions
Execution time Basic instructions: 0.72 to 16.2 µs
Special instructions: 16.3 µs (MOV instruction)
Program capacity 2,048 words
Input bits 00000 to 00915 (Words not used for input bits can be used for work bits.)
Output bits 01000 to 01915 (Words not used for output bits can be used for work bits.)
Work bits 512 bits: 20000 to 23115 (Words IR 200 to IR 231)
Special bits (SR area) 384 bits: 23200 to 25515 (Words IR 232 to IR 255)
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) 256 bits: AR 0000 to AR 1515 (Words AR 00 to AR 15)
Link bits (LR area) 256 bits: LR 0000 to LR 1515 (Words LR 00 to LR 15)
Timers/Counters 128 timers/counters (TIM/CNT 000 to TIM/CNT 127)
100-ms timers: TIM 000 to TIM 127
10-ms timers (high-speed counter): TIM 000 to TIM 127 (see note)
(the timer numbers used are the same as for the 100-ms timers)
Decrementing counters and reversible counters
Data memory Read/Write: 1,024 words (DM 0000 to DM 1023)
Read-only: 512 words (DM 6144 to DM 6655)
Interrupt processing External interrupts: 2 External interrupts: 4
(Response time: 0.3 ms max.) (Response time: 0.3 ms max.)
Input interrupts 2 4
Interval timer interrupts 1 (0.5 to 319,968 ms in Scheduled Interrupt Mode or Single Interrupt Mode)
Memory protection HR and read/write DM area contents; and counter values maintained during power
interruptions.
Memory backup Flash memory:
The program, read-only DM area, and PC Setup area are backed up without a battery.
Capacitor backup:
The read/write DM area, error log area, HR area, and counter values are backed up by a
capacitor for 20 days at 25C. The capacitor backup time depends on the ambient
temperature. See the graph on the following page for details.
Self-diagnostic functions CPU Unit failure (watchdog timer), I/O bus error, and memory failure
Program checks No END instruction, programming errors (continuously checked during operation)
High-speed counter One high-speed counter: 5 kHz single-phase or 2.5 kHz two-phase (linear count method)
Increment mode: 0 to 65,535 (16 bits)
Up/Down mode: –32,767 to 32,767 (16 bits)
Quick-response inputs The same inputs are used for quick-response inputs and external interrupt inputs.
(Min. input pulse width: 0.2 ms)
Input time constant Can be set to 1 ms, 2 ms, 4 ms, 8 ms, 16 ms, 32 ms, 64 ms, or 128 ms.
Analog volume settings 2 controls (0 to 200 BCD)

Note Use TIM 000 to TIM 003 when creating a timer using the high-speed timer
instruction to perform interrupt processing.

17
Specifications Section 2-1

Memory Backup The user program and memory area data in the CPM1 are backed up either by
an internal capacitor or in flash memory as shown in the following table.
Backup method Data
Internal capacitor Read/write DM area (DM 0000 to DM 0999, DM 1022, and
DM 1023)
Error log area (DM 1000 to DM 1021)
HR area (HR 00 to HR 19)
Counter area (CNT 000 to CNT 127)
Flash memory User program
Read-only DM area (DM 6144 to DM 6599)
PC Setup (DM 6600 to DM 6655)

Note 1. The IR, TR, LR, and timer areas are not normally backed up when power is
turned off and all contents will be cleared the next time power is turned on.
(The PC Setup setting in DM 6601 can be used to back up this data. Refer to
details on the PC Setup later in this manual for details.)
2. The bits in the AR and SR areas have special functions and are set accord-
ing to these functions when power is turned on.
The capacitor backup time depends on the ambient temperature, as shown in
the following graph. The backup time, however, assumes that the capacitor is
fully charged, which requires that power be supplied to the CPU Unit continu-
ously for at least 15 minutes.
Backup time (days)

20

10
7

1
25 40 80
Ambient temperature (C)

If the power remains off for a period exceeding the data backup period,
AR 1314 will turn ON to indicate that the capacitor can no longer back up data
and the data backed up by the capacitor will be cleared. AR 1314 will remain
ON unless it is turned OFF using I/O monitor operations, using memory clear
operations, or from the user program.
If desired, the PC Setup setting in DM 6604 can be set to create a fatal error
and thus stop the system when AR 1314 goes ON.
The data stored in flash memory will not be lost even if power remains off for a
period exceeding the data backup period, because the data stored in flash
memory will be read to the CPU Unit when the CPM1 is turned on.
If the power is turned off without changing the mode from PROGRAM mode to
RUN or MONITOR mode after having made changes in the data that is backed
up in flash memory, the changes will not be written to flash memory. If the power
is then left off for more than 20 days (at 25C), the changes (i.e., the contents of
the RAM) will be erased and the data values will become undefined.

18
Specifications Section 2-1

Either switch the CPM1 to RUN or MONITOR mode, or turn off and on power to
the CPM1 after changing from a Programming Device any data that is backed up
in flash memory. This data includes the user program, read-only DM area (DM
6144 to DM 6599), and the PC Setup (DM 6600 to DM 6655).

2-1-3 I/O Specifications

CPU Unit Input Specifications


Item Specification
Input voltage 24 VDC +10%/
–15%
Input impedance IN00000 to IN00002: 2 kΩ; other inputs: 4.7 kΩ
Input current IN00000 to IN00002: 12 mA typical; other inputs: 5 mA typical
ON voltage 14.4 VDC min.
OFF voltage 5.0 VDC max.
ON delay 1 to 128 ms max. (default: 8 ms) (see note.)
OFF delay 1 to 128 ms max. (default: 8 ms) (see note.)
Circuit configuration IN
Input
LED
4.7 kΩ
IN (2 kΩ)

820 Ω Internal
(510 Ω) Circuits
COM

Note Figures in parentheses are for IN00000 to IN00002.

Note Using the PC Setup, 1, 2, 4, 8, 16, 32, 64, or 128 ms can be selected. When
IN00000 through IN00002 are used as high-speed counter inputs, the delays
are as shown in the following table.

Input Increment mode Differential phase mode


IN00000 (A-phase) 5 KHz 2.5 KHz
IN00001 (B-phase) Normal input
IN00002 (Z-phase) ON: 100 µs min.; OFF delay: 500 µs min.

The minimum delay is as follows.

Increment Mode (5 KHz Max.)

200 µs min.
90 µs
min.
ON
A phase
OFF
90 µs
min.

19
Specifications Section 2-1

Differential Phase Mode (2.5 KHz Max.)


IN00000 (A phase), IN00001 (B phase)

400 µs min.

ON
Phase A
OFF

ON
Phase B
OFF
T1 T2 T3 T4

T1 T2 T3 T4 : 90 µs min.

IN00002 (Z phase)

100 µs min.
ON
Phase Z
OFF
500 µs
min.

When IN00003 through IN00006 are used as interrupt inputs, the delay is 0.3 ms
max. The delay is measured from the time that the input goes ON until the inter-
rupt subroutine is executed.

Expansion I/O Unit Input Specifications


Item Specification
Input voltage 24 VDC +10%/
–15%
Input impedance 4.7 kΩ
Input current 5 mA typical
ON voltage 14.4 VDC min.
OFF voltage 5.0 VDC max.
ON delay 1 to 128 ms max. (default: 8 ms) (see note.)
OFF delay 1 to 128 ms max. (default: 8 ms) (see note.)
Circuit configuration IN
Input
LED
IN 4.7 kΩ

Internal
820 Ω Circuits
COM

Note Using the PC Setup, 1, 2, 4, 8, 16, 32, 64, or 128 ms can be selected.

! Caution Do not apply voltage in excess of the rated voltage to the input terminal. It may
result in damage to the product or fire.

20
Specifications Section 2-1

CPU Unit and Expansion I/O Unit Output Specifications


Item Specification
Output type All outputs are relay outputs.
Max. switching capacity 2 A, 250 VAC (cosφ = 1)
2 A, 24 VDC
(4 A/common)
Min. switching capacity 10 mA, 5 VDC
Service life of relay Electrical: 300,000 operations (resistive load) 100,000 operations (inductive load)
Mechanical: 10,000,000 operations
ON delay 15 ms max.
OFF delay 15 ms max.
Circuit configuration Output
OUT
LED

Internal OUT
Circuits

COM Maximum
250 VAC: 2 A
24 VDC: 2 A

! Caution Do not connect loads or apply voltage in excess of the maximum switching
capacity to an output terminal. It may result in damage to the product or fire.

2-1-4 Communications Adapter Specifications

RS-232C Adapter Specifications


Item Specification
Function Converts between the CMOS format (PC CPU Unit side) and the RS-232C format
(peripheral device side).
Insulation The RS-232C (peripheral device side) is isolated by a DC/DC convertor and photocoupler.
Power supply Power is supplied from the PC CPU Unit.
Power consumption 0.3 A max.
Baud rate 38,400 bps max.
Transmission distance Total length:15 m max.
Vibration resistance 10 to 57 Hz: 0.075-mm amplitude
57 to 150 Hz: 9.8 m/s2 (1G) acceleration in X, Y, and Z directions for 80 minutes each
(Time coefficient; 8 minutes × coefficient factor 10 = total time 80 minutes)
Shock resistance 147 m/s2 (15 G) three times each in X, Y, and Z directions
Ambient temperature Operating: 0° to 55°C
Storage: –20° to 75°C
Humidity 10% to 90% (with no condensation)
Atmosphere Must be free from corrosive gas
Weight 200 g max.

21
Unit Components Section 2-2

RS-422 Adapter Specifications


Item Specification
Function Converts between the CMOS format (PC CPU Unit side) and the RS-422 format (peripheral
device side).
Insulation The RS-422 (peripheral device side) is isolated by a DC/DC convertor and photocoupler.
Power supply Power is supplied from the PC CPU Unit.
Power consumption 0.3 A max.
Baud rate 38,400 bps max.
Transmission distance Total length: 500 m max.
Vibration resistance 10 to 57 Hz: 0.075-mm amplitude
57 to 150 Hz: 9.8 m/s2 (1G) acceleration in X, Y, and Z directions for 80 minutes each
(Time coefficient; 8 minutes × coefficient factor 10 = total time 80 minutes)
Shock resistance 147 m/s2 (15G) three times each in X, Y, and Z directions
Ambient temperature Operating: 0° to 55°C
Storage: –20° to 75°C
Humidity 10% to 90% (with no condensation)
Atmosphere Must be free from corrosive gas
Weight 200 g max.

2-2 Unit Components

Note Refer to Section 6 Analog I/O Unit for Analog I/O Unit components.

2-2-1 CPU Unit Components

CPM1-10CDR-

2. Functional earth terminal (AC power supply type only)


3. Protective earth terminal

1. Power supply input terminals 5. Input terminals

8. Input indicators
10. Analog volume controls

11. Peripheral Port


12. Expansion I/O Unit connector

7. PC status indicators

9. Output indicators

6. Output terminals
4. Power supply output terminals
(AC type only)

22
Unit Components Section 2-2

CPM1-20CDR-

CPM1-30CDR-(-V1)

CPU Unit Component Descriptions


1, 2, 3... 1. Power Supply Input Terminals
Connect the power supply (100 to 240 VAC or 24 VDC) to these terminals.

2. Functional Earth Terminal ( )


Be sure to ground this terminal (AC-type PCs only) to enhance immunity to
noise and reduce the risk of electric shock.

3. Protective Earth Terminal ( )


Be sure to ground this terminal to reduce the risk of electric shock.
4. Power Supply Output Terminals
CPM1 PCs are equipped with these 24-VDC power output terminals to sup-
ply power to input devices (AC-type PCs only).
5. Input Terminals
Connect to the input circuits.
6. Output Terminals
Connect to the output circuits.

23
Unit Components Section 2-2

7. PC Status Indicators
These indicators show the operating status of the PC, as shown in the fol-
lowing table.
Indicator Status Meaning
POWER (green) ON Power is being supplied to the PC.
OFF Power isn’t being supplied to the PC.
RUN (green) ON The PC is operating in RUN or MONITOR mode.
OFF The PC is in PROGRAM mode or a fatal error
has occurred.
ERROR/ALARM ON A fatal error has occurred. (PC operation stops.)
(red) Flashing A non-fatal error has occurred. (PC operation
continues.)
OFF Indicates normal operation.
COMM (orange) ON Data is being transferred via the Peripheral Port.
OFF Data isn’t being transferred via the Peripheral
Port.
8. Input Indicators
These indicators are lit when the corresponding input terminal is ON.
When a fatal error occurs, the input indicators change as follows:
Fatal error Input indicators
CPU Unit error or I/O bus error Turn OFF.
Memory error, no END instruction The indicators will change with the
error, or system error status of the input signal, but input
status will not be updated in memory.

9. Output Indicators
These indicators are lit when the corresponding output terminal is ON.
10. Analog Volume Controls
Setting these controls sets the contents of IR 250 and IR 251 from 0 to 200.
11. Peripheral Port
Connects the PC to a Peripheral Device, RS-232C Adapter, or RS-422
Adapter.
12. Expansion I/O Unit Connector
Either one Expansion I/O Unit or one Analog I/O Unit can be connected to a
CPM1-10CDR-/20CDR-/30CDR- CPU Unit. Also, up to three
Expansion I/O Units and/or Analog I/O Units can be connected in any com-
bination to a CPM1-30CDR--V1 CPU Unit.

24
Unit Components Section 2-2

2-2-2 Expansion I/O Unit Components


1. Input terminals

3. Input indicators

5. Expansion I/O Unit


4. Output indicators
Connecting Cable

2. Output terminals

1, 2, 3... 1. Input Terminals


Connect to the input circuits.
2. Output Terminals
Connect to the output circuits.
3. Input Indicators
These indicators are lit when the corresponding input terminal is ON.
4. Output Indicators
These indicators are lit when the corresponding output terminal is ON.
5. Expansion I/O Unit Connecting Cable
Connects the Expansion I/O Unit to the PC’s CPU Unit.

! Caution Do not touch the Expansion I/O Unit Connecting Cable while the power is being
supplied in order to prevent any malfunction due to static electricity.

Note For details regarding CPM1A-20EDR/EDT/EDT1 Expansion I/O Units, refer to


the CPM1A Programmable Controllers Operation Manual (W317).

25
Unit Components Section 2-2

2-2-3 Communications Adapter Components


RS-232C Adapter

1. Mode Setting Switch

3. RS-232C port
RS-232C Port Pin allocation

FG 1
6 DCD
SD 2
7 DSR
RD 3
8 DTR
RTS 4
9 SG
2. Connector CTS 5

1, 2, 3... 1. Mode Setting Switch


Set this switch to “HOST” when using a Host Link system to connect to a
personal computer. Set this switch to “NT” when connecting to a Program-
mable Terminal or PC for 1:1 link.
2. Connector
Connects to the CPU Unit’s Peripheral Port.
3. RS-232C Port
Connects to the RS-232C cable from the other device such as a personal
computer, Peripheral Device, or Programmable Terminal.

RS-422 Adapter

1. Termination Resistance Switch

RS-422 Port Pin allocation


3. RS-422 port

FG
SG
SDB
SDA
RDB
RDA
2. Connector

1, 2, 3... 1. Termination Resistance Switch


Set the termination resistance switch to “ON” (upper side) for the Link
Adapters on both ends of the Host Link system and for the RS-422 Adapter.
2. Connector
Connects to the CPU Unit’s Peripheral Port.
3. RS-422 Port
Connects to the Host Link network.
Note The CPM1-CIF01/CIF11 are used with the CPM1A, CPM1, and SRM1 only. Do
not use them with a C200HS PC or other PC.

26
SECTION 3
Installation and Wiring
This section provides information on installing and wiring a CPM1 PC. Be sure to follow the directions and precautions in this
section when installing the CPM1 in a panel or cabinet, wiring the power supply, or wiring I/O.

3-1 Design Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28


3-1-1 Power Supply Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3-1-2 Interlock and Limit Circuits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3-1-3 Power Supply Voltage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3-1-4 CPM1 Power Interruptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
3-2 Selecting an Installation Site . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3-2-1 Installation Site Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3-2-2 Panel/Cabinet Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3-3 Installing the CPM1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3-3-1 CPM1 Orientation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3-3-2 CPM1 Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3-3-3 Connecting an Expansion I/O Unit or Analog I/O Unit . . . . . . . . . . . . . . . . . . . . 33
3-4 Wiring and Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3-4-1 General Precautions for Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
3-4-2 Power Supply Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
3-4-3 Input Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3-4-4 Output Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
3-4-5 Conformance to EMC Directives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3-4-6 Peripheral Device Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3-4-7 Host Link Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3-4-8 One-to-one PC Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
3-4-9 NT Link Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46

27
Design Precautions Section 3-1

3-1 Design Precautions


Observe the following precautions when designing a system incorporating a
CPM1 PC.

3-1-1 Power Supply Wiring


Separate the power supply wiring from the control system, CPM1 system, and
DC I/O system wiring.

3-1-2 Interlock and Limit Circuits


Construct an external interlock circuit if CPM1 outputs are used to perform recip-
rocal operations such as controlling the forward and reverse operation of a
motor or if incorrect PC operation could cause accidents or mechanical damage.
Also, construct an external limit circuit to prevent run-away movement in sys-
tems such as position control.
The following diagram shows an example of an interlock circuit.
Interlock Circuit

01005 MC2
MC1 Motor forward

CPM1
01006 MC1
MC2 Motor reverse

In the interlock circuit above, MC1 and MC2 can’t be ON at the same time even if
CPM1 outputs 01005 and 01006 are both ON (an incorrect PC operation).

3-1-3 Power Supply Voltage


! Caution Use the power supply voltages indicated in Section 2 Unit Specifications and
Components. Failure to adhere to the specifications may result in fire. In places
where power supply conditions are poor, take steps to ensure that power is sup-
plied at the rated voltage. Be sure to adhere to safety precautions, such as pro-
viding 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.

• Connecting or disconnecting Expansion I/O Units and CPU Units.


• Assembling Units
• Connecting cables and wiring.

3-1-4 CPM1 Power Interruptions


Supply Voltage Drop
When the supply voltage falls below 85% of the rated value, the PC stops and
the output goes OFF.
Momentary Power Failure Detection
A momentary power failure lasting less than 10 ms with an AC power supply and
2 ms with a DC power supply is not detected and the CPU Unit continues to oper-
ate.
A momentary power failure lasting longer than 10 ms with an AC power supply
and 2 ms with a DC power supply may or may not be detected in an uncertain
area.
When a momentary power failure is detected, the CPU Unit stops operating and
the output goes OFF.

28
Selecting an Installation Site Section 3-2

Automatic Restart
When the supply voltage recovers to a value higher than 85% of the rated value,
operations resumes automatically.

Under 10 ms (2 ms) Over


Duration of power interrupt
(Below 85% of rated voltage)
Normal operation Operation may stop.

All outputs go OFF when


operations stop.

Note The CPM1 may repeat stop/start operations if the supply voltage of less than
85% of the rated value gradually goes up or down. If this affects the equipment,
etc., provide a protection circuit which shuts off the output if the supply voltage is
not above the rated value.

Time Up to the Start of Operation


The time from when the power supply is turned on to when the operation starts
varies depending on the operation conditions such as power supply voltage,
configuration, ambient temperature, etc. The minimum time is approximately
300 ms.

3-2 Selecting an Installation Site


The CPM1 is resistant to harsh conditions and highly reliable, but installing the
PC in a favorable site will maximize its reliability and operating lifetime.

! Caution Be sure to install the CPM1 correctly, as outlined in this manual. Failure to do so
may result in Unit malfunction.

3-2-1 Installation Site Conditions


Note Do not install the CPM1 under any of the following conditions.
• Locations subject to direct sunlight.
• Locations subject to a temperature below 0°C or over 55°C.
• Locations subject to a 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 CPM1’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.

29
Installing the CPM1 Section 3-3

3-2-2 Panel/Cabinet Installation


Consider PC operation, maintenance, and surrounding conditions when instal-
ling the CPM1 in a panel or cabinet.
Overheating The operating temperature range for the CPM1 is 0C to 55C. Be sure that
there is adequate ventilation for cooling.
• Allow enough space for air circulation.
• Do not install the CPM1 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 55C.

Control panel
Fan

CPM1

Air vent

Electrical Noise Power lines and high-voltage equipment can cause electrical noise in the PC.
• Do not install the CPM1 in a panel or cabinet with high-voltage equipment.
• Allow at least 200 mm between the CPM1 and nearby power lines.

200 mm min.

CPM1

200 mm min.

Accessibility Ensure that the CPM1 can be accessed for normal operation and maintenance.
• Provide a clear path to the CPM1 for operation and maintenance. High-voltage
equipment or power lines could be dangerous if they are in the way during rou-
tine operations.
• The PC will be easiest to access if the panel or cabinet is installed about 3 to 5
feet off of the floor.

3-3 Installing the CPM1


3-3-1 CPM1 Orientation
The CPM1 must be installed in the position shown below to ensure adequate
cooling.

Correct

30
Installing the CPM1 Section 3-3

Do not install the CPM1 in either of the following positions.

Incorrect

Incorrect

3-3-2 CPM1 Installation


The CPM1 can be installed on a horizontal surface or on a DIN track.

Surface Installation Use the following pattern when installing a CPM1 on a horizontal surface.

Four, M4 holes

81 mm

A 8 mm

Use M4 dia. x 15 screws.


The width (A) between the mounting holes depends on the CPM1 model.

Model number Width (A)


CPM1-10CDR- CPU Unit 121 mm
CPM1-20CDR- CPU Unit 171 mm
CPM1-30CDR-(-V1) CPU Unit 221 mm
CPM1-20EDR Expansion I/O Unit 171 mm
RS-232C Adapter 21 mm
RS-422 Adapter 21 mm

Use the following pattern when installing a CPM1 PC and Communications


Adapter on a horizontal surface.

Communications CPU Unit Expansion I/O Unit


Adapter

10 to 10 to
15 mm 15 mm

31
Installing the CPM1 Section 3-3

DIN Track Installation The CPM1 can be installed on a 35-mm DIN Track.

DIN Track
PFP-100N (1 m)
End Plates
PFP-50N (50 cm)
(PFP-M)
PFP-100N2 (1 m)

Installation
Lower the CPM1 so that the notch on the back of the PC catches the top of the
DIN Track. Push the PC forward until the lock snaps into place.

Removal
Pry the lock down with a standard screwdriver and pivot the PC upward to
remove it.

Screwdriver

32
Installing the CPM1 Section 3-3

3-3-3 Connecting an Expansion I/O Unit or Analog I/O Unit


Either an Expansion I/O Unit or Analog I/O Unit can be connected to the CPM1’s
CPU Unit. Use the following procedure.
The procedure is the same for either Unit; an Expansion I/O Unit is used as an
example in the following description.

1, 2, 3... 1. Remove the cover from the CPU Unit’s Expansion I/O Unit Connector.

Expansion I/O Unit


connector cover

2. Insert the Expansion I/O Unit’s Connecting Cable into the CPU Unit’s
Expansion I/O Unit Connector.

3. Replace the cover on the CPU Unit’s Expansion I/O Unit Connector.

33
Wiring and Connections Section 3-4

3-4 Wiring and Connections


This section provides basic information on wiring the Power Supply Unit and
Expansion I/O Units, and on connecting Peripheral Devices.
Note Refer to Section 6 Analog I/O Unit to wire the Analog I/O Unit.

3-4-1 General Precautions for Wiring


I/O Line Noise Do not run CPM1 I/O lines in the same duct or conduit as power lines.

! Caution Attach the dustproof label provided before wiring. If scraps of wire get inside the
Unit, malfunction will result. After completing wiring be sure to remove the label
to avoid overheating.

Hanging Ducts
Leave at least 300 mm between the power cables and the I/O or control wiring,
as shown in the following diagram.

CPM1 I/O lines

300 mm min.

Control cables and


CPM1 power lines

300 mm min.

Power cables

Floor Ducts
Leave at least 200 mm between the wiring and the top of the duct, as shown in
the following diagram.
Control cables and Metal plate (iron)
CPM1 I/O lines CPM1 power lines Power cables

200 mm min.

Conduit
Separate the CPM1 I/O lines, power and control lines, and power cables, as
shown in the following diagram.
Control cables and
CPM1 I/O lines CPM1 power lines Power cables

ÉÉÉÉÉÉÉÉÉÉÉÉ
34
Wiring and Connections Section 3-4

Grounding Be sure to ground the functional earth and protective earth terminals together to
less than 100 Ω in order to protect against electric shock and incorrect operation
from electrical noise. Be sure to use a wire of at least 1.25 mm2 for grounding.

! Caution When installing the Units, always connect to a class-3 (to 100 Ω or less) ground.
Otherwise, an electric shock may occur.

Ground to 100 Ω max.

Note Disconnect the functional earth terminal when performing withstand voltage
tests.

Crimp Connectors Always use crimp connectors for the CPM1’s power lines and I/O lines or else
use a single-wire line (instead of a stranded wire). Stray wire strands could acci-
dentally short out.
Use M3 terminal screws and tighten the screws securely (0.5 N  m).
Recommended Terminal: Use the terminal shown below. Round terminals can-
not be used.
Fork terminal

6.2 mm max.

3-4-2 Power Supply Wiring


100 to 240 VAC Power Supply Wire a separate circuit for the CPM1’s power supply circuit so that there isn’t a
voltage drop from the inrush current that flows when other equipment is turned
on.
When several CPM1 PCs are being used, it is recommended to wire the PCs on
separate circuits to prevent a voltage drop from the inrush current or incorrect
operation of the circuit breaker.
Use twisted power supply wires to prevent noise from the power supply lines.
Adding a 1:1 isolating transformer reduces electrical noise even further.
Isolating
transformer
AC
power Twist the wires. The cross-sectional area
supply of each wire must be 1.25 mm2 min.

Breaker

! Caution Tighten the terminal block screws of the AC Power Supply to the torque of
0.5 N  m. Loose screws may result in burning or malfunction.

35
Wiring and Connections Section 3-4

24 VDC Power Supply Use a DC power supply with sufficient capacity and low ripple. Use a reinforced-
insulation type DC power supply.

24 VDC

! Caution Do not perform a dielectric test on a DC-type CPU Unit. Use the Power Supply
provided with double insulation or reinforced insulation for conforming to the EC
Directives (Low-voltage Directives).

3-4-3 Input Wiring


Wire the inputs to the CPM1’s CPU Unit and Expansion I/O Unit as shown in the
following diagrams. Use crimp connectors or single-wire lines (not stranded
wire) to connect to the PC. The power supply output terminals can be used with
AC-type CPU Units.

CPM1-10CDR- CPU Units An AC-type CPU Unit is shown. DC-type CPU Units don’t have power supply
outputs.

Input devices
COM

24 VDC, 300 mA power supply outputs

36
Wiring and Connections Section 3-4

CPM1-20CDR- CPU Units This diagram shows the input configuration for CPM1-20CDR- CPU Units and
and CPM1-20EDR CPM1-20EDR Expansion I/O Unit.
Expansion I/O Unit

24 VDC Input devices


COM

Note For details regarding CPM1A-20EDT/EDT1 Expansion I/O Unit connections,


refer to the CPM1A Programmable Controllers Operation Manual (W317).

CPM1-30CDR-(-V1) CPU Units This diagram shows the input configuration for CPM1-30CDR-(-V1)
CPU Units.

24 VDC Input devices


COM

Input Devices The following table shows how to connect various input devices.

Device Circuit Diagram


Relay output
Relay

IN
5 mA/12 mA CPM1

COM (+)

NPN open collector Sensor


+ Sensor power
supply
Output
IN CPM1
5 mA/12 mA
COM (+)
0V

NPN current output Use the same power supply for


the input and sensor.

Constant current
circuit +
Output
IN CPM1
5 mA/12 mA +
COM (+)
0V

37
Wiring and Connections Section 3-4

Device Circuit Diagram


PNP current output
+ Sensor power
supply CPM1
5 mA/12 mA
IN
Output
COM (–)
0V
Voltage output
+
COM (+) CPM1
Output
IN
0V Sensor power
supply

Leakage Current (24 VDC) 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), but if the leakage current exceeds these values, insert a
bleeder resistor in the circuit to reduce the input impedance, as shown in the fol-
lowing diagram.

Input power
supply
Bleeder resistor R CPM1
2-wire sensor, etc.

I: Device’s leakage current (mA) LC: CPM1’s input impedance (kΩ)


R: Bleeder resistance (kΩ) IC: CPM1’s input current (mA)
W: Bleeder resistor’s power rating (W) EC: CPM1’s OFF voltage (V) = 5.0 V

LC 5.0
R+ kW max. W + 2.3 W min.
I LC–5.0 R

The equations above were derived from the following equations:


Input voltage (24)
R
Input Current (I C)
I x OFF voltage (E C : 5.0)
Input voltage (24)
R)
Input Current (I C)

Input voltage (24)


Wy Input voltage (24) tolerance (4)
R

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.)

Inductive Loads When connecting an inductive load to an input, connect a diode in parallel with
the load. The diode should satisfy the following requirements:
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.

IN

Diode CPM1

COM

38
Wiring and Connections Section 3-4

3-4-4 Output Wiring


Wire the outputs to the CPM1’s CPU Unit and Expansion I/O Unit as shown in the
following diagrams. Use crimp connectors or single-wire lines (not stranded
wire) to connect to the PC. The power supply output terminals can be used with
AC-type CPU Units.
• Always use single wire or attach crimp connectors if a stranded wire is used.
• Don’t exceed the output capacity or the maximum common current. Refer to
2-1-3 I/O Specifications for details.
Item Specification
Output capacity 2 A (250 VAC or 24 VDC)
Max. common capacity 4 A/common

CPM1-10CDR- CPU Units An AC-type CPU Unit is shown. DC-type CPU Units don’t have power supply
outputs.

Load

Load

Load
Load

CPM1-20CDR- CPU Units This diagram shows the output configuration for CPM1-20CDR- CPU Units
and CPM1-20EDR and CPM1-20EDR Expansion I/O Unit.
Expansion I/O Unit
Load

Load

Load
Load

Load
Load
Load
Load

CPM1-30CDR-(-V1) CPU Units This diagram shows the output configuration for CPM1-30CDR-(-V1)
CPU Units.
Load

Load

Load
Load

Load
Load
Load
Load

Load
Load
Load
Load

39
Wiring and Connections Section 3-4

Output Wiring Precautions 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 protective fuses in the
output circuits.
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:

OUT

CPM1 relay output


Surge protector
COM

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.

OUT

CPM1 relay output


Diode
COM

3-4-5 Conformance to EMC Directives


Each CPM1 PC conforms to the Common Emission Standards (EN50081-2,
established in June 1993) 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 is an example
of a countermeasure for reducing the generated noise.

Countermeasures
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 more than 5 times per minute.
Refer to EN50081-2 for more details.

40
Wiring and Connections Section 3-4

Countermeasure Examples
When switching an inductive load, connect a surge protector, diodes, etc., in par-
allel with the load or contact as shown below.

Circuit Current Characteristic Required element


AC DC
CR method Yes Yes If the load is a relay or solenoid, there The capacitance of the capacitor must
is a time lag between the moment the be 1 to 0.5 µF per contact current of 1
circuit is opened and the moment the A and resistance of the resistor must
load is reset. be 0.5 to 1 Ω per contact voltage of 1
Inductive

If the supply voltage is 24 or 48 V, V. These values, however, vary with


load

Power insert the surge protector in parallel the load and the characteristics of the
supply with the load. If the supply voltage is relay. Decide these values from
100 to 200 V, insert the surge experiments, and take into
protector between the contacts. 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.
Diode method No Yes The diode connected in parallel with The reversed dielectric strength value
the load changes energy accumulated of the diode must be at least 10 times
by the coil into a current, which then as large as the circuit voltage value.
Inductive

flows into the coil so that the current The forward current of the diode must
will be converted into Joule heat by be the same as or larger than the load
load

Power the resistance of the inductive load. current.


supply
This time lag, between the moment The reversed dielectric strength value
the circuit is opened and the moment of the diode may be two to three times
the load is reset, caused by this larger than the supply voltage if the
method is longer than that caused by surge protector is applied to electronic
the CR method. circuits with low circuit voltages.
Varistor method Yes Yes The varistor method prevents the ---
imposition of high voltage between the
contacts by using the constant voltage
characteristic of the varistor. There is
Inductive

time lag between the moment the


load

Power circuit is opened and the moment the


supply load is reset.
If the supply voltage is 24 or 48 V,
insert the varistor in parallel with the
load. If the supply voltage is 100 to
200 V, insert the varistor between the
contacts.

When switching a load with a high inrush current such as an incandescent lamp,
suppress the inrush current as shown below.

Countermeasure 1 Countermeasure 2

R
OUT OUT
R
COM COM

Providing a dark current of Providing a limiting resistor


approx. one-third of the rated
value through an incandescent
lamp

41
Wiring and Connections Section 3-4

3-4-6 Peripheral Device Connection


The CPM1 CPU Unit can be connected to a C200H-PRO27-E Programming
Console with a standard C200H-CN222 (2 m) or C200H-CN422 (4 m) Connect-
ing Cable. The CPM1 CPU Unit can be also connected to a CQM1-PRO01-E.
The CQM1-PRO01-E is provided with a 2-m Connecting Cable.

3-4-7 Host Link Connections


Host Link is a command/response communications system in which commands
are transmitted from the host computer and corresponding responses are
returned from the destination PCs. Host Link commands can be used to read/
write data in PC data areas and read/write PC settings.
1:1 Host Link Connection The CPM1 CPU Unit can be connected to an IBM PC/AT compatible computer
or a Programmable Terminal with an RS-232C Adapter, as shown in the follow-
ing diagram.

PT
Command

Command
Response

Response

RS-232C CPM1 RS-232C CPM1


Adapter CPU Unit Adapter CPU Unit

42
Wiring and Connections Section 3-4

The following diagram shows the wiring in the RS-232C cable used to connect a
CPM1 to a host computer or Programmable Terminal.
IBM PC/AT compatible computer
or Programmable Terminal (9-pin) RS-232C Adapter

Signal Pin No. Pin No. Signal


CD 1 1/Cover FG
RD 2 2 SD
SD 3 3 RD
ER 4 4 RS
SG 5 5 CS
DR 6 6 –
RS 7 7 –
CS 8 8 –
CI 9 9 SG

Note When the CPM1 is connected to a host computer, set the RS-232C Adapter’s
mode setting switch to “HOST.”

1:n Host Link Connection Up to 32 CPU Units (CPM1 only) can be connected to an IBM PC/AT compatible
computer or a Programmable Terminal with a B500-AL004 Link Adapter and
RS-422 Adapters, as shown in the following diagram.
Command

Link Adapter
3G2A9-AL004-E
Response

RS-422 CPM1 RS-422 CPM1 RS-422 CPM1


Adapter CPU Unit Adapter CPU Unit Adapter CPU Unit

43
Wiring and Connections Section 3-4

The following diagram shows the wiring in the RS-422 cables used to connect
CPM1 PCs to a B500-AL004 Link Adapter. In both the Link Adapter/RS-422
Adapter connections and the RS-422 Adapter/RS-422 Adapter connections,
connect the SG, RDA, RDB, SDA, and SDB terminals to the same terminals in
the other Adapter.

3G2A9-AL004-E Link Adapter

9-pin D-sub Connector


Signal Pin no.

RDB 1
– 2
SG 3
– 4
25-pin D-sub Connector
SDB 5
RDA 6
FG 7
– 8
Use a straight RS-232C
cable to connect to the SDA 9 RS-422 Adapter CPM1 CPU Unit
host computer’s
RS-232C port.

SG
RDA
RDB
SDA
SDB

Note 1. The maximum length of the RS-422 cable should be 500 m.


2. Set the termination resistance switch to “ON” (upper side) for the Link
Adapters on both ends of the Host Link system and for the RS-422 Adapter.
Always use crimp connectors when wiring the RS-422 Adapters. Use M3 termi-
nal screws and tighten the screws securely (0.5 N  m).

Fork terminal Ring terminal

6.2 mm max. 6.2 mm max.

44
Wiring and Connections Section 3-4

3-4-8 One-to-one PC Connections


A CPM1 can be linked to a CPM1, CQM1, or C200HS PC through an RS-232C
Adapter. One PC acts as the Master and the other as the Slave to link up to 256
bits in the LR area (LR 0000 to LR 1515).

RS-232C Cable

RS-232C Adapter RS-232C Adapter


(see note) CPM1 CPU Unit (see note) CPM1 CPU Unit

Link bits Link bits


LR 00 LR 00
WRITE WRITE area READ area READ
LR 07 LR 07
LR 08 LR 08
READ READ area WRITE area WRITE
LR 15 LR 15

Note One-to-one PC connections can only be used when the RS-232C Adapter
(CPM1-CIF01) is connected.

Set the DIP switch of the RS-232C Adapter (CPM1-CIF01) to the NT (bottom)
side.
The following diagram shows the wiring in the RS-232C cable used to connect a
CPM1 to another PC.

RS-232C Adapter RS-232C Adapter

Signal Pin No. Pin No. Signal


FG 1/Cover 1/Cover FG
SD 2 2 SD
RD 3 3 RD
RS 4 4 RS
CS 5 5 CS
– 6 6 –
– 7 7 –
– 8 8 –
SG 9 9 SG

45
Wiring and Connections Section 3-4

3-4-9 NT Link Connections


High-speed communications can be achieved by providing a direct access
through the use of the NT Link between the CPM1 and Programmable Terminal.
Programmable Terminal
RS-232C
Adapter

RS-232C Cable

CPM1
CPU Unit

Note The NT Link can only be used when the RS-232C Adapter (CPM1-CIF01) is con-
nected.
Set the DIP switch of the RS-232C Adapter (CPM1-CIF01) to the NT (bottom)
side.
The following diagram shows the wiring in the RS-232C cable used to connect a
CPM1 to a Programmable Terminal.
PT RS-232C Adapter

Signal Pin No. Pin No. Signal


– 1 1/Cover FG
SD 2 2 SD
RD 3 3 RD
RS 4 4 RS
CS 5 5 CS
– 6 6 –
– 7 7 –
– 8 8 –
SG 9 9 SG

46
SECTION 4
Using Peripheral Devices
This section outlines the operations possible with the SYSMAC Support Software (SSS) and the Programming Consoles.
Actual SSS operating procedures are provided in the SSS Operation Manual: C-series PCs. Programming Console connec-
tion and operating procedures are provided in this section.

4-1 Support Software Capabilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48


4-1-1 SSS System Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4-1-2 CPM1 Restrictions and Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4-1-3 Offline Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4-1-4 Online Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4-1-5 Offline and Online Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4-2 Using a Programming Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4-2-1 Compatible Programming Consoles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4-2-2 Connecting the Programming Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
4-2-3 Entering the Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
4-2-4 Changing the CPM1’s Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
4-3 Programming Console Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
4-3-1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
4-3-2 Clearing Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
4-3-3 Reading/Clearing Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
4-3-4 Buzzer Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
4-3-5 Setting and Reading a Program Memory Address . . . . . . . . . . . . . . . . . . . . . . . . 62
4-3-6 Instruction Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
4-3-7 Bit Operand Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
4-3-8 Inserting and Deleting Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
4-3-9 Entering or Editing Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
4-3-10 Checking the Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
4-3-11 Bit, Digit, Word Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
4-3-12 Differentiation Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
4-3-13 Binary Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
4-3-14 3-Word Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71
4-3-15 Signed Decimal Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
4-3-16 Unsigned Decimal Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
4-3-17 3-Word Data Modification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
4-3-18 Changing Timer, Counter SV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
4-3-19 Hexadecimal, BCD Data Modification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
4-3-20 Binary Data Modification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
4-3-21 Signed Decimal Data Modification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
4-3-22 Unsigned Decimal Data Modification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
4-3-23 Force Set, Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
4-3-24 Clear Force Set/Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
4-3-25 Hex-ASCII Display Change . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
4-3-26 Displaying the Cycle Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
4-4 Programming Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
4-4-1 Preparatory Operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
4-4-2 Example Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
4-4-3 Programming Procedures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
4-4-4 Checking the Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
4-4-5 Test Run in MONITOR Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84

47
Support Software Capabilities Section 4-1

4-1 Support Software Capabilities


The SSS is a complete programming and control package designed for C-series
and CVM1 PCs. It provides not only programming capabilities, but also
advanced debugging, monitoring, and program/data management. The follow-
ing tables provide only a brief introduction to the capabilities of the SSS. For fur-
ther information and actual operating procedures, please refer to the SYSMAC
Support Software Operation Manual: C-series.
CPM1 programming can be performed with all versions of SSS. Ladder Support
Software (LSS) version 5.0 or higher can also be used.
In addition, the SYSMAC-CPT can be used for programming the CPM1. Refer to
the SYSMAC-CPT Support Software Quick Start Guide (W332) and User
Manual (W333) for operation procedures. When programming the CPM1 using
the SYSMAC-CPT, be sure to set the “PC model” on the Support Software to
“CPM1 (CPM1A).”

4-1-1 SSS System Setup


Set the PC Model to “CQM1” and the PC Interface to “PERIPHERAL.” Follow the
directions in the SSS Operating Manual for other System Setup settings.

PC Model If the CPM1 PC doesn’t appear as an option in the SSS’s System Setup, set the
PC Model to “CQM1.” The CPM1 is compatible with the CQM1.

PC Interface Set the PC Interface to the Peripheral Device Port by selecting “PERIPHERAL”
from the submenu. After selecting the Peripheral Device Port, set the commu-
nications baud rate to 9,600 baud.

4-1-2 CPM1 Restrictions and Precautions


When programming the CPM1, set the PC Model on the SSS to “CQM1.” Heed
the following restrictions when programming the CPM1.

Programming Check Since the data area of the CQM1 is larger than that of the CPM1, some parts of
the area cannot be checked as the CPM1 PC. Pay careful attention to the usable
data area when programming.

Note If a program that contains addresses not supported by the CPM1 are transferred
to the CPM1, a memory error will occur when operation is begun and AR 1308
will turn ON. Refer to the Programming Manual (W228) for differences in
memory areas.

Memory Usage Since the memory of the the CQM1 is larger than that of the CPM1, the displayed
available memory capacity is larger than the actual available memory capacity.
Pay careful attention to the actual available memory capacity when program-
ming.

Expansion Instructions When a program is transferred after changing the assignment of function codes
for the 18 expansion instructions, a message to “Turn on the DIP switch of the
PC and execute again” is displayed. Change the assignment of the function
codes for the expansion instructions to the default settings before programming.

48
Support Software Capabilities Section 4-1

The default settings for the CQM1 are as shown in the following table.

Function code Mnemonic Function code Mnemonic


17 ASFT 64 SPED
18 TKY 65 PULS
19 MCMP 66 SCL
47 RXD 67 BCNT
48 TXD 68 BCMP
60 CMPL 69 STIM
61 INI 87 DSW
62 PRV 88 7SEG
63 CTBL 89 INT

Online Editing If unsupported addresses are set in the program for operands or set values,
error messages will be displayed and the values will not be accepted.

4-1-3 Offline Operations


A  symbol indicates the operation can be performed with CVM1 PCs only.

Group Name Description


Programming Connect line Draws a line between two ladder diagram objects.
Save program Writes all or part of the user program developed in the system work area to the
data disk.
Retrieve program Retrieves all or part of the user program stored on a data disk to the system
work area.
Change display Specifies the display modes for the user program.
Search Searches for instructions including specified operands. An address from which
the search is to be started can be specified
I/O comment Creates I/O comments corresponding to bit addresses in the Ladder With
Comments mode. In addition, reads (searches) and edits the program for
comments.
Instr comment Creates and edits instruction comments for output instructions in the Ladder
With Comments mode. (C-series PCs only)
Block comment Creates, reads (searches), and edits block comment in the Ladder With
Comments mode.
Edit ladder Edits ladder diagrams using the following:
• Moving specified instruction blocks
• Copying specified instruction blocks
• Deleting specified instruction blocks
Edit comments Displays I/O comments simultaneously to write, edit, and search for specified
comments.
Retrieve Retrieves comments from the program stored on a data disk. The I/O comments
comments are read to the system work area. Instruction comments (C-series PCs only)
and block comments are copied to the currently displayed program.
Memory usage Displays the used capacity of the user program memory, the number of
comments used, and the available capacity of the internal memory.
Clear memory Clears the user program memory. The starting address for clearing can be
specified. The comment memory can also be cleared.
Check program Checks whether the user program contains syntax errors. The check can be
performed in three levels.
 Edit interrupt Used to create I/O interrupt, scheduled interrupt, power off interrupt, and power
program on interrupt programs. (CVM1 PCs only)
 Program input Used to change the ladder diagram input mode between symbols and text
mode strings. (CVM1 PCs only)

49
Support Software Capabilities Section 4-1

Group Name Description


DM Go To Page Displays the contents of the data memory in the system work area in pages
(data memory) (units of 160 words). The data can be altered with this function. (C-series PCs
only)
Copy Copies the contents of the DM area of the system work area (data memory
information).
Fill Writes the same data to more than one data word in the system work area data
memory area.
Print Prints a specified range of DM words.
Hex <—> ASCII Specifies the display mode for the data memory contents when the work disk
data memory contents are to be altered. The display mode can be hexadecimal
or ASCII.
Save DM Data Writes the contents of a specified range of system work area data memory to
the data disk.
Retrieve DM Data Retrieves the saved data disk data memory to the system work area DM area.
 Read DM Used to display DM data from the work disk up to 160 words at a time.
Address Displayed data can be modified. (CVM1 PCs only)
 Switch Bank Used to specify the Expansion DM bank on the work disk. (CVM1 PCs only)
Number
 Save file Used to save file data (with an .IOM) extension from the work disk to a data
disk. (CVM1 PCs only)
 Retrieve file Use to retrieve file data (with an .IOM extension) from a data disk to the work
disk. (CVM1 PCs only)
I/O Table Write I/O Table Edits the I/O table in the system work area.
Check I/O Table Checks the contents of the I/O table in the system work area.
Save I/O Table Writes the I/O table in the system work area to a data disk.
Retrieve I/O Table Retrieves the I/O table data stored on a data disk to the system work area.
 Clear I/O Table Used to delete the I/O table from the work disk. (CVM1 PCs only)
 Custom I/O Used to specify CPU Bus Unit classifications. (CVM1 PCs only)
Table SIOU
Print I/O Table Prints an I/O table list. (C-series PCs only)

50
Support Software Capabilities Section 4-1

Group Name Description


Utility Data Area Lists Displays lists (such as used areas and cross-references) in accordance with the
contents of the user program in the system work area.
Change Globally changes bit and word addresses in the user program in the system
Addresses work area.
Print Lists Prints lists, ladder diagrams, and mnemonics in accordance with the contents of
the user program in the system work area.
EPROM/Memory Writes, reads, and compares the user program between the PROM
Card Writer/Memory Card and system work area.
Program C500 → C2000H:
Conversion Converts C500-family programs to C2000H programs.
C2000H → CVM1:
Converts C2000H-family programs to CVM1 programs
Create Library Creates a library on a floppy disk or hard disk for use as an LSS data disk.
File
Time Chart Accesses the time chart monitor data produced online. (C-series PCs only)
Monitor
Instruction Trace Accesses the instruction trace data produced online. (C-series PCs only)
Data trace Accesses the data trace data produced online.
Set Instructions Used to assign instructions to function codes in the instructions table and to
save and retrieve instructions tables to and from data disk files. (C-series PCs
only)
Retrieve/Save Used to save and retrieve expansion instruction sets to and from data disk files.
Instr (C-series PCs only)
PC Setup Used to set the PC operating parameters in the PC Setup and to save and
retrieve PC Setups to and from data disk files.
Allocate UM Used to allocate parts of the user memory area for used as a Fixed DM Area
and/or I/O Comment Area. (C-series PCs only)
 Edit PC ID Used to create, edit, search for, or print PC IDs (names). (CVM1 PCs only)
 Compare Used to compare a program in a data disk with the program in the work file in
Programs the computer. (CVM1 PCs only)
 Customization Used to change bit/word names, to define custom data areas, or to register HIS
instructions. (CVM1 PCs only)
Network Support Used to edit data link tables and routing tables for the SYSMAC NET and
Table SYSMAC LINK Systems.
File Directory Displays a file list. Wildcard names can be used to display only desired files.
Management
Copy File Copies files on the same floppy disk or between different disks.
Change File Name Changes the name of a specified file.
Delete File Deletes a specified file.
LSS File Used to change between LSS-style data files and DOS-style data files.
Management

51
Support Software Capabilities Section 4-1

4-1-4 Online Operations


Refer to 1-2-5 Peripheral Device Connections for details on connecting a per-
sonal computer to the CPM1.

Group Name Description


Monitoring Monitor Data Uses the lower one third of the screen as a monitor area where bits, words, DM
contents, and TIM/CNT SV/PV are monitored, forced-set/reset, and changed.
Transfer Program Transfers and compares the user program between the computer and PC.
Change Display C-series PCs
Ladder W/Comments
Ladder
CVM1 PCs
Ladder
Ladder (2 rows of comments)
Ladder (4 rows of comments)
Online Edit Simultaneously edits the PC program and the program in the system work area.
Read Cycle Time Reads and displays the scan time of the PC.
Clear Area Clears the PC data areas such as HR, CNT, AR, and DM (to zero).
Search Searches for instructions (including specified operands).
I/O Comments Searches for I/O comments.
Block Comments Searches for block comments.
Memory Usage Displays used program memory area, the number of comments used, and the
available capacity of the internal memory.
 Monitor Interrupt Used to monitor I/O interrupt, scheduled interrupt, power off interrupt, and power
Program on interrupt programs. (CVM1 PCs only)
 Program Input Used to change the ladder diagram input mode between symbols and text strings.
Mode (CVM1 PCs only)
 Monitor Other Used to allow basic monitoring operations (I/O monitor, set/reset, PV changes,
Node etc.) for other PCs connected to the the same network. (CVM1 PCs only)
DM Transfer Retrieves PC DM data to the system work area. (C-series PCs only)
PC —> Computer
Transfer Writes system work area DM data to the PC. (C-series PCs only)
Computer—>PC
Transfer Compares DM data between the system work area and PC. (C-series PCs only)
Verify
Monitor Used to monitor DM area contents in the PC. (C-series PCs only)
Go To Page Reads a specified page from the DM list of the DM area in the system work area
or PC. (C-series PCs only)
 Read DM Addr Reads the contents of the DM area, including the specified DM address, from the
work disk and displays it in the DM table. (CVM1 PCs only)
 Copy Copies multiple, consecutive words of DM data to a specified destination DM
address. (CVM1 PCs only)
 Fill Places a specified value into multiple, consecutive words of the DM area. Filling
with 0000 clears the DM words. (CVM1 PCs only)
 Print Prints multiple, consecutive words of DM data. (CVM1 PCs only)
 HEX <-> ASCII Specified inputs using hexadecimal or ASCII. The mode set will be displayed in
the top-right of the screen. (CVM1 PCs only)
 Switch Bank Switches editing between the standard DM and EM banks. (CVM1 PCs only)
Number
 Save DM data Saves the DM data from the work disk to the data disk or hard disk. (CVM1 PCs
only)
 Retrieve DM data Retrieves the DM data on the data disk or hard disk to the work disk. (CVM1 PCs
only)
 Transfer DM Transfers and compares DM data between the SSS and the PC. (CVM1 PCs
only)

52
Support Software Capabilities Section 4-1

Group Name Description


I/O Table Transfer I/O Table Transfers and compares the I/O table data between the computer and PC.
Create I/O Table Registers into the PC the I/O Units mounted on the PC and then assigns the
words to the Units.
Verify I/O Table Compares the I/O table registered in the PC against the I/O Units actually
mounted on the PC.
 Clear I/O Table Deletes the I/O tables (C200H and C200HS PCs only)
Utility File Memory/ Displays a file memory list; transfers the file memory contents between the PC
Memory Card and computer or the PC and File Memory Unit; clears the file memory; saves or
retrieves the file memory contents to or from a floppy disk; and edits file memory
contents
Time Chart Monitor Used to execute time chart monitoring and to display, save, or retrieve results.
(C-series PCs only)
Instruction Trace Used to execute instruction traces and used to display, save, or retrieve results.
(C-series PCs only)
Data Trace Used to execute data traces and used to display, save, or retrieve results.
Debug Used to display the execution status of the specified program section.
(C-series PCs only)
Display/Set Clock Used to read and set the internal clock in the PC. (CQM1, C200HS, or CVM1
only)
Transfer Instr Used to transfer expansion instruction set from the PC to the SSS.
(C-series PCs only)
 Custom data Used to transfer customized settings from the SSS to the PC. (CVM1 PCs only)
 CPU Bus Unit Used to set parameters for SYSMAC NET, SYSMAC LINK, and SYSMAC BUS/2
Setup communications. (CVM1 PCs only)
PC Setup Changes the PC Setup in the PC and in the system work area and used to
transfer the PC Setup between the PC the disk (save/retrieve).
 SYSMAC BUS/2 Used to manipulate SYSMAC BUS/2 Remote I/O Master Units. (CVM1 PCs only)
 Read Error Log Used to read the current error and error logs. Also used to force-release the
access right to a PC. (CVM1 PCs only)
 Protect UM Used to protect all or part of the user program by creating passwords. Program
access will not be possible to protected sections without the proper password.
(CVM1 PCs only)
Network Support C-series PCs: Used to input data link tables for SYSMAC NET.
Tables CVM1 PCs: Used to transfer data link tables and routing tables between Link
Units, the PC, and the SSS and to compare these tables. Also used
to start and start data links.
 Network Used to run tests between nodes, to read node status, and to read error logs from
Diagnosis Units for the SYSMAC NET and SYSMAC LINK Systems. Also used for SYSMAC
LINK Systems to run broadcast tests and set network parameters. (CVM1 PCs
only)

53
Support Software Capabilities Section 4-1

4-1-5 Offline and Online Operations


Group Name Description
System Setup PC model Specifies the model of PC that is being programmed or that is connected to the
(see note) computer.
PC Interface C-series PCs: Specifies whether communications with the PC are performed
through a SYSMAC NET Link Unit, peripheral interface, or a Host
Link (RS-232C) interface and the computer port (COM1 or COM2)
to use. When a Host Link Unit is used, it also specifies the port
number and baud rate.
CVM1 PCs: Used to specify the communications protocol for communications
with the PC, i.e., peripheral or Host Link (RS-232C) interface. The
baud rate, PC unit number, parity, data length, and number of stop
bits are designated.
Network Specifies the network address, node number, and data code type of the SYSMAC
address NET Link Unit communicating with the SSS on the SYSMAC NET System. The
address determines the PC to be connected to for online operations.
With CVM1 PCs this setting is also used to specify the PC being communicated
with through networks when connected via a peripheral or Host Link interface.
 Message No. Specifies which messages are to be displayed on the SSS from messages
programmed in the PC with the MESSAGE instruction. (CVM1 PCs only)
I/O table – Specifies whether the I/O table and data link tables are transferred to the user
UM transfer program area when the user program is transferred between the computer and
PC or PROM Writer. (C-series PCs only)
EPROM Specifies the baud rate and port number of the PROM Writer connected to the
interface computer. (C-series PCs only)
Printer model Specifies the printer model.
Data disk drive Specifies the data disk drive.
OutBit Specifies whether I/O comments or instruction comments are displayed at the
Comment Type TIM/CNT, DIFU/DIFD, KEEP, and STEP/SNXT comment display positions.
(C-series PCs only)
Exit to DOS Terminates SSS operation and returns to DOS.

Note When the SSS is operating in online mode, the only functions available on the
System Setup Menu are “I/O table – UM transfer,” “Data disk drive,” and “Exit to
DOS.”

54
Using a Programming Console Section 4-2

4-2 Using a Programming Console


This section provides information on connecting and using a Programming Con-
sole. Refer to 5-4 Programming Console Operation Errors for details on errors
that might occur during Programming Console operations.

4-2-1 Compatible Programming Consoles


There are two Programming Consoles that can be used with the CPM1: the
CQM1-PRO01-E and the C200H-PRO27-E. The key functions for these Pro-
gramming 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.

C200H-PRO27-E
CQM1-PRO01-E (Use a C200H-CN222 (2 m) or
(A 2-m connecting cable is attached.) C200H-CN422 (4 m) Connecting
Cable.)

LCD display

Mode
selector
CPM1 operating mode

Instruction
keys

Numeric
keys

Operation
keys

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 Keys C200H-PRO27-E Keys


AR
HR
HR

PLAY
SET
SET

REC
RESET
RESET

55
Using a Programming Console Section 4-2

4-2-2 Connecting the Programming Console


Connect the Programming Console’s connecting cable to the CPM1’s periph-
eral port, as shown below.

Panel Installation The 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 hole dimensions


Mounting Bracket (DIN43700 standards)

Two screws

186 +1.1
–0

92 +0.8
–0

Panel thickness: 1.0 to 3.2 mm

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.

About 70 mm is required.

56
Using a Programming Console Section 4-2

4-2-3 Entering 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 Pro-
gramming Console was connected. Ensure that the PC is in PROGRAM mode
before 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 MON-
ITOR with the mode switch after entering the password.

<PROGRAM>
PASSWORD!

<PROGRAM> BZ

Indicates the mode set by the mode selector switch.

57
Using a Programming Console Section 4-2

4-2-4 Changing the CPM1’s Mode


Once the Programming Console has been connected, its mode switch can be
used to change the CPM1’s PC 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 dis-
play will remain on the Programming Console’s screen and the mode display
won’t appear.
• The CPM1 will enter RUN mode automatically if a Peripheral Device such as a
Programming Console isn’t connected when the CPM1 is turned on.

MONITOR MONITOR MONITOR


RUN PROGRAM RUN PROGRAM RUN PROGRAM

Mode display

<PROGRAM> BZ <MONITOR> BZ <RUN> BZ

CLR SHIFT CLR


Operation Operation

Initial display
00000

PROGRAM Mode The CPM1 program isn’t executed in PROGRAM mode. Use PROGRAM mode
to create and edit the program, clear memory, or check the program for errors.
MONITOR Mode The CPM1 program is executed in MONITOR mode and I/O is processed just as
it is in RUN mode. Use MONITOR mode when testing the system by monitoring
the CPM1’s operating status, force-setting and resetting I/O bits, changing the
SV/PV of timers and counters, etc.
RUN Mode This is the CPM1’s normal operating mode. The CPM1’s operating status can be
monitored from a Peripheral Device, but bits can’t be force-set/force-reset and
the SV/PV of timers and counters can’t be changed.

! Caution Be sure to confirm that no adverse effect will occur with the equipment before
changing the operating mode of the PC.

58
Programming Console Operations Section 4-3

4-3 Programming Console Operations


4-3-1 Overview
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.
Name Function
Clearing memory Clears all or part of the Program Memory and any data areas that are not read-only, as well
as the contents of the Programming Console’s memory.
Reading/clearing error Displays and clears error messages and displays MESSAGE instruction messages.
messages
Buzzer operation Turns on and off the buzzer that sounds when Programming Console keys are pressed.
Setting a program Sets the specified program memory address when reading, writing, inserting and deleting
memory address programs.
Reading a program Reads the contents of the Program Memory. Displays the status of the currently displayed bit
memory address in PROGRAM and MONITOR modes.
Instruction search Finds occurrences of the specified instruction in the program.
Bit operand search Finds occurrences of the specified operand bit in the program.
Inserting and deleting Inserts or deletes instructions from the program.
instructions
Entering or editing Overwrites the contents of the current Program Memory to either input a program for the first
programs time or to change a program that already exists.
Checking the program Checks for programming errors and displays the program address and error when errors are
found.
Bit, digit, word monitor Monitors the status of up to 16 bits and words, although only 3 can be shown on the display
at one time.
Multiple address Monitors the status of up to 6 bits and words simultaneously.
monitor
Differentiation monitor Monitors the up or down differentiation status of a particular bit.
Binary monitor Monitors the ON/OFF status of any word’s 16 bits.
3-word monitor Monitors the status of three consecutive words.
Signed decimal Converts the contents of the specified word from signed hexadecimal (two’s complement
monitor format) to signed decimal for display.
Unsigned decimal Converts hexadecimal data in a word to unsigned decimal for display.
monitor
3-word data Changes the contents of one or more of the 3 consecutive words displayed in the 3-Word
modification Monitor operation.
Changing timer, Changes the SV of a timer or counter.
counter SV 1
Changing timer, Makes fine adjustment changes to the SV of the timer or counter.
counter SV 2
Hexadecimal, BCD Changes the BCD or hexadecimal value of a word being monitored.
data modification
Binary data Changes the status of a word’s bits when the word is being monitored.
modification
Signed decimal data Changes the decimal value of a word being monitored as signed decimal data, within a
modification range of –32,768 to 32,767. The contents of the specified word are converted automatically
to signed hexadecimal (two’s complement format.)
Unsigned decimal data Changes the decimal value of a word being monitored as unsigned decimal data, within a
modification range of 0 to 65,535. A change into hexadecimal data is made automatically.
Force set/reset Forces bits ON (force set) or OFF (force reset.)
Clear force set/reset Restores the status of all bits which have been force set of reset.
Hex-ASCII display Converts word data displays back and forth between 4-digit hexadecimal data and ASCII.
change
Displaying the cycle Displays the current average cycle time (scan time.)
time

59
Programming Console Operations Section 4-3

4-3-2 Clearing Memory


This operation is used to clear all or part of the Program Memory and any data
areas that are not read-only, as well as the contents of the Programming Con-
sole’s memory. This operation is possible in PROGRAM mode only.
RUN MONITOR PROGRAM
No No OK

Before beginning to program for the first time or when installing a new program,
clear all areas.
All Clear The following procedure is used to clear memory completely.
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.
00000MEMORY CLR?
SET NOT RESET
HR CNT DM
3. Press the MONTR Key to clear memory completely.
00000MEMORY CLR
MONTR
END HR CNT DM

! Caution The PC Setup (DM 6600 through DM 6655) will be cleared when this operation is
performed.

Partial Clear It 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.
00000MEMORY CLR?
CNT
HR DM
4. Press 123 to specify 123 as the starting program address.
B C D 00123MEMORY CLR?
1 2 3
HR DM
5. Press the MONTR Key to clear the specified regions of memory.
00000MEMORY CLR
MONTR
END HR DM

60
Programming Console Operations Section 4-3

4-3-3 Reading/Clearing Error Messages


This operation is used to display and clear error messages. It is possible to dis-
play and clear non-fatal errors and MESSAGE instruction messages in any
mode, but fatal errors can be cleared in PROGRAM mode only.

RUN MONITOR PROGRAM


OK OK OK

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 5 Test
Runs and Error Processing for troubleshooting information.)

Key Sequence Follow 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:
ERR/MSG CHK OK
FUN MONTR

If there are messages, the most serious message will be displayed when the
MONTR Key is pressed. Pressing MONTR again will clear the present mes-
sage 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:
MATERIAL USED UP
MONTR

All messages cleared:


ERR/MSG CHK OK
MONTR

4-3-4 Buzzer Operation


This operation is used to turn on and off the buzzer that sounds when Program-
ming 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.

RUN MONITOR PROGRAM


OK OK OK

61
Programming Console Operations Section 4-3

Key Sequence Follow 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.
<MONITOR> BZ

2. Press the SHIFT and then the 1 Key to turn off the buzzer.
B <MONITOR>
SHIFT 1

3. Press the SHIFT and then the 1 Key again to turn the buzzer back on.
B <MONITOR> BZ
SHIFT 1

4-3-5 Setting and Reading a Program Memory Address


This operation is used to display the specified program memory address and is
possible in any mode.
RUN MONITOR PROGRAM
OK OK OK

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 desig-
nated.
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 A 00200
2 0 0

3. Press the Down Arrow Key.


00200READ OFF
↓ LD 00000
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

4-3-6 Instruction Search


This operation is used to find occurrences of the specified instruction in the pro-
gram and is possible in any mode.
RUN MONITOR PROGRAM
OK OK OK

The ON/OFF status of any displayed bit will be shown if the PC is in RUN or
MONITOR mode.
1, 2, 3... 1. Press the CLR Key to bring up the initial display.

62
Programming Console Operations Section 4-3

2. Input the address from which the search will begin and press the Down
Arrow Key. It is not necessary to input leading zeroes.

B A A 00100
1 0 0 ↓ TIM 001
3. Input the instruction to be found and press the SRCH Key. In this case, the
search is for LD instructions.
In this case, the next LD instruction is at address 200, as shown below.

LD 00200SRCH
SRCH
LD 00000
4. Press the Down Arrow Key to display the instruction’s operands or press the
SRCH Key to search for the next occurrence of the instruction.
5. The search will continue until an END instruction or the end of Program
Memory is reached. In this case, an END instruction was reached at
address 397.
00397SRCH
SRCH
END(001)(00.4KW)

4-3-7 Bit Operand Search


This operation is used to find occurrences of the specified operand bit in the pro-
gram and is possible in any mode.

RUN MONITOR PROGRAM


OK OK OK

The ON/OFF status of any displayed bit will be shown if the PC is in RUN or
MONITOR mode.

1, 2, 3... 1. Press the CLR Key to bring up the initial display.


2. Input the operand address. It is not necessary to input leading zeroes.

CONT F 00000CONT SRCH


SHIFT 5
# CONT 00005
3. Press the SRCH Key to begin the search.
00200CONT SRCH
SRCH
LD 00005
4. Press the SRCH Key to search for the next occurrence of the operand bit.
5. The search will continue until an END instruction or the end of Program
Memory is reached. In this case, an END instruction was reached.
00397SRCH
SRCH
END(001)(00.4KW)

4-3-8 Inserting and Deleting Instructions


This operation is used to insert or delete instructions from the program. It is pos-
sible in PROGRAM mode only.

RUN MONITOR PROGRAM


No No OK

63
Programming Console Operations Section 4-3

To demonstrate this operation, an IR 00105 NO condition will be inserted at


program address 00206 and an IR 00103 NO condition deleted from address
00205, as shown in the following diagram.

Original Program

Address Instruction Operands


00100 00101 00103 00104
01000

00201 00102 Delete


00105
Delete 00205 AND 00103
Insert
00206 AND NOT 00104
Insert 00207 OUT 01000
END(001) 00208 END(001) -

Insertion Follow the procedure below to insert the IR 00105 NO condition at address
00206.

1, 2, 3... 1. Press the CLR Key to bring up the initial display.


2. Input the address where the NO condition will be inserted and press the
Down Arrow Key. It is not necessary to input leading zeroes.
C A 00206READ
2 0 6 ↓ AND NOT 00104
3. Input the new instruction and press the INS Key.

AND B A F 00206INSERT?
1 0 5 INS
AND 00105
4. Press the Down Arrow Key to insert the new instruction.
00207INSERT END
↓ AND NOT 00104

Note For instructions that require more operands (such as set values),
input the operands and then press the WRITE Key.

Deletion Follow the procedure below to delete the IR 00103 NO condition at address
00205.

1, 2, 3... 1. Press the CLR Key to bring up the initial display.


2. Input the address where the NO condition will be deleted and press the
Down Arrow Key. It is not necessary to input leading zeroes.
C A F 00205READ
2 0 5 ↓ AND 00103
3. Press the DEL Key.
00205DELETE?
DEL
AND 00103
4. Press the Up Arrow Key to delete the specified instruction.
If the instruction has more operands, the operands will be deleted automati-
cally with the instruction.
00205DELETE END

AND 00105

64
Programming Console Operations Section 4-3

After completing the insertion and deletion procedures, use the Up and Down
Arrow Keys to scroll through the program and verify that it has been changed
correctly, as shown in the following diagram.
Corrected Program

Address Instruction Operands


00100 00101 00105 00104
01000

00201 00102

00205 AND 00105


00206 AND NOT 00104
00207 OUT 01000
END(001) 00208 END(001) -

4-3-9 Entering or Editing Programs


This operation is used enter or edit programs. It is possible in PROGRAM mode
only.
RUN MONITOR PROGRAM
No No OK

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.
The program shown in the following diagram will be entered to demonstrate
this operation.

00002
TIM 000 Address Instruction Operands
#0123 12.3 s 00200 LD IR 00002
00201 TIM 000
MOV(021) #0123
#0100 00202 MOV(021)
LR 10
#0100
LR 10
00203 ADB(050)
ADB(050) #0100
#0100 #FFF6
#FFF6 DM 0000
DM 0000

1, 2, 3... 1. Press the CLR Key to bring up the initial display.


2. Specify the address where the program will begin.
3. Input the address where the program will begin and press the Down Arrow
Key. It is not necessary to input leading zeroes.
C A A 00200
2 0 0 ↓

4. Input the first instruction and operand.


LD C 00200
2
LD 00002
5. Press the WRITE Key to write the instruction to Program Memory. The next
program address will be displayed.
00201READ
WRITE
NOP(000)

65
Programming Console Operations Section 4-3

If a mistake was made inputting the instruction, press the Up Arrow Key to
return to the previous program address and input the instruction again. The
mistaken instruction will be overwritten
6. Input the second instruction and operand. (In this case it isn’t necessary to
enter the timer number, because it’s 000.) Press the WRITE Key to write the
instruction to Program Memory.
00201 TIM DATA
TIM Timer number WRITE
#0000
7. Input the second operand (123 to specify 12.3 seconds) and press the
WRITE Key. The next program address will be displayed.
B C D 00202READ
1 2 3 WRITE
NOP(000)
If a mistake was made inputting the operand, press the Up Arrow Key to
return to display the mistaken operand, press the CONT/# Key and 123
again. The mistaken operand will be overwritten.
Note Counters are input in the same basic way as timers except the CNT
Key is pressed instead of the TIM Key.
8. Input the third instruction and its operands. First input the instruction by
pressing the FUN Key and then the function code (21 in this case).
C B 00202
FUN 2 1
MOV(021)
Note To input a differentiated instruction, press the NOT Key after entering
the function code. The “@” symbol will be displayed next to differen-
tiated instructions. Press the NOT Key again to change back the
instruction back to a non-differentiated instruction. The “@” symbol
will disappear. To change an instruction after it has been entered,
simply scroll through the program until the desired instruction is dis-
played and press the NOT Key. The “@” symbol should be displayed
next to the instruction.
9. Press the WRITE Key to write the instruction to Program Memory. The input
display for the first operand will be displayed.
00202 MOV DATA A
WRITE
000
• Writing Hexadecimal, BCD Constant
10. Input the first operand.
CONT B A A 00202 MOV DATA A
1 0 0
# #0100
Press the WRITE Key to write the instruction to Program Memory. The input
display for the second operand will appear.
00202 MOV DATA B
WRITE
000
• Writing a Word Address
11. Input the second operand.
B A 00202 MOV DATA B
LR 1 0
LR 10
Press the WRITE Key to write the instruction to Program Memory. The next
program address will be displayed.
00203READ
WRITE
NOP(000)

66
Programming Console Operations Section 4-3

Note When an instruction operand is input, the bit or word designation can
be omitted.
12. Input the next instruction.
F A 00203
FUN 5 0
ADB(050)
Press the WRITE Key to write the instruction to Program Memory.
00203 ADB DATA A
WRITE
#0000
• Writing an Unsigned Decimal Number
13. The first operand is input as an unsigned integer.
CONT 00203 ADB DATA A
#
SHIFT TR NOT
#00000
Input the value of the operand from 0 to 65535.
C F 00203 ADB DATA A
2 5 6 #00256
Note If an erroneous input is made, press the CLR Key to restore the status
prior to the input. Then enter the correct input.
14. Restore the hexadecimal display.
00203 ADB DATA A
SHIFT TR
#0100
Note If an input is made outside of the permissible range, a buzzer will
sound and the hexadecimal display will not be displayed.
00203 ADB DATA B
WRITE
000
15. The second operand is input as a signed integer.
CONT 00203 ADB DATA B
SHIFT TR
# #+00000
Input the value of the operand from –32,768 to 32,767. Use the SET Key to
input a positive number, and use the RESET Key to input a negative number.
REC B A 00203 ADB DATA B
1 0
RESET #Ć00010
Note If an erroneous input is made, press the CLR Key to restore the status
prior to the input. Then enter the correct input.
16. Restore the hexadecimal display.
00203 ADB DATA B
SHIFT TR
#FFF6
Note If an input is made outside of the permissible range, a buzzer will
sound and the hexadecimal display will not be displayed.
00203 ADB DATA C
WRITE
000
17. Input the final operand and then press the WRITE Key.
00203 ADB DATA C
DM
DM 0000
00204READ
WRITE
NOP(000)

67
Programming Console Operations Section 4-3

4-3-10 Checking the Program


This operation checks for programming errors and displays the program
address and error when errors are found. It is possible in PROGRAM mode
only.
RUN MONITOR PROGRAM
No No OK

1, 2, 3... 1. Press the CLR Key to bring up the initial display.


2. Press the SRCH Key. An input prompt will appear requesting the desired
check level.
00000PROG CHK
SRCH
CHK LBL (0Ć2)?
3. Input the desired check level (0, 1, or 2). The program check will begin when
the check level is input, and the first error found will be displayed.
A 00178CIRCUIT ERR
0
OUT 00200
Note Refer to 5-5 Programming Errors for details on check levels.
4. Press the SRCH Key to continue the search. The next error will be dis-
played. Continue pressing the SRCH Key to continue the search.
The search will continue until an END instruction or the end of Program
Memory is reached. A display like this will appear if the end of Program
Memory is reached:
00300NO END INST
SRCH
END
A display like this will appear if an END instruction is reached:
00310PROG CHK
SRCH
END (001)00.3KW
If errors are displayed, edit the program to correct the errors and check the pro-
gram again. Continue checking the program until all errors have been corrected.

4-3-11 Bit, Digit, Word Monitor


This operation is used to monitor the status of up to 16 bits and words,
although only 3 can be shown on the display at any one time. Operation is
possible in any mode.
RUN MONITOR PROGRAM
OK OK OK

Program Read then Monitor When a program address is being displayed, the status of the bit or word in that
address can be monitored by pressing the MONTR Key.
1, 2, 3... 1. Press the CLR Key to bring up the initial display.
2. Input the desired program address and press the Down Arrow Key.
C A A 00200READ
2 0 0 ↓ TIM 000
3. Press the MONTR Key to begin monitoring.
T000
MONTR
1234
If the status of a bit is being monitored, that bit’s status can be changed using
the Force Set/Reset operation. Refer to page 77 for details.

68
Programming Console Operations Section 4-3

If the status of a word is being monitored, that word’s value can be changed
using the Hexadecimal/BCD Data Modification operation. Refer to page 74
for details.
4. Press the CLR Key to end monitoring.
00200
CLR
TIM 000
Bit Monitor Follow the procedure below to monitor the status of a particular bit.
1, 2, 3... 1. Press the CLR Key to bring up the initial display.
2. Input the bit address of the desired bit and press the MONTR Key.
CONT B 00001
SHIFT 1 MONTR
# ^ ON
The Up or Down Arrow Key can be pressed to display the status of the pre-
vious or next bit.
The displayed bit’s status can be changed using the Force Set/Reset opera-
tion. Refer to page 77 for details.
3. Press the CLR Key to end monitoring.
00000
CLR
CONT 00001
Word Monitor Follow the procedure below to monitor the status of a particular word.
1, 2, 3... 1. Press the CLR Key to bring up the initial display.
2. Input the word address of the desired word.
CH B 00000
SHIFT LR 1
* CHANNEL LR 01
3. Press the MONTR Key to begin monitoring.
cL01
MONTR
FFFF
The Up or Down Arrow Key can be pressed to display the status of the pre-
vious or next word.
The displayed word’s status can be changed using the Hexadecimal/BCD
Data Modification operation. Refer to page 74 for details.
4. Press the CLR Key to end monitoring.
00000
CLR
CHANNEL LR 01
Multiple Address The status of up to six bits and words can be monitored simultaneously, although
Monitoring only three can be shown on the display at any one time.
1, 2, 3... 1. Press the CLR Key to bring up the initial display.
2. Input the address of the first bit or word and press the MONTR Key.
T000
TIM MONTR
0100
3. Repeat step 2 up to 6 times to display the next addresses to be monitored.
CONT B 00001 T000
SHIFT 1 MONTR
# ^ OFF 0100
D0000 00001 T000
DM MONTR
0000 ^ OFF 0100
If 4 or more bits and words are being monitored, the bits and words that do
not appear on the display can be displayed by pressing the MONTR Key. If
the MONTR Key is pressed alone, the display will shift to the right.

69
Programming Console Operations Section 4-3

If more than six bits and words are input, monitoring of the bit or word input
first will be canceled.
4. Press the CLR Key to stop monitoring the leftmost bit or word and clear it
from the display.
00001 T000
CLR
^ OFF 0100
5. Press the SHIFT+CLR Keys to end monitoring altogether.
00000
SHIFT CLR
CHANNEL DM 0000
Note Press the SHIFT + CLR Keys to return to the display with the multiple address
monitoring state unchanged. Press the SHIFT + MONTR Keys to display the
retained multiple address monitoring state. The monitoring states can be
retained for 6 bits and words.

4-3-12 Differentiation Monitor


This operation is used to monitor the up or down differentiation status of a
particular bit. When detected, the up or down differentiation will be displayed
and the buzzer will sound. It is possible in any mode.
RUN MONITOR PROGRAM
OK OK OK

1, 2, 3... 1. Monitor the status of the desired bit according to the procedure described in
4-3-11 Bit, Digit, Word Monitor. If 2 or more bits are being monitored, the
desired bit should be leftmost on the display.
In this case the differentiation status of LR 00 will be monitored.
L0000āā00001āāH0000
^OFF ^OFF ^OFF
2. To specify up-differentiation monitoring, press the SHIFT and then the Up
Arrow Key. The symbols “U@” will appear.
L0000āā00001āāH0000
SHIFT ↑
U@OFF ^OFF ^OFF
To specify down-differentiation monitoring, press the SHIFT and then the
Down Arrow Key. The symbols “D@” will appear.
L0000āā00001āāH0000
SHIFT ↓ D@OFF ^OFF ^OFF
3. The buzzer will sound when the specified bit goes from off to on (for up-dif-
ferentiation) or from on to off (for down-differentiation).
L0000āā00001āāH0000
^ON ^OFF ^OFF
4. Press the CLR Key to end differentiation monitoring and return to the normal
monitoring display.
L0000āā00001āāH0000
CLR
^OFF ^OFF ^OFF

4-3-13 Binary Monitor


This operation is used to monitor the ON/OFF status of any word’s 16 bits. It
is possible in any mode.
RUN MONITOR PROGRAM
OK OK OK

70
Programming Console Operations Section 4-3

1, 2, 3... 1. Monitor the status of the desired word according to the procedure described
in 4-3-11 Bit, Digit, Word Monitor. The desired word should be leftmost on
the display if 2 or more words are being monitored.
C000
(Word monitor) 0000
2. Press the SHIFT and then the MONTR Key to begin binary monitoring. The
ON/OFF status of the selected word’s 16 bits will be shown along the bottom
of the display. A 1 indicates a bit is on, and a 0 indicates it is off.
C000 MONTR
SHIFT MONTR
0000000000000000
The status of force-set bits is indicated by “S,” and the status of a force-reset
bits is indicated by “R,” as shown below.

C000 MONTR
000S0000000R0000

Force-set bit Force-reset bit

Note a) The status of displayed bits can be changed at this point. Refer to
4-3-20 Binary Data Modification for details.
b) The Up or Down Arrow Key can be pressed to display the status of
the previous or next word’s bits.
3. Press the CLR Key to end binary monitoring and return to the normal moni-
toring display.
C000
CLR
0000

4-3-14 3-Word Monitor


This operation is used to monitor the status of three consecutive words. It is
possible in any mode.
RUN MONITOR PROGRAM
OK OK OK
1, 2, 3... 1. Monitor the status of the first of the three words according to the procedure
described in 4-3-11 Bit, Digit, Word Monitor.
If 2 or more words are being monitored, the desired first word should be left-
most on the display.
C000
(Word monitor) 89AB
2. Press the EXT Key to begin 3-word monitoring. The status of the selected
word and the next two words will be displayed, as shown below. In this case,
DM 0000 was selected.
C002 C001 C000
EXT
0123 4567 89AB
The Up and Down Arrow Keys can be used to shift one address up or down.
The status of the displayed words can be changed at this point. Refer to
4-3-17 3-word Data Modification.
3. Press the CLR Key to end 3-word monitoring and return to the normal moni-
toring display. The rightmost word on the 3-word monitor display will be
monitored.
C000
CLR
89AB

71
Programming Console Operations Section 4-3

4-3-15 Signed Decimal Monitor


This operation converts the contents of the specified word from signed hexa-
decimal (two’s complement format) to signed decimal for display. The opera-
tion can be executed while using I/O monitoring, multiple address monitoring
or 3-word monitoring.

RUN MONITOR PROGRAM


OK OK OK

1, 2, 3... 1. Monitor the word that is to be used for decimal monitor with sign. During mul-
tiple address monitoring, the leftmost word will be converted.
c000 cL00 20000
(Multiple address monitor) FFF0 0000 ^OFF

2. Press the SHIFT+TR Keys to display the leftmost word as signed decimal.
c000
SHIFT TR
Ć00016
At this point, the contents of the displayed word can be changed with a
signed-decimal input. Refer to 4-3-21 Signed Decimal Data Modification.
3. Press the CLR Key or the SHIFT+TR Keys to end the unsigned decimal dis-
play and return to normal monitoring.
c000 cL00 20000
CLR
FFF0 0000 ^OFF

4-3-16 Unsigned Decimal Monitor


This operation is used to convert hexadecimal data in a word to unsigned
decimal for display. The operation can be executed while using I/O monitor-
ing, multiple address monitoring or 3-word monitoring.

RUN MONITOR PROGRAM


OK OK OK

1, 2, 3... 1. Monitor the word that is to be used for decimal monitor without sign. During
multiple address monitoring, the leftmost word will be converted.
c000 cL00 20000
Multiple address monitoring FFF0 0000 ^OFF

2. Press the SHIFT+TR+NOT Keys to display the leftmost word as unsigned


decimal.
c000
SHIFT TR NOT
65520
At this point, the contents of the displayed word can be changed with an
unsigned-decimal input. Refer to 4-3-22 Unsigned Decimal Data Modifica-
tion.
3. Press the CLR Key or the SHIFT+TR Keys to end the unsigned decimal dis-
play and return to normal monitoring.
c000 cL00 20000
CLR
FFF0 0000 ^OFF

72
Programming Console Operations Section 4-3

4-3-17 3-Word Data Modification


This operation is used to change the contents of one or more of the 3 con-
secutive words displayed in the 3-Word Monitor operation. It is possible in
MONITOR or PROGRAM mode only.
RUN MONITOR PROGRAM
No OK OK

1, 2, 3... 1. Monitor the status of the desired words according to the procedure
described 4-3-14 3-Word Monitor.
D0002D0001D0000
(3-word monitor) 0123 4567 89AB
2. Press the CHG Key to begin 3-word data modification. The cursor will
appear next to the contents of the leftmost word.
D0002 3CH CHG?
CHG
0123 4567 89AB
3. Input the new value for the leftmost word on the display and press the CHG
Key if more changes will be made.
(Input the new value and press the WRITE Key to write the changes in
memory if no more changes will be made.)
B D0002 3CH CHG?
1 CHG
0001 4567 89AB
4. Input the new value for the middle word on the display and press the CHG
Key if the rightmost word will be changed. Input the new value and press the
WRITE Key to write the changes in memory if the rightmost word will not be
changed. (In this case, it will not.)
C D E D0002D0001D0000
2 3 4 WRITE
0001 0234 89AB
Note If the CLR Key is pressed before the WRITE Key, the operation will be cancelled
and the 3-word monitor display will return without any changes in data memory.

4-3-18 Changing Timer, Counter SV


There are two operations that can be used to change the SV of a timer or
counter. They are possible in MONITOR or PROGRAM mode only. In MON-
ITOR mode, the SV can be changed while the program is being executed.
RUN MONITOR PROGRAM
No OK OK

The timer or counter SV can be changed either by inputting a new value or


by incrementing or decrementing the current SV.

! Caution Check that there is no effect on equipment before changing the set values.

Inputting a New SV This operation can be used to input a new SV constant, as well as to change an
Constant SV from a constant to a word address designation and vice versa. The following
examples show how to input a new SV constant and how to change the SV from
a constant to an address.
1, 2, 3... 1. Press the CLR Key to bring up the initial display.
2. Display the desired timer or counter.
B 00201SRCH
TIM 1 SRCH
TIM 001

73
Programming Console Operations Section 4-3

3. Press the Down Arrow Key and then the CHG Key.
00201DATA?
↓ CHG
T001 #0123 #????
4. At this point a new SV constant can be input or the SV constant can be
changed to a word address designation
a) To input a new SV constant, input the constant and press the WRITE
Key.
B C E 00201 TIM DATA
1 2 4 WRITE
#0124
b) To change to a word address designation, input the word address and
press the WRITE Key.
CH B A 00201 TIM DATA
SHIFT 1 0 WRITE
* 010
Incrementing and This operation can be used to increment and decrement an SV constant. It is
Decrementing a Constant possible only when the SV has been entered as a constant.
1, 2, 3... 1. Press the CLR Key to bring up the initial display.
2. Display the desired timer or counter.
00201SRCH
TIM SRCH
TIM 000
3. Press the Down Arrow, CHG, and then the EXT Key.
00201DATA ? U/D
↓ CHG EXT
T000 #0123 #0123
The constant on the left is the old SV and the constant on the right will
become the new SV constant in step 5.
4. Press the Up and Down Arrow Keys to increment and decrement the con-
stant on the right. (In this case the SV is incremented once.)
00201DATA ? U/D

T000 #0123 #0124
5. Press the CLR Key twice to change the timer’s SV to the new value.
00201 TIM DATA
CLR CLR
#0124

4-3-19 Hexadecimal, BCD Data Modification


This operation is used to change the BCD or hexadecimal value of a word
being monitored using the procedure described in 4-3-11 Bit, Digit, Word
Monitor. It is possible in MONITOR or PROGRAM mode only.
RUN MONITOR PROGRAM
No OK OK

Words SR 253 to SR 255 cannot be changed.

! Caution Check that there is no effect on equipment before changing the present values.

1, 2, 3... 1. Monitor the status of the desired word according to the procedure described
in 4-3-11 Bit, Digit, Word Monitor. If two or more words are being monitored,
the desired word should be leftmost on the display.
D0000
(Word monitor) 0119

74
Programming Console Operations Section 4-3

2. Press the CHG Key to begin hexadecimal, BCD data modification.


PRES VAL?
CHG
D0000 0119 ????
3. Input the new PV and press the WRITE Key to change the PV.
The operation will end and the normal monitoring display will return when
the WRITE Key is pressed.
C A A D0000
2 0 0 WRITE
0200

4-3-20 Binary Data Modification


This operation is used to change the status of a word’s bits when the word is
monitored using the procedure described in 4-3-13 Binary Monitor. It is pos-
sible in MONITOR or PROGRAM mode only.
RUN MONITOR PROGRAM
No OK OK
Bits SR 25300 to SR 25507 and timer/counter flags cannot be changed.

! Caution Check that there is no effect on equipment before changing the present values.

1, 2, 3... 1. Monitor the status of the desired word according to the procedure described
4-3-13 Binary Monitor.
c001 MONTR
(BInary monitor) 1000010101010101
2. Press the CHG Key to begin binary data modification.
c001 MONTR
CHG
000010101010101
A flashing cursor will appear over bit 15. The cursor indicates which bit can
be changed.
3. Three sets of keys are used to move the cursor and change bit status:
a) Use the Up and Down Arrow Keys to move the cursor to the left and right.
c001 CHG?
↓ ↓ 10 0010101010101
b) Use the 1 and 0 keys to change a bit’s status to on or off. The cursor will
move one bit to the right after one of these keys is pressed.
B c001 CHG?
1
101 010101010101
c) Use the SHIFT+SET and SHIFT+RESET Keys to force-set or force-re-
set a bit’s status. The cursor will move one bit to the right after one of
these keys is pressed. The NOT Key will clear force-set or force-reset
status.
Note Bits in the DM Area cannot be force-set or force-reset.
4. Press the WRITE Key to write the changes in memory and return to the
binary monitor.
c001 MONTR
WRITE
1010010101010101

4-3-21 Signed Decimal Data Modification


This operation is used to change the decimal value of a word being moni-
tored as signed decimal data, within a range of –32,768 to 32,767. The con-

75
Programming Console Operations Section 4-3

tents of the specified word are converted automatically to signed hexadeci-


mal (two’s complement format).
Words SR 253 to SR 255 cannot be changed.
RUN MONITOR PROGRAM
No OK OK

! Caution Check that there is no effect on equipment before changing the current values.

1, 2, 3... 1. Monitor (signed decimal) the status of the word for which the present value
is to be changed.
c000
(Signed decimal monitor) Ć00016
2. Press the CHG Key to begin decimal data modification.
PRES VAL?
CHG
c000 Ć00016
3. Input the new PV and press the WRITE Key to change the PV. The operation
will end and the signed-decimal monitoring display will return when the
WRITE Key is pressed.
The PV can be set within a range of –32,768 and 32,767. Use the SET Key to
input a positive number, and use the RESET Key to input a negative number.
REC D C c000
3 2 7 6 8 WRITE
RESET Ć32768
Press the CLR Key or the SHIFT and TR Keys to return to the normal moni-
toring display.
If an erroneous input has been made, press the CLR Key to restore the sta-
tus prior to the input. Then enter the correct input.

4-3-22 Unsigned Decimal Data Modification


This operation is used to change the decimal value of a word being moni-
tored as unsigned decimal data, within a range of 0 to 65,535. A change into
hexadecimal data is made automatically.
Words SR 253 to SR 255 cannot be changed.
RUN MONITOR PROGRAM
No OK OK

! Caution Check that there is no effect on equipment before changing the current values.

1, 2, 3... 1. Monitor (unsigned decimal) the status of the word for which the present
value is to be changed.
c000
(Unsigned decimal monitor) 65520
2. Press the CHG Key to begin decimal data modification.
PRES VAL?
CHG
c000 65520
3. Input the new PV and press the WRITE Key to change the PV. The operation
will end and the decimal-without-sign monitoring display will return when the
WRITE Key is pressed.
The PV can be set within a range of 0 to 65,535.
D C c000
3 2 7 6 8 WRITE
32768

76
Programming Console Operations Section 4-3

Press the CLR Key or the SHIFT and TR Keys to return to the normal moni-
toring display.
If an erroneous input has been made, press the CLR Key to restore the sta-
tus prior to the input. Then enter the correct input.

4-3-23 Force Set, Reset


This operation is used to force bits ON (force set) or OFF (force reset) and is
useful when debugging the program or checking output wiring. It is possible
in MONITOR or PROGRAM mode only.
RUN MONITOR PROGRAM
No OK OK

! Caution Check that there is no effect on equipment before using force set/reset.

1, 2, 3... 1. Monitor the status of the desired bit according to the procedure described in
4-3-11 Bit, Digit, Word Monitor. If two or more words are being monitored,
the desired bit should be leftmost on the display.
00000 20000
(Multiple address monitor) ^OFF ^ON
2. Press the SET Key to force the bit ON or press the RESET Key to force the
bit OFF.
00000 20000
SET
ON ^OFF
The cursor in the lower left corner of the display indicates that the force set/
reset is in progress. Bit status will remain ON or OFF only as long as the key
is held down; the original status will return one cycle after the key is
released.
3. Press the SHIFT+SET or SHIFT+RESET Keys to maintain the status of the
bit after the key is released. In this case, the force-set status is indicated by
an “S” and the force-reset status is indicated by an “R.”
To return the bit to its original status, press the NOT Key or perform the Clear
Force Set/Reset operation. Refer to 4-3-24 Clear Force Set/Reset for
details.
Forced status will also be cleared when the PC’s operating mode is changed
(unless SR 25211 is ON, in which case forced status will not be cleared
when changing from PROGRAM to MONITOR mode) or when operation
stops as the result of a fatal error or power interruption.

4-3-24 Clear Force Set/Reset


This operation is used to restore the status of all bits which have been force
set or reset. It is possible in MONITOR or PROGRAM mode only.
RUN MONITOR PROGRAM
No OK OK

! Caution Check that there is no effect on equipment before using clear force set/reset.

1, 2, 3... 1. Press the CLR Key to bring up the initial display.


2. Press the SET and then the RESET Key. A confirmation message will
appear.
00000FORCE RELE?
SET RESET

77
Programming Example Section 4-4

Note If you mistakenly press the wrong key, press CLR and start again
from the beginning.
3. Press the NOT Key to clear the force-set/reset status of bits in all data areas.
00000FORCE RELE
NOT
END

4-3-25 Hex-ASCII Display Change


This operation is used to convert word data displays back and forth between
4-digit hexadecimal data and ASCII. It is possible in any mode.

RUN MONITOR PROGRAM


OK OK OK

1, 2, 3... 1. Monitor the status of the desired word(s) according to the procedure
described in 4-3-11 Bit, Digit, Word Monitor.
D0000 D0001
(Multiple address monitor) 4142 3031
2. Press the TR Key to switch to ASCII display. The display will toggle between
hexadecimal and ASCII displays each time the TR Key is pressed.
D0000 D0001
TR
"AB" 3031
D0000 D0001
TR
4142 3031

4-3-26 Displaying the Cycle Time


This operation is used to display the current average cycle time (scan time).
It is possible only in RUN or MONITOR mode while the program is being
executed.

RUN MONITOR PROGRAM


OK OK No

1, 2, 3... 1. Press the CLR Key to bring up the initial display.


2. Press the MONTR Key to display the cycle time.
00000SCAN TIME
MONTR
012.1MS
There might be differences in displayed values when the MONTR Key is
pressed repeatedly. These differences are caused by changing execution
conditions.

4-4 Programming Example


This section demonstrates all of the steps needed to write a program with the
Programming Console.

4-4-1 Preparatory Operations


When writing a program to the CPM1 for the first time, use the following proce-
dure up to step 3 (clearing memory).

78
Programming Example Section 4-4

1, 2, 3... 1. Set the Programming Console’s mode switch to PROGRAM mode and turn
on the CPM1’s power supply. The password input display will appear on the
Programming Console.
MONITOR
RUN PROGRAM

<PROGRAM>
PASSWORD!
2. Enter the password by pressing the CLR and then the MONTR Key.
<PROGRAM>
CLR MONTR

At this point, the SHIFT and then the 1 key can be pressed to turn on and off
the Programming Console’s buzzer. Refer to page 61.
3. Clear the CPM1’s memory by pressing the CLR, SET, NOT, RESET, and
then the MONTR Key. Press the CLR Key several times if memory errors are
displayed.
00000
CLR

00000MEMORY CLR?
SET NOT RESET
HR CNT DM
00000MEMORY CLR
MONTR
END HR CNT DM
4. Display and clear error messages by pressing the CLR, FUN, and then the
MONTR Key. Continue pressing the MONTR Key until all error messages
have been cleared.
00000
CLR

00000
FUN
FUN(0??)
00000ERR CHK
MONTR
OK
5. Press the CLR Key to bring up the initial programming display (program
address 00000). The new program can be written at this point.
00000
CLR

! Caution Be sure that the mode selector is set to PROGRAM before entering the pass-
word. Check the system thoroughly before executing the CPM1 program to pre-
vent any accidents that might occur when the program is first started.

79
Programming Example Section 4-4

4-4-2 Example Program


The following ladder program will be used to demonstrate how to write a pro-
gram with the Programming Console. This program makes output IR 01000
flicker ON/OFF (one second ON, one second OFF) ten times after input
IR 00000 is turned ON.
Start input
00000 C000
00000 20000 Self-holding bit
20000

20000 T002
00004 TIM 001
#0010 1-second timer

20000 T002
00007 TIM 002
2-second timer
#0020

20000 T001
Count signal CP
00010 CNT 000
20000 10-count counter
R #0010

Reset signal

20000 T001 Flicker output (10 counts)


00014 01000
ON
OFF

1S
00017 END(001)

The mnemonic list for the example program is shown in the following table. The
steps required to enter this program from a Programming Console are described
in 4-4-3 Programming Procedure.
Address Instruction Data Programming example
procedures in 4-4-3
Programming Procedures
00000 LR 00000 (1) Self-holding bit
00001 OR 20000
00002 AND NOT C 000
00003 OUT 20000
00004 LD 20000 (2) 1-second timer
00005 AND NOT T 002
00006 TIM 001
# 0010
00007 LD 20000 (3) 2-second timer
00008 AND NOT T 002
00009 TIM 002
# 0020
00010 LD 20000 (4) 10-count counter
00011 AND T 001
00012 LD NOT 20000
00013 CNT 000
# 0010
00014 LD 20000 (5) Flicker output (10 counts)
00015 AND NOT T 001
00016 OUT 01000
00017 END (001) --- (6) END(001) instruction

80
Programming Example Section 4-4

4-4-3 Programming Procedures


The example program will be written to the CPM1 according to the mnemonic list
in 4-4-2 Example Program. The procedure is performed beginning with the initial
display. (Clear the memory before entering a new program.)
(1) Inputting the Self-holding Bit
1, 2, 3... 1. Input the normally open condition IR 00000.
(It isn‘t necessary to input leading zeroes.)
LD 00000
LD 00000
00001READ
WRITE
NOP(000)
2. Input the OR condition IR 20000.
OR C A A A A 00001
2 0 0 0 0
OR 20000
00002READ
WRITE
NOP(000)
3. Input the normally closed AND condition C000.
(It isn‘t necessary to input leading zeroes.)
AND 00002
NOT CNT
AND NOT CNT 000
00003READ
WRITE
NOP(000)
4. Input the OUT instruction IR 20000.
C A A A A 00003
OUT 2 0 0 0 0
OUT 20000
00004READ
WRITE
NOP(000)

(2) Inputting the One-second Timer


1, 2, 3... 1. Input the normally open condition IR 20000.
LD C A A A A 00004
2 0 0 0 0
LD 20000
00005READ
WRITE
NOP(000)
2. Input the normally closed AND condition T002.
(It isn‘t necessary to input leading zeroes.)
AND C 00005
NOT TIM 2
AND NOT TIM 002
00006READ
WRITE
NOP(000)
3. Input the 1-second timer T001.
B 00006
TIM 1
TIM 001
00006 TIM DATA
WRITE
#0000

81
Programming Example Section 4-4

4. Input the SV for T001 (#0010 = 1.0 s).


B A 00006 TIM DATA
1 0
#0010
00007READ
WRITE
NOP(000)
(3) Inputting the The following key operations are used to input the 2-second timer.
Two-second Timer
1, 2, 3... 1. Input the normally open condition IR 20000.
LD C A A A A 00007
2 0 0 0 0
LD 20000
00008READ
WRITE
NOP(000)
2. Input the normally closed AND condition T002.
(It isn‘t necessary to input leading zeroes.)
AND C 00008
NOT TIM 2
AND NOT TIM 002
00009READ
WRITE
NOP(000)
3. Input the 2-second timer T002.
C 00009
TIM 2
TIM 002
00009 TIM DATA
WRITE
#0000
4. Input the SV for T002 (#0020 = 1.0 s).
C A 00009 TIM DATA
2 0
#0020
00010READ
WRITE
NOP(000)
(4) Inputting the 10-count The following key operations are used to input the 10-count counter.
Counter
1, 2, 3... 1. Input the normally open condition IR 20000.
LD C A A A A 00010
2 0 0 0 0
LD 20000
00011READ
WRITE
NOP(000)
2. Input the normally open AND condition T001.
(It isn‘t necessary to input leading zeroes.)
AND B 00011
TIM 1
AND TIM 001
00012READ
WRITE
NOP(000)
3. Input the normally closed condition IR 20000.
LD C A A A A 00012
NOT 2 0 0 0 0
LD NOT 20000
00013READ
WRITE
NOP(000)

82
Programming Example Section 4-4

4. Input the counter 000.


A 00013
CNT 0
CNT 000
00013 CNT DATA
WRITE
#0000
5. Input the SV for 000 (#0010 = 10 counts).
B A 00013 CNT DATA
1 0
#0010
00014READ
WRITE
NOP(000)
(5) Inputting the Flicker Output
1, 2, 3... 1. Input the normally open condition IR 20000.
LD C A A A A 00014
2 0 0 0 0
LD 20000
00015READ
WRITE
NOP(000)
2. Input the normally closed AND condition T001.
(It isn‘t necessary to input leading zeroes.)
AND B 00015
NOT TIM 1
AND NOT TIM 001
00016READ
WRITE
NOP(000)
3. Input the OUT instruction IR 01000.
(It isn‘t necessary to input leading zeroes.)
B A A A 00016
OUT 1 0 0 0
OUT 01000
00017READ
WRITE
NOP(000)
(6) Inputting the END(001) Input END (001)
Instruction
00017
FUN
FUN(0??)
A B 00017
0 1
FUN(001)
00018READ
WRITE
NOP(000)

4-4-4 Checking the Program


Check the program syntax in PROGRAM mode to make sure that the program
has been input correctly.
1, 2, 3... 1. Press the CLR Key to bring up the initial display.
00000

2. Press the SRCH Key. An input prompt will appear requesting the desired
check level.
00000PROG CHK
SRCH
CHK LBL (0Ć2)?

83
Programming Example Section 4-4

3. Input the desired check level (0, 1, or 2). The program check will begin when
the check level is input, and the first error found will be displayed.
A 00178CIRCUIT ERR
0
OUT 00200
Note Refer to 5-5 Programming Errors for details on check levels.
4. Press the SRCH Key to continue the search. The next error will be dis-
played. Continue pressing the SRCH Key to continue the search.
The search will continue until an END instruction or the end of Program
Memory is reached.
If errors are displayed, edit the program to correct the errors and check the pro-
gram again. Continue checking the program until all errors have been corrected.

4-4-5 Test Run in MONITOR Mode


Switch the CPM1 in MONITOR mode and check the operation of the program.
1, 2, 3... 1. Set the Programming Console’s mode switch to MONITOR mode.
MONITOR
RUN PROGRAM

<MONITOR> BZ

2. Press the CLR Key to bring up the initial display.


00000
CLR

3. Force-set the start input bit (IR 00000) from the Programming Console to
start the program.
LD 00000
LD 00000
00000
MONTR
^ OFF
00000
SET
ON
The cursor in the lower left corner of the display indicates that the force set is
in progress. The bit will remain ON as long as the Set Key is held down.
4. The output indicator for output 01000 will flash ten times if the program is
operating correctly. The indicator should go OFF after ten one-second
flashes.
There is a mistake in the program if the output indicator doesn’t flash. In this
case, check the program and force set/reset bits to check operation.

84
SECTION 5
Test Runs and Error Processing
This section describes procedures for test runs of CPM1 operation, self-diagnosis functions, and error processing to identify
and correct the hardware and software errors that can occur during PC operation.

5-1 Initial System Checks and Test Run Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86


5-1-1 Initial System Checks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
5-1-2 CPM1 Test Run Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
5-1-3 Flash Memory Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
5-2 The CPM1 Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
5-3 Self-diagnosis Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
5-3-1 Non-fatal Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
5-3-2 Fatal Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
5-3-3 Identifying Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
5-3-4 User-defined Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
5-4 Programming Console Operation Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
5-5 Programming Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
5-6 Troubleshooting Flowcharts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
5-7 Maintenance Inspections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
5-8 Handling Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102

85
Initial System Checks and Test Run Procedure Section 5-1

5-1 Initial System Checks and Test Run Procedure


5-1-1 Initial System Checks
Note Check the following items after setting up and wiring the CPM1. Be sure to check
the wiring and connections before performing a test run.

Item Points to check


Power supply and Is the wiring correct?
I/O connections Are the terminals securely tightened?
Are there any shorts between crimp connectors or wires?
Refer to 3-4 Wiring and Connections for details.
Connecting cables Are the cables all connected correctly and locked?
Refer to 3-4 Wiring and Connections for details.
Dustproof label Has the dustproof label been removed?
Refer to 3-4 Wiring and Connections for details.

Note 1. Always clear memory before beginning to program the CPM1. Although
memory is cleared before the CPU Unit is shipped (except for bits with spe-
cific functions), AR 1314, which turns ON when the internal capacitor cannot
back up memory, may have turned ON during shipment.
2. If the CPM1 will be turned off for periods exceeding the data backup period
of the internal capacitor, design the system so that it will not be influenced if
data in the DM, HR, and CNT areas is cleared when power is turned off.
3. Either switch the CPM1 to RUN or MONITOR mode, or turn off and on power
to the CPM1 after changing from a Programming Device any data that is
backed up in flash memory. This data includes the user program, read-only
DM area (DM 6144 to DM 6599), and the PC Setup (DM 6600 to DM 6655).

5-1-2 CPM1 Test Run Procedure


1, 2, 3... 1. Power Supply Application
a) Check the CPM1’s power supply voltage and terminal connections.
b) Check the I/O devices’ power supply voltage and terminal connections.
c) Turn on the power supply and check that the “POWER” indicator lights.
d) Use a Peripheral Device to set the CPM1 to PROGRAM mode.
2. I/O Wiring Checks
a) With the CPM1 in PROGRAM mode, check the output wiring by turning
on the output bits with the force set and force reset operations.
Refer to 4-3-23 Force Set, Reset for details.
b) Check the input wiring with the CPM1’s input indicators or a Peripheral
Device’s monitor operations.
3. Test Run
a) Use a Peripheral Device to set the CPM1 to RUN or MONITOR mode
and check that the “RUN” indicator lights.
b) Check the sequence of operation with the force set/reset operations, etc.
4. Debugging
Correct any programming errors that are detected.
5. Saving the Program
a) Use a Peripheral Device to write the program to a backup floppy disk.
b) Print out a hard copy of the program with a printer.
Note Refer to Section 4 Using Peripheral Devices for details on SYSMAC Support
Software or Programming Console operations.

86
Initial System Checks and Test Run Procedure Section 5-1

5-1-3 Flash Memory Precautions


Observe the following precautions to protect the flash memory and ensure
proper operation.
1, 2, 3... 1. If the power is turned off without changing the mode after having made chan-
ges in the read-only DM area (DM 6144 through DM 6599), or PC Setup (DM
6600 through DM 6655), the contents of changes will not be written to flash
memory. Therefore, if the power is turned off for more than 20 days (at
25C), contents of changes (contents of the RAM) will disappear and the
data values will become undefined values. For details, refer to 2-1-2 Char-
acteristics.
The changes can be saved by switching the CPM1A to RUN or MONITOR
mode or turning on the CPM1A soon after the changes are made.
2. When the CPM1A is operated for the first time after changing the program,
the read-only DM area (DM 6144 through DM 6599) or PC Setup (DM 6600
through DM 6655) will take about 600 ms longer than usual. Be sure to take
this one-time startup delay into account.
3. If one of the following three operations is performed in MONITOR or RUN
mode, the CPM1A will extend the cycle time for up to 600 ms and interrupts
will be disabled while the program or PC Setup is being overwritten.
• Program changes with the online edit operation
• Changes to the read-only DM area (DM 6144 through DM 6599)
• Changes to the PC Setup (DM 6600 through DM 6655)
A “SCAN TIME OVER” error won’t occur during these operations. The
CPM1A’s I/O response times may be affected when the online edit operation
is being performed.

87
The CPM1 Cycle Section 5-2

5-2 The CPM1 Cycle


The overall flow of CPM1 operation is as shown in the following flowchart. The
CPM1 is initialized internally when the power is turned on. If no errors are
detected, the overseeing processes, program execution, I/O refreshing, and
Peripheral Device servicing are executed consecutively (cyclically). The aver-
age cycle time can be monitor from a Peripheral Device.

Power application

Initialization processes Initialization

Check hardware and


Program Memory.

No Check OK?
Overseeing
processes
Yes
Set error flags and Preset cycle time
activate indicators. monitoring time.

ALARM
(flashing) Execute user program.
ERROR or ALARM?
No Program
ERROR End of program?
execution
(lit)
Yes
Check cycle time set-
ting. Cycle
time
Minimum No
cycle time set?

Cycle time
Yes processing
Wait until minimum cycle
time expires.

Compute cycle time.

Refresh input bits and I/O refreshing


output terminals.

Service
Service peripheral port. peripheral
port.

Note Initialization processes include clearing the IR, SR, and AR areas, presetting
system timers, and checking I/O Units.

88
Self-diagnosis Functions Section 5-3

5-3 Self-diagnosis Functions


The CPM1 is equipped with a variety of self-diagnosis functions to help identify
and correct errors that might occur and reduce down time.
PC errors are divided into 2 categories based on the severity of the errors. Fatal
errors are more serious errors which stop CPM1 operation. Non-fatal errors are
less serious and don’t stop CPM1 operation.
5-3-1 Non-fatal Errors
PC operation and program execution will continue after one or more of these
errors have occurred. Although PC operation will continue, the cause of the error
should be corrected and the error cleared as soon as possible.
When one of these errors occurs, the POWER and RUN indicators will remain lit
and the ERR/ALM indicator will flash.
Message FAL No. Meaning and appropriate response
SYS FAIL FAL** 01 to 99 An FAL(06) instruction has been executed in the program. Check the FAL number to
(** is 01 to 99 or 9B.) determine conditions that would cause execution, correct the cause, and clear the
error.
9B An error has been detected in the PC Setup. Check flags AR 1300 to AR 1302, and
correct as directed.
AR 1300 ON: An incorrect setting was detected in the PC Setup (DM 6600 to
DM 6614) when power was turned on. Correct the settings in PROGRAM Mode and
turn on the power again.
AR 1301 ON: An incorrect setting was detected in the PC Setup (DM 6615 to
DM 6644) when switching to RUN Mode. Correct the settings in PROGRAM Mode
and switch to RUN Mode again.
AR 1302 ON: An incorrect setting was detected in the PC Setup (DM 6645 to
DM 6655) during operation. Correct the settings and clear the error.
SCAN TIME OVER F8 Watchdog timer has exceeded 100 ms. (SR 25309 will be ON.)
This indicates that the program cycle time is longer than recommended. Reduce cycle
time if possible. (The CPM1 can be set so that this error won’t be detected.)
Communication None If an error occurs in communications through the peripheral port, the COMM indicator
Errors (no message) will be off. Check the connecting cables and restart. Check the error flags in AR 0812
ON.

5-3-2 Fatal Errors


PC operation and program execution will stop and all outputs from the PC will be
turned OFF when any of these errors have occurred. CPM1 operation can’t be
restarted until the PC is turned off and then on again or a Peripheral Device is
used to switch the PC to PROGRAM mode and clear the fatal error.
All CPU Unit indicators will be OFF for the power interruption error. For all other
fatal operating errors, the POWER and ERR/ALM indicators will be lit. The RUN
indicator will be OFF.
Message FALS Meaning and appropriate response
No.
Power interruption None Power has been interrupted for at least 10 ms for the AC-type CPU Unit and at least
(no message) 2 ms for the DC-type CPU Unit. Check power supply voltage and power lines. Try to
power-up again.
MEMORY ERR F1 AR 1308 ON: An unspecified bit area exists in the user program. Check the program
and correct errors.
AR 1309 ON: An error has occurred in reading or writing flash memory. Replace the
CPU Unit.
AR 1310 ON: A checksum error has occurred in read-only DM (DM 6144 to DM 6599).
Check and correct the settings in the read-only DM area.
AR 1311 ON: A checksum error has occurred in the PC Setup. Initialize all of the PC
Setup and reinput.
AR 1312 ON: A checksum error has occurred in the program. Check the program and
correct any errors detected.

89
Self-diagnosis Functions Section 5-3

Message FALS Meaning and appropriate response


No.
MEMORY ERR F1 AR 1314 ON: The internal capacitor can no longer back up data. Clear the error and
check/correct the contents of the data areas backed up by the capacitor.
NO END INST F0 END(01) is not written in the program. Write END(01) at the end of the program.
I/O BUS ERR C0 An error has occurred during data transfer between the CPU Unit and Expansion I/O
Unit. Check the Expansion I/O Unit’s connecting cable.
I/O UNIT OVER E1 Too many I/O Units have been connected. Check the I/O Unit configuration.
SYS FAIL FALS** 01 to 99 A FALS(07) instruction has been executed in the program. Check the FALS number to
(** is 01 to 99 or 9F.) determine the conditions that caused execution, correct the cause, and clear the error.
9F The cycle time has exceeded the FALS 9F Cycle Time Monitoring Time (DM 6618).
Check the cycle time and adjust the Cycle Time Monitoring Time if necessary.

5-3-3 Identifying Errors


PC errors can be identified from error messages displayed on the Programming
Console, error flags in the SR or AR areas, and the error code in SR 25300 to
SR 25307.
Error Messages Error messages generated by the self-diagnosis function can be read from a
Programming Console or host computer running SYSMAC Support Software.
Error Flags When the self-diagnosis function detects a hardware error, it will turn on the cor-
responding error flags in the SR and AR areas.
Error Code When an error is detected by the self-diagnosis function, the corresponding
error code is written to SR 25300 to SR 25307. (The error code is an 2-digit hex-
adecimal code.)

5-3-4 User-defined Errors


There are three instructions that the user can use to define his own errors or
messages. FAL(06) causes a non-fatal error, FAL(07) causes a fatal error, and
MSG(46) sends a message to the Programming Console or host computer con-
nected to the PC.
FAILURE ALARM – FAL(06) FAL(06) is an instruction that causes a non-fatal error. The following will occur
when an FAL(06) instruction is executed:
1, 2, 3... 1. The ERR/ALM indicator on the CPU Unit will flash. PC operation will con-
tinue.
2. The instruction’s 2-digit BCD FAL number (01 to 99) will be written to
SR 25300 to SR 25307.
The FAL numbers can be set arbitrarily to indicate particular conditions. The
same number cannot be used as both an FAL number and an FALS number.
To clear an FAL error, correct the cause of the error and then execute FAL 00 or
clear the error using the Programming Console.
SEVERE FAILURE ALARM – FALS(07) is an instruction that causes a fatal error. The following will occur when
FALS(07) an FALS(07) instruction is executed:
1, 2, 3... 1. Program execution will be stopped and outputs will be turned OFF.
2. The ERR/ALM indicator on the CPU Unit will be lit.
3. The instruction’s 2-digit BCD FALS number (01 to 99) will be written to
SR 25300 to SR 25307.
4. The FALS number and time of occurrence will be recorded in the PC’s error
log area if a Memory Cassette with a clock (RTC) is used.
The FALS numbers can be set arbitrarily to indicate particular conditions. The
same number cannot be used as both an FAL number and an FALS number.

90
Programming Errors Section 5-5

To clear an FALS error, switch the PC to PROGRAM Mode, correct the cause of
the error, and then clear the error using the Programming Console.
MESSAGE – MSG(46) MSG(46) is used to display a message on the Programming Console. The mes-
sage, which can be up to 16 characters long, is displayed when the instruction’s
execution condition is ON.

5-4 Programming Console Operation Errors


The following error messages may appear when performing operations on the
Programming Console. Correct the error as indicated and continue with the
operation. Refer to the Ladder Support Software Operation Manual, SYSMAC
Support Software Operation Manual: C-series PCs, and Data Access Console
Operation Manual for errors that may appear when operating the SSS or a Data
Access Console.
Message Meaning and appropriate response
REPL ROM An attempt was made to write to write-protected memory. Set bits
00 to 03 of DM 6602 to “0.”
PROG OVER The instruction at the last address in memory is not NOP(00). Erase
all unnecessary instructions at the end of the program.
ADDR OVER An address was set that is larger than the highest memory address
in Program Memory. Input a smaller address.
SETDATA FALS 00 has been input, and “00” cannot be input. Reinput the
ERR data.
I/O NO. ERR A data area address has been designated that exceeds the limit of
the data area, e.g., an address is too large. Confirm the
requirements for the instruction and re-enter the address.

5-5 Programming Errors


These errors in program syntax will be detected when the program is checked
using the Program Check operation.

91
Programming Errors Section 5-5

Three levels of program checking are available. The desired level must be des-
ignated to indicate the type of errors that are to be detected. The following table
provides the error types, displays, and explanations of all syntax errors. Check
level 0 checks for type A, B, and C errors; check level 1, for type A and B errors;
and check level 2, for type A errors only.

Type Message Meaning and appropriate response


A ????? The program has been damaged, creating a non-existent
function code. Re-enter the program.
CIRCUIT ERR The number of logic blocks and logic block instructions
does not agree, i.e., either LD or LD NOT has been used
to start a logic block whose execution condition has not
been used by another instruction, or a logic block
instruction has been used that does not have the required
number of logic blocks. Check your program.
OPERAND A constant entered for the instruction is not within defined
ERR values. Change the constant so that it lies within the
proper range.
NO END There is no END(001) in the program. Write END(001) at
INSTR the final address in the program.
LOCN ERR An instruction is in the wrong place in the program. Check
instruction requirements and correct the program.
JME UNDEFD A JME(004) instruction is missing for a JMP(005)
instruction. Correct the jump number or insert the proper
JME(004) instruction.
DUPL The same jump number or subroutine number has been
used twice. Correct the program so that the same number
is only used once for each.
SBN UNDEFD The SBS(091) instruction has been programmed for a
subroutine number that does not exist. Correct the
subroutine number or program the required subroutine.
STEP ERR STEP(008) with a section number and STEP(008) without
a section number have been used incorrectly. Check
STEP(008) programming requirements and correct the
program.
B IL-ILC ERR IL(002) and ILC(003) are not used in pairs. Correct the
program so that each IL(002) has a unique ILC(003).
Although this error message will appear if more than one
IL(002) is used with the same ILC(003), the program will
executed as written. Make sure your program is written as
desired before proceeding.
JMP-JME ERR JMP(004) and JME(005) are not used in pairs. Make sure
your program is written as desired before proceeding.
SBN-RET ERR If the displayed address is that of SBN(092), two different
subroutines have been defined with the same subroutine
number. Change one of the subroutine numbers or delete
one of the subroutines. If the displayed address is that of
RET(093), RET(093) has not been used properly. Check
requirements for RET(093) and correct the program.
C COIL DUPL The same bit is being controlled (i.e., turned ON and/or
OFF) by more than one instruction (e.g., OUT, OUT NOT,
DIFU(13), DIFD(14), KEEP(11), SFT(10)). Although this is
allowed for certain instructions, check instruction
requirements to confirm that the program is correct or
rewrite the program so that each bit is controlled by only
one instruction.
JMP UNDEFD JME(005) has been used with no JMP(004) with the same
jump number. Add a JMP(004) with the same number or
delete the JME(005) that is not being used.
SBS UNDEFD A subroutine exists that is not called by SBS(091).
Program a subroutine call in the proper place, or delete
the subroutine if it is not required.

92
Troubleshooting Flowcharts Section 5-6

5-6 Troubleshooting Flowcharts


Use the following flowcharts to troubleshoot errors that occur during operation.
Main Check
Error

Power indicator lit? No


Check power supply. (See page 94.)

Yes

No Operation stopped. Check for fatal errors.


RUN indicator lit?
(See page 95.)

Yes

ERR/ALM indicator No
flashing? Check for non-fatal errors. (See page 96.)

Yes

Is I/O sequence No
normal? Check I/O. (See page 97.)

Yes

Operating No
environment nor- Check operating environment. (See page 99.)
mal?
Yes

Replace the CPU


Unit.

93
Troubleshooting Flowcharts Section 5-6

Power Supply Check


Power indicator not lit.

Is power being No Connect power


supplied? supply.

Yes

No Is Power indicator lit? Yes

No Set supply voltage


Is voltage adequate?
within acceptable limits.

Yes

No Is Power indicator lit? Yes

Are there any loose Yes Tighten screws or


terminal screws or bro- replace wires.
ken wires?
No
No Yes
Is Power indicator lit?

Replace the CPU End


Unit.

94
Troubleshooting Flowcharts Section 5-6

Fatal Error Check


RUN indicator not lit.

No
Is the ERR/ALM
indicator lit?
Yes

Yes
No
Determine the cause Is PC mode displayed
of the error with a on Peripheral Device?
Peripheral Device.

Is PC mode displayed No
Turn the power
on Peripheral Device?
supply OFF, and
then ON again.
Yes

Is a fatal error Yes


displayed? Identify the error, eliminate
its cause, and clear the
error.
No Follow the Memory Error
Check flowchart if a
memory error has occurred.

Switch to RUN or
MONITOR mode.

Is the RUN indi- No


cator lit?

Yes

End Replace the CPU


Unit.

95
Troubleshooting Flowcharts Section 5-6

Non-fatal Error Check


ERR/ALM indicator flashing.

Determine the cause of the error


with a Peripheral Device.

Yes Identify the error, eliminate its


Is a non-fatal error
indicated? cause, and clear the error.

No

Flashing
Is the ERR/ALM indi-
cator flashing?

Not lit

End
Replace the CPU
Unit.

96
Troubleshooting Flowcharts Section 5-6

I/O Check The I/O check flowchart is based on the following ladder diagram section.
(LS1) (LS2)
00002 00003
01003 SOL1

01003
SOL1 malfunction.

Malfunction of SOL1

Is the IR 01003 out- No


put indicator operat-
ing normally?

Yes

Check the voltage at the Wire correctly. Monitor the ON/OFF


IR 01003 terminals. status of IR 01003
with a Peripheral
Device.

No

No No
Operation Is output wiring Operation
O.K.? correct? O.K.? A
To
Yes Yes next
Yes page

Disconnect the external wires


and check the conductivity of
each wire.

Yes Operation No
O.K.?

Replace the CPU Unit


Check output device
or Expansion I/O Unit
SOL1.
with the problem.

97
Troubleshooting Flowcharts Section 5-6

No
Are the IR 00002
and IR 00003 input indi-
cators operating
A normally?
From
previous Yes
page

Check the voltage at Check the voltage at


the IR 00002 and IR the IR 00002 and IR Are the terminal
00003 terminals. 00003 terminals. screws loose?
Yes
No

Operation
No O.K.? Yes
Operation
O.K.? No

Yes
No Yes
Is input wiring
correct?

Check operation by using a No


dummy input signal to turn the
input ON and OFF.

Wire correctly. Tighten the terminal


screws
No
Operation
O.K.?

Yes

Replace the CPU Replace the CPU


Check input devices Return to “start.” Unit or Expansion
Unit or Expansion LS1 and LS2.
I/O Unit. I/O Unit.

98
Troubleshooting Flowcharts Section 5-6

Environmental Conditions Check


Environmental conditions check

Is the ambient No Consider using a


temperature fan or cooler.
below 55°C?
Yes

Is the ambient No Consider using a


temperature above heater.
0°C?
Yes

Is the ambient humidity No Consider using an


between 10% and air conditioner.
90%?
Yes
Install surge pro-
No tectors or other
Is noise being
controlled? noise-reducing
equipment at
noise sources.
Yes

Consider
Is the installation envi- No constructing an
ronment okay? instrument panel
or cabinet.
Yes

End.

99
Troubleshooting Flowcharts Section 5-6

Memory Error Check


Memory error occurred.

Yes Replace the CPU


AR 1309 ON? Unit.

No

Yes Check/correct data backed up by


AR 1314 ON?
capacitor and clear error.

No

Yes Check the program, correct any


AR 1308 ON? errors, and clear the error.

No
No

Yes Yes Check the error indicated by


AR 1310 to Turned ON during the flag that is ON, correct set-
AR 1312 ON? startup? tings as required, and write
data to the flash memory.
No No

Check the external


environment.

End

100
Maintenance Inspections Section 5-7

5-7 Maintenance Inspections


In order that your SYSMAC system operates in optimum condition, be sure to
carry out daily or periodical inspections.

Inspection Items The main system components of a SYSMAC system are semiconductors, and it
contains few components with limited lifetimes. Environmental conditions, how-
ever, can lead to electrical element deterioration, making regular maintenance
necessary.

The standard period for maintenance checks is 6 months to 1 year, but depend-
ing on the environment checks may need to be more regular.

If the criteria are not met, adjust to within the specified ranges.

Inspection items Details Criteria Remarks


Power supply Determine whether the Within the voltage variation Tester
voltage fluctuation is within range (see note)
the standard at the power
supply terminal.
Environmental conditions Is the ambient temperature 0 to 55C Thermometer
inside the panel
appropriate?
Is the ambient humidity 10% to 85% RH with no Hydroscope
inside the panel condensation
appropriate?
Has dirt or dust collected? None Visual inspection
I/O power supply Is the voltage fluctuation Each I/O must conform to Tester
measured at the I/O the specifications
terminal within the standard
range?
Installation status Are all units securely Nothing is loose Positive screwdriver
installed?
Are all connection cables Nothing is loose Visual inspection
and connectors inserted
completely and locked?
Are any of the external Nothing is loose Positive screwdriver
wiring screws loose?
Are any of the external No external abnormalities Visual inspection
wiring cables frayed?
Product service life Contact output relay Electrical:
Resistance load: 300,000
operations
Inductive load: 100,000
operations
Mechanical:
10,000,000 operations

Note Power supply voltage variation range.

Power supply Allowable voltage fluctuation range


100 to 120 VAC 85 to 132 VAC
200 to 240 VAC 170 to 264 VAC
24 VDC 20.4 to 26.4 VDC

101
Handling Precautions Section 5-8

5-8 Handling Precautions


• Turn the power OFF before replacing the Unit.
Note Before restarting operation, transfer the contents of the DM and HR areas to the
CPU Unit that was changed and then start operation.
• If a Unit is found to be faulty and is replaced, check the Unit again to ensure
there is no error.
• When returning a faulty Unit for repair, make a detailed note of the Unit’s mal-
function and take it together with the Unit to your nearest OMRON office or
sales representative.
• If a contact is not good, put some industrial alcohol on a clean cotton cloth and
wipe the surface. After doing this, install the Unit.
Necessary Tools for Standard Tools
Inspection
• Screwdrivers (Philips and flat-blade)
• Voltage tester or digital voltage meter
• Industrial alcohol and a cotton cloth
Measurement Devices
• Synchroscope
• Cathode-ray oscilloscope
• Thermometer, hydroscope
Note Do not take apart, repair or remodel the PC in any way.

102
SECTION 6
Analog I/O Unit
This section describes the hardware and software operation of the CPM1A-MAD01 Analog I/O Unit.

6-1 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104


6-2 Nomenclature . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6-3 Connection and I/O Area Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6-3-1 Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6-3-2 I/O Area Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
6-4 I/O Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
6-4-1 Setting Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6-4-2 Analog Inputs and Conversion Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
6-4-3 Analog Output Data and Output Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
6-5 I/O Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
6-5-1 Input Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
6-5-2 Output Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111

103
I/O Wiring Section 6-5

6-1 Specifications
Item Specifications
Number of analog 1
outputs
Output signal range Voltage output 0 V to +10 V
–10 V to +10 V
Current output 4 mA to 20 mA
Resolution Voltage output 0 to 10 V: 1/256
–10 to 10 V: 1/512
Current output 1/256
Accuracy Voltage output 1.0% max. (full scale)
Current output 1.0% max. (full scale)
Number of analog 2
inputs
Input signal range Voltage input 0 V to +10 V
1 V to +5 V
Current input 4 mA to 20 mA
Resolution Voltage input 1/256
Current input 1/256
Accuracy Voltage input 1.0% max. (full scale)
Current input 1.0% max. (full scale)
Conversion time 10 ms. max./ Unit
(See note.)
Maximum output Voltage output 5 mA
current
Maximum load Current output 500 Ω
resistance
Maximum total output 21 mA
current for Unit
Maximum input signal Voltage input ±15 V
Current input ±30 mA
PC signal Voltage output 8-bit binary + sign bit
(80FF to 0000, 0000 to 00FF
hexadecimal)
Current output 8-bit binary
(0000 to 00FF hexadecimal)
External connections 9-pin terminal block (non-removable)
Insulation Between output/input terminals and PC: Photocouplers
Between output terminals individual: None
Power consumption At 5 VDC: 60 mA max.
At 24 VDC: 60 mA max.
Supplied from CPU Unit.
Dimensions 66 50 90 mm (W x H x D)
Weight 150 g max.

Note The conversion time is for a complete refresh of inputs and outputs for the Unit.

• Voltage and current outputs can be used at the same time as long as the total
output current is 21 mA or less.

• Data written to the output word is valid for both the current and voltage outputs.

• Data read from the input words is valid for the current or voltage input.

104
I/O Wiring Section 6-5

6-2 Nomenclature
The components of the Analog I/O Unit are shown in the following illustration.

Connecting
Cable

I/O terminals

6-3 Connection and I/O Area Allocation


6-3-1 Connection
Either one Expansion I/O Unit or one Analog I/O Unit can be connected to a
CPM1-10CDR-/20CDR-/30CDR- CPU Unit. Also, up to three Expansion
I/O Units and/or Analog I/O Units can be connected in any combination to a
CPM1-30CDR--V1 CPU Unit. The connection method is the same as for the
Expansion I/O Unit. Refer to 3-3-3 Connecting an Expansion I/O Unit or Analog
I/O Unit for details.
A PC configuration with an Analog I/O Unit connected to the CPU Unit is shown
below.
Analog I/O Unit

CPU Unit

105
I/O Wiring Section 6-5

6-3-2 I/O Area Allocation


The Analog I/O Unit is allocated two input words in the CPU Unit for the two ana-
log inputs and one output word for the analog output. The following table shows
the allocations of the I/O area that are made depending on the model of CPU
Unit that is used.
For example, if an Analog I/O Unit is connected to a CPM1-10CDR- CPU Unit,
IR 001 and IR 002 in the CPU Unit will contain the decimal conversions of the
analog values input on analog input 1 and analog input 2, respectively, of the
Analog I/O Unit. Also, the analog conversion of the decimal value in IR 011 in the
CPU Unit will be output as a current and voltage on the analog output terminals
of the Analog I/O Unit.
CPU Unit CPM1A-MAD01
Analog I/O Unit
Model number Input Output Input Input Output
word word word for word for word
input 1 input 2
CPM1-10CDR- IR 000 IR 010 IR 001 IR 002 IR 011
CPM1-20CDR- IR 000 IR 010 IR 001 IR 002 IR 011
CPM1-30CDR- IR 000 IR 010 IR 002 IR 003 IR 012
IR 001 IR 011

6-4 I/O Settings


The I/O ranges to be used by the Analog I/O Unit are set as range codes in the
output word allocated to the Unit. The range codes are shown in the following
table.
For example, if “FF04” is set as the range code, the ranges will be 0 to 10 V for
analog input 1, 1 to 5 V for analog input 2, and 0 to 10 V or 4 to 10 mA for the
analog output.
The I/O ranges must be set each time CPM1 operation is started. Analog and
digital conversions will not be conducted until the ranges are set.
The lower 8 bits of the analog output will be the analog conversion of 00 while the
range code is being set. Once the ranges have been set, they cannot be reset
without turning off the power to the CPM1. To change the range code, cycle the
power to the CPM1 and reset the code.
Range code Input 1 range Input 2 range Output range
(See note.)
FF00 0 to 10 V 0 to 10 V 0 to 10 V
4 to 20 mA
FF01 –10 to 10 V
4 to 20 mA
FF02 1 to 5 V or 0 to 10 V
4 to 20 mA 4 to 20 mA
FF03 –10 to 10 V
4 to 20 mA
FF04 0 to 10 V 1 to 5 V or 0 to 10 V
4 to 20 mA 4 to 20 mA
FF05 –10 to 10 V
4 to 20 mA
FF06 1 to 5 V or 0 to 10 V
4 to 20 mA 4 to 20 mA
FF07 –10 to 10 V
4 to 20 mA
Note The analog current output will always be output between 4 and 20 mA from the
I OUT terminal. (See 6-5-2 Output Wiring.) When using both the voltage and
current outputs, the total output current must be 21 mA or less.

106
I/O Wiring Section 6-5

6-4-1 Setting Example


The following CPM1 PC consists of a 20-point CPU Unit and an Analog I/O Unit.
This example shows how to set this PC to input from 0 to 10 V and from 4 to
20 mA, and to output from 0 to 10 V.
CPM1A-MAD01
Analog I/O Unit
CPM1-20CDR-
CPU Unit

The I/O word allocations would be as follows:


• Analog input 1: IR 001
• Analog input 2: IR 002
• Analog output: IR 011
Here, the range code would be set to “FF04” to set analog input 1 to input from 0
to 10 V, analog input 2 to input from 4 to 20 mA, and the analog output to output
from 0 to 10 V.
The range code can be set by writing FF04 to IR 011 each time operation is
started. The following instructions can be used.

(First Scan Flag)


25315
MOV (20)
#FF04
011

Analog and digital conversions will be automatically started by the Analog I/O
Unit when the range code is set to any value between FF00 and FF07.

107
I/O Wiring Section 6-5

6-4-2 Analog Inputs and Conversion Results


Analog Input vs. When the range code is set in the output word, the analog inputs are automati-
Conversion Results cally converted to digital values and stored in the input words allocated to them.
The values are converted as shown in the following chart.
Analog input
10 V 5V 20 mA

5V 3V 12 mA

0V 1V 4 mA
00 80 FF
Converted data
(Hexadecimal)

Input Word Results Data In the example shown in 6-4-1 Setting Example, analog input 1 is allocated IR
001 and analog input 2 is allocated IR 002. The results of digital conversion for
these inputs would be stored in these words in the following form.

15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00

Not used (00) Results of conversion


(00 to FF)

Broken Wire Bit


0: No broken wire
1: Broken wire

Note The Broken Wire Bit will turn ON when the voltage drops below 1 V for a 1 to 5-V
input signal or below 4 mA for a 4 to 20-mA input signal.

108
I/O Wiring Section 6-5

6-4-3 Analog Output Data and Output Value


Output Data vs. Output When the range code is set in the output word, the output data in the output word
Value is converted to an analog signal that is output as a voltage and current. The data
is converted as shown in the following chart.
Analog output
10 V 5V 20 mA

5V 3V 12 mA

80FF 8080
0V 1V 4 mA
0000 0080 00FF
Output data
(Hexadecimal)
–5 V

–10 V

Output Word Data In the example shown in 6-4-1 Setting Example, the analog output is allocated IR
011. The output word data is thus stored in IR 011, in the following form.

15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00

Not used (ignored) Output data


(00 to FF)

Sign Bit
0: Positive
1: Negative (See note.)

Note The Sign Bit is valid only when the range is set to –10 to 10 V. The Sign Bit is
ignored when the range is set to 0 to 10 V.

109
I/O Wiring Section 6-5

6-5 I/O Wiring


The I/O terminals are allocated as shown in the following illustration.

I/O terminals I OUT Current output

V OUT Voltage output

COM Output common

V IN1 Voltage input 1

I IN1 Current input 1

I OUT V IN1 COM1 I IN2 COM1 Common for input 1

V OUT COM I IN1 V IN2 COM2 V IN2 Voltage input 2

I IN2 Current input 2

COM2 Common for input 2

Note 1. Use crimp (solderless) terminals to connect to the I/O terminals on the Ana-
log I/O Unit. Do not connect loose wires.

2. The tightening torque of the I/O terminals is 0.5 Nm.

6-5-1 Input Wiring


Wire the analog inputs as shown in the following illustration. Use shielded
twisted-pair cables to connect field devices.
When using current inputs, always short the current and voltage input terminals.
Short the V IN, I IN, and COM terminals for all inputs that are not being used.

Shielded twisted- Analog I/O Unit


pair cable

Voltage 250 E
output
device

10 K
0V

Current 250 E
output
device

10 K
0V

110
I/O Wiring Section 6-5

6-5-2 Output Wiring


Wire the analog output as shown in the following illustration. Use shielded
twisted-pair cables to connect field devices.
The 4 to 20-mA current output is always output even when a voltage output (0 to
10 V or –10 to 10 V) has been set.
When using both the current and voltage outputs, the total output current must
be 21 mA or less.
Voltage Output
Analog I/O Unit Shielded twisted-
pair cable
Voltage
input
device

0V

Current Output

Analog I/O Unit

Current
Shielded twisted- input
pair cable device

0V

111
Appendix A
Standard Models

CPU Units
Description Input points Output points Power Supply Model Number
CPU Units with 10 I/O points 6 points 4 points 100 to 240 VAC, 50/60 Hz CPM1-10CDR-A

24 VDC CPM1-10CDR-D

CPU Units with 20 I/O points 12 points 8 points 100 to 240 VAC, 50/60 Hz CPM1-20CDR-A

24 VDC CPM1-20CDR-D

CPU Units with 30 I/O points 18 points 12 points 100 to 240 VAC, 50/60 Hz CPM1-30CDR-A
24 VDC CPM1-30CDR-D
100 to 240 VAC, 50/60 Hz CPM1-30CDR-A-V1
24 VDC CPM1-30CDR-D-V1

Expansion I/O Units


Description Input points Output points Specifications Model Number
12 points 8 points Expansion I/O Unit with 20 I/O CPM1-20EDR
points

Expansion I/O Unit with 20 I/O CPM1A-20EDT


points
Transistor output (sink type)
Expansion I/O Unit with 20 I/O CPM1A-20EDT1
points
Transistor output (source type)

Special I/O Units


Description Analog inputs Analog outputs Model number
Analog I/O Unit 2 points (allocated 1 point (allocated CPM1A-MAD01
2 words) 1 word)

Communications Adapters
Description Output points Model number
RS-232C Adapter Converts data communications between CPM1-CIF01
the peripheral port and RS-232C devices.

RS-422 Adapter Converts data communications between CPM1-CIF11


the peripheral port and RS-422 devices.

The CPM1-CIF01/CIF11 are used with the CPM1A, CPM1, and SRM1 only. Do not use them with a C200HS PC or
other PC.

113
Standard Models Appendix A

Peripheral Devices
Name Model number Specifications
Programming Console CQM1-PRO01-E 2-m Connecting Cable attached
C200H-PRO27-E Hand-held, w/backlight; requires the C200H-CN222 or
C200H-CN422 Connecting Cable, see below
SYSMAC Support Software C500-ZL3AT1-E 3.5”, 2HD for IBM PC/AT compatible
SYSMAC-CPT WS01-CPTB1-E For IBM PC/AT or compatible computers
(3.5” disks (2HD) and CDROM)
Connecting Cable CQM1-CIF02 Connects IBM PC/AT or compatible computers to Peripheral Port
C200H-CN222 Connects C200H Programming Console to Peripheral Port (2 m)
C200H-CN422 Connects C200H Programming Console to Peripheral Port (4 m)

114
Appendix B
Dimensions

All dimensions are in millimeters.

CPM1-10CDR- CPU Units

81 90

121
85
130

115
Dimensions Appendix B

CPM1-20CDR- CPU Units

81 90

171 85
180

CPM1-30CDR-(-V1) CPU Units

81
90

221 85
230

116
Dimensions Appendix B

CPM1-20EDR Expansion I/O Unit

81 90

171
85
180

CPM1A-20EDT/20EDT1 Expansion I/O Unit


90

86 50

117
Dimensions Appendix B

CPM1A-MAD01 Analog I/O Unit

CPM1-CIF01 RS-232C Communications Adapter


30 56
21 50

90 81

205

118
Dimensions Appendix B

CPM1-CIF11 RS-422 Communications Adapter


30 61
21 50

90 81

205

119
Dimensions Appendix B

Dimensions with Peripheral Devices


CPM1-CDR- CPU Unit with Communications Adapter or
Programming Console Attached
Approx. 125

CPM1-CIF01 RS-232C Adapter with Connector Attached


Approx. 120

120
Glossary

*DM Indirectly addressed DM area. See indirect address and DM area.


1:1 link A link created between two PCs to create common data in their LR areas.
ACP See add count input.
add count input An input signal used to increment a counter when the signal changes from OFF
to ON.
address A number used to identify the location of data or programming instructions in
memory.
AND A logic operation whereby the result is true if and only if both premises are true.
In ladder-diagram programming the premises are usually ON/OFF states of bits
or the logical combination of such states called execution conditions.
area See data area and memory area.
area prefix A one or two letter prefix used to identify a memory area in the PC. All memory
areas except the IR and SR areas require prefixes to identify addresses in them.
arithmetic shift A shift operation wherein the carry flag is included in the shift.
ASCII Short for American Standard Code for Information Interchange. ASCII is used to
code characters for output to printers and other external devices.
AR Area A PC data area allocated to flags and control bits.
AUTOEXEC.BAT An MS DOS file containing commands automatically executed at startup.
back-up A copy made of existing data to ensure that the data will not be lost even if the
original data is corrupted or erased.
basic instruction A fundamental instruction used in a ladder diagram. See advanced instruction.
baud rate The data transmission speed between two devices in a system measured in bits
per second.
BCD See binary-coded decimal.
BCD calculation An arithmetic calculation that uses numbers expressed in binary-coded deci-
mal.
binary A number system where all numbers are expressed in base 2, i.e., numbers are
written using only 0’s and 1’s. Each group of four binary bits is equivalent to one
hexadecimal digit. Binary data in memory is thus often expressed in hexadeci-
mal for convenience.
binary calculation An arithmetic calculation that uses numbers expressed in binary.
binary-coded decimal A system used to represent numbers so that every four binary bits is numerically
equivalent to one decimal digit.
bit The smallest piece of information that can be represented on a computer. A bit
has the value of either zero or one, corresponding to the electrical signals ON
and OFF. A bit represents one binary digit. Some bits at particular addresses are
allocated to special purposes, such as holding the status of input from external
devices, while other bits are available for general use in programming.
bit address The location in memory where a bit of data is stored. A bit address specifies the
data area and word that is being addressed as well as the number of the bit
within the word.

121
Glossary

bit designator An operand that is used to designate the bit or bits of a word to be used by an
instruction.
bit number A number that indicates the location of a bit within a word. Bit 00 is the rightmost
(least-significant) bit; bit 15 is the leftmost (most-significant) bit.
bit-control instruction An instruction that is used to control the status of an individual bit as opposed to
the status of an entire word.
block See logic block and instruction block.
building-block PC A PC that is constructed from individual components, or “building blocks.” With
building-block PCs, there is no one Unit that is independently identifiable as a
PC. The PC is rather a functional assembly of Units.
bus A communications path used to pass data between any of the Units connected
to it.
bus bar The line leading down the left and sometimes right side of a ladder diagram.
Instruction execution proceeds down the bus bar, which is the starting point for
all instruction lines.
byte A unit of data equivalent to 8 bits, i.e., half a word.
call A process by which instruction execution shifts from the main program to a sub-
routine. The subroutine may be called by an instruction or by an interrupt.
Carry Flag A flag that is used with arithmetic operations to hold a carry from an addition or
multiplication operation, or to indicate that the result is negative in a subtraction
operation. The carry flag is also used with certain types of shift operations.
central processing unit A device that is capable of storing programs and data, and executing the instruc-
tions contained in the programs. In a PC System, the central processing unit
executes the program, processes I/O signals, communicates with external
devices, etc.
CH See word.
channel See word.
character code A numeric (usually binary) code used to represent an alphanumeric character.
checksum A sum transmitted with a data pack in communications. The checksum can be
recalculated from the received data to confirm that the data in the transmission
has not been corrupted.
clock pulse A pulse available at specific bits in memory for use in timing operations. Various
clock pulses are available with different pulse widths, and therefore different fre-
quencies.
clock pulse bit A bit in memory that supplies a pulse that can be used to time operations. Vari-
ous clock pulse bits are available with different pulse widths, and therefore differ-
ent frequencies.
common data Data that is stored in a memory of a PC and which is shared by other PCs in the
same the same system. Each PC has a specified section(s) of the area allocated
to it. Each PC writes to the section(s) allocated to it and reads the sections allo-
cated to the other PCs with which it shares the common data.
communications cable Cable used to transfer data between components of a control system and con-
forming to the RS-232C or RS-422 standards.
comparison instruction An instruction used to compare data at different locations in memory to deter-
mine the relationship between the data.

122
Glossary

Completion Flag A flag used with a timer or counter that turns ON when the timer has timed out or
the counter has reached its set value.
condition A symbol placed on an instruction line to indicate an instruction that controls the
execution condition for the terminal instruction. Each condition is assigned a bit
in memory that determines its status. The status of the bit assigned to each
condition determines the next execution condition. Conditions correspond to
LOAD, LOAD NOT, AND, AND NOT, OR, or OR NOT instructions.
CONFIG.SYS An MS DOS file containing environment settings for a personal computer.
constant An input for an operand in which the actual numeric value is specified. Constants
can be input for certain operands in place of memory area addresses. Some
operands must be input as constants.
control bit A bit in a memory area that is set either through the program or via a Program-
ming Device to achieve a specific purpose, e.g., a Restart Bit is turned ON and
OFF to restart a Unit.
control data An operand that specifies how an instruction is to be executed. The control data
may specify the part of a word is to be used as the operand, it may specify the
destination for a data transfer instructions, it may specify the size of a data table
used in an instruction, etc.
control signal A signal sent from the PC to effect the operation of the controlled system.
Control System All of the hardware and software components used to control other devices. A
Control System includes the PC System, the PC programs, and all I/O devices
that are used to control or obtain feedback from the controlled system.
controlled system The devices that are being controlled by a PC System.
count pulse The signal counted by a counter.
counter A dedicated group of digits or words in memory used to count the number of
times a specific process has occurred, or a location in memory accessed
through a TIM/CNT bit and used to count the number of times the status of a bit
or an execution condition has changed from OFF to ON.
CPU Unit See central processing unit.
CTS An acronym for clear-to-send, a signal used in communications between elec-
tronic devices to indicate that the receiver is ready to accept incoming data.
CY See Carry Flag.
cycle One unit of processing performed by the CPU Unit, including ladder program
execution, peripheral servicing, I/O refreshing, etc.
cycle time The time required to complete one cycle of CPU Unit processing.
cyclic interrupt See scheduled interrupt.
data area An area in the PC’s memory that is designed to hold a specific type of data.
data area boundary The highest address available within a data area. When designating an operand
that requires multiple words, it is necessary to ensure that the highest address in
the data area is not exceeded.
data disk A floppy disk used to same user programs, DM area contents, comments, and
other user data.
data length In communications, the number of bits that is to be treated as one unit in data
transmissions.

123
Glossary

data link An automatic data transmission operation that allows PCs or Units within PC to
pass data back and forth via common data areas.
data link area A common data area established through a data link.
data movement instruction An instruction used to move data from one location in memory to another. The
data in the original memory location is left unchanged.
data sharing The process in which common data areas or common data words are created
between two or more PCs.
data trace A process in which changes in the contents of specific memory locations are
recorded during program execution.
data transfer Moving data from one memory location to another, either within the same device
or between different devices connected via a communications line or network.
debug A process by which a draft program is corrected until it operates as intended.
Debugging includes both the removal of syntax errors, as well as the fine-tuning
of timing and coordination of control operations.
decimal A number system where numbers are expressed to the base 10. In a PC all data
is ultimately stored in binary form, four binary bits are often used to represent
one decimal digit, via a system called binary-coded decimal.
decrement Decreasing a numeric value, usually by 1.
default A value automatically set by the PC when the user does not specifically set
another value. Many devices will assume such default conditions upon the
application of power.
definer A number used as an operand for an instruction but that serves to define the
instruction itself, rather that the data on which the instruction is to operate. Defin-
ers include jump numbers, subroutine numbers, etc.
destination The location where an instruction places the data on which it is operating, as
opposed to the location from which data is taken for use in the instruction. The
location from which data is taken is called the source.
differentiated instruction An instruction that is executed only once each time its execution condition goes
from OFF to ON. Non-differentiated instructions are executed for each scan as
long as the execution condition stays ON.
differentiation instruction An instruction used to ensure that the operand bit is never turned ON for more
than one scan after the execution condition goes either from OFF to ON for a
Differentiate Up instruction or from ON to OFF for a Differentiate Down instruc-
tion.
digit A unit of storage in memory that consists of four bits.
digit designator An operand that is used to designate the digit or digits of a word to be used by an
instruction.
DIN track A rail designed to fit into grooves on various devices to allow the devices to be
quickly and easily mounted to it.
DIP switch Dual in-line package switch, an array of pins in a signal package that is mounted
to a circuit board and is used to set operating parameters.
direct output A method in which program execution results are output immediately to elimi-
nate the affects of the cycle time.
distributed control A automation concept in which control of each portion of an automated system is
located near the devices actually being controlled, i.e., control is decentralized

124
Glossary

and ‘distributed’ over the system. Distributed control is a concept basic to PC


Systems.

DM area A data area used to hold only word data. Words in the DM area cannot be
accessed bit by bit.

DM word A word in the DM area.

downloading The process of transferring a program or data from a higher-level or host com-
puter to a lower-level or slave computer. If a Programming Device is involved,
the Programming Device is considered the host computer.

EEPROM Electrically erasable programmable read-only memory; a type of ROM in which


stored data can be erased and reprogrammed. This is accomplished using a
special control lead connected to the EEPROM chip and can be done without
having to remove the EEPROM chip from the device in which it is mounted.

electrical noise Random variations of one or more electrical characteristics such as voltage, cur-
rent, and data, which might interfere with the normal operation of a device.

EPROM Erasable programmable read-only memory; a type of ROM in which stored data
can be erased, by ultraviolet light or other means, and reprogrammed.

error code A numeric code generated to indicate that an error exists, and something about
the nature of the error. Some error codes are generated by the system; others
are defined in the program by the operator.

Error Log Area An area used to store records indicating the time and nature of errors that have
occurred in the system.

even parity A communication setting that adjusts the number of ON bits so that it is always
even. See parity.

event processing Processing that is performed in response to an event, e.g., an interrupt signal.

exclusive NOR A logic operation whereby the result is true if both of the premises are true or both
of the premises are false. In ladder-diagram programming, the premises are
usually the ON/OFF states of bits, or the logical combination of such states,
called execution conditions.

exclusive OR A logic operation whereby the result is true if one, and only one, of the premises
is true. In ladder-diagram programming the premises are usually the ON/OFF
states of bits, or the logical combination of such states, called execution condi-
tions.

execution condition The ON or OFF status under which an instruction is executed. The execution
condition is determined by the logical combination of conditions on the same
instruction line and up to the instruction currently being executed.

execution cycle The cycle used to execute all processes required by the CPU Unit, including pro-
gram execution, I/O refreshing, peripheral servicing, etc.

execution time The time required for the CPU Unit to execute either an individual instruction or
an entire program.

extended counter A counter created in a program by using two or more count instructions in suc-
cession. Such a counter is capable of counting higher than any of the standard
counters provided by the individual instructions.

extended timer A timer created in a program by using two or more timers in succession. Such a
timer is capable of timing longer than any of the standard timers provided by the
individual instructions.

125
Glossary

FA Factory automation.

factory computer A general-purpose computer, usually quite similar to a business computer, that
is used in automated factory control.

FAL error An error generated from the user program by execution of an FAL(06) instruc-
tion.

FALS error An error generated from the user program by execution of an FALS(07) instruc-
tion or an error generated by the system.

fatal error An error that stops PC operation and requires correction before operation can
continue.

FCS See frame checksum.

flag A dedicated bit in memory that is set by the system to indicate some type of oper-
ating status. Some flags, such as the carry flag, can also be set by the operator
or via the program.

flicker bit A bit that is programmed to turn ON and OFF at a specific frequency.

floating-point decimal A decimal number expressed as a number (the mantissa) multiplied by a power
of 10, e.g., 0.538 x 10–5.

force reset The process of forcibly turning OFF a bit via a programming device. Bits are usu-
ally turned OFF as a result of program execution.

force set The process of forcibly turning ON a bit via a programming device. Bits are usu-
ally turned ON as a result of program execution.

forced status The status of bits that have been force reset or force set.

frame checksum The results of exclusive ORing all data within a specified calculation range. The
frame checksum can be calculated on both the sending and receiving end of a
data transfer to confirm that data was transmitted correctly.

function code A two-digit number used to input an instruction into the PC.

hardware error An error originating in the hardware structure (electronic components) of the PC,
as opposed to a software error, which originates in software (i.e., programs).

header code A code in an instruction that specifies what the instruction is to do.

hexadecimal A number system where all numbers are expressed to the base 16. In a PC all
data is ultimately stored in binary form, however, displays and inputs on Pro-
gramming Devices are often expressed in hexadecimal to simplify operation.
Each group of four binary bits is numerically equivalent to one hexadecimal digit.

host computer A computer that is used to transfer data to or receive data from a PC in a Host
Link system. The host computer is used for data management and overall sys-
tem control. Host computers are generally small personal or business comput-
ers.

host interface An interface that allows communications with a host computer.

host link An interface connecting a PC to a host computer to enable monitoring or pro-


gram control from the host computer.

HR area A memory area that preserves bit status during power interrupts and used as
work bits in programming.

I/O bit A bit in memory used to hold I/O status. Input bits reflect the status of input termi-
nals; output bits hold the status for output terminals.

126
Glossary

I/O capacity The number of inputs and outputs that a PC is able to handle. This number
ranges from around one hundred for smaller PCs to two thousand for the largest
ones.

I/O delay The delay in time from when a signal is sent to an output to when the status of the
output is actually in effect or the delay in time from when the status of an input
changes until the signal indicating the change in the status is received.

I/O device A device connected to the I/O terminals on I/O Units. I/O devices may be either
part of the Control System, if they function to help control other devices, or they
may be part of the controlled system.

I/O interrupt An interrupt generated by a signal from I/O.

I/O point The place at which an input signal enters the PC System, or at which an output
signal leaves the PC System. In physical terms, I/O points correspond to termi-
nals or connector pins on a Unit; in terms of programming, an I/O points corre-
spond to I/O bits in the IR area.

I/O refreshing The process of updating output status sent to external devices so that it agrees
with the status of output bits held in memory and of updating input bits in memory
so that they agree with the status of inputs from external devices.

I/O response time The time required for an output signal to be sent from the PC in response to an
input signal received from an external device.

I/O Unit The Units in a PC that are physically connected to I/O devices to input and output
signals. I/O Units include Input Units and Output Units, each of which is available
in a range of specifications.

I/O word A word in the IR area that is allocated to a Unit in the PC System and is used to
hold I/O status for that Unit.

IBM PC/AT or compatible A computer that has similar architecture to, that is logically compatible with, and
that can run software designed for an IBM PC/AT computer.

increment Increasing a numeric value, usually by 1.

indirect address An address whose contents indicates another address. The contents of the
second address will be used as the actual operand.

initialization error An error that occurs either in hardware or software during the PC System
startup, i.e., during initialization.

initialize Part of the startup process whereby some memory areas are cleared, system
setup is checked, and default values are set.

input The signal coming from an external device into the PC. The term input is often
used abstractly or collectively to refer to incoming signals.

input bit A bit in the IR area that is allocated to hold the status of an input.

input device An external device that sends signals into the PC System.

input point The point at which an input enters the PC System. Input points correspond
physically to terminals or connector pins.

input signal A change in the status of a connection entering the PC. Generally an input signal
is said to exist when, for example, a connection point goes from low to high volt-
age or from a nonconductive to a conductive state.

install The preparation necessary to use a program or software package, such as the
LSS or SSS, on a computer.

127
Glossary

instruction A direction given in the program that tells the PC of the action to be carried out,
and the data to be used in carrying out the action. Instructions can be used to
simply turn a bit ON or OFF, or they can perform much more complex actions,
such as converting and/or transferring large blocks of data.

instruction block A group of instructions that is logically related in a ladder-diagram program. A


logic block includes all of the instruction lines that interconnect with each other
from one or more line connecting to the left bus bar to one or more right-hand
instructions connecting to the right bus bar.

instruction execution time The time required to execute an instruction. The execution time for any one
instruction can vary with the execution conditions for the instruction and the
operands used in it.

instruction line A group of conditions that lie together on the same horizontal line of a ladder dia-
gram. Instruction lines can branch apart or join together to form instruction
blocks. Also called a rung.

interface An interface is the conceptual boundary between systems or devices and usu-
ally involves changes in the way the communicated data is represented. Inter-
face devices perform operations like changing the coding, format, or speed of
the data.

interlock A programming method used to treat a number of instructions as a group so that


the entire group can be reset together when individual execution is not required.
An interlocked program section is executed normally for an ON execution condi-
tion and partially reset for an OFF execution condition.

interrupt (signal) A signal that stops normal program execution and causes a subroutine to be run
or other processing to take place.

interrupt program A program that is executed in response to an interrupt.

inverse condition See normally closed condition.

JIS An acronym for Japanese Industrial Standards.

jump A type of programming where execution moves directly from one point in a pro-
gram to another, without sequentially executing any instructions in between.

jump number A definer used with a jump that defines the points from and to which a jump is to
be made.

ladder diagram (program) A form of program arising out of relay-based control systems that uses circuit-
type diagrams to represent the logic flow of programming instructions. The
appearance of the program is similar to a ladder, and thus the name.

ladder diagram symbol A symbol used in drawing a ladder-diagram program.

ladder instruction An instruction that represents the conditions on a ladder-diagram program. The
other instructions in a ladder diagram fall along the right side of the diagram and
are called terminal instructions.

Ladder Support Software A software package installed on a IBM PC/AT or compatible computer to func-
tion as a Programming Device.

least-significant (bit/word) See rightmost (bit/word).

LED Acronym for light-emitting diode; a device used as for indicators or displays.

leftmost (bit/word) The highest numbered bits of a group of bits, generally of an entire word, or the
highest numbered words of a group of words. These bits/words are often called
most-significant bits/words.

128
Glossary

link A hardware or software connection formed between two Units. “Link” can refer
either to a part of the physical connection between two Units or a software con-
nection created to data existing at another location (i.e., data links).

load The processes of copying data either from an external device or from a storage
area to an active portion of the system such as a display buffer. Also, an output
device connected to the PC is called a load.

logic block A group of instructions that is logically related in a ladder-diagram program and
that requires logic block instructions to relate it to other instructions or logic
blocks.

logic block instruction An instruction used to locally combine the execution condition resulting from a
logic block with a current execution condition. The current execution condition
could be the result of a single condition, or of another logic block. AND Load and
OR Load are the two logic block instructions.

logic instruction Instructions used to logically combine the content of two words and output the
logical results to a specified result word. The logic instructions combine all the
same-numbered bits in the two words and output the result to the bit of the same
number in the specified result word.

LR area A data area that is used in data links.

LSS See Ladder Support Software.

main program All of a program except for subroutine and interrupt programs.

mark trace A process in which changes in the contents of specific memory locations are
recorded during program execution.

masked bit A bit whose status has been temporarily made ineffective.

masking ‘Covering’ an interrupt signal so that the interrupt is not effective until the mask is
removed.

megabyte A unit of storage equal to one million bytes.

memory area Any of the areas in the PC used to hold data or programs.

message number A number assigned to a message generated with the MESSAGE instruction.

mnemonic code A form of a ladder-diagram program that consists of a sequential list of the
instructions without using a ladder diagram.

MONITOR mode A mode of PC operation in which normal program execution is possible, and
which allows modification of data held in memory. Used for monitoring or debug-
ging the PC.

most-significant (bit/word) See leftmost (bit/word).

NC input An input that is normally closed, i.e., the input signal is considered to be present
when the circuit connected to the input opens.

negative delay A delay set for a data trace in which recording data begins before the trace signal
by a specified amount.

nesting Programming one loop within another loop, programming a call to a subroutine
within another subroutine, or programming one jump within another.

NO input An input that is normally open, i.e., the input signal is considered to be present
when the circuit connected to the input closes.

noise interference Disturbances in signals caused by electrical noise.

129
Glossary

non-fatal error A hardware or software error that produces a warning but does not stop the PC
from operating.

normal condition See normally open condition.

normally closed condition A condition that produces an ON execution condition when the bit assigned to it
is OFF, and an OFF execution condition when the bit assigned to it is ON.

normally open condition A condition that produces an ON execution condition when the bit assigned to it
is ON, and an OFF execution condition when the bit assigned to it is OFF.

NOT A logic operation which inverts the status of the operand. For example, AND
NOT indicates an AND operation with the opposite of the actual status of the
operand bit.

OFF The status of an input or output when a signal is said not to be present. The OFF
state is generally represented by a low voltage or by non-conductivity, but can be
defined as the opposite of either.

OFF delay The delay between the time when a signal is switched OFF (e.g., by an input
device or PC) and the time when the signal reaches a state readable as an OFF
signal (i.e., as no signal) by a receiving party (e.g., output device or PC).

offset A positive or negative value added to a base value such as an address to specify
a desired value.

ON The status of an input or output when a signal is said to be present. The ON state
is generally represented by a high voltage or by conductivity, but can be defined
as the opposite of either.

ON delay The delay between the time when an ON signal is initiated (e.g., by an input
device or PC) and the time when the signal reaches a state readable as an ON
signal by a receiving party (e.g., output device or PC).

one-shot bit A bit that is turned ON or OFF for a specified interval of time which is longer than
one scan.

one-to-one link See 1:1 link.

online edit The process of changed the program directly in the PC from a Programming
Device. Online editing is possible in PROGRAM or MONITOR mode. In MON-
ITOR mode, the program can actually be changed while it is being

operand The values designated as the data to be used for an instruction. An operand can
be input as a constant expressing the actual numeric value to be used or as an
address to express the location in memory of the data to be used.

operand bit A bit designated as an operand for an instruction.

operand word A word designated as an operand for an instruction.

operating modes One of three PC modes: PROGRAM mode, MONITOR mode, and RUN mode.

operating error An error that occurs during actual PC operation as opposed to an initialization
error, which occurs before actual operations can begin.

OR A logic operation whereby the result is true if either of two premises is true, or if
both are true. In ladder-diagram programming the premises are usually ON/OFF
states of bits or the logical combination of such states called execution condi-
tions.

output The signal sent from the PC to an external device. The term output is often used
abstractly or collectively to refer to outgoing signals.

130
Glossary

output bit A bit in the IR area that is allocated to hold the status to be sent to an output
device.

output device An external device that receives signals from the PC System.

output point The point at which an output leaves the PC System. Output points correspond
physically to terminals or connector pins.

output signal A signal being sent to an external device. Generally an output signal is said to
exist when, for example, a connection point goes from low to high voltage or from
a nonconductive to a conductive state.

overflow The state where the capacity of a data storage location has been exceeded.

overseeing Part of the processing performed by the CPU Unit that includes general tasks
required to operate the PC.

overwrite Changing the content of a memory location so that the previous content is lost.

parity Adjustment of the number of ON bits in a word or other unit of data so that the
total is always an even number or always an odd number. Parity is generally
used to check the accuracy of data after being transmitted by confirming that the
number of ON bits is still even or still odd.

parity check Checking parity to ensure that transmitted data has not been corrupted.

PC See Programmable Controller.

PC configuration The arrangement and interconnections of the Units that are put together to form
a functional PC.

PC System With building-block PCs, all of the Units connected up to, but not including, the
I/O devices. The boundaries of a PC System are the PC and the program in its
CPU Unit at the upper end; and the I/O Units at the lower end.

PCB See printed circuit board.

PC Setup A group of operating parameters set in the PC from a Programming Device to


control PC operation.

Peripheral Device Devices connected to a PC System to aid in system operation. Peripheral


devices include printers, programming devices, external storage media, etc.

peripheral servicing Processing signals to and from peripheral devices, including refreshing, com-
munications processing, interrupts, etc.

port A connector on a PC or computer that serves as a connection to an external


device.

positive delay A delay set for a data trace in which recording data begins after the trace signal
by a specified amount.

Power Supply Unit A Unit that connected to a PC that provides power at the voltage required by the
other Units.

present value The current value registered in a device at any instant during its operation. Pres-
ent value is abbreviated as PV. The use of this term is generally restricted to tim-
ers and counters.

printed circuit board A board onto which electrical circuits are printed for mounting into a computer or
electrical device.

PROGRAM mode A mode of operation that allows inputting and debugging of programs to be car-
ried out, but that does not permit normal execution of the program.

131
Glossary

Programmable Controller A computerized device that can accept inputs from external devices and gener-
ate outputs to external devices according to a program held in memory. Pro-
grammable Controllers are used to automate control of external devices.
Although single-unit Programmable Controllers are available, building-block
Programmable Controllers are constructed from separate components. Such
Programmable Controllers are formed only when enough of these separate
components are assembled to form a functional assembly.

programmed alarm An alarm given as a result of execution of an instruction designed to generate the
alarm in the program, as opposed to one generated by the system.

programmed error An error arising as a result of the execution of an instruction designed to gener-
ate the error in the program, as opposed to one generated by the system.

programmed message A message generated as a result of execution of an instruction designed to gen-


erate the message in the program, as opposed to one generated by the system.

Programming Console The portable form of Programming Device for a PC.

Programming Device A Peripheral Device used to input a program into a PC or to alter or monitor a
program already held in the PC. There are dedicated programming devices,
such as Programming Consoles, and there are non-dedicated devices, such as
a host computer.

PROM Programmable read-only memory; a type of ROM into which the program or
data may be written after manufacture, by a customer, but which is fixed from
that time on.

prompt A message or symbol that appears on a display to request input from the opera-
tor.

protocol The parameters and procedures that are standardized to enable two devices to
communicate or to enable a programmer or operator to communicate with a
device.

PV See present value.

RAM Random access memory; a data storage media. RAM will not retain data when
power is disconnected.

RAS An acronym for reliability, assurance, safety.

read-only area A memory area from which the user can read status but to which data cannot be
written.

refresh The process of updating output status sent to external devices so that it agrees
with the status of output bits held in memory and of updating input bits in memory
so that they agree with the status of inputs from external devices.

relay-based control The forerunner of PCs. In relay-based control, groups of relays are intercon-
nected to form control circuits. In a PC, these are replaced by programmable cir-
cuits.

reserved bit A bit that is not available for user application.

reserved word A word in memory that is reserved for a special purpose and cannot be accessed
by the user.

reset The process of turning a bit or signal OFF or of changing the present value of a
timer or counter to its set value or to zero.

response code A code sent with the response to a data transmission that specifies how the
transmitted data was processed.

132
Glossary

response format A format specifying the data required in a response to a data transmission.

response monitoring time The time a device will wait for a response to a data transmission before assum-
ing that an error has occurred.

Restart Bit A bit used to restart part of a PC.

result word A word used to hold the results from the execution of an instruction.

retrieve The processes of copying data either from an external device or from a storage
area to an active portion of the system such as a display buffer. Also, an output
device connected to the PC is called a load.

retry The process whereby a device will re-transmit data which has resulted in an
error message from the receiving device.

return The process by which instruction execution shifts from a subroutine back to the
main program (usually the point from which the subroutine was called).

reversible counter A counter that can be both incremented and decremented depending on the
specified conditions.

reversible shift register A shift register that can shift data in either direction depending on the specified
conditions.

right-hand instruction See terminal instruction.

rightmost (bit/word) The lowest numbered bits of a group of bits, generally of an entire word, or the
lowest numbered words of a group of words. These bits/words are often called
least-significant bits/words.

rising edge The point where a signal actually changes from an OFF to an ON status.

ROM Read only memory; a type of digital storage that cannot be written to. A ROM
chip is manufactured with its program or data already stored in it and can never
be changed. However, the program or data can be read as many times as
desired.

rotate register A shift register in which the data moved out from one end is placed back into the
shift register at the other end.

RS-232C interface An industry standard for serial communications.

RUN mode The operating mode used by the PC for normal control operations.

rung See instruction line.

scan The process used to execute a ladder-diagram program. The program is


examined sequentially from start to finish and each instruction is executed in
turn based on execution conditions.

scan time See cycle time.

scheduled interrupt An interrupt that is automatically generated by the system at a specific time or
program location specified by the operator. Scheduled interrupts result in the
execution of specific subroutines that can be used for instructions that must be
executed repeatedly at a specified interval of time.

SCP See subtract count input.

seal See self-maintaining bit.

self diagnosis A process whereby the system checks its own operation and generates a warn-
ing or error if an abnormality is discovered.

133
Glossary

self-maintaining bit A bit that is programmed to maintain either an OFF or ON status until set or reset
by specified conditions.
series A wiring method in which Units are wired consecutively in a string.
servicing The process whereby the PC checks a connector or Unit to see if special proces-
sing is required.
set The process of turning a bit or signal ON.
set value The value from which a decrementing counter starts counting down or to which
an incrementing counter counts up (i.e., the maximum count), or the time from
which or for which a timer starts timing. Set value is abbreviated SV.
shift input signal An input signal whose OFF to ON transition causes data to be shifted one bit.
shift register One or more words in which data is shifted a specified number of units to the right
or left in bit, digit, or word units. In a rotate register, data shifted out one end is
shifted back into the other end. In other shift registers, new data (either specified
data, zero(s) or one(s)) is shifted into one end and the data shifted out at the
other end is lost.
signed binary A binary value that is stored in memory along with a bit that indicates whether the
value is positive or negative.
signed decimal One-word signed hexadecimal values stored in the two’s complement format
can be displayed at the Programming Console as decimal values from –32,768
to 32,767.
software error An error that originates in a software program.
software protect A means of protecting data from being changed that uses software as opposed
to a physical switch or other hardware setting.
source (word) The location from which data is taken for use in an instruction, as opposed to the
location to which the result of an instruction is to be written. The latter is called
the destination.
special instruction An instruction input with a function code that handles data processing opera-
tions within ladder diagrams, as opposed to a basic instruction, which makes up
the fundamental portion of a ladder diagram.
SR area A memory area containing flags and other bits/words with specific functions.
SSS See SYSMAC Support Software.
store The process of recording a program written into a display buffer permanently in
memory.
subroutine A group of instructions placed separate from the main program and executed
only when called from the main program or activated by an interrupt.
subroutine number A definer used to identify the subroutine that a subroutine call or interrupt acti-
vates.
subtract count input An input signal used to decrement a counter when the signal changes from OFF
to ON.
SV See set value.
switching capacity The maximum voltage/current that a relay can safely switch on and off.
synchronous execution Execution of programs and servicing operations in which program execution
and servicing are synchronized so that all servicing operations are executed
each time the programs are executed.

134
Glossary

syntax The form of a program statement (as opposed to its meaning).

syntax error An error in the way in which a program is written. Syntax errors can include
‘spelling’ mistakes (i.e., a function code that does not exist), mistakes in specify-
ing operands within acceptable parameters (e.g., specifying read-only bits as a
destination), and mistakes in actual application of instructions (e.g., a call to a
subroutine that does not exist).

SYSMAC Support Software A software package installed on a IBM PC/AT or compatible computer to func-
tion as a Programming Device.

system configuration The arrangement in which Units in a System are connected. This term refers to
the conceptual arrangement and wiring together of all the devices needed to
comprise the System.

system error An error generated by the system, as opposed to one resulting from execution of
an instruction designed to generate an error.

system error message An error message generated by the system, as opposed to one resulting from
execution of an instruction designed to generate a message.

system setup Operating environment settings for a Programming Device, e.g., the LSS or
SSS.

terminal instruction An instruction placed on the right side of a ladder diagram that uses the final
execution conditions of an instruction line.

timer A location in memory accessed through a TIM/CNT bit and used to time down
from the timer’s set value. Timers are turned ON and reset according to their
execution conditions.

TR area A data area used to store execution conditions so that they can be reloaded later
for use with other instructions.

TR bit A bit in the TR area.

trace An operation whereby the program is executed and the resulting data is stored to
enable step-by-step analysis and debugging.

trace memory A memory area used to store the results of trace operations.

transfer The process of moving data from one location to another within the PC, or
between the PC and external devices. When data is transferred, generally a
copy of the data is sent to the destination, i.e., the content of the source of the
transfer is not changed.

transmission distance The distance that a signal can be transmitted.

trigger A signal used to activate some process, e.g., the execution of a trace operation.

trigger address An address in the program that defines the beginning point for tracing. The
actual beginning point can be altered from the trigger by defining either a positive
or negative delay.

UM area The memory area used to hold the active program, i.e., the program that is being
currently executed.

Unit In OMRON PC terminology, the word Unit is capitalized to indicate any product
sold for a PC System. Most of the names of these products end with the word
Unit.

unit number A number assigned to some Units to facilitate identification when assigning
words or other operating parameters.

135
Glossary

unmasked bit A bit whose status is effective. See masked bit.

unsigned binary A binary value that is stored in memory without any indication of whether it is
positive or negative.

unsigned decimal One-word hexadecimal values can be displayed at the Programming Console
as decimal values from 0 to 65,535.

uploading The process of transferring a program or data from a lower-level or slave com-
puter to a higher-level or host computer. If a Programming Devices is involved,
the Programming Device is considered the host computer.

watchdog timer A timer within the system that ensures that the scan time stays within specified
limits. When limits are reached, either warnings are given or PC operation is
stopped depending on the particular limit that is reached.

WDT See watchdog timer.

word A unit of data storage in memory that consists of 16 bits. All data areas consists
of words. Some data areas can be accessed only by words; others, by either
words or bits.

word address The location in memory where a word of data is stored. A word address must
specify (sometimes by default) the data area and the number of the word that is
being addressed.

work area A part of memory containing work words/bits.

work bit A bit in a work word.

work word A word that can be used for data calculation or other manipulation in program-
ming, i.e., a ‘work space’ in memory. A large portion of the IR area is always
reserved for work words. Parts of other areas not required for special purposes
may also be used as work words.

write protect switch A switch used to write-protect the contents of a storage device, e.g., a floppy
disk. If the hole on the upper left of a floppy disk is open, the information on this
floppy disk cannot be altered.

write-protect A state in which the contents of a storage device can be read but cannot be
altered.

136
Index

Numbers computer
1-to-1 communications, 9
1-to-n communications, 10
1-to-1 communications, 9, 42 connecting, 42
1-to-n communications, 10, 43 conduit installation, 34
configuration, 8
Analog I/O Unit, 105
A conversion, Analog I/O Unit, 108
Counter Mode, 5
Adapters, list of communications adapters, 10
countermeasures, EMC Directives, 40
Analog I/O Unit, 103
counters
connection, 33, 105
changing SV, Programming Console, 73
standard models, 113
example of inputting, 82
analog setting function, 3, 4 CPM1 installation, 31
analog volume controls, 4 CPU Units, standard models, 113
location, 24
cycle, CPM1 operating cycle, 88
arc killer, examples, 41 cycle time
ASCII, converting displays, Programming Console, 78 displaying, Programming Console, 78
processing, 88

B D
binary data, modifying, Programming Console, 75 data, modifying, Programming Console, 72–73, 74, 75, 76
bit status, force<#106>set/reset, Programming Console, 77 data link, 11, 45

bits, searching, Programming Console, 63 decimal data with sign. See signed decimal data
decimal data without sign. See unsigned decimal data
buzzer operation, Programming Console, 61
differentiated instructions, entering, 66
dimensions, 115

C DIN Track installation, 32


displays
cabinet converting between hex and ASCII, Programming Console,
installation, precautions, 30 78
Programming Console installation, 56 cycle time, Programming Console, 78
characteristics, 17 duct installation, 34

check levels, program checks, 91


checking, program syntax, Programming Console, 68 E
circuit configuration electrical noise, preventing, 30, 34
inputs, 19
EMC Directives, countermeasures, 40
outputs, 21
ERR/ALM indicator
clearing, memory areas, Programming Console, 60 flashing, 89
communication errors, 89 lit, 89
communications, adapters, list, 10 errors
communications, 89
communications adapters, standard models, 113 error processing, 85
communications baud rate, for SSS, 48 fatal, 89
identifying, 90
components non-fatal, 89
Analog I/O Unit, 105 programming, 91
Communication Adapters, 26 Programming Console operations, 91
CPU Unit, 22 reading/clearing messages, Programming Console, 61
Expansion I/O Unit, 25 user-defined errors, 90

137
Index

Expansion I/O Unit input time constant, 4


connection, 33
inputs, wiring, 36
standard models, 113
inspections, 101
installation
F CPM1 installation, 31
site, selecting, 29
FAL numbers, 89 instructions
FAL(06), 90 inserting and deleting, Programming Console, 63
searching, Programming Console, 62
FALS numbers, 89
interlock circuit, example, 28
FALS(07), 90
interrupt inputs, 2, 5
false inputs, 38
Interrupt Mode, 5
fatal errors, troubleshooting, 95
interval timer, 3, 6
features, CPM1 features, 2
IR bit allocation, 3
filter function, 2
IR bit allocations, Analog I/O Unit, 106
flash memory, precautions, 87
flicker output, example, 83
force<#106>set/reset L
clearing, Programming Console, 77
Programming Console, 77 leakage current, 38

functions, CPM1 functions, 4 limit circuit, 28


limit switches, preventing false inputs, 38

G-H
grounding, 16, 23
M
hexadecimal data, converting displays, Programming Console, maintenance, 101
78 memory
high-speed counter, 3, 7 backup, 2, 17
protection, 17
Host Link
communications, 9 memory areas
connections, 42 clearing, Programming Console, 60
partial clear, 60
messages, reading/clearing, 61
I mode, changing the PC mode, 58
Mode Setting Switch, RS-232C Adapter, 26
I/O allocation. See IR bit allocation
modifying
I/O errors, troubleshooting, 97 binary data, Programming Console, 75
I/O line noise, preventing, 34 data, Programming Console, 72
hexadecimal/BCD data, Programming Console, 74
I/O terminals, IR bit allocation, 3 signed decimal data, Programming Console, 75
incremental mode, 7 SV, Programming Console, 73
unsigned decimal data, Programming Console, 76
indicators
flashing ERR/ALM indicator, 89 MONITOR mode
lit ERR/ALM indicator, 89 description, 58
PC status indicators, 24 example test run, 84
inductive loads, 38, 40 monitoring
3<#106>word monitor, Programming Console, 71
initialization processes, 88
binary monitor, Programming Console, 70–71
input devices, connecting, 37 differentiation monitor, Programming Console, 70
signed decimal monitor, Programming Console, 72
input filter function, 4
status, Programming Console, 68
input interrupts, 2, 5 unsigned decimal monitor, Programming Console, 72
input specifications, 19 MSG(46), 91

138
Index

N Programmable Terminal
1-to-1 communications, 9
connecting, 43
noise, preventing electrical noise, 30, 34
programming
non–fatal errors, troubleshooting, 96
checking the program, 83–84
NPN current output, connecting, 37 checks for syntax, Programming Console, 68
errors, 91
NPN open collector, connecting, 37
inserting and deleting instructions, Programming Console,
NT Link 63–65
communications, 12 preparation for, 78
connections, 46 searching, Programming Console, 62–63
setting and reading a memory address, Programming Con-
sole, 62

O Programming Console
connecting, 12, 42, 56
one-shot mode, 6 keys, 55
models, 55
operating conditions, troubleshooting, 99
operations, 59
operations, internal processing, flowchart, 88
programming example, 78
output short protection, 40
programs
output specifications, 21 checking, check levels, 91
output wiring, 39 entering and editing, Programming Console, 65

overseeing processes, 88 proximity switches, preventing false inputs, 38

P Q-R
panel, Programming Console installation, 56 quick-response inputs, 2, 6
panel installation, precautions, 30 relay outputs, connecting, 37
password, entering on Programming Console, 57 response time, for interrupt inputs, 5
PC mode, changing, 58 restrictions, SSS, 48
PC Status, indicators, 24 RS-232C Adapter
Peripheral Devices, 114 components, 26
connecting, 12, 42 specifications, 21
using, 47 RS-422 Adapter
photoelectric switches, preventing false inputs, 38 components, 26
specifications, 22
PNP current output, connecting, 38
RUN mode, description, 58
power, consumption, 16
power cables, 34
power interruptions, CPM1, 28 S
power supply
capacity, 16 scheduled interrupt mode, 6
troubleshooting, 94, 100 scheduled interrupts, 3, 6
wiring, 35
search
precautions instruction, Programming Console, 62–63
design precautions, 28 operands, Programming Console, 63
general, xi
handling, 102 self-diagnosis functions, 17, 89
SSS, 48 self<#106>holding bit, example, 81
program, programming example, 78 settings, Analog I/O Unit, I/O ranges, 106
program capacity, 17 signed decimal data
program memory, setting address and reading content, Pro- modifying, Programming Console, 75
gramming Console, 62 monitoring, 72
PROGRAM mode, description, 58 Special I/O Units, standard models, 113

139
Index

specifications Termination Resistance Switch, RS-422 Adapter, 26


Analog I/O Unit, 104
test run
changes, 14
example, 84
characteristics, 17
procedure, 86
Communications Adapters, 21
general specifications, 16 timers
input specifications, 19 changing SV, Programming Console, 73
output specifications, 21 example of inputting, 82
SSS, 48 troubleshooting, 93
offline and online operations, 54 fatal errors, 95
offline operations, 49 I/O errors, 97
online operations, 52 non–fatal errors, 96
precautions, 48 operating conditions, 99
restrictions, 48 power supply, 94, 100
System Setup, 48
status, monitoring, Programming Console, 68
SV, modifying, Programming Console, 73 U-V
syntax, checking the program, Programming Console, 68 unsigned decimal data
SYSMAC Support Software modifying, Programming Console, 76
See also SSS monitoring, 72
connecting, 12 up/down mode, 7
SYSMAC-CPT, 13 voltage, supply voltage, 16
SYSMAC<#106>CPT, 48 voltage output, connecting, 38
system
checks, 86
configuration, 8
W
System Setup, 48
weight
Analog I/O Unit, 104
T CPU Unit, 16
Expansion I/O Unit, 16
temperature wiring, 34
effect on capacitor backup, 18 Analog I/O Unit, 110
operating, storage, 16 power supply, 35

140
Revision History

A manual revision code appears as a suffix to the catalog number on the front cover of the manual.

Cat. No. W329-E1-2

Revision code

The following table outlines the changes made to the manual during each revision. Page numbers refer to the
previous version.

Revision code Date Revised content


1 March 1997 Original production
2 April 1998 Pages xiii to xvi: Changes made to precautions.
Pages 2, 3, 5, 7, 14, 15, 21, 29, 35, 37, 111, 114: Information added about
CPM1-30CDR-–V1.
Pages 2, 103: Analog I/O Unit information changed.
Page 4: Information added to Input Filter Function.
Page 7: Information added about Expansion I/O Units.
Pages 10, 31: Minor corrections.
Page 12, 112: Information added about SYSMAC-CPT Support Software.
Page 13: 1-3 Revised Specifications added.
Pages 15, 19, 98: Changes made to specifications.
Page 16: Changes made to memory backup information.
Page 17: Top note removed.
Page 22: Change made to indicator and Expansion I/O Unit Connector
information.
Page 23: Caution and note added.
Page 34: Change made to Caution. Note added.
Page 48: Information added about SYSMAC-CPT Support Software, program-
ming, and online editing.
Page 55: Information added about entering passwords.
Pages 57, 58, 63, 70, 76, 80: Screen messages corrected.
Page 77: T001 in the ladder program corrected.
Page 84: Information added about initial system checks.
Page 87: AR 1309 description corrected and AR 1314 added.
Page 93: Information added to flowchart.
Page 97: Memory error check flowchart added.
Page 111, 115: Information added about CPM1A-20EDT/20EDT1.

141

You might also like