Beginner guide (986746), страница 16
Текст из файла (страница 16)
With consideration given to the nonuniformity of response time among the input cards, use anON-delay circuit for the data read input.TIM001TIM0010.1sec ON-delaytime1003ON/OFF-delayoutputTIM002100310030000TIM0020.1secOFF-delay time7-67.USEFUL CIRCUITRYPush-On/Push-Off circuit (Binary Circuit)0000DescriptionThis circuit repeat outputs at specified ON/OFF intervalswhen a signal (input signal) is applied.12345DIFU(13)0200(DIFU)0200JMP (04)0000Output1000InputJMP (05)Output00000200JMP (04)I/O Assignment10001000InputOutputWork bit 020000001000JMP (05)0000020002010202When data retention during power failure isunnecessaryCircuit Examples0000When data retention during power failure isunnecessaryDIFU(13)0200(DIFU)02000201 ON ConditionDIFU(13)0200(DIFU)1-scan differentiation(clock)(DIFU)02000202 OFF ConditionOutput0201DIFU(13)02001-scan differentiation(clock)10000201Holding relayHR0000Reset1000 OutputHolding relay 0000 holds its operation state during powerfailure 0000InOn ConditionCNT000(DIFU)RCNT000=0002Downcounter100002020201KEEP(II)HR0000HR00000000200Set10000201(DIFU)0200HR00001000100002001-scandifferentiationHR000000000200OutputOff ConditionAlways on02021000CMP(20)CNT000=00012531325501002Output(=)1000Auxiliary relay 25313 is normally ON.
Auxiliary relay25506 turns ON if the result when the Compare (CMP)instruction is executed is equal.7-77.USEFUL CIRCUITRYScanning CounterDescriptionThis circuit is used to count scan clocks to obtain timingat a very precise pulse duration.1 scan1234567Scan clockCount input (0000)Count output (1005)TT = 1 scan x 7 (count value)I/O AssignmentCount inputCount outputWork bit 200000001005Circuit ExampleThe circuit examples below are applicable to CPM1A20002000 1-scan clock20000000InRCNT000#0007DowncounterCNT0001005 Count output7-87.USEFUL CIRCUITRYConcept of IL Instruction and JMP instructionDescriptionThe IL instruction must always be used in conjunctionwith an ILC instruction, e.g., IL-ILC or IL-IL-ILC. Whenthe IL condition is logical 1, the programs between the ILand IC instructions are executed according to the ladderdiagram.
When the IL condition is logical 0, all the outputrelays, internal auxiliary relays and timers in theprograms between the IL and ILC instructions are turnedOFF, and any counters, shift registers, holding relays anddata memory relays in the same programs are held in theirpresent status.Circuit ExampleIL-JMP-JME-ILCXILProgram AYJMPProgram BThe JMP instruction must always be used in conjunctionwith a JMP instruction, e.g., JMP-JMP or JMP-JMPJME. When the JMP condition is logical 1, the programsbetween the JMP and JME instructions are executedaccording to the ladder diagram.
When the JMP conditionis logical0, all the output relays, internal auxiliary relays,timers, counters, shift register, holding relays and datamemory relays in the same programs are held in theirpresent status.Combination of IL and JMP instructions withcombinations such as IL-JMP-ILC-JME and JMP-ILJME-ILC, the CPU cannot execute programs properlyand must therefore be avoided. However, withcombinations such as IL-JMP-JME-ILC and JMP-ILILC-JME, the CPU performs program execution withoutproblem.JMEProgram CILCJMP-IL-ILC-JMEYJMPProgram AXILProgram BILCProgram CJME7-97.USEFUL CIRCUITRYLegendX:Y:A:B:IL conditionJMP conditionThe programs are executed according to the ladder diagram.Output relays, internal auxiliary relays and timers are turned off; counters, shift registers, holding relays and data memoryrelays are held in their present status.C: Output relays, internals auxiliary relays, timers, relays are held in their present status.ConcitionXYXYXYXYXYXYXYXYXYXY“1”“1”1 11 01 01 11 00 00 01 0000 10 00 00 11 10 10 10 1IL-JMP-JME-ILCProgram A Program B Program CAAAProgram AAJMP-IL-ILC-JMPProgram B Program CAAACACCCBBBABABBBCCCBBBCBCBBBCCCACACCCBBBABAAAAAAAAAAAAA7-107.USEFUL CIRCUITRYFirst-In Input Priority CircuitDescriptionWhen there are plural inputs, this circuit is used to acceptonly the first input and ignore all subsequent inputs.
Thiscircuit accepts only the first input after it has been clearedby a reset input.I/O AssignmentInput00000001000200030004000500060007000800090010DeviceInput 0Input 1Input 2Input 3Input 4Input 5Input 6Input 7Input 8Input 9Reset InputOutput1000100110021003100410051006100710081009DeviceOutput 0Output 1Output 2Output 3Output 4Output 5Output 6Output 7Output 8Output 97-117.USEFUL CIRCUITRYCircuit ExampleExample 1This circuit is applicable to CPM1A0100 Reset inputIL(02)00001001100210031004100510061007100810091000 Output 01000000110001001 Output 11001000210011002 Output 21002000310021003 Output 31003000410031004 Output 41004000510041005 Output 51005000610051006 Output 61006000710061007 Output 71007000810071008 Output 81008000910081009 Output 91009ILC(03)7-127.USEFUL CIRCUITRYExample 20100 Reset inputIL(02)1000100110021003100410051006100710081009JMP(04)00001000 Output 01000JMP(04)00011001 Output 11001JMP(04)00021002 Output 21002JMP(04)00031003 Output 31003JMP(04)00041004 Output 41004JMP(04)00051005 Output 51005JMP(04)00061006 Output 61006JMP(04)00071007 Output 71007JMP(04)00081008 Output 81008JMP(04)00091009 Output 9JMP(04)ILC(03)7-137.USEFUL CIRCUITRYLast-In Input Priority CircuitDescriptionWhen there are plural inputs, this circuit is used to acceptonly the first input and clear all the preceding inputs.
Thisis cleared by a reset input.I/O AssignmentInput0000000100020003000400050006000700080009001000110012001300140015DeviceInput 0Input 1Input 2Input 3Input 4Input 5Input 6Input 7Input 8Input 9Input 10Input 11Input 12Input 13Input 14Input 15Output1000100110021003100410051006100710081009101010111012101310141015DeviceOutput 0Output 1Output 2Output 3Output 4Output 5Output 6Output 7Output 8Output 9Output 10Output 11Output 12Output 13Output 14Output 15Others0300Auxillarytorelay0315Circuit Example0000DIFU(13)03000300IL(02)0001DIFU(13)0301This circuit outputs the differentiation of inputs 0 to 15 (i.e.,0000 to0015).For the differentiation outputs, auxiliary relays 0300 to 0315 areused.0301IL(02)0002DIFU(13)03020302IL0003DIFU(13)03030303IL0004DIFU(13)03047-147.USEFUL CIRCUITRY0304IL(02)0005DIFU(13)03050305IL0006DIFU(13)03060306IL0007DIFU(13)03070307IL0008DIFU(13)03080308IL0009DIFU(13)03090309IL0010DIFU(13)03100310IL0011DIFU(13)03110311IL(02)0012DIFU(13)0312When inputs 0 to 15 (0000 to 0015) turn ON within the same cycle,the input with the lowest program address number takes precedenceover the other inputs.0312IL(02)0013DIFU(13)03130313IL0014DIFU(13)03140314IL0015DIFU(13)0315ILC(03)(Normally ON)CMP(20)03#000025313If the differentiation outputs are 0000, auxiliary relay 25506 turnsON.If the differentiation outputs are not 0000, the data in auxiliary relaychannel 03 are transferred to output relay channel 10.
Therefore, thedata in auxiliary relays 0300 to 0315 are transferred to 1000 to 1015and the latter group of auxiliary relays are the outputs.25506(=)MOV(21)33107-157.USEFUL CIRCUITRYNon-Lock-In AnnunicatorDescriptionThis circuit is used to generate alarm display outputs if afailure occurs.Alarm input 0000Alarm display output 10000Alarm buzzer output 1001Lamp test input 0010Buzzer reset input 0011One-point Non-lock-in Annunicator(1) I/O assignmentInput000000100011Output10001001Others255022000DeviceAlarm inputLamp test inputBuzzer reset inputDeviceAlarm display outputAlarm buzzer output(2) Circuit exampleThis circuit is applicable to CPM1A(1-sec clock)0000255022000001000111-sec clockWork bitAlarm display1000 output00002000 Buzzer stop200000002000Alarm buzzer1001 output7-167.USEFUL CIRCUITRY16-point Non-lock-in Annunicator(1) I/O assignmentInput0000 to 0015(16 points)01000101Output1000 to 1015(16 points)1100Others25502253132550625507DM000DM509DM510 “0000”DM511 “FFFF”0400 to 0402(2) Programming concept (Flowchart)DeviceStartAlarm inputLamp test inputBuzzer reset inputDeviceAlarm display outputAlarm buzzer output1-sec clockNormally ON relayEqual (=)Less than (<)Data memory 1Work areaConstantData 1Data 2Auxiliary relays“0000”“FFFF”DM510DM511LampTest input01001-sec clock25502‘FFFF’(ON)Alarm inputsOCHIs there alarminputAlarm displayoutputs 02CH(ON)“0000” ORW data memory 1OCHBuzzerReset input0101Alarm display output02CHAlarm display output02CHAlarm input00CHData memory 1DM000(ON)Alarm buzzer output OFF 1100(ON)(YES)Alarm input AND W data memory 11 00CHDM000DataMemory 1Alarm input(<)Data memory 1DM000Alarm buzzer ON11007-177.USEFUL CIRCUITRY(2) Circuit Example(Normally ON)MOV(21)#0000DM51025313MOV(21)#FFFFDM5110100MOV(21)#FFFFDM510Constant “0000” and “FFFF” are store in DM510 and DM511,respectively.Data “FFFF” is transferred to the display output (02CH).0100JMP(04)25502MOV(21)0010(1-sec clock)25502ORW(35)DM510DM000DM509When the 1-sec clock (auxiliary relay 25502) is ON, the contentsof alarm input (00CH) are transferred to the display output(02CH).When the 1-sec clock (auxiliary relay 25502) is OFF, data“0000” is Ored with the contents of DM000 and the result of theOR operation is transferred to the alarm display output (02CH).MOV(21)DM5091001010400(Normally ON)25313Alarm buzzer output OFF.MOV(21)00DM000When the buzzer reset input (0101) is ON, the contents of thealarm input (00CH) are stored in DM000.CMP(20)00#0000Check if all the contents of the alarm input (00CH) are “0000”.
Ifso, auxiliary relay 25506 is turned ON.255060401Alarm buzzer output OFF.(=)(Normally ON)253132550704020400(Less than)<MOV(21)00DM509The contents of alarm input (00CH) are stored in data memoryDM509.AND W(34)DM509DM000DM000When the buzzer reset input (0101) is ON, the old contents ofalarm input which were stored in DM000 ANDed with thecurrent contents of alarm input (00CH) and the result is stored inDM000. If the status of the alarm input is changed, auxiliaryrelay 25507 turns ON.CMP(20)DM000DM5090402Alarm buzzer outputON.1000Alarm buzzer output.04011000JME(05)7-187.USEFUL CIRCUITRYLock-In AnnunicatorDescriptionThis circuit is used to generate alarm display outputs.Alarm input 0000Alarm display output 10000Alarm buzzer output 1001Lamp test input 0001Buzzer reset input 0002One-point lock-in Annunicator(2) Circuit exampleThis circuit is applicable to CPM1A(1) I/O assignmentInput000001000110Output10001001DeviceAlarm inputLamp test inputBuzzer reset inputDeviceAlarm display outputAlarm buzzer output20002001200000000002200020012001Others25502200020011-sec clockWork bits(1-sec clock)255022000Alarm display1000 output2001000120002001Alarm buzzer1001 output7-197.USEFUL CIRCUITRY16-point lock-in Annunicator(1) I/O assignmentInput0000 to 0015(16 points)01000101Output1000 to 1015(16 points)1100Others25502253132550625507DM000DM001DM002DM509DM510 “0000”DM511 “FFFF”0200 to 0201(2) Programming concept (Flowchart)DeviceStartAlarm inputLamp test inputBuzzer reset inputDeviceAlarm display outputAlarm buzzer output“0000”“FFFF”DM510DM511LampTest input0100‘FFFF’Alarm display output02CH(ON)(OFF)1-sec clockNormally ON relayEqual (=)Less than (<)Data memory 1Data memory 2Data memory 3Work areaData 1Data 2Auxiliary relaysAlarm input ORW data memory 100CHDM0001sec clock25502(ON)Data memory 1DM000Data memory 1DM000Alarm displayoutputs 02CH(OFF)“0000” OR W data memory 2DM000BuzzerReset input0101(ON)(OFF)Alarm display output10Alarm inputData memory 1DM000DM000Alarm inputData memory 300CHDM001Alarm inputData memory 200CHDM002Alarm buzzer output OFF1100Data memory 3 AND W data memory 2Word areaDM002DM001DM509Word area AND W data memory 1Data memory 1DM509DM510DM510Data memory 3 AND W data memory 2Data memory 3DM002DM001DM002Alarm input AND W data memory 2 Data memory 200CHDM001DM001DataMemory 2Alarm input(<)Alarm buzzer output ON11007-207.USEFUL CIRCUITRY(1) Circuit Example(Normally ON)25313MOV(21)#0000DM510Constant “0000” and “FFFF” are store in DM510 and DM511,respectively.MOV(21)#FFFFDM5110100MOV(21)DM51102Data “FFFF” is transferred to the alarm display output (02CH).0100JMP(04)25313MOV(21)00DM509ORW(35)DM509DM000DM00025502(1-sec clock)MOV(21)DM00002The contents of the alarm input (00CH) are stored in the datamemory 1 (DM000).When the 1-sec clock (25502) is ON, the contents of the datamemory 1 (DM0000) are transferred to the alarm display output(02CH).25502ORW(35)DM510DM001DM509When the 1-sec clock (25502) is OFF, data “0000” is Ored withthe contents of the memory 2 (DM001) and the result of the ORoperation is transferred to the alarm display output (02CH).MOV(21)DM5090201010200Alarm buzzer output OFF.MOV(21)00DM000MOV(21)00DM001When the buzzer reset input (0101) is ON, the contents of thealarm input (00CH) are stored in the data memories 1 to 3(DM000 to DM 002).MOV(21)00DM0027-217.USEFUL CIRCUITRY(Normally ON)25313MOV(21)00DM509AND W(34)DM002DM509DM509The contents of the data memory 1 (DM000) are rewritten.COM(29)DM509AND W(34)DM509DM000DM000AND W(34)DM002DM001DM002MOV(21)00DM509The contents of the data memory 3 (DM002) are rewritten.The contents of the data memory 2 (DM001) are rewritten.AND W(34)DM509DM001DM001COM(20)DM001DM50925507 (Less than)<0201Checks the status of the alarm input (00CH) for any change.