Page 2
SYSMAC CPM2B Programmable Controller Operation Manual Produced February 2000...
Page 3
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 5
TABLE OF CONTENTS SECTION 7 Test Runs and Error Processing ....Initial System Checks and Test Run Procedure ....... . . CPM2B Test Run Procedure .
Page 6
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 (PC) designed for control opera- tions. 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).
PRECAUTIONS This section provides general precautions for using the Programmable Controller (PC) and related devices. The information contained in this section is important for the safe and reliable application of the Programmable Con- troller. You must read this section and understand the information contained before attempting to set up or operate a PC system.
It is extremely important that a PC and all PC Units be used for the specified purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PC System to the above-mentioned applications.
Application Precautions • Emergency stop circuits, interlock circuits, limit circuits, and similar safety measures must be provided in external control circuits. • The PC will turn OFF all outputs when its self-diagnosis function detects any error or when a severe failure alarm (FALS) instruction is executed. As a coun- termeasure for such errors, external safety measures must be provided to en- sure safety in the system.
Page 10
Application Precautions • Mounting or dismounting the CPU board or expansion I/O board. • Setting switches or rotary switches. • Connecting or wiring the cables. • Connecting or disconnecting the connectors. Caution Failure to abide by the following precautions could lead to faulty operation of the PC or the system, or could damage the PC.
EMC-related performance of the OMRON devices that comply with EC Direc- tives will vary depending on the configuration, wiring, and other conditions of the equipment or control panel on which the OMRON devices are installed. The cus- tomer must, therefore, perform the final check to confirm that devices and the overall machine conform to EMC standards.
Page 12
EC Directives Conformance to EC Directives The CPM2B PCs comply with EC Directives. To ensure that the machine or de- vice in which the CPM2B PC is used complies with EC directives, the PC must be installed as follows: 1, 2, 3... 1.
Page 13
EC Directives 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 is a time lag between the moment the...
Page 15
• The CPM2B is equipped with a full complement of communications functions to provide communications with personal computers, other OMRON PCs, and OMRON Programmable Terminals. These communications capabilities allow the user to design a low-cost distributed production system.
Page 16
Section CPM2B Features and Functions lowing the speed of a peripheral piece of equipment (such as a supply conveyor) to be synchronized with the speed of the main piece of equipment. Motor driver Motor Encoder CPM2B Pulses are output as a fixed multiple of the input frequency. High-speed Counters and The CPM2B has a total of five high-speed counter inputs.
Section CPM2B Features and Functions TO HOURS conversion instruction (HMS(––)), the long-term timer provides an easy way to control equipment scheduling. Expansion Memory Unit The CPM1-EMU01-V1 Expansion Memory Unit is a program loader for small- size or micro PCs. Using the CPM1-EMU01-V1, simple on-site transfer of user programs and data memory is possible with PCs.
Page 18
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.
Section System Configurations Main function Variations/Details High-speed counters High-speed counter No interrupt 1 input, see note 2. Count-check interrupt Differential phase mode (5 kHz) (An interrupt can be generated when the Pulse plus direction input mode (20 kHz) count equals the set value or the count Up/down input mode (20 kHz) lies within a preset range.) Increment mode (20 kHz)
Section System Configurations 1-2-3 Connecting a Programming Console A Programming Console can be connected to the CPM2B CPU Board’s periph- eral port, as shown below. CS1W-CN114 SW201 Connecting Cable (See note 1.) (0.05 m) Peripheral port Attached Peripheral port cable (2 m) connector CQM1-PRO01-E CPM2C-CN111...
Section System Configurations 1-2-5 One-to-one Computer Connections Use one of the connecting cables shown in the following diagram to connect a personal computer with Support Software to the CPM2B for a 1:1 Host Link com- munications or no-protocol (serial) communications. RS-232C Port Connection Peripheral Port Connection IBM PC/AT or...
Section System Configurations 1-2-6 One-to-N Computer Connections Up to 32 OMRON PCs, including CPM2B PCs, can be connected to a host com- puter. Using the RS-232C Port Connecting Cable 3G2A9-AL004-E or NT-AL001-E (requires +5 V) XW2Z-j00S-V (See notes 1 and 2.) RS-422 (Total length: 500 m max.)
RS-232C port. (The Programmable Terminal cannot be con- nected directly to the peripheral port.) An OMRON PT can also be connected to the CPM2B with a host link connection. Either the RS-232C port or peripheral port can be used for a host link connection.
(D-sub 9-pin) Connecting Cable XW2Z-200T (2 m) XW2Z-500T (5 m) CPM2B CPU Board CPM2B CPU Board OMRON PC (CQM1, CPM1, CPM1A, OMRON PC (CQM1, CPM1, CPM1A, CPM2A, CPM2B, CPM2C, SRM1(-V2), CPM2A, CPM2B, CPM2C, SRM1(-V2), C200HS, or C200HX/HG/HE) C200HS, or C200HX/HG/HE)
Section Structure and Operation Structure and Operation 1-3-1 CPU Board Structure The following diagram shows the internal structure of the CPU Board. I/O memory External External PC Setup output input Program devices devices Settings Settings RS-232C port Settings Peripheral Communica- port tions switch I/O Memory...
Section Structure and Operation 1-3-2 Operating Modes CPM2B CPU Boards have 3 operating modes: PROGRAM, MONITOR, and RUN. PROGRAM Mode The program cannot be executed in PROGRAM mode. This mode is used to perform the following operations in preparation for program execution •...
Page 28
Section Structure and Operation 1-3-4 PC Operation at Startup Time Required for The time required for startup initialization depends on several factors, such as Initialization the operating conditions (including power supply voltage, system configuration, and ambient temperature) and the program contents. Power OFF Operation Minimum Power Supply Voltage The PC will stop and all outputs will be turned OFF if the power supply voltage...
Section 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 refresh- ing, and communications port servicing are performed repeatedly (cyclically). S Check hardware.
Page 30
Section 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 31
Section Structure and Operation Interrupt Program When an interrupt is generated during execution of the main program, main pro- Execution gram execution is interrupted immediately and the interrupt program is execut- ed. The following diagram shows the cyclic operation of the CPM2B when an interrupt program is executed.
Page 32
Section Structure and Operation When IORF(97) is used, the cycle time is extended by the time required to re- fresh the specified I/O words. Overseeing processes Main program IORF(97) executed. Cycle Immediate refreshing time I/O refreshing I/O refreshing RS-232C port servicing Peripheral port servicing...
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 .
Section Specifications Specifications 2-1-1 General Specifications Item CPU Boards Expansion I/O Boards With relay outputs With transistor With relay outputs With transistor outputs outputs Supply voltage 24 V DC Supplied from CPU Board. (Allowable range: 20.4 to 26.4 V DC) Power consumption 20 W max.
Section Specifications 2-1-2 Characteristics CPU Boards Item 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 Special...
Page 36
Section Specifications Item 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 outputs and multiplying the frequency of the input pulses from the high-speed counter by a fixed factor.
Section Specifications 2-1-3 I/O Specifications CPU Board Input Specifications Item Inputs Specification +10% Input voltage 24 V DC –15% Input impedance IN00000 to IN00001 2.7 kΩ IN00002 to IN00006 3.9 kΩ IN00007 and up 4.7 kΩ Input current IN00000 to IN00001 8 mA typical IN00002 to IN00006 6 mA typical IN00007 and up 5 mA typical...
Page 38
Section Specifications 2. Installation orientation: Vertical with end down Input voltage Input voltage 26.4 V DC 24 V DC (°C) (°C) 50 55 50 55 3. Installation orientation: Horizontal Input voltage Input voltage 26.4 V DC 24 V DC (°C) (°C) 50 55 50 55...
Page 39
Section Specifications Interrupt Inputs Inputs IN00003 through IN00006 can be used as interrupt inputs (interrupt input mode or counter mode) and quick-response inputs. The minimum pulse width for these inputs is 50 µs. Expansion I/O Board Input Specifications Item Specification +10% Input voltage 24 V DC...
Page 40
Specifications Note The service life of the CPM2B’s relay output contacts shown in the table as- sumes the worst conditions. The following graph shows the results of OMRON’s service life tests at a switching rate of 1,800 times/hour. 120 V AC, resistive load 24 V DC, τ...
Section Board Components and their Functions Board Components and their Functions 2-2-1 CPU Board Components CPU Boards with Relay Outputs 9. Communications Switch SW201 9. Communications Switch SW202 10. Analog settings 11. DIP Switch inputs 8. RS-232C port 2. Input connector 7.
Page 42
Section Board Components and their Functions CPU Board Component Descriptions 1, 2, 3... 1. Power Supply Terminals Connect the power supply (24 V DC) to these terminals. 2. Input Connector Connects the CPU Board to external input devices. 3. Output Terminals/Connector Connects the CPU Board to external output devices.
Page 43
Section Board Components and their Functions 9. Communications Switches SW201 and SW202 The Communications Switches control the communications settings for the peripheral port and RS-232C port. SW201 SW202 (OFF when shipped.) (OFF when shipped.) Switch settings Peripheral port RS-232C port communications communications SW202 SW201...
Section I/O Connector and Terminal Pin Allocation Note Do not touch the cables during operation to prevent unexpected op- eration due to static discharge. I/O Connector and Terminal Pin Allocation CPU Boards IR 001 IR 000 03 02 01 00 03 02 01 00 07 06 05 04 07 06 05 04...
SECTION 3 Installation and Wiring This section provides information on installing and wiring a CPM2B PC. Be sure to follow the directions and precautions in this section when installing the CPM2B in a panel or cabinet, wiring the power supply, or wiring I/O. Design Precautions .
Section Selecting an Installation Site Design Precautions Observe the following precautions when designing a system incorporating a CPM2B PC. 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 pro- tectors and fuses.
Section Selecting an Installation Site Caution Be sure to install the CPM2B correctly, as outlined in this manual. Failure to do so may result in Board malfunction. 3-2-1 Installation Site Conditions Note Do not install the CPM2B under any of the following conditions. •...
Section Assembling the CPM2B Boards Accessibility Ensure that the CPM2B can be accessed for normal operation and mainte- nance. High-voltage equipment, power lines, and moving machinery could be dangerous if they are in the way during routine operations. Assembling the CPM2B Boards Board Assembly Up to 3 Expansion I/O Boards can be connected to a CPM2B CPU Board.
Section Installing the CPM2B 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...
Section Wiring and Connections Example Installations Mounting Bracket Screw and nut Screw and tapped installation panel installation Note 1. Use M4 screws and tighten to a torque of 1.2 NSm. 2. The CPM2B can be installed without a CPM2B-ATT01 Mounting Bracket, but the Mounting Bracket must be used to conform to UL/CSA standards.
24 V DC (Not connected) Terminal Specifications Item Specifications Screw size Recommended torque 0.5 to 0.6 NSm Recommended screwdriver: OMRON XW4E-00C Compatible Wires and Wire/terminal Specification Terminals Solid wire 0.2 to 2.5 mm (AWG 24 to AWG 12) Strip 7 mm (1/4 inch) of insulation.
Terminal Block Item Specification Specifications Screw size Recommended tightening 0.5 to 0.6 NSm torque Recommended screwdriver: OMRON XW4E-00C Recommended Wire and Item Specification Terminals 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 (AWG 24 to AWG12) (Strip 7 mm.)
Page 55
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 20P Flat Cable Connector...
Page 56
Section Wiring and Connections OMRON Crimping Tools Crimping Tool XY2B-0002 Attachment XY2B-1007 MIL 20P Loose-wire Pressure Connector XG5S-2012 Full Cover* XG5S-1001 Partial Cover* Sockets For AWG 24: XG5M-2032N For AWG 26 to AWG 28: XG5M-2035N Note Two Full Covers or Partial Covers are required for each socket.
Section Wiring and Connections 3-5-3 Connecting Input Devices Wire inputs to the CPM2B CPU Board and Expansion I/O Boards as shown in the following diagrams. Note When equipment must conform to the EC Directives (Low-voltage Directives), use a power supply with double insulation or reinforced insulation. CPU Boards (All Models) Input Connector 19 17 15 13 11...
Page 58
Section 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 59
Section 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 60
Section Wiring and Connections Special functions for input bits IR 00003 through IR 00006 are set in DM 6628: PC Setup setting (in DM 6628) Bits in address DM 6628 Used as normal Used as interrupt Used as IR 00003 00 to 03 inputs.
Section Wiring and Connections 2. Average rectified current must be 1 A. Diode CPM2B 3-5-4 Output Wiring Relay Output Wiring Wire the outputs to the CPM2B’s CPU Board and Expansion I/O Boards as shown in the following diagrams. Don’t exceed the output capacity or the maximum common current. Refer to 2-1-3 I/O Specifications for details.
Page 62
Section Wiring and Connections CPU Boards with Sinking Transistor Outputs Output connector 19 17 15 13 11 18 16 14 12 10 8 Output capacity Max. common capacity 01000, 01001: 200 mA (30 V DC) 1.2 A/common 01002 and up: 300 mA (30 V DC) Expansion I/O Boards with Sinking Transistor Outputs Output connector...
Page 63
Section Wiring and Connections Using Pulse Outputs Use the PULS(65), SPED(––), ACC(––), PWM(––), and SYNC(––) instructions to produce pulse outputs (rather than normal outputs) from output bits IR 01000 and IR 01001. Pulse outputs are possible from CPU Boards with transistor out- puts only.
Page 64
Section 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 cur- rent such as an incandescent lamp, suppress the inrush current as shown below.
SECTION 4 Memory Areas This section describes the structure of the PC memory areas and explains how to use them. Introduction ............4-1-1 Functions .
Section 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.
Section I/O Allocation IR words that are not allocated to inputs or outputs can be used as work words. Work Bits The work bits can be used freely within the program. They can only be used with- in the program, however, and not for direct external I/O. SR Area These bits mainly serve as flags for CPM2B operation or contain present and set values for various functions.
Page 68
Section I/O Allocation CPU Board I/O Allocation CPU Board inputs are allocated input bits starting from IR 00000 and CPU Board outputs are allocated output bits starting from IR 01000. Input bits IR 00108 to IR 00111 are allocated to the CPU Board’s DIP switch inputs. 16 inputs IR 00000 to IR 00007 IR 00100 to IR 00107...
Page 69
Section I/O Allocation CPU Board and Three The following example shows the I/O allocation when three Expansion I/O Expansion I/O Boards Boards are connected to the CPU Board. CPU Board Expansion I/O Board Expansion I/O Board Expansion I/O Board (32 I/O points) (32 I/O points) (32 I/O points) (32 I/O points)
Section SR Area SR Area These bits mainly serve as flags related to CPM2A/CPM2C operation or contain present and set values for various functions. The functions of the SR area are explained in the following table. Note “Read-only” words and bits can be read as status in controller PC operation, but they cannot be written from the ladder program.
Page 71
Section SR Area Word(s) Bit(s) Function Read/ write SR 252 High-speed Counter Reset Bit Read/ write 01 to 03 Not used. Read/ Pulse Output 0 PV Reset Bit write Turn ON to clear the PV of pulse output 0. Pulse Output 1 PV Reset Bit Turn ON to clear the PV of pulse output 1.
Section AR Area Word(s) Bit(s) Function Read/ write SR 254 Read- 1-minute clock pulse (30 seconds ON; 30 seconds OFF) only 0.02-second clock pulse (0.01 second ON; 0.01 second OFF) Negative (N) Flag Turns ON when the result of a calculation is negative (leftmost bit of binary result ON.) Not used.
Page 73
Section AR Area Word(s) Bit(s) Function AR 08 00 to 03 RS-232C Port Error Code (1-digit BCD) 0: Normal completion 1: Parity error 2: Frame error 3: Overrun error RS-232C Communications Error Flag Turns ON when an RS-232C port communications error occurs. RS-232C Transmit Ready Flag Turns ON when the PC is ready to transmit data.
Page 74
Section 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 75
Section AR Area Word(s) Bit(s) Function AR 13 Power-up PC Setup Error Flag Turns ON when there is an error in DM 6600 to DM 6614 (the part of the PC Setup area that is read at power-up). Start-up PC Setup Error Flag Turns ON when there is an error in DM 6615 to DM 6644 (the part of the PC Setup area that is read at the beginning of operation).
Section PC 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.
Section PC Setup tive, and program execution will have to be restarted to make changes in DM 6615 to DM 6644 effective. Errors in the PC Setup If an incorrect PC Setup setting is accessed, a non-fatal error (error code 9B) will be generated, the corresponding error flag (AR 1300 to AR 1302) will be turned ON, and the default setting will be used instead of the incorrect setting.
Page 78
Section PC Setup Word(s) Bit(s) Function 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. 08 to 15 RS-232C port servicing setting enable 00: 5% of the cycle time 01: Use time in bits 00 to 07.
Page 79
Section PC Setup Word(s) Bit(s) Function High-speed Counter Settings (DM 6642 to DM 6644) The following settings are effective after transfer to the PC the next time operation is started. DM 6642 00 to 03 High-speed counter mode (Effective only when bits 08 to 15 are not set to 00.) 0: Differential phase mode (5 kHz) 1: Pulse + direction input mode (20 kHz) 2: Up/down input mode (20 kHz)
Page 80
Section PC Setup Word(s) Bit(s) Function DM 6648 00 to 07 Node number (Host Link) 00 to 31 (BCD) (Any other setting specifies a node number of 00, causes a non-fatal error, and turns ON AR 1302.) 08 to 11 Start code selection for no-protocol communications 0: Disables start code;...
Section Error Log Word(s) Bit(s) Function DM 6652 00 to 15 Transmission delay (0000 to 9999 BCD sets a delay of 0 to 99,990 ms.) (Any other setting specifies a delay of 0 ms, causes a non-fatal error, and turns ON AR 1302.) DM 6653 00 to 07 Node number (Host Link) 00 to 31 (BCD)
Page 82
Section Error Log 2. In CPU Boards without a clock, the time that the error occurred will be set to all zeroes. Error Log Storage Methods The error log storage method is set in the PC Setup (bits 00 to 03 of DM 6655). Set any of the following methods.
SECTION 5 Instruction Set The CPM2B PCs have large a programming instruction set that allows for easy programming of complicated control pro- cesses. This section provides a brief summary of the instruction set. CPM2B Function Codes ........... Alphabetic List by Mnemonic .
Section 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 num- bers in the leftmost column as the left digit and the number in the column heading as the right digit of the function code.
Section 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 86
Section 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 MIN (@)
Page 87
Section 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...
Section 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 instructions to en- able 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.
SECTION 6 Using Programming Devices This section outlines the operations possible with the Programming Consoles. Using a Programming Console ..........6-1-1 Compatible Programming Consoles .
Section Using a Programming Console Using a Programming Console This section provides information on connecting and using a Programming Con- sole. 6-1-1 Compatible Programming Consoles There are two Programming Consoles that can be used with the CPM2B: The CQM1-PRO01-E and the C200H-PRO27-E. The key functions for these Pro- gramming Consoles are identical.
Page 91
Section Using a Programming Console 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. CQM1-PRO01-E Keys C200H-PRO27-E Keys PLAY RESET RESET Note To specify the AR area, use SHIFT and HR Keys for the C200H-PRO27-E and use SHIFT and AR/HR Keys for the CQM1-PRO01-E.
Section Using a Programming Console 6-1-2 Changing the CPM2B’s Mode with the Mode Switch Once the Programming Console has been connected, its mode switch can be used to change the CPM2B’s operating mode. The mode display (<PRO- GRAM>, <MONITOR>, or <RUN>) will appear on the Programming Console screen.
Section Using a Programming Console Startup Operating Mode The operating mode of the CPM2B when the power is turned ON depends upon the PC Setup setting in DM 6600 and the Programming Console’s mode switch setting if the Programming Console is connected. PC Setup setting Programming Programming Console not...
Section Using a Programming Console Panel Installation The C200H-PRO27-E Programming Console can be installed in a control panel as shown in the following diagram. (The C200H-ATT01 Mounting Bracket is sold separately.) Mounting hole dimensions Mounting Bracket (DIN43700 standards) Two screws +1.1 –0 +0.8...
Section Using a Programming Console 8. Start programming. 6-1-5 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.
Section Programming Console Operations Programming Console Operations 6-2-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 Page Clearing memory Clears all or part of the Program Memory and any data areas that are not...
Section Programming Console Operations Name Function Page Displaying the cycle time Displays the current average cycle time (scan time.) Reading and setting the clock Reads or sets the internal clock. 6-2-2 Clearing Memory This operation is used to clear all or part of the Program Memory and data areas, as well as the contents of the Programming Console’s memory.
Section Programming Console Operations 5. Press the MONTR Key to clear the specified regions of memory. 00000MEMORY CLR MONTR END HR 6-2-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.
Section Programming Console Operations 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>...
Section Programming Console Operations 6. Press the WRITE Key to assign the displayed instruction to the function code. INST TBL READ WRITE FUN018:HEX 6-2-6 Setting and Reading a Program Memory Address and Monitoring I/O Bit Status This operation is used to display the specified program memory address and is possible in any mode.
Page 101
Section Programming Console Operations The program shown in the following diagram will be entered to demonstrate this operation. 00002 Address Instruction Operands TIM 000 00200 00002 #0123 12.3 s 00201 #0123 MOV(021) 00202 MOV(021) #0100 #0100 LR 10 00203 ADB(050) ADB(050) #0100 #0100...
Page 102
Section Programming Console Operations 8. Input the third instruction and its operands. First input the instruction by pressing the FUN Key and then the function code (21 in this case). 00202 MOV (021) To input the differentiated version of an instruction, press the NOT Key after the function code (FUN 2 1 NOT).
Section Programming Console Operations • Writing an Unsigned Decimal Number 13. The first operand is input as an unsigned integer. 00203 ADB DATA A CONT SHIFT #00000 Input the value of the operand from 0 to 65535. 00203 ADB DATA A #00256 Note If an erroneous input is made, press the CLR Key to restore the status prior to the input.
Section Programming Console Operations 1, 2, 3... 1. Press the CLR Key to bring up the initial display. 2. Input the address from which the search will begin and press the Down Arrow Key. It is not necessary to input leading zeroes. 00100READ ↓...
Section Programming Console Operations 6-2-10 Inserting and Deleting Instructions This operation is used to insert or delete instructions from the program. It is pos- sible 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.
Section Programming Console Operations 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 00100...
Page 107
Section Programming Console Operations Program Read then Monitor When a program address is being displayed, the status of the bit or word in that address can be monitored by pressing the MONTR Key. 1, 2, 3... 1. Press the CLR Key to bring up the initial display. 2.
Section Programming Console Operations 4. Press the CLR Key to end monitoring. 00000 CHANNEL Note The operating mode can be changed without altering the current monitor display by holding down the SHIFT Key and then changing the operating mode. Multiple Address The status of up to six bits and words can be monitored simultaneously, although Monitoring only three can be shown on the display at any one time.
Section Programming Console Operations 2. To specify up-differentiation monitoring, press the SHIFT and then the Up Arrow Key. The symbols “U@” will appear. L000000001H0000 ↑ SHIFT U@OFF^ OFF^ OFF Indicates waiting for the bit to turn ON. To specify down-differentiation monitoring, press the SHIFT and then the Down Arrow Key.
Section Programming Console Operations 3. Press the CLR Key to end binary monitoring and return to the normal moni- toring display. c010 0000 6-2-15 Three-Word Monitor This operation is used to monitor the status of three consecutive words. It is possible in any mode.
Section Programming Console Operations At this point, the contents of the displayed word can be changed with a signed-decimal input. Refer to 6-2-22 Signed Decimal Data Modification. 3. Press the CLR Key or the SHIFT+TR Keys to end the unsigned decimal dis- play and return to normal monitoring.
Section Programming Console Operations (Input the new value and press the WRITE Key to write the changes in memory if no more changes will be made.) 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.
Section Programming Console Operations 3. Press the Down Arrow, CHG, and then the EXT Key. 00201DATA ? U/D ↓ T000 #0123 #0123 The constant on the left is the old SV and the constant on the right will be- come the new SV constant in step 5. 4.
Section Programming Console Operations Caution Before changing the contents of I/O memory, be sure that the changes will not cause equipment to operate unexpectedly or dangerously. In particular, take care when changing the status of output bits. The PC continues to refresh I/O bits even if the PC is in PROGRAM mode, so devices connected to output points on the CPU Board or Expansion I/O Boards may operate unexpectedly.
Section Programming Console Operations 1, 2, 3... 1. Monitor (signed decimal) the status of the word for which the present value is to be changed. D0200 00016 (Signed decimal monitor) 2. Press the CHG Key to begin decimal data modification. PRES VAL? D0200 00016 3.
Section Programming Console Operations 6-2-24 Force Set, Reset This operation is used to force bits ON (force set) or OFF (force reset) and is useful when debugging the program or checking output wiring. It is possible in MONITOR or PROGRAM mode only. MONITOR PROGRAM Caution...
Section Programming Console Operations 1, 2, 3... 1. Press the CLR Key to bring up the initial display. 2. Press the SET and then the RESET Key. A confirmation message will ap- pear. 00000FORCE RELE? RESET Note If you mistakenly press the wrong key, press CLR and start again from the beginning.
Section Programming Example 6-2-28 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 Set clock...
Page 119
Section Programming Example 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 CNT DM 4.
Section Programming Example 6-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.
Section Programming Example 6-3-3 Programming Procedures The example program will be written to the CPM2B according to the mnemonic list in 6-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 Manual for details on correcting the error.
Page 122
Section Programming Example 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.
Section Programming Example 2. Press the SRCH Key. An input prompt will appear requesting the desired check level. 00000PROG CHK SRCH CHK LBL (0 2)? 3. Input the desired check level (0, 1, or 2). The program check will begin when the check level is input, and the first error found will be displayed.
Page 125
SECTION 7 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 PC operation. Initial System Checks and Test Run Procedure .
Section CPM2B Test Run Procedure Initial System Checks and Test Run Procedure 7-1-1 Initial System Checks Check the following items after setting up and wiring the CPM2B, but before per- forming a test run. Item Points to check Power supply and Is the wiring correct? I/O connections Are the terminals securely tightened?
Section Self-diagnostic Functions d) Use a Programming Device to set the CPM2B to PROGRAM mode. 2. I/O Wiring Checks a) With the CPM2B in PROGRAM mode, check the output wiring by turning on the output bits with the force set and force reset operations. b) Check the input wiring with the CPM2B’s input indicators or a Program- ming Device’s monitor operations.
Section Self-diagnostic Functions 7-3-2 User-defined Errors There are three instructions that can be used to define errors or messages. FAL(06) causes a non-fatal error, FAL(07) causes a fatal error, and MSG(46) sends a message to the Programming Console or host computer connected to the PC.
Section Self-diagnostic Functions 7-3-4 Fatal Errors PC operation and program execution will stop and all outputs from the PC will be turned OFF when any of these errors have occurred. CPM2B operation can’t be restarted until the PC is turned off and then on again or a Programming Device is used to switch the PC to PROGRAM mode and clear the fatal error.
Section Troubleshooting Flowcharts Troubleshooting Flowcharts Use the following flowcharts to troubleshoot errors that occur during operation. Main Check Error PWR indicator lit? Check power supply. (See page 119.) Operation stopped. Check for fatal errors. RUN indicator lit? (See page 120.) Flashing ERR indicator Check for non-fatal errors.
Page 131
Section Troubleshooting Flowcharts Power Supply Check PWR indicator not lit. Connect power Is power being supplied? supply. Is PWR indicator lit? Set supply voltage Is voltage adequate? within acceptable limits. Is PWR indicator lit? Tighten screws or Are there any loose replace wires.
Page 132
Section Troubleshooting Flowcharts Fatal Error Check RUN indicator not lit. Is the ERR indi- cator lit? Determine the cause Is PC mode displayed of the error with a on Programming Device? Programming Device. Is PC mode displayed on Turn the power Programming Device? supply OFF, and then ON again.
Page 133
Section Troubleshooting Flowcharts Non-fatal Error Check ERR indicator flashing. Determine the cause of the error with a Programming Device. Identify the error, eliminate its Is a non-fatal error indicated? cause, and clear the error. Flashing Is the ERR indicator flashing? Not lit Replace the CPU Board.
Page 134
Section 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 135
Section 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 136
Section 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.
Section Maintenance Inspections 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-...
Section Battery Replacement The standard period for maintenance checks is 6 months to 1 year, but more fre- quent checks are required if the PC is operated in more demanding conditions. If the criteria are not met, adjust to within the specified ranges. Inspection items Details Criteria...
Page 139
Section Battery Replacement 2. Disconnect the battery connector and remove the battery. 3. Install the new battery. Check the alignment of the connector and fully insert the connector. Make sure that the power wires are not pinched. 4. Enable the detection of battery errors in the PC Setup by setting the leftmost digit of DM 6655 to 0.
Page 140
Appendix A Standard Models CPU Boards Appearance Relay outputs Transistor outputs Internal clock. Number of Number of (sinking) RS-232C port, inputs outputs and battery 16 points 16 points CPM2B-32C1DR-D CPM2B-32C2DR-D CPM2B-32C1DT-D CPM2B-32C2DT-D Accessories: Four studs, four M3 screws Expansion I/O Boards Appearance Relay outputs Transistor outputs...
Appendix A Standard Models I/O Connectors Appearance Model Name XG5M-2032-N Socket (for AWG 24 wire) XG5M-2035-N Socket (for AWG 26 to AWG 28 wire) XG5S-2012 Full Cover (two are required for each socket) XG5S-1001 Partial Cover (two are required for each socket) XG4M-2030 Socket XG4T-2004...
Page 142
Appendix A Standard Models Maintenance Accessories Appearance Model Number Name Specifications C500-BAT08 Backup Battery CPM1-EMU01-V1 Expansion Memory Unit Uploads the ladder program and DM 6144 to DM 6655 from the PC to the EEPROM and downloads the ladder program and DM 6144 to DM 6655 from the EEPROM to the PC.
Appendix B Dimensions All dimensions are in millimeters. CPU Boards and Expansion I/O Boards Mounting Bracket (CPM2B-ATT01) Six 3.5 dia. Four 4.5 dia.
Page 144
Appendix B Dimensions Assembly Dimensions Front view Side view CPU Board Expansion I/O Board Mounting Bracket...
Page 145
Index Numbers data, modifying, Programming Console, 99–100, 101, 102, 103 1:N connections, 10 data link, 5, 12 date. See clock decimal data with sign. See signed decimal data arc killer, examples, xvii decimal data without sign. See unsigned decimal data dielectric strength, 22 ASCII, converting displays, Programming Console, 105 differentiated instructions, entering, 90...
Page 146
Index features, 2 flash memory, precautions, 114 maintenance, 125 flicker output, example, 111 memory force-set/reset backup, 24 clearing, Programming Console, 104 protection, 24 Programming Console, 104 memory areas AR area bits, CPM2A/CPM2C, 60 function codes clearing, Programming Console, 85 expansion instructions, 76 flags and control bits, CPM2A/CPM2C, 58 reading and changing expansion instruction assignments, 87 partial clear, 85...
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-1 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.