Cat.No.
SYSMAC CPM2B Programmable Controller Operation Manual Produced February 2000
Notice: OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual. The following conventions are used to indicate and classify precautions in this manual. Always heed the information provided with them. Failure to heed precautions can result in injury to people or damage to property. DANGER Indicates an imminently hazardous situation which, if not avoided, will result in death or serious injury.
TABLE OF CONTENTS PRECAUTIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 General Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Safety Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
TABLE OF CONTENTS SECTION 7 Test Runs and Error Processing . . . . . . . . . . . . . . . . . . . . 7-1 7-2 7-3 7-4 7-5 7-6 Initial System Checks and Test Run Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . CPM2B Test Run Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Self-diagnostic Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting Flowcharts . . .
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 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).
PRECAUTIONS This section provides general precautions for using the Programmable Controller (PC) and related devices. The information contained in this section is important for the safe and reliable application of the Programmable Controller. You must read this section and understand the information contained before attempting to set up or operate a PC system. 1 Intended Audience . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Safety Precautions 1 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. • Personnel in charge of managing FA systems and facilities. 2 General Precautions The user must operate the product according to the performance specifications described in the operation manuals.
5 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 countermeasure for such errors, external safety measures must be provided to ensure safety in the system.
5 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. Always heed these precautions.
6 EC Directives • Changing the operating mode of the PC. • Force-setting/force-resetting any bit in memory. • Changing the present value of any word or any set value in memory. • Resume operation only after transferring to the new CPU board the contents of the DM and HR Areas required for resuming operation. Not doing so may result in an unexpected operation. • Do not pull on the cables or bend the cables beyond their natural limit. Doing either of these may break the cables.
6 EC Directives 6-3 Conformance to EC Directives The CPM2B PCs comply with EC Directives. To ensure that the machine or device in which the CPM2B PC is used complies with EC directives, the PC must be installed as follows: 1, 2, 3... 6-4 1. The CPM2B PC must be installed within a control panel. 2. Reinforced insulation or double insulation must be used for the DC power supplies used for the communications and I/O power supplies. 3.
6 EC Directives Countermeasure Examples When switching an inductive load, connect a surge protector, diodes, etc., in parallel with the load or contact as shown below. Circuit Current AC Power supply Yes Yes Inductive load CR method Characteristic Required element If the load is a relay or solenoid, there is a time lag between the moment the circuit is opened and the moment the load is reset. The capacitance of the capacitor must be 1 to 0.
SECTION 1 Introduction This section describes the CPM2B’s special features and functions, shows the possible system configurations, and outlines the steps required before operation. Read this section first when using the CPM2B for the first time. Refer to the CPM1/CPM1A/CPM2A/CPM2C/SRM1(-V2) Programming Manual (W353) for details on programming. 1-1 1-2 1-3 CPM2B Features and Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1-1 CPM2B Features . . . . .
Section CPM2B Features and Functions 1-1 1-1 CPM2B Features and Functions 1-1-1 CPM2B Features The CPM2B PCs are compact Board PCs that can be incorporated easily into control equipment. The PCs are equipped with a variety of advanced features including synchronized pulse control, interrupt inputs, high-speed counters, pulse outputs, and a clock function. • The compact Board design is ideal for incorporation into control equipment.
Section CPM2B Features and Functions 1-1 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 Interrupts The CPM2B has a total of five high-speed counter inputs.
Section CPM2B Features and Functions 1-1 TO HOURS conversion instruction (HMS(––)), the long-term timer provides an easy way to control equipment scheduling. Expansion Memory Unit The CPM1-EMU01-V1 Expansion Memory Unit is a program loader for smallsize or micro PCs. Using the CPM1-EMU01-V1, simple on-site transfer of user programs and data memory is possible with PCs. Peripheral port CPM2C-CN111 (0.1 m) (See note 2.) Expansion Memory Unit EEPROM CS1W-CN114 (0.
Section CPM2B Features and Functions 1-1 from a bar code reader or transmitted to a serial printer. The serial devices can be connected to the RS-232C port or Peripheral port. Inputting data from a bar code reader CPM2B Bar code reader Outputting data to a serial printer Serial printer High-speed 1:1 NT Link Communications CPM2B In a 1:1 NT Link, an OMRON Programmable Terminal (PT) can be connected directly to the CPM2B.
Section System Configurations Main function High-speed counters Variations/Details High-speed counter 1 input, see note 2. No interrupt Differential phase mode (5 kHz) Pulse plus direction input mode (20 kHz) Up/down input mode (20 kHz) Increment mode (20 kHz) Interrupt inputs in counter mode 4 inputs, see note 1. Count-check interrupt (An interrupt can be generated when the count equals the set value or the count lies within a preset range.
Section System Configurations CPU Board 32 I/O points (16 inputs, 16 outputs) Inputs Outputs Battery 16 inputs, 24 V DC 16 relay outputs (Terminal-block) 16 inputs, 24 V DC 16 sinking transistor outputs (Connector) --Yes --Yes Clock --Yes --Yes RS-232C port --Yes --Yes 1-2 Model CPM2B-32C1DR-D CPM2B-32C2DR-D CPM2B-32C1DT-D CPM2B-32C2DT-D 1-2-2 Expansion I/O Boards Up to 3 Expansion I/O Boards can be connected to the CPU Board.
Section System Configurations 1-2 1-2-3 Connecting a Programming Console A Programming Console can be connected to the CPM2B CPU Board’s peripheral port, as shown below. CS1W-CN114 Connecting Cable (0.05 m) SW201 (See note 1.) Peripheral port Attached cable (2 m) Peripheral port connector CQM1-PRO01-E C200H-CN222 (2 m) or C200H-CN422 (4 m) Connecting Cable CPM2C-CN111 Connecting Cable (0.1 m) (See note 2.
Section System Configurations 1-2 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 communications or no-protocol (serial) communications. RS-232C Port Connection Peripheral Port Connection IBM PC/AT or compatible computer IBM PC/AT or compatible computer Connecting Cable XW2Z-200S-V (2 m) XW2Z-500S-V (5 m) CQM1-CIF02 (3.3 m) CS1W-CN114 (0.
Section System Configurations 1-2 1-2-6 One-to-N Computer Connections Up to 32 OMRON PCs, including CPM2B PCs, can be connected to a host computer. Using the RS-232C Port Connecting Cable 3G2A9-AL004-E or NT-AL001-E (requires +5 V) (See notes 1 and 2.) XW2Z-j00S-V RS-422 (Total length: 500 m max.) NT-AL001-E (See note 1.) NT-AL001-E (See note 1.) IBM PC/AT or compatible computer CPM2B CPU Board CPM2B CPU Board NT-AL001-E (See note 1.
Section System Configurations 1-2 1-2-7 OMRON PT Connections In a 1:1 NT Link, a CPM2B can be connected directly to a Programmable Terminal through the RS-232C port. (The Programmable Terminal cannot be connected directly to the peripheral port.) An OMRON PT can also be connected to the CPM2B with a host link connection. Either the RS-232C port or peripheral port can be used for a host link connection.
Section System Configurations 1-2 1-2-8 One-to-one PC Link Connections A CPM2B can be linked to another CPM2B, a CQM1, CPM1, CPM1A, CPM2A, CPM2C, SRM1 (-V2) or a C200HS or C200HX/HG/HE PC. The PCs must be connected through the RS-232C ports; they cannot be connected through the Peripheral ports.
Section Structure and Operation 1-3 1-3 Structure and Operation 1-3-1 CPU Board Structure The following diagram shows the internal structure of the CPU Board. PC Setup Program Output circuits External input devices Input circuits I/O memory External output devices Settings Settings RS-232C port Peripheral port I/O Memory Settings Communications switch The program reads and writes data in this memory area during execution.
Section Structure and Operation 1-3 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.
Section Structure and Operation 1-3 1-3-4 PC Operation at Startup Time Required for Initialization The time required for startup initialization depends on several factors, such as the operating conditions (including power supply voltage, system configuration, and ambient temperature) and the program contents. Power OFF Operation Minimum Power Supply Voltage The PC will stop and all outputs will be turned OFF if the power supply voltage falls below 85% of the rated value.
Section Structure and Operation 1-3 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). S Check hardware. Startup initialization S Check memory. S Read data from flash memory (program, read-only DM data, and PC Setup settings). S Check for battery error.
Section Structure and Operation 1-3 The cycle time will vary slightly depending on the processing being performed in each cycle, so the calculated cycle time will not always match the actual cycle time. Program Execution in Cyclic Operation The following diagram shows the cyclic operation of the CPM2B when the program is being executed normally.
Section Structure and Operation Interrupt Program Execution 1-3 When an interrupt is generated during execution of the main program, main program execution is interrupted immediately and the interrupt program is executed. The following diagram shows the cyclic operation of the CPM2B when an interrupt program is executed.
Section Structure and Operation 1-3 When IORF(97) is used, the cycle time is extended by the time required to refresh the specified I/O words. Overseeing processes Main program IORF(97) executed.
SECTION 2 Board Specifications and Components This section provides the technical specifications of the CPM2B Boards and describes the main components of the Boards. 2-1 2-2 2-3 Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1-1 General Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-1-2 Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Section Specifications 2-1 2-1 Specifications 2-1-1 General Specifications CPU Boards Item With relay outputs Supply voltage Expansion I/O Boards With transistor outputs With relay outputs With transistor outputs Supplied from CPU Board. Power consumption 24 V DC (Allowable range: 20.4 to 26.4 V DC) 20 W max. Inrush current 20 A max. --- Insulation resistance 20 MΩ min.
Section Specifications 2-1 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).
Section Specifications Item 2-1 CPU Boards With relay outputs Synchronized pulse control With transistor outputs 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. (This output is possible with transistor outputs only, it cannot be used with relay outputs.
Section Specifications 2-1 2-1-3 I/O Specifications CPU Board Input Specifications Item Input voltage Input impedance Inputs Specification 24 V DC +10%/–15% All OFF voltage/current IN00000 IN00002 IN00007 IN00000 IN00002 IN00007 IN00000 IN00002 All ON delay All 1 to 80 ms max. Default: 10 ms (See note.) OFF delay Circuit configuration All 1 to 80 ms max. Default: 10 ms (See note.
Section Specifications 2-1 Input voltage 26.4 V DC 16 14 0 10 20 30 40 Max. number of inputs ON at the same time Max. number of inputs ON at the same time 2. Installation orientation: Vertical with end down Input voltage 24 V DC 16 14 50 55 (°C) 0 10 20 30 40 49 50 55 (°C) 49 Input voltage 26.4 V DC 16 Input voltage 24 V DC Max. number of inputs ON at the same time Max. number of inputs ON at the same time 3.
Section Specifications Interrupt Inputs 2-1 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 Input voltage 24 V DC +10%/–15% Input impedance 4.7 kΩ Input current 5 mA typical ON voltage 14.4 V DC min. OFF voltage 5.0 V DC max. ON delay 1 to 80 ms max. Default: 10 ms (See note.
Section Specifications 2-1 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, τ = 7 ms 120 V AC, cosφ = 0.4 240 V AC, cosφ = 0.4 24 V DC/240 V AC, resistive load Life (x 104) Switching rate: 1,800 times/hour Contact current (A) Transistor Outputs (Sinking or Sourcing) Item Specification Max.
Section Board Components and their Functions 2-2 2-2 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. Peripheral port 4. PC status indicators 5. Input indicators 12. Expansion I/O connector 6. Output indicators 3. Output terminals 1. Power supply terminals 13. Battery CPU Boards with Transistor Outputs 9.
Section Board Components and their Functions 2-2 CPU Board Component Descriptions 1, 2, 3... 1. Power Supply Terminals Connect the power supply (24 V DC) to these terminals. 2. Input Connector Connects the CPU Board to external input devices. 3. Output Terminals/Connector Connects the CPU Board to external output devices. 4. PC Status Indicators These indicators show the operating status of the PC, as shown in the following table.
Section Board Components and their Functions 2-2 9. Communications Switches SW201 and SW202 The Communications Switches control the communications settings for the peripheral port and RS-232C port. SW201 ON OFF OFF (OFF when shipped.) Switch settings SW202 ON (OFF when shipped.) Peripheral port communications RS-232C port communications SW202 SW201 OFF OFF Programming Console connection The settings in the PC Setup (DM 6645 to OFF ON Other Programming Device: DM 6649) are used.
Board Components and their Functions Section 2-2 2-2-2 Expansion I/O Boards Expansion I/O Boards with Relay Outputs 1. Input connector 3. Input indicators 5. Expansion I/O connector 4. Output indicators 2. Output terminals Expansion I/O Boards with Transistor Outputs 1. Input connector 3. Input indicators 5. Expansion I/O connector 4. Output indicators 2. Output connector 1, 2, 3... 32 1. Input Connector Connects the Expansion I/O Board to external input devices. 2.
Section I/O Connector and Terminal Pin Allocation 2-3 Note Do not touch the cables during operation to prevent unexpected operation due to static discharge.
Section I/O Connector and Terminal Pin Allocation 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 19 11 10 09 08 COM 03 02 01 00 COM 1 20 15 14 13 12 NC 07 06 05 04 NC 2 Inputs (24 V DC) Expansion I/O Board with relay outputs Expansion I/O Board with transistor outputs Sinking transistor outputs Relay outputs Expansion I/O Board #1: IR 012 Expansion I/O Board #2: IR 013 Expansion I/O Board #3: IR 014 1 00 01 02 03 COM 04 0
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. 3-1 3-2 3-3 3-4 3-5 Design Precautions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1-1 Power Supply Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Section Selecting an Installation Site 3-1 3-2 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 protectors and fuses.
Section Selecting an Installation Site ! Caution 3-2 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. • Locations subject to direct sunlight. • Locations subject to an ambient temperature below 0°C or over 55°C. • Locations subject to an ambient humidity below 10% or over 90%.
Section Assembling the CPM2B Boards Accessibility 3-3 3-3 Ensure that the CPM2B can be accessed for normal operation and maintenance. High-voltage equipment, power lines, and moving machinery could be dangerous if they are in the way during routine operations. Assembling the CPM2B Boards Board Assembly Up to 3 Expansion I/O Boards can be connected to a CPM2B CPU Board. The following diagram shows how to assemble the Boards.
Section Installing the CPM2B 3-4 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 I/O Board The cable from the CPU Board connects to the upper Expansion I/O Connector (the one with the short locks.) Expansion I/O Cable (included with the Expansion I/O Board) Install the shorter connector of the cable in the lower Board and the longer connector in the upper Board. 2.
Section Wiring and Connections 3-5 Example Installations Mounting Bracket Screw and nut installation Note Screw and tapped panel installation 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. Refer to Appendix B for mounting dimensions. 3.
Section Wiring and Connections 3-5 Conduits Separate the CPM2B I/O lines, power and control lines, and power cables, as shown in the following diagram. Control cables and CPM2B I/O lines CPM2B power lines Power cables 3-5-1 Power Supply Wiring The power supply terminal specifications are shown below. Supply the power supply terminals with 24 V DC. 24 V DC (Not connected) 0V Terminal Specifications Item Compatible Wires and Terminals Specifications Screw size M3 Recommended torque 0.5 to 0.
Section Wiring and Connections 3-5 3-5-2 I/O Wiring Procedures Removing and Wiring I/O Terminal Blocks The following tables provide output terminal block specifications. CPU Boards and Expansion I/O Boards with relay outputs Output terminal blocks Terminal Block Specifications Item Recommended Wire and Terminals Specification Screw size M3 Recommended tightening torque 0.5 to 0.6 NSm Recommended screwdriver: OMRON XW4E-00C Item Specification mm2 (AWG Solid wire 0.2 to 2.
Section Wiring and Connections 3-5 2. Pull the terminal block out of the Board. 3. Insert each lead wire into the terminal block and tighten that terminal’s screw. 4. After wiring the terminal block, insert the block into the Unit and tighten the screws at the left and right sides of the terminal block. Removing and Wiring I/O Connectors The following tables provide specifications of compatible OMRON I/O connectors.
Section Wiring and Connections 3-5 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-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.
Section Wiring and Connections Input Devices 3-5 The following table shows how to connect various input devices. Device Circuit diagram Relay output IN 5 mA/6 mA/8 mA CPM2B COM (+) NPN open collector Sensor power supply Output IN CPM2B 5 mA/6 mA/8 mA COM (+) 0V Use the same power supply for the input and sensor.
Section Wiring and Connections 3-5 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.
Section Wiring and Connections 3-5 Special functions for input bits IR 00003 through IR 00006 are set in DM 6628: Bit address Bits in DM 6628 IR IR IR IR 00 to 03 04 to 07 08 to 11 12 to 15 00003 00004 00005 00006 PC Setup setting (in DM 6628) 0 Used as normal inputs. 1 Used as interrupt inputs (including counter mode). 2 Used as quick-response inputs.
Section Wiring and Connections 3-5 2. Average rectified current must be 1 A. IN Diode CPM2B COM 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. ! WARNING The PC outputs may remain ON or OFF due to fusing or burning of the output relays or destruction of the output transistors.
Section Wiring and Connections CPU Boards with Sinking Transistor Outputs Output connector L COM 01103 01102 L L L L L L Output capacity L COM 01107 COM L 01106 2 01105 1 4 01104 3 6 01007 5 01006 7 8 01005 9 20 18 16 14 12 10 01004 19 17 15 13 11 L 01101 COM L 01100 L 01003 L 01002 L 01001 01000 L L Max. common capacity 01000, 01001: 200 mA (30 V DC) 01002 and up: 300 mA (30 V DC) 1.
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 outputs only.
Section Wiring and Connections 3-5 The diode should satisfy the following requirements: Peak reverse-breakdown voltage must be at least 3 times the load voltage. Average rectified current must be 1 A. Inrush Current Considerations When a relay or transistor output is used to switch a load with a high inrush current such as an incandescent lamp, suppress the inrush current as shown below. Countermeasure 1 OUT Countermeasure 2 R OUT R COM Providing a dark current of approx.
SECTION 4 Memory Areas This section describes the structure of the PC memory areas and explains how to use them. 4-1 4-2 4-3 4-4 4-5 4-6 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1-1 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I/O Allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Section Introduction 4-1 4-1 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 4-2 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 within 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. SR 253 to SR 255 are read-only. Refer to 4-3 SR Area for details on the various bit functions.
Section I/O Allocation CPU Board I/O Allocation 4-2 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.
Section I/O Allocation CPU Board and Three Expansion I/O Boards The following example shows the I/O allocation when three Expansion I/O Boards are connected to the CPU Board.
Section SR Area 4-3 4-3 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. Bits and words that are “Not used” are also read-only.
Section SR Area Word(s) SR 252 Bit(s) 00 High-speed Counter Reset Bit 01 to 03 04 Not used. Pulse Output 0 PV Reset Bit 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. Not used. Peripheral Port Reset Bit Turn ON to reset the peripheral port. Automatically turns OFF when reset is complete. RS-232C Port Reset Bit Turn ON to reset the RS-232C port. Automatically turns OFF when reset is complete.
Section AR Area Word(s) SR 254 Bit(s) 00 01 02 03 04 05 06 07 08 to 15 SR 255 00 01 02 03 04 05 06 07 08 to 15 Function 1-minute clock pulse (30 seconds ON; 30 seconds OFF) 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. Overflow (OF) Flag Turns ON when an overflow occurs in a signed binary calculation.
Section AR Area Word(s) AR 08 Bit(s) Function 00 to 03 RS-232C Port Error Code (1-digit BCD) 0: Normal completion 1: Parity error 2: Frame error 3: Overrun error 04 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. (No-protocol and Host Link only) RS-232C Reception Completed Flag Turns ON when the PC has completed reading data.
Section AR Area Word(s) AR 11 Bit(s) 00 to 07 (Note 1) 08 AR 12 (Note 1) 62 Function High-speed Counter Range Comparison Flags 00 ON: Counter PV is within comparison range 1 01 ON: Counter PV is within comparison range 2 02 ON: Counter PV is within comparison range 3 03 ON: Counter PV is within comparison range 4 04 ON: Counter PV is within comparison range 5 05 ON: Counter PV is within comparison range 6 06 ON: Counter PV is within comparison range 7 07 ON: Counter PV is within comparison range 8 Hi
Section AR Area Word(s) AR 13 Bit(s) 4-4 Function 00 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). 01 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). 02 RUN PC Setup Error Flag Turns ON when there is an error in DM 6645 to DM 6655 (the part of the PC Setup area that is always read).
Section PC Setup Word(s) AR 21 Bit(s) 00 to 07 (Note 2) 08 to 12 13 14 15 AR 22 00 to 15 AR 23 00 to 15 Function Day of the Week (00 to 06, BCD) 00: Sunday 01: Monday 02: Tuesday 04: Thursday 05: Friday 06: Saturday 03: Wednesday Not used. 30-second Compensation Bit Turn this bit ON to round off to the nearest minute. When the seconds are 00 to 29, the seconds are cleared to 00 and the rest of the time setting is left unchanged.
Section PC Setup 4-5 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.
Section PC Setup Word(s) DM 6616 Bit(s) 4-5 Function 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. DM 6617 00 to 07 Servicing time for peripheral port (Effective when bits 08 to 15 are set to 01.) 00 to 99 (BCD): Percentage of cycle time used to service peripheral.
Section PC Setup Word(s) Bit(s) 4-5 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.
Section PC Setup Word(s) DM 6648 Bit(s) 4-5 Function 00 to 07 Node number (Host Link) 00 to 31 (BCD) 08 to 11 (Any other setting specifies a node number of 00, causes a non-fatal error, and turns ON AR 1302.) Start code selection for no-protocol communications 0: Disables start code; 1: Enables start code in DM 6649 (Any other setting disables the start code, causes a non-fatal error, and turns ON AR 1302.
Section Error Log Word(s) Bit(s) 4-6 Function DM 6652 00 to 15 Transmission delay (0000 to 9999 BCD sets a delay of 0 to 99,990 ms.) DM 6653 (Any other setting specifies a delay of 0 ms, causes a non-fatal error, and turns ON AR 1302.) 00 to 07 Node number (Host Link) 00 to 31 (BCD) 08 to 11 (Any other setting specifies a node number of 00, causes a non-fatal error, and turns ON AR 1302.
Section Error Log 4-6 2. In CPU Boards without a clock, the time that the error occurred will be set to all zeroes. Error Log Storage Methods The error log storage method is set in the PC Setup (bits 00 to 03 of DM 6655). Set any of the following methods. 1, 2, 3... 1. DM 6655 bits 00 to 03 set to 0: Stores the most recent 7 error log records and discard older records. This is achieved by shifting the records as shown below so that the oldest record (record 0) is lost whenever a new record is generated.
SECTION 5 Instruction Set The CPM2B PCs have large a programming instruction set that allows for easy programming of complicated control processes. This section provides a brief summary of the instruction set. 5-1 5-2 5-3 CPM2B Function Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Alphabetic List by Mnemonic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Expansion Instructions . . . . . . . . . . . .
Section CPM2B Function Codes 5-1 5-1 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 column heading as the right digit of the function code.
Section Alphabetic List by Mnemonic 5-2 5-2 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.
Section Alphabetic List by Mnemonic Mnemonic 74 Code Words Name INC (@) 38 2 INCREMENT INI (@) 61 4 MODE CONTROL INT (@) 89 4 INTERRUPT CONTROL IORF (@) 97 3 I/O REFRESH JME 05 2 JUMP END JMP 04 2 JUMP KEEP 11 2 KEEP LD None 1 LOAD LD NOT None 1 LOAD NOT MAX (@) –– 4 FIND MAXIMUM MCRO (@) 99 4 MACRO MIN (@) –– 4 FIND MINIMUM MLB (@) 52 4 BINARY MULTIPLY MLPX (@) 76 4 4-TO-16 DECODER MOV (@) 21 3 MOVE MOVB (@) 82 4 MOVE BIT MOVD (@) 83 4
Section Alphabetic List by Mnemonic Mnemonic Code Words 5-2 Name SLD (@) 74 3 ONE DIGIT SHIFT LEFT SNXT 09 2 STEP START SPED (@) 64 4 SPEED OUTPUT SRCH (@) –– 4 DATA SEARCH SRD (@) 75 3 ONE DIGIT SHIFT RIGHT STC (@) 40 1 SET CARRY STEP 08 2 STEP DEFINE STIM (@) 69 4 INTERVAL TIMER STUP –– 3 CHANGE RS-232C SETUP SUB (@) 31 4 BCD SUBTRACT SUBL (@) 55 4 DOUBLE BCD SUBTRACT SUM (@) –– 4 SUM SYNC (@) –– 4 SYNCHRONIZED PULSE CONTROL TCMP (@) 85 4 TABLE
Section Expansion Instructions 5-3 5-3 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 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.
SECTION 6 Using Programming Devices This section outlines the operations possible with the Programming Consoles. 6-1 6-2 6-3 Using a Programming Console . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1-1 Compatible Programming Consoles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1-2 Changing the CPM2B’s Mode with the Mode Switch . . . . . . . . . . . . . . . . . . . . . 6-1-3 Connecting the Programming Console . . . . . . . . . .
Section Using a Programming Console 6-1 6-1 Using a Programming Console This section provides information on connecting and using a Programming Console. 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 Programming Consoles are identical. Press and hold the Shift Key to input a letter shown in the upper-left corner of the key or the upper function of a key that has two functions.
Section Using a Programming Console Different Keys 6-1 The following keys are labeled differently on the CQM1-PRO01-E and the C200H-PRO27-E, but the operation of the keys in each pair is identical. CQM1-PRO01-E Keys C200H-PRO27-E Keys AR HR HR PLAY SET SET REC RESET RESET 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 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 (, , or ) will appear on the Programming Console screen. • No key operations can be performed while the mode display is displayed on the Programming Console screen. Press CLR to clear the display so that key operations can be performed.
Section Using a Programming Console Startup Operating Mode 6-1 The operating mode of the CPM2B when the power is turned ON depends upon the PC Setup setting in DM 6600 and the Programming Console’s mode switch setting if the Programming Console is connected. PC Setup setting (DM 6600) 00xx 0200 Programming Console not connected RUN mode if no Programming Device is connected. PROGRAM mode if another Programming Device is connected.
Section Using a Programming Console Panel Installation 6-1 The C200H-PRO27-E Programming Console can be installed in a control panel as shown in the following diagram. (The C200H-ATT01 Mounting Bracket is sold separately.) Mounting hole dimensions (DIN43700 standards) Mounting Bracket Two screws 186 +1.1 –0 Panel thickness: 1.0 to 3.2 mm 92 +0.8 –0 Allow at least 80 mm for the cable connector above the Programming Console. 37 15 At least 80 mm is required. Either connector may be used.
Section Using a Programming Console 6-1 8. Start programming. 6-1-5 Entering the Password To gain access to the PC’s programming functions, you must first enter the password. The password prevents unauthorized access to the program. The PC prompts you for a password when PC power is turned on or, if PC power is already on, after the Programming Console has been connected to the PC. To gain access to the system when the “Password!” message appears, press CLR and then MONTR.
Section Programming Console Operations 6-2 6-2 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 Clearing memory Function Page Clears all or part of the Program Memory and any data areas that are not read-only, as well as the contents of the Programming Console’s memory.
Section Programming Console Operations Name Function Displaying the cycle time 6-2 Page Displays the current average cycle time (scan time.) Reading and setting the clock Reads or sets the internal clock. 105 106 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. This operation is possible in PROGRAM mode only.
Section Programming Console Operations 6-2 5. Press the MONTR Key to clear the specified regions of memory. MONTR 00000MEMORY CLR END HR DM 6-2-3 Reading/Clearing Error Messages This operation is used to display and clear error messages. It is possible to display and clear non-fatal errors and MESSAGE instruction messages in any mode, but fatal errors can be cleared in PROGRAM mode only.
Section Programming Console Operations Key Sequence 6-2 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. CLR SHIFT CLR BZ 2. Press the SHIFT and then the 1 Key to turn off the buzzer. SHIFT B 1 The buzzer will not sound when “BZ” is not displayed. 3.
Section Programming Console Operations 6-2 6. Press the WRITE Key to assign the displayed instruction to the function code. WRITE INST TBL READ 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. In the RUN or MONITOR mode, the I/O bit status of bits in the program will be displayed.
Section Programming Console Operations 6-2 The program shown in the following diagram will be entered to demonstrate this operation. 00002 Address TIM 000 #0123 12.3 s Instruction 00200 00201 LD TIM 00202 MOV(021) Operands IR 00002 000 #0123 MOV(021) #0100 #0100 10 LR 10 LR 00203 ADB(050) ADB(050) #0100 #FFF6 DM 0000 #0100 #FFF6 DM 0000 1, 2, 3... 1. Press the CLR Key to bring up the initial display. 2. Specify the address where the program will begin. 3.
Section Programming Console Operations 6-2 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). FUN C 2 B 1 00202 MOV (021) To input the differentiated version of an instruction, press the NOT Key after the function code (FUN 2 1 NOT). The “@” symbol will be displayed next to differentiated instructions. Press the NOT Key again to change back the instruction back to a non-differentiated instruction.
Section Programming Console Operations 6-2 • Writing an Unsigned Decimal Number 13. The first operand is input as an unsigned integer. CONT SHIFT TR NOT # 00203 ADB DATA A #00000 Input the value of the operand from 0 to 65535. C 2 F 5 6 00203 ADB DATA A #00256 Note If an erroneous input is made, press the CLR Key to restore the status prior to the input. Then enter the correct input. 14. Restore the hexadecimal display.
Section Programming Console Operations 1, 2, 3... 6-2 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. B 1 A 0 A ↓ 0 00100READ TIM 001 3. Input the instruction to be found and press the SRCH Key. In this case, the search is for OUT 01000. In this case, the next OUT 01000 instruction is at address 200, as shown below.
Section Programming Console Operations 6-2 6-2-10 Inserting and Deleting Instructions This operation is used to insert or delete instructions from the program. It is possible in PROGRAM mode only. RUN MONITOR No No PROGRAM OK 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 6-2 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.
Section Programming Console Operations Program Read then Monitor 1, 2, 3... 6-2 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. Press the CLR Key to bring up the initial display. 2. Input the desired program address and press the Down Arrow Key. C 2 A 0 A ↓ 0 00200READ TIM 000 3. Press the MONTR Key to begin monitoring.
Section Programming Console Operations 6-2 4. Press the CLR Key to end monitoring. CLR 00000 CHANNEL LR 01 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 Monitoring The status of up to six bits and words can be monitored simultaneously, although only three can be shown on the display at any one time. 1, 2, 3... 1. Press the CLR Key to bring up the initial display. 2.
Section Programming Console Operations 6-2 2. To specify up-differentiation monitoring, press the SHIFT and then the Up Arrow Key. The symbols “U@” will appear. SHIFT ↑ L000000001H0000 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. The symbols “D@” will appear. SHIFT ↓ L000000001H0000 D@OFF^ OFF^ OFF 3.
Section Programming Console Operations 6-2 3. Press the CLR Key to end binary monitoring and return to the normal monitoring display. CLR 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. RUN OK 1, 2, 3... MONITOR OK PROGRAM OK 1. Monitor the status of the first of the three words according to the procedure described in 6-2-12 Bit, Digit, Word Monitor.
Section Programming Console Operations 6-2 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 display and return to normal monitoring. CLR c200 cL0020000 FFF0 0000^ OFF 6-2-17 Unsigned Decimal Monitor This operation is used to convert hexadecimal data in a word to unsigned decimal for display.
Section Programming Console Operations 6-2 (Input the new value and press the WRITE Key to write the changes in memory if no more changes will be made.) B 1 CHG 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. (In this case, it will not.
Section Programming Console Operations 6-2 3. Press the Down Arrow, CHG, and then the EXT Key. ↓ CHG EXT 00201DATA ? U/D T000 #0123 #0123 The constant on the left is the old SV and the constant on the right will become the new SV constant in step 5. 4. Press the Up and Down Arrow Keys to increment and decrement the constant on the right. (In this case the SV is incremented once.) ↓ 00201DATA ? U/D T000 #0123 #0124 5. Press the CLR Key twice to change the timer’s SV to the new value.
Section Programming Console Operations 6-2 ! 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. 1, 2, 3... 1.
Section Programming Console Operations 1, 2, 3... 6-2 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. CHG PRES VAL? D0200Ć00016 3. Input the new PV and press the WRITE Key to change the PV. The operation will end and the signed-decimal monitoring display will return when the WRITE Key is pressed. The PV can be set within a range of –32,768 and 32,767.
Section Programming Console Operations 6-2 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. RUN No MONITOR OK PROGRAM OK ! 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.
Section Programming Console Operations 1, 2, 3... 6-2 1. Press the CLR Key to bring up the initial display. 2. Press the SET and then the RESET Key. A confirmation message will appear. SET RESET 00000FORCE RELE? Note If you mistakenly press the wrong key, press CLR and start again from the beginning. 3. Press the NOT Key to clear the force-set/reset status of bits in all data areas.
Section Programming Example 6-3 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 1, 2, 3... RUN MONITOR PROGRAM Read clock OK OK OK Set clock No OK OK 1. Press the CLR Key to bring up the initial display. 2. Press the FUN Key, SHIFT Key, and then the MONTR Key to display the date and time. FUN TIM 99Ć02Ć22 11:04:32 MON(1) SHIFT MONTR 3.
Section Programming Example 6-3 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. CLR SET NOT RESET MONTR 00000 00000MEMORY CLR? HR CNT DM 00000MEMORY CLR END HR CNT DM 4. Display and clear error messages by pressing the CLR, FUN, and then the MONTR Key. Continue pressing the MONTR Key until all error messages have been cleared. CLR FUN MONTR 00000 00000 FUN (0??) ERR/MSG CHK OK 5.
Section Programming Example 6-3 6-3-2 Example Program The following ladder program will be used to demonstrate how to write a program 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 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. (1) Inputting the Self-holding Bit 1, 2, 3... 1. Input the normally open condition IR 00000.
Section Programming Example 4. Input the SV for T001 (#0010 = 1.0 s). B 1 A 0 WRITE (3) Inputting the Two-second Timer 00006 TIM DATA #0010 00007READ NOP (000) The following key operations are used to input the 2-second timer. 1, 2, 3... LD 1. Input the normally open condition IR 20000. C 2 A 0 A 0 A 0 A 0 WRITE 00007 LD 20000 00008READ NOP (000) 2. Input the normally closed AND condition T002. (It isn’t necessary to input leading zeroes.
Section Programming Example 6-3 4. Input the counter 000. CNT A 0 WRITE 00013 CNT 000 00013 CNT DATA #0000 5. Input the SV for counter 000 (#0010 = 10 counts). B 1 A 0 WRITE 00013 CNT DATA #0010 00014READ NOP (000) (5) Inputting the Flicker Output 1, 2, 3... LD 1. Input the normally open condition IR 20000. C 2 A 0 A 0 A 0 A 0 WRITE 000014 LD 20000 00015READ NOP (000) 2. Input the normally closed AND condition T001. (It isn’t necessary to input leading zeroes.
Section Programming Example 6-3 2. Press the SRCH Key. An input prompt will appear requesting the desired check level. SRCH 00000PROG CHK 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. If no errors are found, the following display will appear. A 0 00017PROG CHK END (001)00.
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. 7-1 7-2 7-3 7-4 7-5 7-6 Initial System Checks and Test Run Procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1-1 Initial System Checks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Section CPM2B Test Run Procedure 7-1 7-2 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 performing a test run. Item Power supply and I/O connections Points to check Is the wiring correct? Are the terminals securely tightened? Are there any shorts between crimp terminals or wires? Refer to 3-5 Wiring and Connections for details.
Section Self-diagnostic Functions 2. 3. 4. 5. 7-3 d) Use a Programming Device to set the CPM2B to PROGRAM mode. 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 Programming Device’s monitor operations. Test Run a) Use a Programming Device to set the CPM2B to RUN or MONITOR mode and check that the “RUN” indicator lights.
Section Self-diagnostic Functions 7-3 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. FAILURE ALARM – FAL(06) FAL(06) is an instruction that causes a non-fatal error. The following will occur when an FAL(06) instruction is executed: 1, 2, 3... 1. The ERR indicator on the CPU Board will flash.
Section Self-diagnostic Functions 7-3 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. All CPU Board indicators will be OFF for the power interruption error.
Section Troubleshooting Flowcharts 7-4 7-4 Troubleshooting Flowcharts Use the following flowcharts to troubleshoot errors that occur during operation. Main Check Error PWR indicator lit? No Check power supply. (See page 119.) Yes RUN indicator lit? No Operation stopped. Check for fatal errors. (See page 120.) Yes ERR indicator flashing? Flashing Check for non-fatal errors. (See page 121.) Not lit Is I/O sequence normal? No Check I/O. (See page 122.
Section Troubleshooting Flowcharts 7-4 Power Supply Check PWR indicator not lit. Is power being supplied? No Connect power supply. Yes No Is voltage adequate? No Is PWR indicator lit? Yes Set supply voltage within acceptable limits. Yes Are there any loose terminal screws or broken wires? No Is PWR indicator lit? Yes Tighten screws or replace wires.
Section Troubleshooting Flowcharts 7-4 Fatal Error Check RUN indicator not lit. No Is the ERR indicator lit? Yes Yes Determine the cause of the error with a Programming Device. Is PC mode displayed on Programming Device? Is PC mode displayed on Programming Device? No No Turn the power supply OFF, and then ON again. Yes Is a fatal error displayed? Yes No Identify the error, eliminate its cause, and clear the error. Follow the Memory Error Check flowchart if a memory error has occurred.
Section Troubleshooting Flowcharts 7-4 Non-fatal Error Check ERR indicator flashing. Determine the cause of the error with a Programming Device. Is a non-fatal error indicated? Yes Identify the error, eliminate its cause, and clear the error. No Is the ERR indicator flashing? Flashing Not lit End Replace the CPU Board.
Section Troubleshooting Flowcharts I/O Check 7-4 The I/O check flowchart is based on the following ladder diagram section. (LS1) 00002 (LS2) 00003 01003 SOL1 01003 SOL1 malfunction. Malfunction of SOL1 Is the IR 01003 output indicator operating normally? No Yes Check the voltage at the IR 01003 terminals. Wire correctly. Correct the short circuit or limit the connected load to the specified range. Monitor the ON/OFF status of IR 01003 with a Programming Device.
Section Troubleshooting Flowcharts A Are the IR 00002 and IR 00003 input indicators operating normally? From previous page 7-4 No Yes Check the voltage at the IR 00002 and IR 00003 terminals. Check the voltage at the IR 00002 and IR 00003 terminals. Operation OK? Operation OK? No Yes No Are the terminal screws loose? Yes No Yes Check operation by using a dummy input signal to turn the input ON and OFF. Yes Is input wiring correct? No Wire correctly.
Section Troubleshooting Flowcharts Environmental Conditions Check Environmental conditions check No Consider using a fan or cooler. Is the ambient temperature above 0°C? Yes No Consider using a heater. Is the ambient humidity between 10% and 85%? No Consider using an air conditioner. Is the ambient temperature below 55°C? Yes Yes Is noise being controlled? No Install surge protectors or other noisereducing equipment at noise sources. Yes Is the installation environment okay? Yes End.
Section Maintenance Inspections 7-5 Memory Error Check Memory error occurred. AR 1309 ON? Yes Replace the CPU Board. Yes Check/correct backed-up data and clear error. No AR 1314 ON? No AR 1308 ON? Yes Check the program, correct any errors, and clear the error. No No AR 1310 to AR 1312 ON? Yes Turned ON during startup? Yes Check the error indicated by the flag that is ON, correct settings as required, and write data to the flash memory. No No Check the external environment.
Section Battery Replacement 7-6 The standard period for maintenance checks is 6 months to 1 year, but more frequent 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 Remarks Power supply Determine whether the voltage fluctuation at the power supply terminals is within specifications. Within the voltage variation range (20.4 to 26.
Battery Replacement Section 7-6 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.
Appendix A Standard Models CPU Boards Appearance Relay outputs Transistor outputs (sinking) Internal clock.
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 Strain Relief Communications Port Connecting Cables Appearance Name CS1W-CN114 Connecting Cable CPM2C-CN111 Connecting Cable Specifications Length Peripheral port to Programming Console cable. 0.
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. 70 108 CPU Boards and Expansion I/O Boards 164 174 Mounting Bracket (CPM2B-ATT01) Six 3.5 dia. 110 70 100 6 Four 4.5 dia.
Appendix B Dimensions Assembly Dimensions Front view Side view 28 CPU Board 150 100 70 28 28 Expansion I/O Board 28 14 164 186 206 134 Mounting Bracket
Index Numbers 1:N connections, 10 D data, modifying, Programming Console, 99–100, 101, 102, 103 data link, 5, 12 A date. See clock decimal data with sign. See signed decimal data arc killer, examples, xvii decimal data without sign.
Index features, 2 M flash memory, precautions, 114 flicker output, example, 111 force-set/reset clearing, Programming Console, 104 Programming Console, 104 function codes expansion instructions, 76 reading and changing expansion instruction assignments, 87 functions, 5 hexadecimal data, converting displays, Programming Console, 105 maintenance, 125 memory backup, 24 protection, 24 memory areas AR area bits, CPM2A/CPM2C, 60 clearing, Programming Console, 85 flags and control bits, CPM2A/CPM2C, 58 partial
Index output wiring, relay output, 49 P–R panel, Programming Console installation, 82 panel installation, precautions, 37 password, entering on Programming Console, 83 pulse control, 2 pulse outputs, 3 wiring, 51 quick-response inputs, 3 relay outputs, connecting, 46 Relay Terminals, connections, 44 RUN mode, description, 80 PC mode, changing, 80 S PC Setup.
Index changing SV, Programming Console, 100 example of inputting, 110 troubleshooting, 118 fatal errors, 120 I/O errors, 122 non-fatal errors, 121 operating conditions, 124 power supply, 119, 125 modifying, Programming Console, 103 monitoring, 99 V–W vibration resistance, 22 voltage, supply voltage, 22 voltage output, connecting, 46 U unsigned decimal data 138 wiring, 40 I/O connectors, 43 power supply, 41 terminal blocks, 42
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.