Cat.No. W371–E1–1Programmable ControllerSYSMACCPM2BOPERATION MANUAL
!5Application Precautionsxiv• Mounting or dismounting the CPU board or expansion I/O board.• Setting switches or rotary switches.• Connecting or wirin
6-2SectionProgramming Console Operations886. Press the WRITE Key to assign the displayed instruction to the functioncode.WRITEINST TBL READFUN018:HEX
6-2SectionProgramming Console Operations89The program shown in the following diagram will be entered to demonstratethis operation.0000200200 LD IR 000
6-2SectionProgramming Console Operations908. Input the third instruction and its operands. First input the instruction bypressing the FUN Key and then
6-2SectionProgramming Console Operations91• Writing an Unsigned Decimal Number13. The first operand is input as an unsigned integer.CONT#SHIFT TRNOT00
6-2SectionProgramming Console Operations921, 2, 3... 1. Press the CLR Key to bring up the initial display.2. Input the address from which the search w
6-2SectionProgramming Console Operations936-2-10 Inserting and Deleting InstructionsThis operation is used to insert or delete instructions from the p
6-2SectionProgramming Console Operations94After completing the insertion and deletion procedures, use the Up and DownArrow Keys to scroll through the
6-2SectionProgramming Console Operations95Program Read then Monitor When a program address is being displayed, the status of the bit or word in thatad
6-2SectionProgramming Console Operations964. Press the CLR Key to end monitoring.CLR00000CHANNEL LR 01Note The operating mode can be changed withou
6-2SectionProgramming Console Operations972. To specify up-differentiation monitoring, press the SHIFT and then the UpArrow Key. The symbols “U@” will
6EC Directivesxv• Changing the operating mode of the PC.• Force-setting/force-resetting any bit in memory.• Changing the present value of any word or
6-2SectionProgramming Console Operations983. Press the CLR Key to end binary monitoring and return to the normal moni-toring display.CLR c010 00006-2-
!6-2SectionProgramming Console Operations99At this point, the contents of the displayed word can be changed with asigned-decimal input. Refer to 6-2-2
6-2SectionProgramming Console Operations100(Input the new value and press the WRITE Key to write the changes inmemory if no more changes will be made.
!6-2SectionProgramming Console Operations1013. Press the Down Arrow, CHG, and then the EXT Key.↓CHGEXT00201DATA ? U/DT000 #0123 #0123The constant on t
!!6-2SectionProgramming Console Operations102Caution Before changing the contents of I/O memory, be sure that the changes will notcause equipment to o
!6-2SectionProgramming Console Operations1031, 2, 3... 1. Monitor (signed decimal) the status of the word for which the present valueis to be changed.
!!6-2SectionProgramming Console Operations1046-2-24 Force Set, ResetThis operation is used to force bits ON (force set) or OFF (force reset) and isuse
6-2SectionProgramming Console Operations1051, 2, 3... 1. Press the CLR Key to bring up the initial display.2. Press the SET and then the RESET Key. A
6-3SectionProgramming Example1066-2-28 Reading and Setting the ClockThis operation is used to read or set the CPU’s clock. The clock can be read inany
!6-3SectionProgramming Example1073. Clear the CPM2B’s memory by pressing the CLR, SET, NOT, RESET, andthen the MONTR Key. Press the CLR Key several ti
6EC Directivesxvi6-3 Conformance to EC DirectivesThe CPM2B PCs comply with EC Directives. To ensure that the machine or de-vice in which the CPM2B PC
6-3SectionProgramming Example1086-3-2 Example ProgramThe following ladder program will be used to demonstrate how to write a pro-gram with the Program
6-3SectionProgramming Example1096-3-3 Programming ProceduresThe example program will be written to the CPM2B according to the mnemoniclist in 6-3-2 Ex
6-3SectionProgramming Example1104. Input the SV for T001 (#0010 = 1.0 s).B1A000006 TIM DATA #0010WRITE00007READNOP (000)The following key op
6-3SectionProgramming Example1114. Input the counter 000.CNTA000013CNT 000WRITE00013 CNT DATA #00005. Input the SV for counter 000
6-3SectionProgramming Example1122. Press the SRCH Key. An input prompt will appear requesting the desiredcheck level.SRCH00000PROG CHKCHK LBL (0Ć2)?
113SECTION 7Test Runs and Error ProcessingThis section describes procedures for test runs of CPM2B operation, self-diagnosis functions, and error proc
7-2SectionCPM2B Test Run Procedure1147-1 Initial System Checks and Test Run Procedure7-1-1 Initial System ChecksCheck the following items after settin
!7-3SectionSelf-diagnostic Functions115d) Use a Programming Device to set the CPM2B to PROGRAM mode.2. I/O Wiring Checksa) With the CPM2B in PROGRAM m
7-3SectionSelf-diagnostic Functions1167-3-2 User-defined ErrorsThere are three instructions that can be used to define errors or messages.FAL(06) caus
7-3SectionSelf-diagnostic Functions1177-3-4 Fatal ErrorsPC operation and program execution will stop and all outputs from the PC will beturned OFF whe
6EC DirectivesxviiCountermeasure ExamplesWhen switching an inductive load, connect a surge protector, diodes, etc., in par-allel with the load or cont
7-4SectionTroubleshooting Flowcharts1187-4 Troubleshooting FlowchartsUse the following flowcharts to troubleshoot errors that occur during operation.M
7-4SectionTroubleshooting Flowcharts119Power Supply CheckPWR indicator not lit.Replace the CPUBoard.Is power beingsupplied?Is voltage adequate?Are the
7-4SectionTroubleshooting Flowcharts120Fatal Error CheckIdentify the error, eliminateits cause, and clear theerror.Follow the Memory ErrorCheck flowch
7-4SectionTroubleshooting Flowcharts121Non-fatal Error CheckIdentify the error, eliminate itscause, and clear the error.ERR indicator flashing.Is a no
7-4SectionTroubleshooting Flowcharts122The I/O check flowchart is based on the following ladder diagram section.0100300002(LS1)00003(LS2)SOL1 malfunct
7-4SectionTroubleshooting Flowcharts123YesNoCheck the voltage atthe IR 00002 andIR 00003 terminals.Check operation by using adummy input signal to tur
7-4SectionTroubleshooting Flowcharts124Environmental Conditions CheckConsider using afan or cooler.Is the ambienttemperaturebelow 55°C?Is the ambientt
7-5SectionMaintenance Inspections125Memory Error CheckMemory error occurred.AR 1309 ON?AR 1314 ON?AR 1308 ON?Replace the CPUBoard.Check/correct backed
!7-6SectionBattery Replacement126The standard period for maintenance checks is 6 months to 1 year, but more fre-quent checks are required if the PC is
7-6SectionBattery Replacement1272. Disconnect the battery connector and remove the battery.3. Install the new battery. Check the alignment of the conn
1SECTION 1IntroductionThis section describes the CPM2B’s special features and functions, shows the possible system configurations, and outlines theste
129Appendix AStandard ModelsCPU BoardsAppearance Relay outputs Transistor outputs(sinking)Internal clock.RS-232C port,and batteryNumber ofinputsNumber
Appendix AStandard Models130I/O ConnectorsAppearance Model NameXG5M-2032-N Socket (for AWG 24 wire)XG5M-2035-N Socket (for AWG 26 to AWG 28 wire)XG5S-
Appendix AStandard Models131Maintenance AccessoriesAppearance Model Number Name SpecificationsC500-BAT08 Backup Battery ---CPM1-EMU01-V1 Expansion Mem
133Appendix BDimensionsAll dimensions are in millimeters.CPU Boards and Expansion I/O Boards10870164174Mounting Bracket (CPM2B-ATT01)Six 3.5 dia.Four
Appendix BDimensions134Assembly DimensionsFront view Side viewCPU BoardExpansion I/O BoardMounting Bracket282828281415010070164186206
135IndexNumbers1:N connections, 10Aarc killer, examples, xviiASCII, converting displays, Programming Console, 105atmosphere, 22Bbattery, replacing, 12
Index136features, 2flash memory, precautions, 114flicker output, example, 111force-set/resetclearing, Programming Console, 104Programming Console, 104
Index137output wiring, relay output, 49P–Rpanel, Programming Console installation, 82panel installation, precautions, 37password, entering on Programm
Index138changing SV, Programming Console, 100example of inputting, 110troubleshooting, 118fatal errors, 120I/O errors, 122non-fatal errors, 121operati
139Revision HistoryA manual revision code appears as a suffix to the catalog number on the front cover of the manual.Cat. No. W371-E1-1Revision codeTh
1-1SectionCPM2B Features and Functions21-1 CPM2B Features and Functions1-1-1 CPM2B FeaturesThe CPM2B PCs are compact Board PCs that can be incorporate
1-1SectionCPM2B Features and Functions3lowing the speed of a peripheral piece of equipment (such as a supply conveyor)to be synchronized with the spee
1-1SectionCPM2B Features and Functions4TO HOURS conversion instruction (HMS(––)), the long-term timer provides aneasy way to control equipment schedul
1-1SectionCPM2B Features and Functions5from a bar code reader or transmitted to a serial printer. The serial devices canbe connected to the RS-232C po
1-2SectionSystem Configurations6Main function Variations/DetailsHigh-speed counters High-speed counterNo interrupt1 input, see note 2.Differential pha
SYSMAC CPM2B Programmable ControllerOperation ManualProduced February 2000
1-2SectionSystem Configurations7CPU Board Inputs Outputs Battery Clock RS-232CportModel32 I/O points 16 inputs, 16 relay outputs--- --- --- CPM2B-32C1
1-2SectionSystem Configurations81-2-3 Connecting a Programming ConsoleA Programming Console can be connected to the CPM2B CPU Board’s periph-eral port
1-2SectionSystem Configurations91-2-5 One-to-one Computer ConnectionsUse one of the connecting cables shown in the following diagram to connect aperso
1-2SectionSystem Configurations101-2-6 One-to-N Computer ConnectionsUp to 32 OMRON PCs, including CPM2B PCs, can be connected to a host com-puter.Usin
1-2SectionSystem Configurations111-2-7 OMRON PT ConnectionsIn a 1:1 NT Link, a CPM2B can be connected directly to a Programmable Termi-nal through the
1-2SectionSystem Configurations121-2-8 One-to-one PC Link ConnectionsA CPM2B can be linked to another CPM2B, a CQM1, CPM1, CPM1A, CPM2A,CPM2C, SRM1 (-
1-3SectionStructure and Operation131-3 Structure and Operation1-3-1 CPU Board StructureThe following diagram shows the internal structure of the CPU B
!1-3SectionStructure and Operation141-3-2 Operating ModesCPM2B CPU Boards have 3 operating modes: PROGRAM, MONITOR, andRUN.The program cannot be execu
1-3SectionStructure and Operation151-3-4 PC Operation at StartupThe time required for startup initialization depends on several factors, such asthe op
1-3SectionStructure and Operation161-3-5 Cyclic Operation and InterruptsInitialization processing is performed when the power is turned on. If there a
!!!vNotice:OMRON products are manufactured for use according to proper procedures by a qualified operatorand only for the purposes described in this m
1-3SectionStructure and Operation17The cycle time will vary slightly depending on the processing being performed ineach cycle, so the calculated cycle
!1-3SectionStructure and Operation18When an interrupt is generated during execution of the main program, main pro-gram execution is interrupted immedi
1-3SectionStructure and Operation19When IORF(97) is used, the cycle time is extended by the time required to re-fresh the specified I/O words.Cycletim
21SECTION 2Board Specifications and ComponentsThis section provides the technical specifications of the CPM2B Boards and describes the main components
2-1SectionSpecifications222-1 Specifications2-1-1 General SpecificationsItemCPU Boards Expansion I/O BoardsWith relay outputs With transistoroutputsWi
2-1SectionSpecifications232-1-2 CharacteristicsItemCPU BoardsWith relay outputs With transistor outputsControl method Stored program methodI/O control
2-1SectionSpecifications24Item CPU BoardsItemWith transistor outputsWith relay outputsSynchronized pulse control 1 point:A pulse output can be created
2-1SectionSpecifications252-1-3 I/O SpecificationsCPU Board Input SpecificationsItem Inputs SpecificationInput voltage All 24 V DC +10%/–15%Input impe
2-1SectionSpecifications262. Installation orientation: Vertical with end downInput voltage26.4 V DCInput voltage24 V DCMax. number of inputs ON at the
2-1SectionSpecifications27Inputs IN00003 through IN00006 can be used as interrupt inputs (interrupt inputmode or counter mode) and quick-response inpu
TABLE OF CONTENTSviiPRECAUTIONS xi. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Intended Audience xii. . . . . . . . . . . . . .
!2-1SectionSpecifications28Note The service life of the CPM2B’s relay output contacts shown in the table as-sumes the worst conditions. The following
2-2SectionBoard Components and their Functions292-2 Board Components and their Functions2-2-1 CPU Board ComponentsCPU Boards with Relay Outputs8. RS-2
2-2SectionBoard Components and their Functions30CPU Board Component Descriptions1, 2, 3... 1. Power Supply TerminalsConnect the power supply (24 V DC)
2-2SectionBoard Components and their Functions319. Communications Switches SW201 and SW202The Communications Switches control the communications setti
2-2SectionBoard Components and their Functions322-2-2 Expansion I/O BoardsExpansion I/O Boards with Relay Outputs3. Input indicators4. Output indicato
2-3SectionI/O Connector and Terminal Pin Allocation33Note Do not touch the cables during operation to prevent unexpected op-eration due to static disc
2-3SectionI/O Connector and Terminal Pin Allocation34Expansion I/O BoardsInputs (24 V DC)Expansion I/O Boardwith relay outputsExpansion I/O Boardwith
35SECTION 3Installation and WiringThis section provides information on installing and wiring a CPM2B PC. Be sure to follow the directions and precauti
!!3-2SectionSelecting an Installation Site363-1 Design PrecautionsObserve the following precautions when designing a system incorporating aCPM2B PC.3-
!3-2SectionSelecting an Installation Site37Caution Be sure to install the CPM2B correctly, as outlined in this manual. Failure to do somay result in B
TABLE OF CONTENTSviiiSECTION 7Test Runs and Error Processing 113. . . . . . . . . . . . . . . . . . . . 7-1 Initial System Checks and Test Run Procedu
3-3SectionAssembling the CPM2B Boards38Ensure that the CPM2B can be accessed for normal operation and mainte-nance. High-voltage equipment, power line
3-4SectionInstalling the CPM2B39Installing the Expansion I/O Connecting Cables1, 2, 3... 1. Insert the Expansion I/O Cable into the connectors on the
!3-5SectionWiring and Connections40Example InstallationsMounting BracketScrew and nutinstallationScrew and tappedpanel installationNote 1. Use M4 scre
3-5SectionWiring and Connections41ConduitsSeparate the CPM2B I/O lines, power and control lines, and power cables, asshown in the following diagram.CP
3-5SectionWiring and Connections423-5-2 I/O Wiring ProceduresRemoving and Wiring I/O Terminal BlocksThe following tables provide output terminal block
3-5SectionWiring and Connections432. Pull the terminal block out of the Board.3. Insert each lead wire into the terminal block and tighten that termin
3-5SectionWiring and Connections44OMRON Crimping ToolsCrimping Tool XY2B-0002Attachment XY2B-1007MIL 20P Loose-wire Pressure ConnectorNote Two Full Co
3-5SectionWiring and Connections453-5-3 Connecting Input DevicesWire inputs to the CPM2B CPU Board and Expansion I/O Boards as shown inthe following d
3-5SectionWiring and Connections46The following table shows how to connect various input devices.Device Circuit diagramRelay outputINCOM (+)5 mA/6 mA/
3-5SectionWiring and Connections47High-speed Counter InputsUsing IR 00000 to IR 00002 as High-speed Counter InputsIn these examples, Encoders with an
ixAbout this Manual:This manual describes the installation and operation of the CPM2B and includes the sections describedbelow.The CPM2B is a compact,
3-5SectionWiring and Connections48Special functions for input bits IR 00003 through IR 00006 are set in DM 6628:Bit Bits inPC Setup setting (in DM 662
!3-5SectionWiring and Connections492. Average rectified current must be 1 A.INCOMCPM2BDiode3-5-4 Output WiringRelay Output WiringWire the outputs to t
3-5SectionWiring and Connections50CPU Boards with Sinking Transistor OutputsOutput connector19 17 15 13 11 9 7 5 3 1LLLL LLLL01101011020110301000COM01
3-5SectionWiring and Connections51Use the PULS(65), SPED(––), ACC(––), PWM(––), and SYNC(––) instructionsto produce pulse outputs (rather than normal
3-5SectionWiring and Connections52The diode should satisfy the following requirements:Peak reverse-breakdown voltage must be at least 3 times the load
53SECTION 4Memory AreasThis section describes the structure of the PC memory areas and explains how to use them.4-1 Introduction 54. . . . . . . . . .
4-1SectionIntroduction544-1 IntroductionMost data areas in the CPM2B can be accessed as bits or words. (The TR areacan be accessed by bit address only
4-2SectionI/O Allocation55IR words that are not allocated to inputs or outputs can be used as work words.The work bits can be used freely within the p
4-2SectionI/O Allocation56CPU Board inputs are allocated input bits starting from IR 00000 and CPU Boardoutputs are allocated output bits starting fro
4-2SectionI/O Allocation57The following example shows the I/O allocation when three Expansion I/OBoards are connected to the CPU Board.16 inputsIR 000
xiPRECAUTIONSThis section provides general precautions for using the Programmable Controller (PC) and related devices.The information contained in thi
4-3SectionSR Area584-3 SR AreaThese bits mainly serve as flags related to CPM2A/CPM2C operation or containpresent and set values for various functions
4-3SectionSR Area59Word(s) Read/writeFunctionBit(s)SR 25200 High-speed Counter Reset Bit Read/write01 to 03 Not used.04 Pulse Output 0 PV Reset BitTur
4-4SectionAR Area60Word(s) Read/writeFunctionBit(s)SR 25400 1-minute clock pulse (30 seconds ON; 30 seconds OFF)Read-01 0.02-second clock pulse (0.01
4-4SectionAR Area61Word(s) FunctionBit(s)AR 0800 to 03 RS-232C Port Error Code (1-digit BCD)0: Normal completion1: Parity error2: Frame error3: Overru
4-4SectionAR Area62Word(s) FunctionBit(s)AR 11(Note 1)00 to 07 High-speed Counter Range Comparison Flags00 ON: Counter PV is within comparison range 1
4-4SectionAR Area63Word(s) FunctionBit(s)AR 1300 Power-up PC Setup Error FlagTurns ON when there is an error in DM 6600 to DM 6614 (the part of the PC
4-5SectionPC Setup64Word(s) FunctionBit(s)AR 21(Note 2)00 to 07 Day of the Week (00 to 06, BCD)00: Sunday 01: Monday 02: Tuesday 03: Wednesday04: Thur
4-5SectionPC Setup65tive, and program execution will have to be restarted to make changes inDM 6615 to DM 6644 effective.If an incorrect PC Setup sett
4-5SectionPC Setup66Word(s) FunctionBit(s)DM 661600 to 07 Servicing time for RS-232C port (Effective when bits 08 to 15 are set to 01.)00 to 99 (BCD):
4-5SectionPC Setup67Word(s) FunctionBit(s)High-speed Counter Settings (DM 6642 to DM 6644)The following settings are effective after transfer to the P
!!!!!!3Safety Precautionsxii1 Intended AudienceThis manual is intended for the following personnel, who must also have knowl-edge of electrical system
4-5SectionPC Setup68Word(s) FunctionBit(s)DM 664800 to 07 Node number (Host Link)00 to 31 (BCD)(Any other setting specifies a node number of 00, cause
4-6SectionError Log69Word(s) FunctionBit(s)DM 6652 00 to 15 Transmission delay (0000 to 9999 BCD sets a delay of 0 to 99,990 ms.)(Any other setting sp
4-6SectionError Log702. In CPU Boards without a clock, the time that the error occurred will be set toall zeroes.Error Log Storage MethodsThe error lo
71SECTION 5Instruction SetThe CPM2B PCs have large a programming instruction set that allows for easy programming of complicated control pro-cesses. T
5-1SectionCPM2B Function Codes725-1 CPM2B Function CodesThe following table lists the CPM2B instructions that have fixed function codes.Each instructi
5-2SectionAlphabetic List by Mnemonic735-2 Alphabetic List by MnemonicDashes (“––”) in the Code column indicate expansion instructions, which do notha
5-2SectionAlphabetic List by Mnemonic74Mnemonic Code Words NameINC (@) 38 2 INCREMENTINI (@) 61 4 MODE CONTROLINT (@) 89 4 INTERRUPT CONTROLIORF (@) 9
5-2SectionAlphabetic List by Mnemonic75Mnemonic Code Words NameSLD (@) 74 3 ONE DIGIT SHIFT LEFTSNXT 09 2 STEP STARTSPED (@) 64 4 SPEED OUTPUTSRCH (@)
5-3SectionExpansion Instructions765-3 Expansion InstructionsA set of expansion instructions is provided to aid in special programming needs.Function c
77SECTION 6Using Programming DevicesThis section outlines the operations possible with the Programming Consoles.6-1 Using a Programming Console 78. .
!!!!!!!5Application Precautionsxiii• Emergency stop circuits, interlock circuits, limit circuits, and similar safetymeasures must be provided in exter
6-1SectionUsing a Programming Console786-1 Using a Programming ConsoleThis section provides information on connecting and using a Programming Con-sole
6-1SectionUsing a Programming Console79The following keys are labeled differently on the CQM1-PRO01-E and theC200H-PRO27-E, but the operation of the k
!!6-1SectionUsing a Programming Console806-1-2 Changing the CPM2B’s Mode with the Mode SwitchOnce the Programming Console has been connected, its mode
6-1SectionUsing a Programming Console81The operating mode of the CPM2B when the power is turned ON depends uponthe PC Setup setting in DM 6600 and the
!6-1SectionUsing a Programming Console82Panel Installation The C200H-PRO27-E Programming Console can be installed in a control panelas shown in the fo
6-1SectionUsing a Programming Console838. Start programming.6-1-5 Entering the PasswordTo gain access to the PC’s programming functions, you must firs
6-2SectionProgramming Console Operations846-2 Programming Console Operations6-2-1 OverviewThe following table lists the programming and monitoring ope
!6-2SectionProgramming Console Operations85Name PageFunctionDisplaying the cycle time Displays the current average cycle time (scan time.) 105Reading
6-2SectionProgramming Console Operations865. Press the MONTR Key to clear the specified regions of memory.MONTR00000MEMORY CLREND HR DM6-2-3 Rea
6-2SectionProgramming Console Operations87Key Sequence Follow the procedure below to turn the key-input buzzer on and off.1, 2, 3... 1. Press the CLR,
Commenti su questo manuale