Manuel d'utilisation / d'entretien du produit CPM2B du fabricant Omron
Aller à la page of 149
Cat.No. W371–E1–1 Programmable Controller SYSMAC CPM2B OPERA TION MANUAL.
SYSMAC CPM2B Programmable Controller Operation Manual Produced February 2000.
! ! ! v 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.
T ABLE OF CONTENTS vii PRECAUTIONS xi . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intended Audience xii . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 General Precautions xii .
T ABLE OF CONTENTS viii SECTION 7 T est Runs and Error Processing 1 13 . . . . . . . . . . . . . . . . . . . . 7-1 Initial System Checks and T est Run Procedure 1 14 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-2 CPM2B T est Run Procedure 1 14 .
ix 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.
xi PRECAUTIONS This section provides general precautions for using the Programmable Controller (PC) and related devices. Th e information contained in this section is important for the safe and reliable application of the Pr ogrammable Con- troller .
! ! ! ! ! ! 3 Safety Precautions xii 1 Intended Audience This manual is intended for the following personnel, who must also have knowl- edge of electrical systems (an electrical engineer or the equivalent). • Personnel in charge of installing F A systems.
! ! ! ! ! ! ! 5 Application Precautions xiii • 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 (F ALS) instruction is executed.
! 5 Application Precautions xiv • Mounting or dismounting the CPU board or expansion I/O board. • Setting switches or rotary switches. • Connecting or wiring the cables.
6 EC Directives xv • 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.
6 EC Directives xvi 6-3 Conformance to EC Directives The CPM2B PCs comply with EC Directives. T o ensure that the machine or de- vice in w h i c h t h e C P M 2 B P C i s u s e d c o mplies with EC directives, the PC must be installed as follows: 1, 2, 3.
6 EC Directives xvii Countermeasure Examples When switching an inductive load, connect a surge protector , diodes, etc., in par- allel with the load or contact as shown below .
1 SECTION 1 Intr oduction 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.
1-1 Section CPM2B Features and Functions 2 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.
1-1 Section CPM2B Features and Functions 3 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. Encoder CPM2B Motor driver Motor Pulses are output as a fixed multiple of the input frequency .
1-1 Section CPM2B Features and Functions 4 TO HOURS conversion instruction (HMS( –– )), the long-term timer provides an easy way to control equipment scheduling. The CPM1-EMU01-V1 Expansion Memory Unit is a program loader for small- size or micro PCs.
1-1 Section CPM2B Features and Functions 5 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.
1-2 Section System Configurations 6 Main function Variations/Details High-speed counters High-speed counter No interrupt 1 input, see note 2. Differential phase mode (5 kHz) Pulse plus direction input.
1-2 Section System Configurations 7 CPU Board Inputs Outputs Battery Clock RS-232C port Model 32 I/O points 16 inputs, 16 relay outputs --- --- --- CPM2B-32C1DR-D (16 inputs, 16 outputs) 24 V DC (T er.
1-2 Section System Configurations 8 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 . Peripheral port CPM2C-CN1 1 1 Connecting Cable (0.1 m) (See note 2.) CS1W-CN1 14 Connecting Cable (0.
1-2 Section System Configurations 9 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.
1-2 Section System Configurations 10 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 RS-422 (T otal length: 500 m max.) NT -AL001-E (See note 1.) NT -AL001-E (See note 1.
1-2 Section System Configurations 11 1-2-7 OMRON PT Connections In a 1:1 NT Link, a CPM2B can be connected directly to a Programmable T ermi- nal through the RS-232C port. (The Programmable T erminal cannot be con- nected directly to the peripheral port.
1-2 Section System Configurations 12 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.
1-3 Section Structure and Operation 13 1-3 Structure and Operation 1-3-1 CPU Board Structure The following diagram shows the internal structure of the CPU Board.
! 1-3 Section Structure and Operation 14 1-3-2 Operating Modes CPM2B CPU Boards have 3 operating modes: PROGRAM, MONIT OR, and RUN. The program cannot be executed in PROGRAM mode.
1-3 Section Structure and Operation 15 1-3-4 PC Operation at Startup 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.
1-3 Section Structure and Operation 16 1-3-5 Cyclic Operation and Interrupts 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).
1-3 Section Structure and Operation 17 Th e 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. The following diagram shows the cyclic operation of the CPM2B when the pro- gram is being executed normally .
! 1-3 Section Structure and Operation 18 When a n interrupt is generated during execution of the main program, main pro- 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.
1-3 Section Structure and Operation 19 When IORF(97) is used, the cycle time is extended by the time required to re- fresh the specified I/O words. Cycle time Overseeing processes Main program I/O refreshing RS-232C port servicing Peripheral port servicing IORF(97) executed.
21 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 Specifications 22 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-1 Section Specifications 22 2-1 Specifications 2-1-1 General Specifications Item CPU Boards Expansion I/O Boards With relay outputs With transistor outputs With relay outputs With transistor outputs Supply voltage 24 V DC (Allowable range: 20.4 to 26.
2-1 Section Specifications 23 2-1-2 Characteristics Item CPU Boards With relay outputs With transistor outputs Control method Stored program method I/O control method Cyclic scan with direct output (Immediate refreshing can be performed with IORF(97).
2-1 Section Specifications 24 Item CPU Boards Item With transistor outputs With relay 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 .
2-1 Section Specifications 25 2-1-3 I/O Specifications CPU Board Input Specifications Item Inputs Specification Input voltage All 24 V DC +10% / – 15% Input impedance IN00000 to IN00001 2.
2-1 Section Specifications 26 2. Installation orientation: V ertical with end down Input voltage 26.4 V DC Input voltage 24 V DC Max. number of inputs ON at the same time 16 14 Max. number of inputs ON at the same time 16 14 01 0 2 0 3 0 4 05 0 5 5 49 ( ° C) 01 0 2 0 3 0 4 05 0 5 5 49 ( ° C) 3.
2-1 Section Specifications 27 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.
! 2-1 Section Specifications 28 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 .
2-2 Section Board Components and their Functions 29 2-2 Board Components and their Functions 2-2-1 CPU Board Components CPU Boards with Relay Outputs 8. RS-232C port 9. Communications Switch SW201 5. Input indicators 6. Output indicators 3. Output terminals 4.
2-2 Section Board Components and their Functions 30 CPU Board Component Descriptions 1, 2, 3... 1. Power Supply T erminals Connect the power supply (24 V DC) to these terminals. 2. Input Connector Connects the CPU Board to external input devices. 3. Output T erminals/Connector Connects the CPU Board to external output devices.
2-2 Section Board Components and their Functions 31 9. Communications Switches SW201 and SW202 The Communications Switches control the communications settings for the peripheral port and RS-232C port.
2-2 Section Board Components and their Functions 32 2-2-2 Expansion I/O Boards Expansion I/O Boards with Relay Outputs 3. Input indicators 4. Output indicators 5. Expansion I/O connector 1. Input connector 2. Output terminals Expansion I/O Boards with T ransistor Outputs 2.
2-3 Section I/O Connector and T erminal Pin Allocation 33 Note Do not touch the cables during operation to prevent unexpected op- eration due to static discharge.
2-3 Section I/O Connector and T erminal Pin Allocation 34 Expansion I/O Boards Inputs (24 V DC) Expansion I/O Board with relay outputs Expansion I/O Board with transistor outputs Sinking transistor ou.
35 SECTION 3 Installation and W iring This section provides information on installing and wiring a CPM2B PC. Be sure to follow the directions and precautions i n this section when installing the CPM2B in a panel or cabinet, wiring the power supply , or wiring I/O.
! ! 3-2 Section Selecting an Installation Site 36 3-1 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.
! 3-2 Section Selecting an Installation Site 37 Caution Be sure to install the CPM2B correctly , as outlined in this manual. Failure to do s o may result in Board malfunction. 3-2-1 Installation Site Conditions Note Do not install the CPM2B under any of the following conditions.
3-3 Section Assembling the CPM2B Boards 38 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. 3-3 Assembling the CPM2B Boards Up to 3 Expansion I/O Boards can be connected to a CPM2B CPU Board.
3-4 Section Installing the CPM2B 39 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.
! 3-5 Section W iring and Connections 40 Example Installations Mounting Bracket Screw and nut installation Screw and tapped panel installation Note 1. Use M4 screws and tighten to a torque of 1.2 N S m. 2. The CPM2B can be installed without a CPM2B-A TT01 Mounting Bracket, but the Mounting Bracket must be used to conform to UL/CSA standards.
3-5 Section W iring and Connections 41 Conduits Separate the CPM2B I/O lines, power and control lines, and power cables, as shown in the following diagram. CPM2B I/O lines Control cables and CPM2B power lines Power cables 3-5-1 Power Supply Wiring The power supply terminal specifications are shown below .
3-5 Section W iring and Connections 42 3-5-2 I/O Wiring Procedures Removing and Wiring I/O T erminal Blocks The following tables provide output terminal block specifications. CPU Boards and Expansion I/O Boards with relay outputs Output terminal blocks Item Specification Screw size M3 Recommended tightening torque 0.
3-5 Section W iring and Connections 43 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.
3-5 Section W iring and Connections 44 OMRON Crimping T ools Crimping T ool XY2B-0002 Attachment XY2B-1007 MIL 20P Loose-wire Pressure Connector Note T wo Full Covers or Partial Covers are required for each socket.
3-5 Section W iring and Connections 45 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.
3-5 Section W iring and Connections 46 The following table shows how to connect various input devices. Device Circuit diagram Relay output IN COM (+) 5 mA/6 mA/8 mA CPM2B NPN open collector IN COM (+) Sensor power supply Output 5 mA/6 mA/8 mA CPM2B 0 V NPN current output Us e the same power supply for the input and sensor .
3-5 Section W iring and Connections 47 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.
3-5 Section W iring and Connections 48 Special functions for input bits IR 00003 through IR 00006 are set in DM 6628: Bit Bits in PC Setup setting (in DM 6628) address DM 6628 012 IR 00003 00 to 03 Used as normal Used as interrupt Used as IR 00004 04 to 07 inputs.
! 3-5 Section W iring and Connections 49 2. Average rectified current must be 1 A. IN COM CPM2B Diode 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.
3-5 Section W iring and Connections 50 CPU Boards with Sinking T ransistor Outputs Output connector 19 17 15 13 1 1 9 7 5 3 1 LL LL LL LL 01 101 01 102 01 103 01000 COM 01001 01002 01003 01 100 COM 18 16 14 12 10 8 6 4 2 20 01 105 01 106 01 107 01004 COM 01005 01006 01007 01 104 COM LL LL LL LL Output capacity Max.
3-5 Section W iring and Connections 51 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 .
3-5 Section W iring and Connections 52 The diode should satisfy the following requirements: Peak reverse-breakdown voltage must be at least 3 times the load voltage.
53 SECTION 4 Memory Ar eas This section describes the structure of the PC memory areas and explains how to use them. 4-1 Introduction 54 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-1 Section Introduction 54 4-1 Introduction Most data areas in the CPM2B can be accessed as bits or words. (The TR area ca n 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.
4-2 Section I/O Allocation 55 IR words that are not allocated to inputs or outputs can be used as work words. Th e work bits can be used freely within the program.
4-2 Section I/O Allocation 56 CP U 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 001 1 1 are allocated to the CPU Board ’ s DIP switch inputs.
4-2 Section I/O Allocation 57 The following example shows the I/O allocation when three Expansion I/O Boards are connected to the CPU Board. 16 inputs IR 00000 to IR 00007 IR 00100 to IR 00107 16 outp.
4-3 Section SR Area 58 4-3 SR Area These bits mainly serve as flags related to CPM2A/CPM2C operation or contain present and set values for various functions.
4-3 Section SR Area 59 Word(s) Read/ write Function Bit(s) SR 252 00 High-speed Counter Reset Bit Read/ write 01 to 03 Not used. 04 Pulse Output 0 PV Reset Bit T urn ON to clear the PV of pulse output 0. Read/ write 05 Pulse Output 1 PV Reset Bit T urn ON to clear the PV of pulse output 1.
4-4 Section AR Area 60 Word(s) Read/ write Function Bit(s) SR 254 00 1-minute clock pulse (30 seconds ON; 30 seconds OFF) Read- 01 0.02-second clock pulse (0.01 second ON; 0.01 second OFF) only 02 Negative (N) Flag T urns ON when the result of a calculation is negative (leftmost bit of binary result ON.
4-4 Section AR Area 61 Word(s) Function Bit(s) 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 04 RS-232C Communications Error Flag T urns ON when an RS-232C port communications error occurs.
4-4 Section AR Area 62 Word(s) Function Bit(s) AR 1 1 (Note 1) 00 to 07 High-speed Counter Range Comparison Flags 00 ON: Counter PV is within comparison range 1 01 ON: Counter PV is within comparison .
4-4 Section AR Area 63 Word(s) Function Bit(s) AR 13 00 Power-up PC Setup Error Flag T urns 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).
4-5 Section PC Setup 64 Word(s) Function Bit(s) AR 21 (Note 2) 00 to 07 Day of the Week (00 to 06, BCD) 00: Sunday 01: Monday 02: T uesday 03: W ednesday 04: Thursday 05: Friday 06: Saturday 08 to 12 Not used. 13 30-second Compensation Bit T urn this bit ON to round off to the nearest minute.
4-5 Section PC Setup 65 tive, and program execution will have to be restarted to make changes in DM 6615 to DM 6644 effective. If an incorrect PC Setup setting is accessed, a non-fatal error (error co.
4-5 Section PC Setup 66 Word(s) Function Bit(s) 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.
4-5 Section PC Setup 67 Word(s) Function Bit(s) 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.
4-5 Section PC Setup 68 Word(s) Function Bit(s) 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.
4-6 Section Error Log 69 Word(s) Function Bit(s) DM 6652 00 to 15 T ransmission 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.
4-6 Section Error Log 70 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.
71 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. 5-1 CPM2B Function Codes 72 . . . . .
5-1 Section CPM2B Function Codes 72 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 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.
5-2 Section Alphabetic List by Mnemonic 73 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.
5-2 Section Alphabetic List by Mnemonic 74 Mnemonic Code W ords 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 .
5-2 Section Alphabetic List by Mnemonic 75 Mnemonic Code W ords Name SLD (@) 74 3 ONE DIGIT SHIFT LEFT SNXT 09 2 STEP ST ART SPED (@) 64 4 SPEED OUTPUT SRCH (@) –– 4 DA T A SEARCH SRD (@) 75 3 ONE.
5-3 Section Expansion Instructions 76 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 en- able using them in programs.
77 SECTION 6 Using Pr ogramming Devices This section outlines the operations possible with the Programming Consoles. 6-1 Using a Programming Console 78 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1-1 Compatible Programming Consoles 78 .
6-1 Section Using a Programming Console 78 6-1 Using a Programming Console This s ection 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.
6-1 Section Using a Programming Console 79 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.
! ! 6-1 Section Using a Programming Console 80 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>, <MONIT OR>, or <RUN>) will appear on the Programming Console screen.
6-1 Section Using a Programming Console 81 Th e 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.
! 6-1 Section Using a Programming Console 82 Panel Installation The C200H-PRO27-E Programming Console can be installed in a control panel as shown in the following diagram. (The C200H-A TT01 Mounting Bracket is sold separately .) 186 +1.1 – 0 92 +0.
6-1 Section Using a Programming Console 83 8. Start programming. 6-1-5 Entering the Password T o gain access t o the PC ’ s programming functions, you must first enter the pass- word.
6-2 Section Programming Console Operations 84 6-2 Programming Console Operations 6-2-1 Overview Th e following table lists the programming and monitoring operations that can b e performed from a Programming Console. Refer to the rest of this section for details on operational procedures.
! 6-2 Section Programming Console Operations 85 Name Page Function Displaying the cycle time Displays the current average cycle time (scan time.) 105 Reading and setting the clock Reads or sets the internal clock.
6-2 Section Programming Console Operations 86 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.
6-2 Section Programming Console Operations 87 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.
6-2 Section Programming Console Operations 88 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 i n any mode.
6-2 Section Programming Console Operations 89 The program shown in the following diagram will be entered to demonstrate this operation. 00002 00200 LD IR 00002 00201 TIM 000 #0123 00202 MOV(021) #0100 LR 10 00203 ADB(050) #0100 #FFF6 DM 0000 MOV(021) #0100 LR 10 TIM 000 #0123 12.
6-2 Section Programming Console Operations 90 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) T o input the differentiated version of an instruction, press the NOT Key after the function code (FUN 2 1 NOT).
6-2 Section Programming Console Operations 91 • 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.
6-2 Section Programming Console Operations 92 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. B 1 A 0 A 0 ↓ 00100READ TIM 001 3.
6-2 Section Programming Console Operations 93 6-2-10 Inserting and Deleting Instructions This operation is used to insert or delete instructions from the program.
6-2 Section Programming Console Operations 94 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.
6-2 Section Programming Console Operations 95 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 .
6-2 Section Programming Console Operations 96 4. Press the CLR Key to end monitoring. CLR 00000 CHANNEL LR 01 Note Th e operating mode can be changed without altering the current monitor display by holding down the SHIFT Key and then changing the operating mode.
6-2 Section Programming Console Operations 97 2. T o 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.
6-2 Section Programming Console Operations 98 3. Press the CLR Key to end binary monitoring and return to the normal moni- toring display . CLR c010 0000 6-2-15 Three-Word Monitor This operation is used to monitor the status of three consecutive words.
! 6-2 Section Programming Console Operations 99 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.
6-2 Section Programming Console Operations 100 (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 Ke y if the rightmost word will be changed.
! 6-2 Section Programming Console Operations 101 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 be- come the new SV constant in step 5.
! ! 6-2 Section Programming Console Operations 102 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.
! 6-2 Section Programming Console Operations 103 1, 2, 3... 1. Monitor (signed decimal) the status of the word for which the present value is to be changed. (Signed decimal monitor) D0200 Ć00016 2. Press the CHG Key to begin decimal data modification.
! ! 6-2 Section Programming Console Operations 104 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 .
6-2 Section Programming Console Operations 105 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 . SET RESET 00000FORCE RELE? Note If you mistakenly press the wrong key , press CLR and start again from the beginning.
6-3 Section Programming Example 106 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 RUN MONIT OR PROGRAM Read clock OK OK OK Set clock No OK OK 1, 2, 3.
! 6-3 Section Programming Example 107 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 00000 SET NOT RESET 00000MEMORY CLR? HR CNT DM MONTR END HR CNT DM 00000MEMORY CLR 4.
6-3 Section Programming Example 108 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.
6-3 Section Programming Example 109 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.
6-3 Section Programming Example 11 0 4. Input the SV for T001 (#0010 = 1.0 s). B 1 A 0 00006 TIM DATA #0010 WRITE 00007READ NOP (000) The following key operations are used to input the 2-second timer . 1, 2, 3... 1. Input the normally open condition IR 20000.
6-3 Section Programming Example 111 4. Input the counter 000. CNT A 0 00013 CNT 000 WRITE 00013 CNT DATA #0000 5. Input the SV for counter 000 (#0010 = 10 counts). B 1 A 0 00013 CNT DATA #0010 WRITE 00014READ NOP (000) (5) Inputting the Flicker Output 1, 2, 3.
6-3 Section Programming Example 11 2 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.
11 3 SECTION 7 T est Runs and Err or 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-2 Section CPM2B T est Run Procedure 11 4 7-1 Initial System Checks and T est 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.
! 7-3 Section Self-diagnostic Functions 11 5 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.
7-3 Section Self-diagnostic Functions 11 6 7-3-2 User-defined Errors There are three instructions that can be used to define errors or messages. F AL(06) causes a non-fatal error , F AL(07) causes a fatal error , and MSG(46) sends a message to the Programming Console or host computer connected to the PC.
7-3 Section Self-diagnostic Functions 11 7 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.
7-4 Section T roubleshooting Flowcharts 11 8 7-4 T roubleshooting Flowcharts Use the following flowcharts to troubleshoot errors that occur during operation.
7-4 Section T roubleshooting Flowcharts 11 9 Power Supply Check PWR indicator not lit. Replace the CPU Board. Is power being supplied? Is voltage adequate? Are there any loose terminal screws or bro- ken wires? Connect power supply . Is PWR indicator lit? Set supply voltage within acceptable limits.
7-4 Section T roubleshooting Flowcharts 120 Fatal Error Check Identify the error, eliminate its cause, and clear the error . Follow the Memory Error Check flowchart if a memory error has occurred. Is the ERR indi- cator lit? Determine the cause of the error with a Programming Device.
7-4 Section T roubleshooting Flowcharts 121 Non-fatal Error Check Identify the error, eliminate its cause, and clear the error . ERR indicator flashing. Is a non-fatal error indicated? Is the ERR indicator flashing? Replace the CPU Board. End Determine the cause of the error with a Programming Device.
7-4 Section T roubleshooting Flowcharts 122 The I/O check flowchart is based on the following ladder diagram section. 01003 00002 (LS1) 00003 (LS2) SOL1 malfunction. SOL1 01003 Ye s Monitor the ON/OFF status of IR 01003 with a Programming Device. No Is the IR 01003 output indicator operating normally? Check the voltage at the IR 01003 terminals.
7-4 Section T roubleshooting Flowcharts 123 Ye s No Check the voltage at the IR 00002 and IR 00003 terminals. Check operation by using a dummy input signal to turn the input ON and OFF . No Replace the CPU Board or Expansion I/O Board. Are the terminal screws loose? Operation OK? Wire correctly .
7-4 Section T roubleshooting Flowcharts 124 Environmental Conditions Check Consider using a fan or cooler . Is the ambient temperature below 55 ° C? Is the ambient temperature above 0 ° C? Is noise being controlled? Is the installation environment okay? Consider using a heater .
7-5 Section Maintenance Inspections 125 Memory Error Check Memory error occurred. AR 1309 ON? AR 1314 ON? AR 1308 ON? Replace the CPU Board. Check/correct backed-up data and clear error .
! 7-6 Section Battery Replacement 126 Th e 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.
7-6 Section Battery Replacement 127 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.
129 Appendix A Standard Models CPU Boards Appearance Relay outputs Transistor outputs (sinking) Internal clock. RS-232C port, and battery Number of inputs Number of outputs CPM2B-32C1DR-D --- No 16 po.
Appendix A Standard Models 130 I/O Connectors Appearance Model Name XG5M-2032-N Socket (for AWG 24 wire) XG5M-2035-N Socket (for AWG 26 to A WG 28 wire) XG5S-2012 Full Cover (two are required for each.
Appendix A Standard Models 131 Maintenance Accessories Appearance Model Number Name Specifications C500-BA T08 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.
133 Appendix B Dimensions All dimensions are in millimeters. CPU Boards and Expansion I/O Boards 108 70 164 174 Mounting Bracket (CPM2B-A TT01) Six 3.5 dia.
Appendix B Dimensions 134 Assembly Dimensions Front view Side view CPU Board Expansion I/O Board Mounting Bracket 28 28 28 28 14 150 100 70 164 186 206.
135 Index Numbers 1:N connections, 10 A arc killer , examples, xvii ASCII, converting displays, Programming Console, 105 atmosphere, 22 B battery , replacing, 126 binary data, modifying, Programming C.
Index 136 features, 2 flash memory , precautions, 1 14 flicker output, example, 1 1 1 force-set/reset clearing, Programming Console, 104 Programming Console, 104 function codes expansion instructions,.
Index 137 output wiring, relay output, 49 P – R panel, Programming Console installation, 82 panel installation, precautions, 37 password, entering on Programming Console, 83 PC mode, changing, 80 PC Setup.
Index 138 changing SV , Programming Console, 100 example of inputting, 1 10 troubleshooting, 1 18 fatal errors, 120 I/O errors, 122 non-fatal errors, 121 operating conditions, 124 power supply , 1 19,.
139 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.
Un point important après l'achat de l'appareil (ou même avant l'achat) est de lire le manuel d'utilisation. Nous devons le faire pour quelques raisons simples:
Si vous n'avez pas encore acheté Omron CPM2B c'est un bon moment pour vous familiariser avec les données de base sur le produit. Consulter d'abord les pages initiales du manuel d'utilisation, que vous trouverez ci-dessus. Vous devriez y trouver les données techniques les plus importants du Omron CPM2B - de cette manière, vous pouvez vérifier si l'équipement répond à vos besoins. Explorant les pages suivantes du manuel d'utilisation Omron CPM2B, vous apprendrez toutes les caractéristiques du produit et des informations sur son fonctionnement. Les informations sur le Omron CPM2B va certainement vous aider à prendre une décision concernant l'achat.
Dans une situation où vous avez déjà le Omron CPM2B, mais vous avez pas encore lu le manuel d'utilisation, vous devez le faire pour les raisons décrites ci-dessus,. Vous saurez alors si vous avez correctement utilisé les fonctions disponibles, et si vous avez commis des erreurs qui peuvent réduire la durée de vie du Omron CPM2B.
Cependant, l'un des rôles les plus importants pour l'utilisateur joués par les manuels d'utilisateur est d'aider à résoudre les problèmes concernant le Omron CPM2B. Presque toujours, vous y trouverez Troubleshooting, soit les pannes et les défaillances les plus fréquentes de l'apparei Omron CPM2B ainsi que les instructions sur la façon de les résoudre. Même si vous ne parvenez pas à résoudre le problème, le manuel d‘utilisation va vous montrer le chemin d'une nouvelle procédure – le contact avec le centre de service à la clientèle ou le service le plus proche.