Beginner guide (986746), страница 6
Текст из файла (страница 6)
You could find the internal Auxiliary, Data Memory,Link Relays, Timers/Counters & Holding Relays areas, etc. For complete understanding, you shouldread through this manual.2-242.•SYSTEM CONFIGURATIONPLC Electrical Wiring ExampleINPUT WIRING (DC24V)CH0+24VDCCOM00Push Button01Limit Switch02(NPN)ProximitySensor030405CPM10607LightSource08ReceiverSequence Type PhotoSensor (NPN)091011Interlock Contact- 0VOUTPUT WIRING (Contact)CH10COMFuseLIndicator00GCOMSolennoid ValveN01COM02CPM1+24VBZ0VCOM030.5A MotorCOM04ContactorC0506072-253.qFEATURES & FUNCTIONSCPM1A General• The CPM1A is a compact PLC with 10, 20, 30 or 40 I/O terminals built into the CPU.• An Expansion I/O Unit can be connected to the 30 and 40 I/O−point CPU to add an extra I/Opoint.• Flash memory provides memory backup without a battery.• The CPM1A−10CDR− PCs can handle 2 interrupt inputs; the CPM1A−20CDR− ,CPM1A−30CDR− and CPM1A−40CDR− PCs can handle 4 interrupt inputs.
In addition tonormal input interrupts, the CPM1A has a counter mode that counts high-speed input signals andtriggers interrupts at fixed count multiples.• Quick-response inputs can detect input signals with a pulse width as short as 0.2 ms regardless oftheir timing during the PLC cycle. Quick-response inputs and interrupt inputs use the same inputterminals.• CPM1A PLCs have a high-speed interval timer which can be set from 0.5 ms to 319,968 ms. Thetimer can be set to trigger a single interrupt (one-shot mode) or repeat scheduled interrupts(scheduled interrupt mode).• CPM1A PLCs have a high-speed counter that can be used in incremental mode or up/downmode.
The high-speed counter can be combined with input interrupts to perform target valuecontrol or zone comparison control that isn’t affected by the PLC’s cycle time.• The CPM1A PLCs have 2 analog volume controls that can be used to make manual analogsettings manually. These can be used to externally set timing or counter values etc.• The CPM1A PLCs are compatible with the Host Link, which allows communications withpersonal computers or Programmable Terminals.• An RS−232C Adapter is used for 1−to−1 communications and an RS−422 Adapter is used for1−to−n communications.• A data link can be created with the LR data area in another CPM1A, CPM1, CQM1, or C200HSPLC. An RS−232C Adapter is used to make the 1−to−1 connection.• High−speed Man−Machine Interface operations can be achieved by connecting the CPM1A tothe Programmable Terminal through the NT Link Interface.
An RS−232 Adapter is used for thisconnection.• The CPM1A uses the same Programming Consoles and Syswin Programming Software as otherOmron C-Series PLCs.3-13.•FEATURES & FUNCTIONSAnalog Setting FunctionCPM1A PLCs have 2 analog volume controls that can used to make analog timer and countersettings manually.
When one of the volume controls is turned, the content of the correspondingInternal Relay word is set automatically between 0 and 200 (BCD).Analog setting 0Analog setting 1* Philip screwdriver is required.The following table shows which SR bits are allocated to the I/O terminals on the CPM1A’s CPUand Expansion I/O Unit.ControlAnalog volume control 0Analog volume control 1Corresponding IR wordSR 250SR 251Setting range (BCD)0000 to 02003-23.•FEATURES & FUNCTIONSInputs InterruptsThere are two input interrupts in the CPM1A 10−point I/O CPU and four in the 20−, 30− and40−point I/O CPUs.
Input interrupts are available in two modes: input interrupt mode and countermode.1.When an interrupt occurs in Input Interrupt Mode, the main program shuts down irrelevant ofthe cycle time, and the interrupt program is executed immediately.2.In Counter Mode, external input signals are counted at high speed (up to 1 kHz) and aninterrupt is generated each time the count reaches the set value. When an interrupt occurs, themain program shuts down and the interrupt program is executed. The set value can be set from0 to 65,535.The following diagram shows the program execution when an interrupt occurs.Main ProgramInput interruptMOVADDInterrupt ProgramSBN00MOVENDRETPC modelCPM1A−10CDR−CPM1A−20CDR−CPM1A−30CDR−CPM1A−40CDR−Input bitsIR 00003 to IR 00004IR 00003 to IR 00006Response time0.3 ms(1 kHz in Counter Mode)3-33.•FEATURES & FUNCTIONSQuick-response Inputs FunctionsThe CPM1A−10CDR−[] PLCs have 2 quick-response input terminals andCPM1A−20CDR−[]/30CDR−[]/40CDR−[] PLCs have 4 quick-response input terminals.(The same terminals are used for quick-response inputs and interrupt inputs.)theQuick-response inputs have an internal buffer, so input signals shorter than one cycle can bedetected.OverseeingprocessProgramexecutionI/OrefreshingOverseeingprocessProgramexecutionI/Orefreshing0.2 ms minInput signal(00003)IR 00003One cycleThe following table shows the input bits use for Quick-response input function.PC modelCPM1A−10CDR−[]CPM1A−20CDR−[]CPM1A−30CDR−[]CPM1A−40CDR−[]•Input bitsIR 00003 to IR 00004IR 00003 to IR 00006Minimum input pulse width0.2 msInterval Timer FunctionCPM1A are equipped with an interval timer which can be set from 0.5 ms to 319,968 ms in units of0.1 ms.
The timer can be set to trigger a single interrupt (one−shot mode) or repeat scheduledinterrupts (scheduled interrupt mode).ModeOne−shotScheduled interruptFunctionGenerates a single interrupt the first time that the timer times out.Generates an interrupt each time that the timer times out.3-4•FEATURES & FUNCTIONSHigh-speed CounterCPM1A have a high−speed counter function that can be used in increment mode or up/down mode.Using this function together with the input interrupts enables target value control or zonecomparison control irrelevant of the PLC’s cycle time.Count input0000000001000023.Reset inputSolenoidSensorRotaryEncoderInverter,etc.ModeInput no.IncrementalUp/Down00000Count inputA−phase input00001--B−phase input00002Reset inputZ−phase inputInput methodsingle−phase inputPhase−difference, 4x inputs5.0 kHz2.5 kHzCount frequency0 to 65535Count range−32767 to 32767Target valueUp to 16 target values and interrupt subroutine numbers canControlcontrolbe registered.methodZone comparisonUp to 8 sets of upper and lower limit values, and interruptcontrolsubroutine numbers can be registered.Note In increment mode, this input (00001) can be used as an regular input.3-53.qFEATURES & FUNCTIONSCPM2A General•The CMP2A is a compact PLC with 30, 40 or 60 I/O terminals built-in.•Expansion Unit can be connected to the 30, 40 or 60 I/O-point CPU to add extra I/O points.Maximum of 3 expansion unit can be connected for a maximum I/O configuration of 120points.•CPM2A PLCs have built-in RS-232C port and Peripheral Port.•CPM2A PLCs have a high speed counter that can be used in Incremental mode, Pulse +Direction input mode and Up/Down pulse input mode which allows a response frequency of upto 20 kHz.
The high speed counter can be also be used in Differential phase input mode with amaximum response frequency of 5kHz.•CMP2A PLCs have 4 points for interrupt inputs function.•CMP2A PLCs have 2 analog volume controls that can be used to make analog setting manually,for instance, externally set control period or counter values etc.•CPM2A PLCs have 2 pulse outputs.•CPM2A-CDT-D and CPM2A-CDT1-D have Synchronized Pulse control.3-63.•FEATURES & FUNCTIONSInterrupt FunctionsThe CPM2A provides the following kinds of interrupt processing.Interrupt InputsInterrupt programs are executed when inputs to the CPU Unit’s built-in input points (00003 to00006) are turned from OFF to ON. Interrupt subroutine numbers 000 to 003 are allocated to inputpints 00003 to 00006.Interval Timer InterruptsInterval timer interrupt programs are executed with the precision of 0.1ms. Interrupt subroutinenumbers 000 to 049 are allocated by instructions.Count-up interrupts Using Interrupts Using Interrupt Inputs (Counter Mode)Input signals to the CPU Unit’s built-in input points (0003 to 00006 are counted at high speed(2kHz), and the normal program is stopped and an interrupt program is executed.
Interruptsubroutine numbers 000 to 003 are allocated to input points 00003 to 00006.Count-check Interrupts Using the High-speed CounterPulse inputs to the CPU Unit’s built-in input points (00003 to 00006) are counted at high speed (20kHz/5 kHz), and an interrupt program is executed when the present values matches the target valueor falls within a given range. Interrupt subroutine numbers 000 to 049 are allocated by instructions.The order of priority for interrupts is as follows:Interrupt inputs = Count-up interrupts >Interval timerHigh-speed counter=interruptscount check interruptsIf an interrupt with a higher priority is generated. During interrupt program execution, the interruptthat is currently being processed will be stopped and the new interrupt will be processed first.