Omron SYSMAC CPM2B Operation Manual
Omron SYSMAC CPM2B Operation Manual

Omron SYSMAC CPM2B Operation Manual

Hide thumbs Also See for SYSMAC CPM2B:
Table of Contents

Advertisement

Quick Links

sales@artisantg.com
artisantg.com
(217) 352-9330 |
|
Click HERE
Find the OMRON CPM2B-32EDR at our website:

Advertisement

Table of Contents
loading

Summary of Contents for Omron SYSMAC CPM2B

  • Page 1 (217) 352-9330 | Click HERE Find the OMRON CPM2B-32EDR at our website:...
  • Page 2 Cat. No. W371-E1-03 SYSMAC CPM2B Programmable Controller OPERATION MANUAL Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 3 SYSMAC CPM2B Programmable Controller Operation Manual Revised July 2003 Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 4 Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 5 OMRON. No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is con- stantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice.
  • Page 6 Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 7: Table Of Contents

    TABLE OF CONTENTS PRECAUTIONS ........Intended Audience ............General Precautions .
  • Page 8 TABLE OF CONTENTS SECTION 6 Using Analog I/O Boards ......Overview of Analog I/O Boards ..........Specifications and Part Names .
  • Page 9 About this Manual: This manual describes the installation and operation of the CPM2B and includes the sections described below. The CPM2B is a compact, high-speed board Programmable Controller (PLC) designed for control operations. There are two manuals describing the setup and operation of the CPM2B: The CPM2B Operation Manual (this manual) and the CPM1/CPM1A/CPM2A/CPM2C/SRM1(-V2) Programming Manual (W353).
  • Page 10 Terms. Please EXPRESS OR IMPLIED, ABOUT NON-INFRINGEMENT, MERCHANTABIL- contact your Omron representative to confirm any additional terms for sales ITY OR FITNESS FOR A PARTICULAR PURPOSE OF THE GOODS. from your Omron company.
  • Page 11: Precautions

    PRECAUTIONS This section provides general precautions for using the Programmable Controller (PLC) and related devices. The information contained in this section is important for the safe and reliable application of the Programmable Controller. You must read this section and understand the information contained before attempting to set up or operate a PLC system.
  • Page 12: Intended Audience

    Intended Audience Intended Audience This manual is intended for the following personnel, who must also have knowledge of electrical systems (an electrical engineer or the equivalent). • Personnel in charge of installing FA systems. • Personnel in charge of designing FA systems. •...
  • Page 13: Operating Environment Precautions

    Operating Environment Precautions • Emergency stop circuits, interlock circuits, limit circuits, and similar safety measures must be provided in external control circuits. • The PLC will turn OFF all outputs when its self-diagnosis function detects any error or when a severe failure alarm (FALS) instruction is executed. As a countermeasure for such errors, external safety measures must be provided to ensure safety in the system.
  • Page 14: Application Precautions

    Application Precautions • Locations subject to exposure to water, oil, or chemicals. • Locations subject to shock or vibration. !Caution Take appropriate and sufficient countermeasures when installing systems in the following locations: • Locations subject to static electricity or other forms of noise. •...
  • Page 15 Application Precautions • Always use the power supply voltage specified in the operation manuals. An incorrect voltage may result in malfunction or burning. • Take appropriate measures to ensure that the specified power with the rated voltage is supplied. Be particularly careful in places where the power supply is unstable.
  • Page 16: Ec Directives

    Concepts EMC Directives OMRON devices that comply with EC Directives also conform to the related EMC standards so that they can be more easily built into other devices or the overall machine. The actual products have been checked for conformity to EMC standards (see the following note).
  • Page 17 EC Directives regulations) may vary depending on the configuration of the control panel used, other devices connected to the control panel, wiring, and other con- ditions. You must therefore confirm that the overall machine or equipment complies with EC Directives. Relay Output Noise Reduction Methods The CPM2B PLCs conform to the Common Emission Standards (EN50081-2) of the EMC Directives.
  • Page 18 EC Directives Circuit Current Characteristic Required element The diode connected in parallel with The reversed dielectric strength value Diode method 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.
  • Page 19: Introduction

    One-to-N Computer Connections ......1-2-8 OMRON PT Connections ....... . . 1-2-9 One-to-one PLC Link Connections.
  • Page 20: Cpm2B Features And Functions

    • The CPM2B is equipped with a full complement of communications func- tions to provide communications with personal computers, other OMRON PLCs, and OMRON Programmable Terminals. These communications capabilities allow the user to design a low-cost distributed production sys- tem.
  • Page 21 Section 1-1 CPM2B Features and Functions Built-in Motor Control Capability Synchronized Pulse Synchronized pulse control provides an easy way to synchronize the opera- Control tion of a peripheral piece of equipment with the main equipment. The output (Transistor Outputs Only) pulse frequency can be controlled as some multiple of the input pulse fre- quency, allowing the speed of a peripheral piece of equipment (such as a sup- ply conveyor) to be synchronized with the speed of the main piece of...
  • Page 22 Section 1-1 CPM2B Features and Functions Calendar/Clock The built-in clock (accuracy within 1 minute/month) can be read from the pro- gram to show the current year, month, day, day of the week, and time. The clock can be set from a Programming Device (such as a Programming Con- sole) or the time can be adjusted by rounding up or down to the nearest minute.
  • Page 23 Section 1-1 CPM2B Features and Functions • Select the Analog I/O Boards that are appropriate for the system being used from the following three models. Model Number of Number of Maximum No. of inputs outputs connectable Units CPM2B-MAD63 6 points 3 points CPM2B-MAD42 4 points...
  • Page 24 CPM2B printer High-speed 1:1 NT Link In a 1:1 NT Link, an OMRON Programmable Terminal (PT) can be connected Communications directly to the CPM2B. The PT must be connected to the RS-232C port; it cannot be connected to the Peripheral port.
  • Page 25: Overview Of Cpm2B Functions

    Section 1-1 CPM2B Features and Functions 1-1-2 Overview of CPM2B Functions Main function Variations/Details Interrupts Interrupt inputs 4 inputs, see note 1. Response time: 50 µs Interval timer interrupts Scheduled interrupts 1 input One-shot interrupt Set value: 0.5 to 319,968 ms Precision: 0.1 ms High-speed counters High-speed counter...
  • Page 26: System Configurations

    Section 1-2 System Configurations System Configurations 1-2-1 CPU Boards CPU Board with 32 I/O points CPU Board with 32 I/O points CPU Board with 40 I/O points (Relay outputs) (Transistor outputs) (Relay outputs) Power CPU Board Inputs Outputs Built-in Model supply functions voltage...
  • Page 27: Expansion I/O Boards

    Section 1-2 System Configurations 1-2-2 Expansion I/O Boards The CPU Board can be connected with up to three Expansion I/O Boards, which are available in five models, including 32, 40, or 64 I/O points, and with either relay or sinking transistor outputs. For details on the number of Expan- sion I/O Boards that can be connected, refer to 3-1-4 Number of Expansion Boards.
  • Page 28: Analog I/O Boards

    Section 1-2 System Configurations 1-2-3 Analog I/O Boards Analog I/O Boards are Expansion Boards that have built-in analog input and output functions. Up to three Analog I/O Boards with a maximum of eight ana- log inputs and four analog outputs can be connected to a single CPU Board. For further details on the number of Analog I/O Boards that can be connected, refer to 3-1-4 Number of Expansion Boards.
  • Page 29: Connecting A Programming Console

    Section 1-2 System Configurations 1-2-4 Connecting a Programming Console A Programming Console can be connected to the CPM2B CPU Board’s peripheral port, as shown below. CQM1H-PRO01-E Cable (2 m) CS1W-CN114 Connecting Cable SW201 (0.05 m) (See note 1.) Peripheral port Attached Peripheral port cable (2 m)
  • Page 30: One-To-One Computer Connections

    Section 1-2 System Configurations SW202 Communications settings setting Peripheral port RS-232C port Standard settings (The standard settings and PLC Setup default settings are Host Link communications at 9,600 bps with 1 start bit, 7-bit data, 2 stop bits, and even parity.) PLC Setup settings in DM 6650 and PLC Setup settings in DM 6645 and DM 6651...
  • Page 31: One-To-N Computer Connections

    Switch SW201 is ON and DM 6600 of the PLC Setup is set to its default setting so that the Programming Console’s mode switch controls the startup mode.) 1-2-7 One-to-N Computer Connections Up to 32 OMRON PLCs, including CPM2B PLCs, can be connected to a host computer. Using the RS-232C Port Connecting Cable XW2Z-@00S-V 3G2A9-AL004-E or NT-AL001-E (requires +5 V) (See notes 1 and 2.)
  • Page 32: Omron Pt Connections

    RS-232C port. (The Programmable Terminal cannot be connected directly to the peripheral port.) An OMRON PT can also be connected to the CPM2B with a host link connec- tion. Either the RS-232C port or peripheral port can be used for a host link connection.
  • Page 33: Structure And Operation

    (D-sub 9-pin) Connecting Cable XW2Z-200T (2 m) XW2Z-500T (5 m) CPM2B CPU Board CPM2B CPU Board OMRON PLC (CQM1, CPM1, CPM1A, OMRON PLC (CQM1, CPM1, CPM1A, CPM2A, CPM2B, CPM2C, SRM1(-V2), CPM2A, CPM2B, CPM2C, SRM1(-V2), C200HS, or C200HX/HG/HE) C200HS, or C200HX/HG/HE)
  • Page 34: Operating Modes

    Section 1-3 Structure and Operation I/O Memory The program reads and writes data in this memory area during execution. Part of the I/O memory contains the bits that reflect the status of the PLC’s inputs and outputs. Parts of the I/O memory are cleared when the power is turned ON and other parts are retained.
  • Page 35: Operating Mode At Startup

    Section 1-3 Structure and Operation 1-3-3 Operating Mode at Startup The operating mode of the CPM2B when the power is turned ON depends upon the PLC Setup settings and the Programming Console’s mode switch setting if a Programming Console is connected. PLC Setup setting Operating mode Word...
  • Page 36 Section 1-3 Structure and Operation 1,2,3... 1. Minimum power interruption detection time Power interruptions that are shorter than 2 ms will not be detected. 2. Undetermined additional time Power interruptions only slightly longer than the minimum power interrup- tion time may not be detected. 85% of rated voltage Detection of power interruption...
  • Page 37: Cyclic Operation And Interrupts

    Section 1-3 Structure and Operation 1-3-5 Cyclic Operation and Interrupts Basic CPU Operation Initialization processing is performed when the power is turned on. If there are no initialization errors, the overseeing processes, program execution, I/O refreshing, and communications port servicing are performed repeatedly (cyclically).
  • Page 38 Section 1-3 Structure and Operation The cycle time will vary slightly depending on the processing being performed in each cycle, so the calculated cycle time will not always match the actual cycle time. Program Execution in The following diagram shows the cyclic operation of the CPM2B when the pro- Cyclic Operation gram is being executed normally.
  • Page 39 Section 1-3 Structure and Operation Interrupt Program When an interrupt is generated during execution of the main program, main Execution program execution is interrupted immediately and the interrupt program is executed. The following diagram shows the cyclic operation of the CPM2B when an interrupt program is executed.
  • Page 40 Section 1-3 Structure and Operation Immediate Refreshing IORF(97) can be executed in the program to refresh a specified range of I/O words. The specified I/O words will be refreshed when IORF(97) is executed. IORF(97) can be used to refresh I/O from the main program or the interrupt program.
  • Page 41: Board Specifications And Components

    SECTION 2 Board Specifications and Components This section provides the technical specifications of the CPM2B Boards and describes the main components of the Boards. Specifications..........2-1-1 General Specifications.
  • Page 42: Specifications

    Section 2-1 Specifications Specifications 2-1-1 General Specifications Item CPU Boards Expansion I/O Boards With relay With transistor outputs With relay With transistor outputs outputs outputs Model CPM2B- CPM2B-32C@DT- CPM2B- CPM2B-32EDR CPM2B-32EDT 32C@DR-D 32C@DT1-D12 CPM2B-40EDR CPM2B-32ED1T CPM2B-40C2DR- CPM2B-64EDT Supply voltage 24 V DC 12 V DC Supplied from CPU Board.
  • Page 43: Characteristics

    Section 2-1 Specifications 2-1-2 Characteristics Item CPU Boards With relay outputs With transistor outputs Control method Stored program method I/O control method Cyclic scan with direct output (Immediate refreshing can be performed with IORF(97).) Programming language Ladder diagram Instruction length 1 step per instruction, 1 to 5 words per instruction Instructions Basic instructions...
  • Page 44 Section 2-1 Specifications Item CPU Boards With relay outputs With transistor outputs Synchronized pulse control 1 point: A pulse output can be created by combining the high-speed counter with pulse out- puts and multiplying the frequency of the input pulses from the high-speed counter by a fixed factor.
  • Page 45: I/O Specifications

    Section 2-1 Specifications 2-1-3 I/O Specifications CPU Board Input Specifications Item Inputs Specification Input voltage +10% +10% 24 V DC 12 V DC –15% –15% Input impedance IN00000 to IN00001 2.7 kΩ 1.5 kΩ IN00002 to IN00006 3.9 kΩ 2.0 kΩ IN00007 and up 4.7 kΩ...
  • Page 46 Section 2-1 Specifications Max. Number of Inputs The maximum number of inputs that can be ON simultaneously depends Simultaneously ON upon the ambient operating temperature and the installation orientation, as shown in the following diagrams. 1,2,3... 1. Installation orientation: Vertical with edge down With 32 and 40-point CPU Boards and Expansion I/O Boards, all inputs can be ON simultaneously with this orientation.
  • Page 47 Section 2-1 Specifications High-speed Counter Inputs IN00000 through IN00002 can be used as high-speed counter inputs, Inputs as shown in the following table. The maximum count frequency is 5 kHz in dif- ferential phase mode and 20 kHz in the other modes. Input Function Differential phase mode...
  • Page 48 Section 2-1 Specifications Expansion I/O Board Input Specifications Item Specification CPM2B-32EDT/32EDR/40EDR/64EDT CPM2B-32ED1T Input voltage +10% +10% 24 V DC 12 V DC –15% –15% Input imped- 4.7 kΩ 2.4 kΩ ance Input current 5 mA typical 5 mA typical ON voltage 14.4 V DC min.
  • Page 49 Note The service life of the CPM2B’s relay output contacts shown in the table assumes the worst conditions. The following graph shows the results of OMRON’s service life tests at a switching rate of 1,800 times/hour. 120 V AC, resistive load 24 V DC, τ...
  • Page 50 Section 2-1 Specifications Transistor Outputs (Sinking or Sourcing) Item Specification Max. switching OUT01000 and OUT01001:4.5 to 30 V DC, 0.2 A/output (See note 1.) capacity OUT01002 and up:4.5 to 30 V DC, 0.3 A/output (See note 1.) Leakage current 0.1 mA max. Residual voltage 1.5 V max.
  • Page 51 Section 2-1 Specifications 2. Vertical Standing Upright 9.6 A at 40°C 8.4 A at 49°C Max. switching capacity (A) 7.2 A at 52°C 6.0 A at 54°C 5.4 A at 55°C Ambient temperature (°C) 3. Horizontal 9.6 A at 36°C Max.
  • Page 52: Board Components And Their Functions

    Section 2-2 Board Components and their Functions Board Components and their Functions 2-2-1 CPU Board Components CPM2B-32C@DR-D 32-point CPU Boards with Relay Outputs 9. Communications Switch SW202 10. Analog settings 8. RS-232C port 11. DIP Switch inputs 2. Input connector 4.
  • Page 53 Section 2-2 Board Components and their Functions CPM2B-32C@DT-D, CPM2B-32C@DT1-D12 32-point CPU Boards with Transistor Outputs 8. RS-232C port 10. Analog settings 7. Peripheral port 11. DIP Switch inputs 2. Input connector 9. Communications Switch SW201 9. Communications Switch SW202 4. PLC status indicators 5.
  • Page 54 Section 2-2 Board Components and their Functions Note a) When interrupt inputs are used in interrupt input mode, the indica- tor may not light even when the interrupt condition is met if the in- put is not ON long enough. When a high-speed counter is being used, the indicator may not light depending on the speed of the pulses.
  • Page 55: Expansion I/O Boards

    Section 2-2 Board Components and their Functions 11. DIP Switch Inputs The ON/OFF status of IR 00108 through IR 00111 reflects the ON/OFF status of these DIP switch pins. Corresponding input bit 32-point CPU Board IR 00108 IR 00109 IR 00110 IR 00111 12.
  • Page 56 Section 2-2 Board Components and their Functions CPM2B-40EDR 40-point Expansion I/O Boards with Relay Outputs 1. Input connector 3. Input indicators 2. Output terminals 5. Expansion I/O connector 4. Output indicators CPM2B-32EDT, CPM2B-32ED1T 32-point Expansion I/O Boards with Transistor Outputs 1.
  • Page 57 Section 2-2 Board Components and their Functions CPM2B-64EDT 64-point Expansion I/O Boards with Transistor Outputs 1. Input connector 3. Input indicators 2. Output terminals 5. Expansion I/O connector 4. Output indicators 1,2,3... 1. Input Connector Connects the Expansion I/O Board to external input devices. 2.
  • Page 58: I/O Connector And Terminal Pin Allocation

    Section 2-3 I/O Connector and Terminal Pin Allocation I/O Connector and Terminal Pin Allocation 32-point CPU Boards IR 001 IR 000 Inputs (24 V DC) (See note.) CPM2B-32C@DR-D (24 V DC) CPM2B-32C@DT-D (24 V DC) CPU Board with relay outputs CPM2B-32C@DT1-D12 (12 V DC) CPU Board with transistor outputs Relay outputs...
  • Page 59 Section 2-3 I/O Connector and Terminal Pin Allocation 40-point CPU Boards IR 001 IR 000 CPM2B-40C2DR-D (24 V DC) CPU Board with relay outputs Relay outputs IR 010 IR 011 Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 60 Section 2-3 I/O Connector and Terminal Pin Allocation 32-point Expansion I/O Boards Expansion I/O Board #1: IR 002 Expansion I/O Board #2: IR 003 Expansion I/O Board #3: IR 004 Inputs (24 V DC) (See note.) CPM2B-32EDR CPM2B-32EDT Expansion I/O Board CPM2B-32ED1T with relay outputs Expansion I/O Board with transistor...
  • Page 61 Section 2-3 I/O Connector and Terminal Pin Allocation CPM2B-40EDR 40-point Expansion I/O Boards Expansion I/O Board with relay outputs Inputs (24 V DC) IR m+2 IR m+1 ("m" is the last input word allocated to the CPU Board or Expansion I/O Board already connected.) Relay outputs IR n+2 IR n+1...
  • Page 62 Section 2-3 I/O Connector and Terminal Pin Allocation CPM2B-64EDT 64-point Expansion I/O Boards Transistor outputs Inputs (24 V DC) IR m+1 IR m+2 ("m" is the last input word allocated to the CPU Board or Expansion I/O Board already connected.) Transistor outputs (sinking) IR n+1 IR n+2...
  • Page 63: Installation And Wiring

    SECTION 3 Installation and Wiring This section provides information on installing and wiring a CPM2B PLC. Be sure to follow the directions and precautions in this section when installing the CPM2B in a panel or cabinet, wiring the power supply, or wiring I/O. Design Precautions .
  • Page 64: Design Precautions

    Section 3-1 Design Precautions Design Precautions Observe the following precautions when designing a system incorporating a CPM2B PLC. 3-1-1 Power Supply Wiring Separate the power supply wiring from the power system, control system, CPM2B system, and DC I/O system wiring. Separate the control circuits that supply power to the main Unit from the main circuits using dedicated circuit protectors and fuses.
  • Page 65: Selecting An Installation Site

    Section 3-2 Selecting an Installation Site 3-1-4 Number of Expansion Boards CPU Boards can be combined with Expansion I/O Boards or Analog I/O Boards, but are subject to the following restrictions. 1,2,3... 1. Number of Boards: Up to a total of three Boards can be connected, including Expansion Boards and Analog I/O Boards.
  • Page 66: Assembling The Cpm2B Boards

    Section 3-3 Assembling the CPM2B Boards • Locations near to power supply lines. 3-2-2 Panel/Cabinet Installation Consider PLC operation, maintenance, and surrounding conditions when installing the CPM2B in a panel or cabinet. The ambient operating temperature range for the CPM2B is 0 ° C to 55 ° C. Be Overheating sure that there is adequate ventilation for cooling.
  • Page 67 Section 3-3 Assembling the CPM2B Boards CPM2B-ATT01 Mounting Bracket (See note.) Note The CPM2B-ATT01 Mounting Bracket is required when the system must meet UL/CSA standards. Board or Hardware and cables included Bracket CPU Board Four M3 standoffs (short) 10 mm Four M3 screws Expansion Four M3 standoffs (long)
  • Page 68 Section 3-3 Assembling the CPM2B Boards Installing the Expansion I/O Connecting Cables 1,2,3... 1. Insert the Expansion I/O Cable into the connectors on the CPU Board and Expansion I/O Board. CPU Board Expansion Expansion I/O Cable I/O Board (included with the Expansion I/O Board) Install the shorter connector of The cable from the CPU Board...
  • Page 69: Installing The Cpm2B

    Section 3-4 Installing the CPM2B Installing the CPM2B Install the CPM2B as shown in the following diagram. The CPM2B cannot be installed on DIN Track. Four M4 screws Example Installations Mounting Bracket Screw and nut Screw and tapped installation panel installation Note 1.
  • Page 70: Power Supply Wiring

    24 V DC or 12 V DC. 24 V DC (Not connected) (12 VDC) Terminal Specifications Item Specifications Screw size Recommended torque 0.5 to 0.6 N•m Recommended screwdriver: OMRON XW4E-00C Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 71: I/O Wiring Procedures

    Section 3-5 Wiring and Connections Compatible Wires and Terminals Wire/terminal Specification Solid wire 0.2 to 2.5 mm (AWG 24 to AWG 12) Strip 7 mm (1/4 inch) of insulation. Stranded wire 0.2 to 2.5 mm (AWG 24 to AWG 12) Strip 7 mm (1/4 inch) of insulation.
  • Page 72 Terminal Block Specifications Item Specification Screw size Recommended tightening 0.5 to 0.6 N•m torque Recommended screwdriver: OMRON XW4E-00C Recommended Wire and Terminals Item Specification Solid wire 0.2 to 2.5 mm (AWG 24 to AWG12) (Strip 7 mm.) Stranded wire (See notes.) 0.2 to 2.5 mm...
  • Page 73 4. After wiring the terminal block, insert the block into the Unit and tighten the screws at the left and right sides of the terminal block. Removing and Wiring I/O Connectors The following tables provide specifications of compatible OMRON I/O connec- tors. MIL Flat Cable Connector...
  • Page 74 XG4T-2030-T XG4M-3430-T XG4M-4030T Relief) Recommended Flat XY3A-200@ Not available Not available Cable OMRON Crimping Tools Crimping Tool XY2B-0002 Attachment XY2B-1007 MIL Loose-wire Pressure Connector Full Cover* Partial Cover* Sockets Note Two Full Covers or Partial Covers are required for each socket.
  • Page 75: Connecting Input Devices

    Section 3-5 Wiring and Connections Inserting and Removing I/ When inserting a cable, first open the lock levers on each side of the connec- O Connectors tor and then insert the cable’s connector. Press the cable’s connector firmly until both lock levers lock onto the connector. To remove the cable, open the lock levers to the left and right before removing the cable’s connector.
  • Page 76 Section 3-5 Wiring and Connections CPU Boards Input Connector CPM2B-32C@DR-D CPM2B-32C@DT-D CPM2B-32C@DT1-D12 19 17 15 13 11 9 20 18 16 14 12 10 8 Input Connector CPM2B-40C2DR-D Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 77 Section 3-5 Wiring and Connections Expansion I/O Boards Input Connector CPM2B-32EDR CPM2B-32EDT/32ED1T 19 17 15 13 11 9 20 18 16 14 12 10 8 Input Connector CPM2B-40EDR Input Connector CPM2B-64EDT Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 78 Section 3-5 Wiring and Connections Input Devices The following table shows how to connect various input devices. Device Circuit diagram Relay output CPM2B 5 mA/6 mA/8 mA COM (+) NPN open collector Sensor power supply Output CPM2B 5 mA/6 mA/8 mA COM (+) NPN current output Use the same power supply for...
  • Page 79 Section 3-5 Wiring and Connections High-speed Counter Inputs Using IR 00000 to IR 00002 as High-speed Counter Inputs In these examples, Encoders with an external 24-V DC open-collector output are connected. Differential Phase Mode Pulse Plus Direction Input Mode (Count frequency: 5 kHz) (Count frequency: 20 kHz) CPM2B CPM2B...
  • Page 80 Section 3-5 Wiring and Connections Special functions for input bits IR 00003 through IR 00006 are set in DM 6628: Bits in PLC Setup setting (in DM 6628) address DM 6628 IR 00003 00 to 03 Used as normal Used as interrupt Used as quick- inputs.
  • Page 81: Output Wiring

    Section 3-5 Wiring and Connections 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.
  • Page 82 Section 3-5 Wiring and Connections Expansion I/O Boards with 32 I/O Points and Relay Outputs (CPM2B-32EDR) Terminal Block #1 Terminal Block #2 (Left side) (Right side) Output capacity Max. common capacity 2 A (250 V AC or 24 V DC) 4 A/common Expansion I/O Boards with 40 I/O Points and Relay Outputs (CPM2B-40EDR) Terminal...
  • Page 83 Section 3-5 Wiring and Connections Expansion I/O Boards with 32 I/O Points and Sinking Transistor Outputs (CPM2B-32EDT, CPM2B- 32ED1T) Output connector 19 17 15 13 11 9 18 16 14 12 10 8 Output capacity Max. common capacity 300 mA (30 V DC) 1.2 A/common Expansion I/O Boards with 64 I/O Points and Sinking Transistor Outputs (CPM2B-64EDT) IR n+1...
  • Page 84 Section 3-5 Wiring and Connections Using Pulse Outputs Use the PULS(65), SPED(––), ACC(––), PWM(––), and SYNC(––) instruc- tions to produce pulse outputs (rather than normal outputs) from output bits IR 01000 and IR 01001. Pulse outputs are possible from CPU Boards with tran- sistor outputs only.
  • Page 85 Section 3-5 Wiring and Connections The diode should satisfy the following requirements: Peak reverse-breakdown voltage must be at least 3 times the load voltage. Average rectified current must be 1 A. Inrush Current Considerations When a relay or transistor output is used to switch a load with a high inrush current such as an incandescent lamp, suppress the inrush current as shown below.
  • Page 86 Section 3-5 Wiring and Connections Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 87: Memory Areas

    SECTION 4 Memory Areas This section describes the structure of the PLC memory areas and explains how to use them. Introduction ........... 4-1-1 Functions .
  • Page 88: Introduction

    Section 4-1 Introduction Introduction Most data areas in the CPM2B can be accessed as bits or words. (The TR Area can be accessed by bit address only and the DM Area can be accessed by word address only.) The following diagram shows the structure of the IR Area and the relationship between bit and word addresses.
  • Page 89: Functions

    Section 4-1 Introduction 4-1-1 Functions IR Area The functions of the IR Area are explained below. IR Area bits in the input and output words are allocated to terminals on the CPU Board and Expansion I/O Boards. They reflect the ON/OFF status of input and output signals.
  • Page 90: I/O Allocation

    Section 4-2 I/O Allocation I/O Allocation IR bits are allocated to actual input terminals and output terminals on the CPU Board and Expansion I/O Boards. IR words that are not allocated to inputs or outputs can be used as work words. CPU Board I/O Allocation CPU Board inputs are allocated input bits in IR words IR 000 to IR 001 and CPU Board outputs are allocated output bits in IR words IR 010 to IR 011.
  • Page 91 Section 4-2 I/O Allocation Expansion I/O Board I/O • Up to three Expansion I/O Boards can be connected to a CPU Board. Allocation • Expansion Boards with 32 I/O points are allocated one input word and one output word, and models with 40 or 64 I/O points are allocated two input words and two output words.
  • Page 92 Section 4-2 I/O Allocation 64-point Expansion I/O Boards 32 inputs Word m+1, bits 00 to 15 and word m+2 bits 00 to 15 in IR 32 outputs Word n+1, bits 00 to 15 and word n+2, bits 00 to 15 in IR Bits Inputs Outputs...
  • Page 93 Section 4-2 I/O Allocation I/O Word Allocations CPU Board and Three Expansion I/O Boards 16 inputs IR 00000 to IR 00007 IR 00100 to IR 00107 CPU Board (32 I/O points) 16 outputs IR 01000 to IR 01007 IR 01100 to IR 01107 16 inputs IR 00200 to IR 00015 Expansion I/O Board...
  • Page 94: Sr Area

    Section 4-3 SR Area Note Input bits IR 00108 to IR 00111 reflect the status of the DIP switch on the CPU Board. SR Area These bits mainly serve as flags related to CPM2A/CPM2C operation or con- tain present and set values for various functions. The functions of the SR Area are explained in the following table.
  • Page 95 Section 4-3 SR Area Word(s) Bit(s) Function Read/ write SR 248, 00 to 15 High-speed Counter PV Area Read- SR 249 only The PVs can have the following values. The leftmost digit of SR 249 acts as the sign indi- cator;...
  • Page 96 Section 4-3 SR Area Word(s) Bit(s) Function Read/ write SR 253 00 to 07 FAL Error Code Read- The error code (a 2-digit number) is stored here when an error occurs. The FAL number is only stored here when FAL(06) or FALS(07) is executed. This word is reset (to 00) by execut- ing a FAL 00 instruction or by clearing the error from a Programming Device.
  • Page 97: Ar Area

    Section 4-4 AR Area AR Area These bits mainly serve as flags related to CPM2B operation. These bits retain their status even after the CPM2B power supply has been turned OFF or when operation begins or stops. Word(s) Bit(s) Function AR 00, 00 to 15 Not used.
  • Page 98 Section 4-4 AR Area Word(s) Bit(s) Function AR 11 00 to 07 High-speed Counter Range Comparison Flags 00 ON: Counter PV is within comparison range 1 (Note 1) 01 ON: Counter PV is within comparison range 2 02 ON: Counter PV is within comparison range 3 03 ON: Counter PV is within comparison range 4 04 ON: Counter PV is within comparison range 5 05 ON: Counter PV is within comparison range 6...
  • Page 99 Section 4-4 AR Area Word(s) Bit(s) Function AR 13 Power-up PLC Setup Error Flag Turns ON when there is an error in DM 6600 to DM 6614 (the part of the PLC Setup area that is read at power-up). Start-up PLC Setup Error Flag Turns ON when there is an error in DM 6615 to DM 6644 (the part of the PLC Setup area that is read at the beginning of operation).
  • Page 100: Plc Setup

    Section 4-5 PLC Setup Word(s) Bit(s) Function AR 21 00 to 07 Day of the Week (00 to 06, BCD) 00: Sunday 01: Monday 02: Tuesday 03: Wednesday (Note 2) 04: Thursday 05: Friday 06: Saturday 08 to 12 Not used. 30-second Compensation Bit Turn this bit ON to round off to the nearest minute.
  • Page 101: Plc Setup Settings

    Section 4-5 PLC Setup Since changes in the PLC Setup become effective only at the times given above, the PLC will have to be restarted to make changes in DM 6600 to DM 6614 effective, and program execution will have to be restarted to make changes in DM 6615 to DM 6644 effective.
  • Page 102 Section 4-5 PLC Setup Word(s) Bit(s) Function Cycle Time Settings (DM 6615 to DM 6619) The following settings are effective after transfer to the PLC the next time operation is started. DM 6615 00 to 15 Not used. DM 6616 00 to 07 Servicing time for RS-232C port (Effective when bits 08 to 15 are set to 01.) 00 to 99 (BCD): Percentage of cycle time used to service RS-232C port.
  • Page 103 Section 4-5 PLC Setup Word(s) Bit(s) Function DM6628 00 to 03 Interrupt enable for IR 00003 (0: Normal input; 1: Interrupt input; 2: Quick-response) 04 to 07 Interrupt enable for IR 00004 (0: Normal input; 1: Interrupt input; 2: Quick-response) 08 to 11 Interrupt enable for IR 00005 (0: Normal input;...
  • Page 104 Section 4-5 PLC Setup Word(s) Bit(s) Function DM 6646 00 to 07 Baud rate 00: 1,200 bps; 01: 2,400 bps; 02: 4,800 bps; 03: 9,600 bps; 04: 19,200 bps 08 to 15 Frame format Start bits Data bits Stop bits Parity 1 bit 7 bits...
  • Page 105 Section 4-5 PLC Setup Word(s) Bit(s) Function DM 6651 00 to 07 Baud rate 00: 1,200 bps; 01: 2,400 bps; 02: 4,800 bps; 03: 9,600 bps; 04: 19,200 bps 08 to 15 Frame format Start bits Data bits Stop bits Parity 1 bit 7 bits...
  • Page 106: Error Log

    Section 4-6 Error Log Error Log The error log function registers the error code of any fatal or non-fatal error that occurs in the PLC. The date and time at which the error occurred are reg- istered along with the error code. The error code is also stored in AR 253. The error log is stored in DM 2000 through DM 2021.
  • Page 107: Instruction Set

    SECTION 5 Instruction Set The CPM2B PLCs have a large programming instruction set that allows for easy programming of complicated control processes. This section provides a brief summary of the instruction set. CPM2B Function Codes ......... Alphabetic List by Mnemonic .
  • Page 108: Cpm2B Function Codes

    Section 5-1 CPM2B Function Codes CPM2B Function Codes The following table lists the CPM2B instructions that have fixed function codes. Each instruction is listed by mnemonic and by instruction name. Use the numbers in the leftmost column as the left digit and the number in the col- umn heading as the right digit of the function code.
  • Page 109: Alphabetic List By Mnemonic

    Section 5-2 Alphabetic List by Mnemonic Alphabetic List by Mnemonic Dashes (“––”) in the Code column indicate expansion instructions, which do not have fixed function codes. “None” indicates instructions for which function codes are not used. Mnemonic Code Words Name ACC (@) ––...
  • Page 110 Section 5-2 Alphabetic List by Mnemonic Mnemonic Code Words Name INC (@) INCREMENT INI (@) MODE CONTROL INT (@) INTERRUPT CONTROL IORF (@) I/O REFRESH JUMP END JUMP KEEP KEEP None LOAD LD NOT None LOAD NOT MAX (@) –– FIND MAXIMUM MCRO (@) 99 MACRO...
  • Page 111 Section 5-2 Alphabetic List by Mnemonic Mnemonic Code Words Name SLD (@) ONE DIGIT SHIFT LEFT SNXT STEP START SPED (@) SPEED OUTPUT SRCH (@) –– DATA SEARCH SRD (@) ONE DIGIT SHIFT RIGHT STC (@) SET CARRY STEP STEP DEFINE STIM (@) INTERVAL TIMER STUP...
  • Page 112: Expansion Instructions

    Section 5-3 Expansion Instructions Expansion Instructions A set of expansion instructions is provided to aid in special programming needs. Function codes can be assigned to up to 18 of the expansion instruc- tions to enable using them in programs. This allows the user to pick the instructions needed by each program to more effectively use the function codes required to input instructions.
  • Page 113: Using Analog I/O Boards

    SECTION 6 Using Analog I/O Boards This section provides an overview of Analog I/O Boards, including specifications, part names, wiring, installation, basic settings, and operations. Information on creating ladder programs is also provided, including programming examples. Overview of Analog I/O Boards ........Specifications and Part Names .
  • Page 114: Overview Of Analog I/O Boards

    Section 6-1 Overview of Analog I/O Boards Overview of Analog I/O Boards Analog I/O Boards are available in three models, which are the CPM2B- MAD63 (6 analog inputs and 3 analog outputs), the CPM2B-MAD42 (4 analog inputs and 2 analog outputs), and the CPM2B-MAD21 (2 analog inputs and 1 analog output).
  • Page 115: Specifications And Part Names

    Section 6-2 Specifications and Part Names Line Disconnection Detection (Analog Inputs) If the input signal drops to below 0.8 V or 3.2 mA, respectively, when the input range is set to either 1 to 5 V or 4 to 20 mA, a disconnection of the input line is detected and the line disconnection detection function is activated.
  • Page 116 Section 6-2 Specifications and Part Names Analog Input Signal Ranges –10 to 10 V The voltage range –10 to 10 V corresponds to hexadecimal values F448 to 0BB8 (–3,000 to 3,300 decimal). Negative voltages are expressed as two’s complements. Conversion data Hexadecimal (decimal) 0CE4 (3,300) 0BB8 (3,000)
  • Page 117 Section 6-2 Specifications and Part Names 0 to 5 V The voltage range 0 to 5 V corresponds to hexadecimal values 0000 to 1770 (0 to 6,000 decimal). The range of data that can be converted is FED4 to 189C (–300 to 6,300 decimal). Negative voltages are expressed as two’s complements.
  • Page 118 Section 6-2 Specifications and Part Names 4 to 20 mA The current range 4 to 20 mA corresponds to hexadecimal values 0000 to 1770 (0 to 6,000 decimal). The range of data that can be converted is FED4 to 189C (–300 to 6,300 decimal). Negative voltages are expressed as two’s complements.
  • Page 119 Section 6-2 Specifications and Part Names 1 to 5 V Hexadecimal values 0000 to 1770 (0 to 6,000 decimal) correspond to the volt- age range 1 to 5 V. The output range is –0.8 to 5.2 V. 10.5 V 10 V 0.8 V Conversion data 8000...
  • Page 120 Section 6-2 Specifications and Part Names Part Names CPM2B-MAD21, CPM2B-MAD42, and CPM2B-MAD63 Analog I/O Boards DIP switch 2 (Sets average processing.) Expansion I/O Connector DIP switch 1 Analog Input Analog Output (Switches voltage/ Connector Connector current inputs.) Analog Input Connector Inputs analog input (voltage/current) signals from external devices.
  • Page 121: Overview Of Operations

    Section 6-3 Overview of Operations Overview of Operations Analog I/O Boards convert analog signals (voltage/current) into 4-digit hexa- decimal data, according to the set range code. They are also used to convert output data (4-digit hexadecimal) into analog voltage/current signals and out- put to external devices.
  • Page 122 Section 6-3 Overview of Operations n: The last output word allocated to the CPU Board or to the previous Board if one is already connected. Starting A/D or D/A Conversion • Conversion processing cannot start until the range code is set. Until the range code is set, the input (A/D conversion) data will be 0000 and the D/A conversion output will be 0 V or 0 mA.
  • Page 123: Application Procedure

    Section 6-4 Application Procedure Application Procedure The information provided here is based on a configuration with a single Expansion I/O Board with 32 inputs/outputs and a single CPM2B-MAD63 Analog I/O Board connected to a CPU Board with 40 inputs/outputs. The ana- log I/O specifications are as follows: Analog input or I/O range...
  • Page 124: Analog I/O Wiring

    Section 6-4 Application Procedure Here, analog inputs 1 and 2 use current inputs (4 to 20 mA), so pins 1 and 2 are turned ON (bottom). Voltage Current OFF (top): Voltage input used. ON (bottom): Current input used. Note When a voltage input is used, always turn OFF the corresponding pin of DIP switch 1, even if the range code is set to a value other than 010 or 011.
  • Page 125 Section 6-4 Application Procedure Analog Input Connector Wiring Connector Pin Arrangement Internal Circuits 510 kΩ Input 1 250 Ω 0− 510 kΩ 510 kΩ Input 2 onwards 250 Ω 1− 510 kΩ Analog GND Pin No. CPM2B-MAD63 CPM2B-MAD42 CPM2B-MAD21 Analog input 1 (+) Analog input 1 (+) Analog input 1 (+) Analog input 2 (+)
  • Page 126 Section 6-4 Application Procedure 4. If noise interference from the power lines occurs, insert a noise filter in the power supply and input section. Analog Output Connector Wiring Connector Pin Arrangement Internal Circuit − Output 1 etc. Analog GND Analog I/O Unit CPM2B-MAD63 CPM2B-MAD42 CPM2B-MAD21...
  • Page 127 Preparing Analog I/O Cables Analog I/O Boards are provided with two special I/O connectors. Always use the provided connectors or equivalent products when wiring I/O. Plug XM2D1501 OMRON Hood XM2S1511 Cable Use shielded twisted-pair wires for the cables. Wiring and Assembly Use the following procedure to wire and assemble the connectors.
  • Page 128 Section 6-4 Application Procedure Refer to the following information if a disconnection occurs while using volt- age input. Con- nected device 1 Con- nected device 2 24 V DC Example: If connected device 2 is outputting 5 V and the power supply is shared between two inputs, as shown in the above diagram, approximately 1.6 V (or a third) is generated at input 1.
  • Page 129: Ladder Programming

    Section 6-4 Application Procedure 6-4-4 Ladder Programming Ladder programming is used to control the Analog I/O Board’s range code settings and start conversion operations, as follows: 1,2,3... 1. Setting range codes 2. Reading input (after A/D conversion) data 3. Writing output (D/A conversion source) data I/O Word Allocations Analog I/O Boards are allocated I/O words following those words allocated to the CPU Board or a previously connected Expansion Board.
  • Page 130 Section 6-4 Application Procedure Output Word Data (for Setting Analog Output Data) The source data to be used for D/A conversion is set in the output data words as 4-digit hexadecimal. Output words CPM2B-MAD63 CPM2B-MAD42 CPM2B-MAD21 Word n+1 Output data 1 Output data 1 Output data 1 (4-digit hexadecimal)
  • Page 131 Section 6-4 Application Procedure A/D conversion or D/A conversion processing will not be performed until the range code is correctly set. After being set, the range code cannot be changed during operation. The following tables show an example of range code settings and how the range codes are set in the output words.
  • Page 132 Section 6-4 Application Procedure Reading Input Data (A/D Conversion Data) Data that has been processed using A/D conversion is stored in 4-digit hexa- decimal in the input words allocated to the Analog I/O Board. A/D conversion data A/D conversion data CPM2B-MAD21 CPM2B-MAD42 CPM2B-MAD63...
  • Page 133 Section 6-4 Application Procedure Ladder Programming Example Using Disconnection Detection The following example shows ladder programming for detecting a disconnec- tion of inputs 1 and 2 (4 to 20 mA). Always ON Flag 25313 TIM005 Execution #0002 condition TIM005 Conversion data for analog input 1 that has been CMP(20) Execution output to IR 004 is compared with the constant...
  • Page 134: Troubleshooting Unit Errors

    Section 6-5 Troubleshooting Unit Errors Ladder Programming Example for Setting Output Data Always ON Flag 25313 Approximately 2 cycles + 50 ms is required from immediately TIM005 after turning ON the power until the D/A conversion data is enabled, #0002 so use the TIM 005 bit to delay execution by 100 to 200 ms.
  • Page 135 Section 6-5 Troubleshooting Unit Errors Ladder Programming Example Always ON Flag Execution 25131 condition Approximately 2 cycles + 50 ms is required from TIM005 immediately after turning ON the power until the #0002 D/A conversion data is enabled, so use the TIM 005 bit to delay execution of processing analog data by 100 to 200 ms.
  • Page 136 Section 6-5 Troubleshooting Unit Errors Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 137: Using Programming Devices

    SECTION 7 Using Programming Devices This section outlines the operations possible with the Programming Consoles. Using a Programming Console ........7-1-1 Compatible Programming Consoles .
  • Page 138: Using A Programming Console

    Section 7-1 Using a Programming Console Using a Programming Console This section provides information on connecting and using a Programming Console. 7-1-1 Compatible Programming Consoles There are 3 Programming Consoles that can be used with the CPM2B: The CQM1H-PRO01-E, CQM1-PRO01-E and the C200H-PRO27-E. The key func- tions for these Programming Consoles are identical.
  • Page 139 Section 7-1 Using a Programming Console C200HPRO27E LCD display Mode switch Operation keys Cassette recorded jack (Cannot be used with the CPM2B). Connecting Cables C200H-CN222 (2 m) C200H-CN422 (4 m) Different 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.
  • Page 140: Changing The Cpm2B's Mode With The Mode Switch

    Section 7-1 Using a Programming Console Contrast Control The display contrast can be adjusted with the control on the right side of the Programming Console. Contrast control Buzzer Volume The C200H-PRO27-E’s buzzer volume can be adjusted with the lever on the right side of the Programming Console.
  • Page 141 Section 7-1 Using a Programming Console • The CPM2B will enter RUN mode automatically if a Programming Con- sole isn’t connected when the CPM2B is turned on. MONITOR MONITOR MONITOR PROGRAM PROGRAM PROGRAM Mode display <PROGRAM> <MONITOR> <RUN> SHIFT Operation Operation 00000 Initial display...
  • Page 142: Connecting The Programming Console

    Section 7-1 Using a Programming Console Startup Operating Mode The operating mode of the CPM2B when the power is turned ON depends upon the PLC Setup setting in DM 6600 and the Programming Console’s mode switch setting if the Programming Console is connected. PLC Setup Programming Console Programming Console not...
  • Page 143: Preparation For Operation

    Section 7-1 Using a Programming Console 2. Only the peripheral port connector can be used when a CPM2C-CN111 Connecting Cable is connected. 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...
  • Page 144: Entering The Password

    Section 7-1 Using a Programming Console 7. Read and clear all errors and messages. See 7-2-5 Reading/Clearing Er- ror Messages for details. 8. Start programming. 7-1-5 Entering the Password To gain access to the PLC’s programming functions, you must first enter the password.
  • Page 145: Programming Console Operations

    Section 7-2 Programming Console Operations • When a Programming Device installed on a computer is connected to the peripheral port, the display (at the computer) for the CPU Unit’s operation mode will simply change from “RUN” to “MONITOR.” Programming Console Operations 7-2-1 Overview The following table lists the programming and monitoring operations that can...
  • Page 146: Clearing Memory

    Section 7-2 Programming Console Operations Name Function Page Unsigned decimal data modifi- Changes the decimal value of a word being monitored as unsigned decimal cation data, within a range of 0 to 65,535. A change into hexadecimal data is made automatically.
  • Page 147: Clearing Memory Completely

    Section 7-2 Programming Console Operations 2. Press the SET, NOT, and then the RESET Key to begin the operation. 3. Press the CNT Key to remove the timer/counter area from the data areas shown on the display. (Counter PVs will not be cleared.) 00000MEMORY CLR? 4.
  • Page 148: Reading/Clearing Error Messages

    Section 7-2 Programming Console Operations Key Sequence Press the CLR, FUN and then the VER Key to display the I/O comment area and ladder program area capacities. CA LAD 01 02.1 ▲ ▲ Ladder program area: 2.1 K word I/O comment area: (rounding up 2,048) 1 K word (rounding down 1, 012)
  • Page 149: Buzzer Operation

    Section 7-2 Programming Console Operations 7-2-6 Buzzer Operation This operation is used to turn on and off the buzzer that sounds when Pro- gramming Console keys are pressed. This buzzer will also sound whenever an error occurs during PLC operation. Buzzer operation for errors is not affected by this setting.
  • Page 150: Setting And Reading A Program Memory Address And Monitoring I/O Bit Status

    Section 7-2 Programming Console Operations INST TBL READ ↓ FUN018:FUN 4. Press the CHG Key to assign a different expansion instruction to the se- lected function code. INST TBL CHG? FUN018:FUN ~???? 5. Press the Up and Down Arrow Keys to scroll through the expansion in- structions that can be assigned to the selected function code.
  • Page 151: Entering Or Editing Programs

    Section 7-2 Programming Console Operations 00201READ ↓ 00001 00200READ ↑ 00000 7-2-9 Entering or Editing Programs This operation is used enter or edit programs. It is possible in PROGRAM mode only. MONITOR PROGRAM The same procedure is used to either input a program for the first time or to change a program that already exists.
  • Page 152 Section 7-2 Programming Console Operations To specify the Completion Flag for a timer or counter, press the LD, AND, OR, or NOT Key followed by the TIM or CNT Key, and then input the timer/ counter number last. 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 153 Section 7-2 Programming Console Operations 00202 MOV DATA B WRITE Note The operands of MOV(21) can be word addresses, so the CONT/# Key must be pressed to input a constant. • Writing a Word Address 11. Input the second operand. 00202 MOV DATA B Press the WRITE Key to write the instruction to Program Memory.
  • Page 154: Instruction Search

    Section 7-2 Programming Console Operations 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. 00203 ADB DATA B #-00010 RESET Note If an erroneous input is made, press the CLR Key to restore the sta- tus prior to the input.
  • Page 155: Bit Operand Search

    Section 7-2 Programming Console Operations Indicates the address of END instruction. 00397SRCH SRCH END (001)00.4KW Indicates the amount used by the user program in units of 0.1 Kwords. 7-2-11 Bit Operand Search This operation is used to find occurrences of the specified operand bit in the program and is possible in any mode.
  • Page 156: Inserting And Deleting Instructions

    Section 7-2 Programming Console Operations 7-2-12 Inserting and Deleting Instructions This operation is used to insert or delete instructions from the program. It is possible in PROGRAM mode only. MONITOR PROGRAM 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.
  • Page 157: Checking The Program

    Section 7-2 Programming Console Operations If the instruction has more operands, the operands will be deleted automat- ically with the instruction. 00205 DELETE END ↑ 00105 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.
  • Page 158: Bit, Digit, Word Monitor

    Section 7-2 Programming Console Operations If errors are displayed, edit the program to correct the errors and check the program again. Continue checking the program by pressing the SRCH Key again until all errors have been corrected. 7-2-14 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.
  • Page 159 Section 7-2 Programming Console Operations 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. 00000 SHIFT CHANNEL LR...
  • Page 160: Differentiation Monitor

    Section 7-2 Programming Console Operations 00000 SHIFT CONT 00001 Note Press the SHIFT Key, CLR Key, and then CLR Key again to return to the initial Programming Console display with the multiple address monitoring state unchanged. Press the SHIFT Key and then the MONTR Key from the initial display to return to the multiple address monitoring state.
  • Page 161: Binary Monitor

    Section 7-2 Programming Console Operations 7-2-16 Binary Monitor This operation is used to monitor the ON/OFF status of any word’s 16 bits. It is possible in any mode. MONITOR PROGRAM 1,2,3... 1. Monitor the status of the desired word according to the procedure de- scribed in 7-2-14 Bit, Digit, Word Monitor.
  • Page 162: Signed Decimal Monitor

    Section 7-2 Programming Console Operations 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. c202 c201 c200 0123 4567 89AB The Up and Down Arrow Keys can be used to shift one address up or down.
  • Page 163: Unsigned Decimal Monitor

    Section 7-2 Programming Console Operations 7-2-19 Unsigned Decimal Monitor This operation is used to convert hexadecimal data in a word to unsigned dec- imal for display. The operation can be executed while using I/O monitoring, multiple address monitoring or 3-word monitoring. MONITOR PROGRAM 1,2,3...
  • Page 164: Changing Timer, Counter Sv

    Section 7-2 Programming Console Operations D0002 3CH 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.
  • Page 165: Hexadecimal, Bcd Data Modification

    Section 7-2 Programming Console Operations 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.
  • Page 166: Binary Data Modification

    Section 7-2 Programming Console Operations D0000 WRITE 0200 7-2-23 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 7-2-16 Binary Monitor. It is possi- ble in MONITOR or PROGRAM mode only.
  • Page 167: Signed Decimal Data Modification

    Section 7-2 Programming Console Operations c010 MONTR WRITE 1010010101010101 7-2-24 Signed Decimal Data Modification This operation is used to change the decimal value of a word being monitored as signed decimal data, within a range of –32,768 to 32,767. The contents of the specified word are converted automatically to signed hexadecimal (two’s complement format).
  • Page 168: Unsigned Decimal Data Modification

    Section 7-2 Programming Console Operations 7-2-25 Unsigned Decimal Data Modification This operation is used to change the decimal value of a word being monitored as unsigned decimal data, within a range of 0 to 65,535. A change into hexa- decimal data is made automatically. Words SR 253 to SR 255 cannot be changed.
  • Page 169: Clear Force Set/Reset

    Section 7-2 Programming Console Operations 0000020000 ^ OFF^ (Multiple address monitor) 2. Press the SET Key to force the bit ON or press the RESET Key to force the bit OFF. 0000020000 The cursor in the lower left corner of the display indicates that the force set/ reset is in progress.
  • Page 170: Hex-Ascii Display Change

    Section 7-2 Programming Console Operations 7-2-28 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. The displayed PV of the timer or counter cannot be changed. MONITOR PROGRAM 1,2,3...
  • Page 171: Programming Example

    Section 7-3 Programming Example 7-2-30 Reading and Setting the Clock This operation is used to read or set the CPU’s clock. The clock can be read in any mode, but can be set in MONITOR or PROGRAM mode only. Operation MONITOR PROGRAM Read clock...
  • Page 172 Section 7-3 Programming Example <PROGRAM> MONTR 3. Clear the CPM2B’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 00000MEMORY CLR? RESET CNT DM 00000MEMORY CLR MONTR END HR...
  • Page 173: Example Program

    Section 7-3 Programming Example 7-3-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 174: Programming Procedures

    Section 7-3 Programming Example 7-3-3 Programming Procedures The example program will be written to the CPM2B according to the mne- monic list in 7-3-2 Example Program. The procedure is performed beginning with the initial display. (Clear the memory before entering a new program.) Note If an error occurs while inputting the program, refer to the Programming Man- ual for details on correcting the error.
  • Page 175 Section 7-3 Programming Example 2. Input the normally closed AND condition T002. (It isn’t necessary to input leading zeroes.) 00005 AND NOT TIM 002 00006READ WRITE NOP (000) 3. Input the 1-second timer T001. 00006 00006 TIM DATA WRITE #0000 4.
  • Page 176 Section 7-3 Programming Example (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. 00010 20000 00011READ WRITE NOP (000) 2. Input the normally open AND condition T001. (It isn’t necessary to input leading zeroes.) 00011 TIM 001...
  • Page 177: Checking The Program

    Section 7-3 Programming Example 3. Input the OUT instruction IR 01000. (It isn’t necessary to input leading zeroes.) 00016 01000 00017READ WRITE NOP (000) (6) Inputting the END(001) Input END(01). (The display shows three digits in the function code, but only Instruction the last two digits are input for CPM2B PLCs.) 00017...
  • Page 178: Test Run In Monitor Mode

    Section 7-3 Programming Example 7-3-5 Test Run in MONITOR Mode Switch the CPM2B in MONITOR mode and check the operation of the pro- gram. 1,2,3... 1. Set the Programming Console’s mode switch to MONITOR mode. MONITOR PROGRAM <MONITOR> 2. Press the CLR Key to bring up the initial display. 00000 3.
  • Page 179: Test Runs And Error Processing

    SECTION 8 Test Runs and Error Processing This section describes procedures for test runs of CPM2B operation, self-diagnosis functions, and error processing to identify and correct the hardware and software errors that can occur during PLC operation. Initial System Checks and Test Run Procedure......8-1-1 Initial System Checks .
  • Page 180: Initial System Checks And Test Run Procedure

    Section 8-1 Initial System Checks and Test Run Procedure Initial System Checks and Test Run Procedure 8-1-1 Initial System Checks Check the following items after setting up and wiring the CPM2B, but before performing a test run. Item Points to check Power supply and I/ Is the wiring correct? O connections...
  • Page 181: Cpm2B Test Run Procedure

    Section 8-2 CPM2B Test Run Procedure CPM2B Test Run Procedure 1,2,3... 1. Power Supply Application a) Check the CPM2B’s power supply voltage and terminal connections. b) Check the I/O devices’ power supply voltage and terminal connec- tions. c) Turn on the power supply and check that the “PWR” indicator lights. d) Use a Programming Device to set the CPM2B to PROGRAM mode.
  • Page 182: User-Defined Errors

    Section 8-3 Self-diagnostic Functions Error Messages When an error is detected, a corresponding error message will be displayed on the Programming Console or other Programming Device connected to the PLC. Error Flags When a hardware error is detected, the corresponding error flag in the AR or SR Area will be turned ON.
  • Page 183: Non-Fatal Errors

    Section 8-3 Self-diagnostic Functions 8-3-3 Non-fatal Errors PLC operation and program execution will continue after one or more of these errors have occurred. Although PLC 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 indicator will flash.
  • Page 184: Troubleshooting Flowcharts

    Section 8-4 Troubleshooting Flowcharts Message FALS Meaning and appropriate response I/O BUS ERR An error has occurred during data transfer between the CPU Board and an Expansion I/ O Board. Check the Board’s connecting cable. I/O UNIT OVER Too many Expansion I/O Boards have been connected. Check the Board configuration. SYS FAIL FALS** 01 to 99 A FALS(07) instruction has been executed in the program.
  • Page 185 Section 8-4 Troubleshooting Flowcharts Power Supply Check PWR indicator not lit. Is power being Connect power supplied? supply. Is PWR indicator lit? Set supply voltage Is voltage adequate? within acceptable limits. Is PWR indicator lit? Are there any loose Tighten screws or terminal screws or bro- replace wires.
  • Page 186 Section 8-4 Troubleshooting Flowcharts Fatal Error Check RUN indicator not lit. Is the ERR indi- cator lit? Is PLC mode dis- Determine the cause played on Program- of the error with a ming Device? Programming Device. Is PLC mode displayed Turn the power on Programming De- supply OFF, and...
  • Page 187 Section 8-4 Troubleshooting Flowcharts Non-fatal Error Check ERR indicator flashing. Determine the cause of the error with a Programming Device. Is a non-fatal error Identify the error, eliminate its indicated? cause, and clear the error. Flashing Is the ERR indicator flashing? Not lit Replace the CPU Board.
  • Page 188 Section 8-4 Troubleshooting Flowcharts 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 output indicator operating normally? Check the voltage at the Wire correctly.
  • Page 189 Section 8-4 Troubleshooting Flowcharts 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 the IR 00002 and IR 00003 terminals. IR 00003 terminals. Operation OK? Operation OK? Are the terminal...
  • Page 190 Section 8-4 Troubleshooting Flowcharts 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 191 Section 8-4 Troubleshooting Flowcharts Memory Error Check Memory error occurred. Replace the CPU AR 1309 ON? Board. Check/correct backed-up data and AR 1314 ON? 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 the flag that is ON, correct set-...
  • Page 192: Maintenance Inspections

    Section 8-5 Maintenance Inspections Maintenance Inspections In order for your SYSMAC system to operate 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. Poor environmental condi- tions, however, can lead to deterioration of the electrical components, making regular maintenance necessary.
  • Page 193: Battery Replacement

    Section 8-6 Battery Replacement Battery Replacement !WARNING Do not drop, disassemble, crush, short-circuit, recharge, or dispose of the bat- tery in fire. The battery may explode, burn, or leak and cause personal injury. Precautions Turn ON the power supply for at least 5 minutes before replacing the battery in order to recharge the backup capacitor.
  • Page 194 Section 8-6 Battery Replacement Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 195: Standard Models

    Appendix A Standard Models CPU Boards Appearance Power Input Output Connection Internal clock. Model supply with external RS-232C port, I/O device and battery 24 V DC 16 points 16 relay out- Transistor Block No CPM2B-32C1DR-D (24 V DC) puts CPM2B-32C2DR-D 24 V DC 16 sinking Connector...
  • Page 196 Appendix A Standard Models Expansion I/O Cable Appearance Model Specifications CPM2B-CN601 Connects an Expansion I/O Board to the CPU Board or another Expan- sion I/O Board. (This cable is identical to the cable supplied with an Expansion I/O Board. Cable length: 60 mm.) Mounting Bracket Appearance Model...
  • Page 197 Appendix A Standard Models Peripheral Devices Appearance Model Number Name Specifications CQM1H-PRO01-E Programming Console 2-m Connecting Cable attached CQM1-PRO01-E Programming Console 2-m Connecting Cable attached Requires a CS1W-CN114 or CPM2C-CN111 Con- necting Cable. C200H-PRO27-E Hand-held, w/backlight; requires a C200H-CN222 or C200H-CN422 Connecting Cable, see below. C200H-CN222 Connects the C200H-PRO27-E.
  • Page 198 Appendix A Standard Models Adapters and Connecting Cables (1:1 Connection) CPM2B port Appearance Model number Name Comments Cable length Peripheral CQM1-CIF02 RS-232C For a 9-pin computer serial port 3.3 m Adapter CPM1-CIF01 Use for peripheral port to RS- 232C level conversion RS-232C XW2Z-200S-V RS-232C...
  • Page 199: B Dimensions

    Appendix B Dimensions All dimensions are in millimeters. CPU Boards 32-point Models (CPM2B-32C@D@-D) 40-point Models (CPM2B-40C2DR-D) Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 200 Appendix B Dimensions Expansion I/O Boards 32-point Models (CPM2B-32ED@) 40-point Models (CPM2B-40EDR) 64-point Models (CPM2B-64EDT) Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 201 Appendix B Dimensions Analog I/O Board (CPM2B-MAD@@) Mounting Bracket (CPM2B-ATT01) Six 3.5 dia. Four 4.5 dia. Weight Name Model Weight CPU Board 24 V DC CPM2B-32C1DR-D 233 g max. CPM2B-32C2DR-D 260 g max. CPM2B-32C1DT-D 150 g max. CPM2B-32C2DT-D 178 g max. CPM2B-40C2DR-D 294 g max.
  • Page 202 Appendix B Dimensions Assembly Dimensions Front view Side view 32-point CPU Board or Expansion I/O Board CPU Board Expansion I/O Board Mounting Bracket Boards 26 mm 32-point models Expansion I/O Board (24 V DC) 32-point models Expansion I/O Board (12 V DC) 22 mm 40/60-point models Expansion I/O Board (24 V DC)
  • Page 203: Connections Diagrams For Connector Terminal Blocks And Relay Terminals

    Appendix C Connections Diagrams for Connector Terminal Blocks and Relay Terminals Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 204 Appendix C Connections Diagrams for Connector Terminal Blocks and Relay Terminals 1. Connecting Inputs of 32-point Board to G7TC-ID16 Relay Terminal Connector at CPM2B Connector at Relay inputs: XG5M-2032-N, Terminal: XG5M-2032-N, XG5M-2035-N XG5M-2035-N Contact No. Pin No. Pin No. I/O symbol Connector at CPM2B inputs Connector at Relay Terminal Mark...
  • Page 205 Appendix C Connections Diagrams for Connector Terminal Blocks and Relay Terminals 3. Connecting Inputs of 32-point Board to XW2B-20G4, XW2B-20G5, or XW2B-20G5-D Connector Terminal Conversion Unit Connector at Terminal Connector at CPM2B Conversion Unit: inputs: XG5M-2032-N, XG5M-2032-N, XG5M-2035-N XG5M-2035-N Contact No. Pin No.
  • Page 206 Appendix C Connections Diagrams for Connector Terminal Blocks and Relay Terminals 5. Connecting Outputs of 32-point Board to G70D-SOC16, G70D-FOM16, G7TC-OC16, or G70A-ZOC16-3 Relay Terminal Connector at CPM2B Connector at Relay outputs: XG5M-2032-N, Terminal: XG5M-2032-N, XG5M-2035-N XG5M-2035-N Connector at CPM2B outputs Connector at Relay Terminal Contact No.
  • Page 207 Appendix C Connections Diagrams for Connector Terminal Blocks and Relay Terminals 7. Connecting Outputs of 32-point Board to XW2B-20G4, XW2B-20G5, or XW2B-20G5-D Connector Terminal Conversion Unit Connector at Terminal Connector at CPM2B Conversion Unit: outputs: XG5M-2032-N, XG5M-2032-N, XG5M-2035-N XG5M-2035-N Contact No. Pin No.
  • Page 208 Appendix C Connections Diagrams for Connector Terminal Blocks and Relay Terminals 8. Connecting Inputs of 64-point Board to XW2B-20G4, XW2B-20G5, or XW2B-20G5-D Connector Terminal Conversion Unit Connector at CPM2B Connector at Terminal inputs: XG5M-4032-N Conversion Unit: XG5M-2032-N Contact No. Pin No. Pin No.
  • Page 209 Appendix C Connections Diagrams for Connector Terminal Blocks and Relay Terminals 9. Connecting Outputs of 64-point Board to 70D-SOC16 Relay Terminal Connector at CPM2B Connector at Relay inputs: XG5M-4032-N Terminal: XG5M-2032-N Contact No. Pin No. Pin No. I/O symbol Connector at Relay Terminal 00@00 00@01 00@02...
  • Page 210 Appendix C Connections Diagrams for Connector Terminal Blocks and Relay Terminals Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 211: Index

    Index Numerics clearing memory clock 1:N connections reading and setting the clock communications capabilities overview components Expansion I/O Boards arc killer examples xviii conduit installation ASCII counters converting displays changing SV Programming Console Programming Console example of inputting atmosphere CPU Boards available models dimensions CPU Units...
  • Page 212 Index reading and changing expansion instruction assignments EC Directives functions precautions electrical noise preventing ERR indicator hexadecimal data flashing converting displays Programming Console error log errors error processing fatal I/O capacity identifying I/O connectors non-fatal available models PC Setup pin allocation reading/clearing messages Expansion I/O Units Programming Console...
  • Page 213 Index searching description Programming Console example test run insulation resistance monitoring 3-word monitor interlocks Programming Console interrupt program execution binary monitor in cyclic operation Programming Console differentiation monitor Programming Console signed decimal monitor leakage current Programming Console LED indicators status Programming Console limit switches unsigned decimal monitor...
  • Page 214 Index preparation for searching panel Programming Console Programming Console installation setting and reading a memory address Programming Console panel installation special features precautions Programming Console password connecting entering on Programming Console connections PC mode keys changing models PC Setup operations See also settings Programming Devices PC status...
  • Page 215 Index self-holding bit Programming Console example example of inputting settings troubleshooting changing fatal errors I/O errors shock resistance non-fatal errors signed decimal data operating conditions modifying power supply Programming Console monitoring specifications characteristics general specifications unsigned decimal data input specifications modifying output specifications Programming Console...
  • Page 216 Index Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...
  • Page 217: Revision History

    Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. W371-E1-03 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.
  • Page 218 Revision History Revision code Date Revised content July 2003 Information related to new CPU Boards and Analog I/O Boards was added throughout the manual, including the following changes. Page xiii: Precaution on connecting the PLC to a personal computer added. Page 2: Information on sharing programming devices changed.
  • Page 219 OMRON ON-LINE Global - http://www.omron.com USA - http://www.omron.com/oei Canada - http://www.omron.ca W371-E1-03 9/03/50 ©2003 OMRON ELECTRONICS LLC Specifications subject to change without notice. Printed in the U.S.A. Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com...

Table of Contents