Omron SYSMAC CPM1 Operation Manual

Omron SYSMAC CPM1 Operation Manual

Hide thumbs Also See for SYSMAC CPM1:
Table of Contents

Advertisement

Quick Links

Cat.No. W329–E1–2
SYSMAC
CPM1
Programmable Controllers
OPERATION MANUAL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CPM1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Omron SYSMAC CPM1

  • Page 1 Cat.No. W329–E1–2 SYSMAC CPM1 Programmable Controllers OPERATION MANUAL...
  • Page 3 CPM1 Programmable Controllers Operation Manual Revised April 1998...
  • Page 5 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.
  • Page 7: Table Of Contents

    TABLE OF CONTENTS PRECAUTIONS ....... . . 1 Intended Audience .
  • Page 8 TABLE OF CONTENTS Glossary ........Index .
  • Page 9 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.
  • Page 11: Precautions

    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 .
  • Page 12: Intended Audience

    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.
  • Page 13: Application Precautions

    Section Application Precautions • 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. •...
  • Page 14 Section Application Precautions • 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)
  • Page 15 Section Application Precautions 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.
  • Page 16 Section Application Precautions • 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.
  • Page 17: Introduction

    SECTION 1 Introduction This section describes the CPM1’s special features and functions and shows the possible system configurations. CPM1 Features and Functions ..........1-1-1 CPM1 Features .
  • Page 18: Cpm1 Features And Functions

    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-j PCs can handle 2 interrupt inputs; the CPM1-20CDR-j and CPM1-30CDR-j PCs can handle 4 interrupt inputs.
  • Page 19 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.
  • Page 20 Section 1-1 CPM1 Features and Functions 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).
  • Page 21 Section 1-1 CPM1 Features and Functions Input Interrupts The CPM1-10CDR-j PCs have 2 interrupt input terminals and the CPM1-20CDR-j and CPM1-30CDR-j PCs have 4 interrupt input terminals. There are two modes for input interrupts: input interrupt mode and counter mode. 1, 2, 3...
  • Page 22 Section 1-1 CPM1 Features and Functions Quick-response Inputs The CPM1-10CDR-j PCs have 2 quick-response input terminals and the CPM1-20CDR-j/30CDR-j(-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.
  • Page 23 Section 1-1 CPM1 Features and Functions 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.
  • Page 24: System Configuration

    System Configuration Section 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.
  • Page 25 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.
  • Page 26 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 (32 PCs max.) The maximum cable length of RS-422 should be 500 m.
  • Page 27 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...
  • Page 28 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. RS-232C Adapter CPM1 CPU Unit Programmable Terminal RS-232C Cable Name Usage Model Number RS-232C Adapter Converts to the Peripheral Port format.
  • Page 29 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.
  • Page 30: Revised Specifications

    Revised Specifications Section 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...
  • Page 31: Unit Specifications And Components

    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. Specifications .
  • Page 32: Specifications

    Section 2-1 Specifications Specifications 2-1-1 General Specifications Item CPM1-10CDR-j CPM1-20CDR-j CPM1-30CDR-j(-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.
  • Page 33: Characteristics

    Section 2-1 Specifications 2-1-2 Characteristics Item CPM1-10CDR-j CPM1-20CDR-j CPM1-30CDR-j(-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: Special instructions: 77 types, 134 instructions...
  • Page 34 Section 2-1 Specifications 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)
  • Page 35: I/O Specifications

    Section 2-1 Specifications 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).
  • Page 36 Section 2-1 Specifications Differential Phase Mode (2.5 KHz Max.) IN00000 (A phase), IN00001 (B phase) 400 µs min. Phase A Phase B : 90 µs min. IN00002 (Z phase) 100 µs min. Phase Z 500 µs min. When IN00003 through IN00006 are used as interrupt inputs, the delay is 0.3 ms max.
  • Page 37: Communications Adapter Specifications

    Section 2-1 Specifications 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...
  • Page 38: Unit Components

    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.
  • Page 39 Unit Components Section 2-2 CPM1-20CDR-j CPM1-30CDR-j(-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.
  • Page 40 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) Power is being supplied to the PC. Power isn’t being supplied to the PC. RUN (green) The PC is operating in RUN or MONITOR mode.
  • Page 41: Expansion I/O Unit Components

    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.
  • Page 42: Communications Adapter Components

    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 2. Connector 1, 2, 3... 1. Mode Setting Switch Set this switch to “HOST” when using a Host Link system to connect to a personal computer.
  • Page 43: Installation And Wiring

    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. Design Precautions .
  • Page 44: Design Precautions

    Section 3-1 Design Precautions 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.
  • Page 45: Selecting An Installation Site

    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 Over 10 ms (2 ms) Duration of power interrupt (Below 85% of rated voltage) Normal operation Operation may stop.
  • Page 46: Installing The Cpm1

    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 0_C to 55_C. Be sure that there is adequate ventilation for cooling.
  • Page 47: Cpm1 Installation

    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 8 mm...
  • Page 48 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.
  • Page 49: Connecting An Expansion I/O Unit Or Analog I/O Unit

    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.
  • Page 50: Wiring And Connections

    Wiring and Connections Section 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.
  • Page 51: Power Supply Wiring

    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 mm for grounding.
  • Page 52: Input Wiring

    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).
  • Page 53 Wiring and Connections Section 3-4 CPM1-20CDR-j CPU Units This diagram shows the input configuration for CPM1-20CDR-j CPU Units and and CPM1-20EDR CPM1-20EDR Expansion I/O Unit. Expansion I/O Unit 24 VDC Input devices Note For details regarding CPM1A-20EDT/EDT1 Expansion I/O Unit connections, refer to the CPM1A Programmable Controllers Operation Manual (W317).
  • Page 54 Wiring and Connections Section 3-4 Device Circuit Diagram PNP current output Sensor power CPM1 supply 5 mA/12 mA Output COM (–) Voltage output COM (+) CPM1 Output 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.
  • Page 55: Output Wiring

    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.
  • Page 56: Conformance To Emc Directives

    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.
  • Page 57 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 CR method If the load is a relay or solenoid, there The capacitance of the capacitor must be 1 to 0.5 µF per contact current of 1 is a time lag between the moment the...
  • Page 58: Peripheral Device Connection

    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.
  • Page 59 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.
  • Page 60 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.
  • Page 61: One-To-One Pc Connections

    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).
  • Page 62: Nt Link Connections

    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.
  • Page 63: Using Peripheral Devices

    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. Support Software Capabilities .
  • Page 64: Support Software Capabilities

    Section 4-1 Support Software Capabilities 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.
  • Page 65: Offline Operations

    Section 4-1 Support Software Capabilities The default settings for the CQM1 are as shown in the following table. Function code Mnemonic Function code Mnemonic ASFT SPED PULS MCMP BCNT BCMP CMPL STIM 7SEG CTBL 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.
  • Page 66 Section 4-1 Support Software Capabilities Group Name Description 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...
  • Page 67 Section 4-1 Support Software Capabilities 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.
  • Page 68: Online Operations

    Section 4-1 Support Software Capabilities 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.
  • Page 69 Section 4-1 Support Software Capabilities 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.
  • Page 70: Offline And Online Operations

    Section 4-1 Support Software Capabilities 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.
  • Page 71: Using A Programming Console

    Using a Programming Console Section 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.
  • Page 72: Connecting The Programming Console

    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 (DIN43700 standards)
  • Page 73: Entering The Password

    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.
  • Page 74: Changing The Cpm1'S Mode

    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. •...
  • Page 75: Programming Console Operations

    Programming Console Operations Section 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...
  • Page 76: Clearing Memory

    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. MONITOR PROGRAM Before beginning to program for the first time or when installing a new program,...
  • Page 77: Reading/Clearing Error Messages

    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. MONITOR PROGRAM Before inputting a new program, any error messages recorded in memory...
  • Page 78: Setting And Reading A Program Memory Address

    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>...
  • Page 79: Bit Operand Search

    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. 00100 ↓ 3. Input the instruction to be found and press the SRCH Key. In this case, the search is for LD instructions.
  • Page 80 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 00104 00100...
  • Page 81: Entering Or Editing Programs

    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 00104...
  • Page 82 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.
  • Page 83 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. 00203 ADB(050) Press the WRITE Key to write the instruction to Program Memory. 00203 ADB DATA A WRITE #0000 •...
  • Page 84: Checking The Program

    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. MONITOR PROGRAM 1, 2, 3... 1. Press the CLR Key to bring up the initial display. 2.
  • Page 85 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 Bit Monitor Follow the procedure below to monitor the status of a particular bit.
  • Page 86: Differentiation Monitor

    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.
  • Page 87: 3-Word Monitor

    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 0000 (Word monitor)
  • Page 88: Signed Decimal Monitor

    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.
  • Page 89: Changing Timer, Counter Sv

    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. MONITOR PROGRAM 1, 2, 3...
  • Page 90: Hexadecimal, Bcd Data Modification

    Programming Console Operations Section 4-3 3. Press the Down Arrow Key and then the CHG Key. 00201DATA? ↓ 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.
  • Page 91: Binary Data Modification

    Programming Console Operations Section 4-3 2. Press the CHG Key to begin hexadecimal, BCD data modification. PRES VAL? 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.
  • Page 92: Unsigned Decimal Data Modification

    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. MONITOR PROGRAM Caution Check that there is no effect on equipment before changing the current values. 1, 2, 3...
  • Page 93: Force Set, Reset

    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.
  • Page 94: Programming Example

    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 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.
  • Page 95 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 PROGRAM <PROGRAM> PASSWORD! 2. Enter the password by pressing the CLR and then the MONTR Key. <PROGRAM>...
  • Page 96: Example Program

    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.
  • Page 97: Programming Procedures

    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...
  • Page 98 Programming Example Section 4-4 4. Input the SV for T001 (#0010 = 1.0 s). 00006 TIM DATA #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.
  • Page 99: Checking The Program

    Programming Example Section 4-4 4. Input the counter 000. 00013 00013 CNT DATA WRITE #0000 5. Input the SV for 000 (#0010 = 10 counts). 00013 CNT DATA #0010 00014READ WRITE NOP(000) (5) Inputting the Flicker Output 1, 2, 3... 1.
  • Page 100: Test Run In Monitor Mode

    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. 00178CIRCUIT ERR 00200 Note Refer to 5-5 Programming Errors for details on check levels. 4.
  • Page 101: Test Runs And Error Processing

    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. Initial System Checks and Test Run Procedure .
  • Page 102: Initial System Checks And Test Run Procedure

    Section 5-1 Initial System Checks and Test Run Procedure 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...
  • Page 103: Flash Memory Precautions

    Section 5-1 Initial System Checks and Test Run Procedure 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.
  • Page 104: The Cpm1 Cycle

    The CPM1 Cycle Section 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).
  • Page 105: Self-Diagnosis Functions

    Self-diagnosis Functions Section 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.
  • Page 106: Identifying Errors

    Self-diagnosis Functions Section 5-3 Message FALS Meaning and appropriate response MEMORY ERR 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 END(01) is not written in the program.
  • Page 107: Programming Console Operation Errors

    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.
  • Page 108 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;...
  • Page 109: Troubleshooting Flowcharts

    Troubleshooting Flowcharts Section 5-6 Troubleshooting Flowcharts Use the following flowcharts to troubleshoot errors that occur during operation. Main Check Error Power indicator lit? Check power supply. (See page 94.) Operation stopped. Check for fatal errors. RUN indicator lit? (See page 95.) ERR/ALM indicator Check for non-fatal errors.
  • Page 110 Troubleshooting Flowcharts Section 5-6 Power Supply Check Power indicator not lit. Connect power Is power being supply. supplied? Is Power indicator lit? Set supply voltage Is voltage adequate? within acceptable limits. Is Power indicator lit? Tighten screws or Are there any loose terminal screws or bro- replace wires.
  • Page 111 Troubleshooting Flowcharts Section 5-6 Fatal Error Check RUN indicator not lit. Is the ERR/ALM indicator lit? Determine the cause Is PC mode displayed of the error with a on Peripheral Device? Peripheral Device. Is PC mode displayed Turn the power on Peripheral Device? supply OFF, and then ON again.
  • Page 112 Troubleshooting Flowcharts Section 5-6 Non-fatal Error Check ERR/ALM indicator flashing. Determine the cause of the error with a Peripheral Device. Identify the error, eliminate its Is a non-fatal error indicated? cause, and clear the error. Flashing Is the ERR/ALM indi- cator flashing? Not lit Replace the CPU...
  • Page 113 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- put indicator operat- ing normally? Check the voltage at the Wire correctly.
  • Page 114 Troubleshooting Flowcharts Section 5-6 Are the IR 00002 and IR 00003 input indi- cators operating normally? From previous page Check the voltage at Check the voltage at the IR 00002 and IR the IR 00002 and IR Are the terminal 00003 terminals.
  • Page 115 Troubleshooting Flowcharts Section 5-6 Environmental Conditions Check Environmental conditions check Is the ambient Consider using a temperature fan or cooler. below 55°C? Is the ambient Consider using a temperature above heater. 0°C? Is the ambient humidity Consider using an between 10% and air conditioner.
  • Page 116 Troubleshooting Flowcharts Section 5-6 Memory Error Check Memory error occurred. Replace the CPU AR 1309 ON? Unit. Check/correct data backed up by AR 1314 ON? capacitor and clear error. Check the program, correct any AR 1308 ON? errors, and clear the error. Check the error indicated by AR 1310 to Turned ON during...
  • Page 117: Maintenance Inspections

    Maintenance Inspections Section 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.
  • Page 118: Handling Precautions

    • 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.
  • Page 119: Analog I/O Unit

    SECTION 6 Analog I/O Unit This section describes the hardware and software operation of the CPM1A-MAD01 Analog I/O Unit. Specifications ............Nomenclature .
  • Page 120: Specifications

    Section I/O Wiring Specifications Item Specifications Number of analog 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...
  • Page 121: Nomenclature

    Section I/O Wiring Nomenclature The components of the Analog I/O Unit are shown in the following illustration. Connecting Cable I/O terminals 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-j/20CDR-j/30CDR-j CPU Unit.
  • Page 122: I/O Settings

    Section I/O Wiring 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.
  • Page 123: Setting Example

    Section I/O Wiring 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.
  • Page 124: Analog Inputs And Conversion Results

    Section I/O Wiring 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.
  • Page 125: Analog Output Data And Output Value

    Section I/O Wiring 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.
  • Page 126: I/O Wiring

    Section I/O Wiring I/O Wiring The I/O terminals are allocated as shown in the following illustration. I/O terminals I OUT Current output Voltage output V OUT Output common V IN1 Voltage input 1 I IN1 Current input 1 COM1 Common for input 1 I OUT V IN1 COM1...
  • Page 127: Output Wiring

    Section I/O Wiring 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.
  • Page 129: A Standard Models

    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...
  • Page 130 Appendix A Standard Models 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”...
  • Page 131: B Dimensions

    Appendix B Dimensions All dimensions are in millimeters. CPM1-10CDR-j CPU Units 81 90...
  • Page 132 Appendix B Dimensions CPM1-20CDR-j CPU Units 81 90 CPM1-30CDR-j(-V1) CPU Units...
  • Page 133 Appendix B Dimensions CPM1-20EDR Expansion I/O Unit 81 90 CPM1A-20EDT/20EDT1 Expansion I/O Unit...
  • Page 134 Appendix B Dimensions CPM1A-MAD01 Analog I/O Unit CPM1-CIF01 RS-232C Communications Adapter 90 81...
  • Page 135 Appendix B Dimensions CPM1-CIF11 RS-422 Communications Adapter 90 81...
  • Page 136 Appendix B Dimensions Dimensions with Peripheral Devices CPM1-jjCDR-j CPU Unit with Communications Adapter or Programming Console Attached Approx. 125 CPM1-CIF01 RS-232C Adapter with Connector Attached Approx. 120...
  • Page 137 Glossary 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. See add count input. add count input An input signal used to increment a counter when the signal changes from OFF to ON.
  • Page 138 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;...
  • Page 139 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.
  • Page 140 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.
  • Page 141 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.
  • Page 142 Glossary 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.
  • Page 143 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.
  • Page 144 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.
  • Page 145 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.
  • Page 146 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.
  • Page 147 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.
  • Page 148 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.
  • Page 149 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.
  • Page 150 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.
  • Page 151 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.
  • Page 152 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.
  • Page 153 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 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...
  • Page 154 Index Expansion I/O Unit input time constant, 4 connection, 33 inputs, wiring, 36 standard models, 113 inspections, 101 installation CPM1 installation, 31 site, selecting, 29 FAL numbers, 89 instructions inserting and deleting, Programming Console, 63 FAL(06), 90 searching, Programming Console, 62 FALS numbers, 89 interlock circuit, example, 28 FALS(07), 90...
  • Page 155 Index 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...
  • Page 156 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 timers general specifications, 16 changing SV, Programming Console, 73 input specifications, 19 example of inputting, 82 output specifications, 21 SSS, 48 troubleshooting, 93...
  • Page 157 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.

Table of Contents