Beginner guide (986746), страница 19
Текст из файла (страница 19)
Although the program will be restored, thecounter values and the contents of the DM area, Hr area, and AR area will be lost.I/O SpecificationsCPU Input Specifications of CPM1AItemInput voltageInput IrnpedanceInput currentON voltageOFF voltageON delayOFF delayCircuit configurationSpecificationIN00000 to IN00002: 2 kΩ ; other input: 4.7 kΩIN00000 to IN00002: 12 mA typical; other inputs: 5 mA typical5.0 VDC max.8 ms max. (see note).Note: Figures in parentheses are for IN00000 to IN00002.Note The input time constant for ON/OFF delays can be set to 1,2,4,8,16,32,64,128 ms.
When IN00000through IN00002 are used as high-speed counter puts, the delays are as shown in the followingtable.ItemIN00000 (A-phase)IN0000l (B-phase) Normal inputIN00002 (Z-phase)Increment modeDifferential phase mode5 KHz2.5 KHzNormal InputON: 100 µs max.
; OFF delay: 500 µs max.B-110.Appendix B - SpecificationsWhen 1N00003 through 1N00006 are used as interrupt inputs, the delay is 0.3 ms max. The delay ismeasured from the time that the input goes ON until the interrupt subroutine is executed.CPU Unit Output SpecificationsItemOutput typeMax. switching capacityMin. Switching capacityService life of relayON delayOFF delayCircuit configurationSpecificationAll Outputs are relay outputs2 A, 250 VAC (cos φ = 1)2 A, 24 VDC (4 A/common)10 mA, 5 VDCElectrical: 300,000 operations (resistive load) 100,000 operations (inductive load)Mechanical: 20,000,000 operations15 rns max. (see note)15 ms max. (see note).B-210.Appendix B - SpecificationsCPU Unit Input Specification for CPM2AItemInput voltageInput impedanceInput currentON voltage/currentOFF voltage/currentON delayOFF delayCircuit configurationInputAllIN00000 to IN00001IN00002 to IN00006IN00007 to upIN00000 to 1N000011N00002 to 1N000061N00007 to upIN00000 to IN00001IN00002 to upAllAllAllIN00000 to IN0000lSpecification24 VDC +10%/-15%1.8 kΩ3.9 kΩ4.7 kΩ9 mA typical6 mA typical5 mA typical17 VDC mm., 5 mA14.4 VDC min., 3 mA5.0 VDC max., 1 mA1 to 80 ms max.
Default: 10 ms (See note.)1 to 80 ms max. Default: 10 ms (See note.)IN00002 to IN00006IN00007 to upNote The input time constant can be set to 1,2,3,5,10,20,40 ot 80 ms in the PLC Setup.High-speed Counter InputsInputs IN00000 through IN00002 can be used as high-speed counter inputs, as shown in thefollowing table. The maximum count frequency is 5 kHz in differential phase mode and 20 kHz inthe other modes.B-310.InputAppendix B - SpecificationsFunctionPulse + direction inputUp/down Input modeIncrement mode inputmodemodeA-phase pulse inputPulse inputIncrement pulse inputIncrement pulse inputB-phase pulse inputDirection inputDecrement pulse inputNormal inputZ-phase pulse input or hardware reset input(1N00002 can be used as a normal input when it is not used as a high-speed counter input.)Differential phase modeIN00000IN0000lIN00002The minimum pulse widths for the inputs IN00000 (A-phase input) and IN00001 (B-phase input)are as follows:Pulse-Direction Input modeUp/Down Input modeDifferential Phase mode,Up/Down Input modeThe minimum pulse width for input IN00002 (Z-phase input) is as follows:Interrupt InputsInputs 1N00003 through IN00006 can be used as interrupt inputs (interrupt input mode or countermode) and quick-response inputs.
The minimum pulse width for these inputs is 0.05 ms.B-410.Appendix B - SpecificationsCPM2A CPU unit and Expansion I/O Unit Input Specifications (Relay Output)ItemMax. switching-capacityMin. Switching capacity 10 mAService life of relaySpecification2 A, 250 VAC (cos φ = 1)2 A, 24 VDC5 VDCElectrical: 150,000 operations (30-VDC resistive load)100,000 operations (240-VAC inductive load, cos φ = 4)Mechanical: 20,000,000 operationsON delay15 ms max.OFF delay15 ms max.Circuit configurationExpansion I/O Unit Input SpecificationsItemSpecificationInput voltage24 VDCInput impedance4.7 kΩInput current5 mA typicalON voltage14.4 VDC min.OFF voltage5.0 VDC max.ON delay1 to 80 ms max.
Default: 10 ms (See note.)OFF delayCircuit configuration1 to 80 ms max. Default: 10 ms (See note.)Note The input time constant can be set to 1,2,3,4,5,10,20, 40 or 80 ms in the PLC Setup.B-510.Appendix B - SpecificationsTransistor Output (Sinking)ItemSpecification30 CDT-D40 CDT-D60 CDT-D4.5 to 30 VDC, 0.3 A/Output (See Note)0.9A/Common 0.9A/Common0.9A/Common2.7 A/Unit3.6 A/Unit5.4A /UnitMax. SwitchingCapacity20 EDT8ET0.9A/Common1.8 A/Unit0.9A/Common1.8 A/UnitLeakage Current0.1 mA max.Residual Voltage1.5 V max.On DelayOUT01000 and OUT01001 : 20 µs max.OUT01002 and up: 0.1 ms max.OFF DelayOUT01000 and OUT01001 : 40 µs max.
(4.5 to 26.5 V, 10 to 100 mA)0.1 ms max. (4.5 to 30 V, 10 to 300 mA)OUT01002 and up:1 ms max.Fuse1 fuse/output ( cannot be replaced by the user)Circuit configurationNote When using OUT01000 or OUT01001 as a pulse output, connect a dummy resistor as required tobring the load current between 0.01 and 0.1A. If the load current is below 0.1A, the ON-to-OFFresponse time will be shorter and high-speed pulses (source-type transistor outputs) will not beoutput. On the other hand, if the load current is above 0.1A, the transistor will generate more heatand components may be damaged.B-610.Appendix B - SpecificationsTransistor Output (Sourcing)ItemSpecification30 CDT1-D40 CDT1-D60 CDT1-D4.5 to 30 VDC, 0.3 A/Output (See Note)0.9A/Common 0.9A/Common0.9A/Common2.7 A/Unit3.6 A/Unit5.4A /UnitMax. SwitchingCapacity20 EDT18ET10.9A/Common1.8 A/Unit0.9A/Common1.8 A/UnitLeakage Current0.1 mA max.Residual Voltage1.5 V max.On DelayOUT01000 and OUT01001 : 20 µs max.OUT01002 and up: 0.1 ms max.OFF DelayOUT01000 and OUT01001 : 40 µs max.
(4.5 to 26.5 V, 10 to 100 mA)0.1 ms max. (4.5 to 30 V, 10 to 300 mA)OUT01002 and up:1 ms max.Fuse1 fuse/output ( cannot be replaced by the user)Circuit configurationNote When using OUT01000 or OUT01001 as a pulse output, connect a dummy resistor as required tobring the load current between 0.01 and 0.1A.
If the load current is below 0.1A, the ON-to-OFFresponse time will be shorter and high-speed pulses (source-type transistor outputs) will not beoutput. On the other hand, if the load current is above 0.1A, the transistor will generate more heatand components may be damaged.B-710.Appendix B - SpecificationsRS-232C Adapter SpecificationsItemSpecificationConverts between the CMOS format (PC CPU side) and the RS 232Cformat (personal computer side).The RS 232C (personal computer side) is isolated by a DC/DCconverter and photocoupler.Power is supplied from the PC CPU0.3 A max.38,400 bps max.10 to 57 Hz: 0.075-mm amplitude57 to 150 Hz: 9.8 m/s 2 (1G) acceleration in X,Y, and Z directions for80 minutes each (Time coefficient; 8 minutes x coefficient factor 10=total time 80 minutes)FunctionInsulationPower supplyPower consumptionBaud rateVibration resistance147 m/s 2 (15G) three times each in X,Y, and Z directionsOperating: 0°C to 55°CStorage: -20°C to 75 °C10% to 90% (with no condensation)Must be free from corrosive gas200 g max.Shock resistanceAmbient temperatureHumidityAtmosphereWeightRS-232 Adapter1,2,3....1.2.3.Mode Setting SwitchSet this switch to "HOST" when using a Host Link System to connect to a personal computer.Set this switch to "NT" when connecting to Programmable Terminal or PC for 1:1 link.ConnectorConnects to the CPU's Peripheral Port.RS-232C PortConnects to the RS-232C cable from the other device such as a personal computer, PeripheralDevice, or Programmable Terminal.B-810.Appendix B - SpecificationsRS-422C Adapter SpecificationsItemSpecificationConverts between the CMOS format (PC CPU side) and the RS 422Cformat (Peripheral Device side).The RS 232C (personal computer side) is insulated by a DC/DCconverter and photocoupler.Power is supplied from the CPU0.3 A max.38,400 bps max.10 to 57 Hz: 0.075-mm amplitude57 to 150 Hz: 9.8 m/s 2 (1G) acceleration in X,Y, and Z directions for80 minutes each (Time coefficient; 8 minutes x coefficient factor 10=total time 80 minutes)147 m/s 2 (15G) three times each in X,Y, and Z directionsOperating: 0°C to 55°CStorage: -20°C to 75 °C10% to 90% (with no condensation)Must be free from corrosive gas200 g max.FunctionInsulationPower supplyPower consumptionBaud rateVibration resistanceShock resistanceAmbient temperatureHumidityAtmosphereWeightRS-422 Adapter1,2,3....1.2.3.Termination Resistance SwitchSet the termination resistance switch to "ON" (upper side) for the link Adapters on both ends ofthe Host Link system and for the RS-422 Adapter.ConnectorConnects to the CPU's Peripheral Port.RS-422 PortConnects to the Host Link network.B-910.Appendix C- Programming InstructionsInstruction available in CPM1A and CPM2A• Sequence InstructionsSequence Input InstructionsInstructionMnemonicCodeFunctionLOADLD0Connects an NO condition to the left bus bar.LOAD NOTLD NOT0Connects an NC condition to the left bus bar.ANDAND0Connects an NO condition in series with the previous conditionAND NOTAND NOT0Connects an NC condition in series with the previous conditionOROR0Connects an NO condition in parallel with the previous condition.OR NOTOR NOT0Connects an NC condition in parallel with the previous condition.AND LOADAND LD0Connects two instruction blocks in series.OR LOADOR LD0Connects two instruction blocks in parallel.Note: 0: Instruction keys allocated to the Programming Console.Sequence Output InstructionsInstructionMnemonic CodeFunctionOUTPUTOUT0Outputs the result of logic to a bit.OUT NOTOUT NOT0Reverses and outputs the result of logic to a bit.SETSET0Force sets (ON) a bit.RESETRESET0Force resets (OFF) a bit.KEEPKEEP11Maintains the status of the designated bit.DIFFERENTIATEDIFU13Turns ON a bit for one cycle when the execution condition goesUPfrom OFF to ON.DIFFERENTIATEDIFD14Turns ON a bit for one cycle when the execution condition goesDOWNfrom ON to OFF.Note:0:Instruction keys allocated to the Programming Console.Sequence Control InstructionsInstructionNO OPERATIONENDINTERLOCKMnemonicNOPENDILCode000102Function--Required at the end of the program.It the execution condition for IL(02) is OFF, all outputs are turnedOFF and all timer PVs reset between IL(02) and the next ILC(03).INTERLOCKCLEARJUMPILC03ILC(03) indicates the end of an interlock (beginning at IL(02)).JMP04JUMP ENDJME05If the execution condition for JMP(04) is ON, all instructionsbetween JMP(04) and JME(05) are treated as NOP(OO).JME(05) indicates the end of a jump (beginning at JMP(04)).C-110.Appendix C- Programming InstructionsTimer/Counter InstructionsInstructionMnemonicCodeFunctionTIMERTIM0An ON-delay (decrementing) timer.COUNTERCNT0A decrementing counter.REVERSIBLECNTR12Increases or decreases PV by one.COUNTERHIGH-SPEEDTIMH15A high-speed, ON-delay (decrementing) timer.TIMERNote: 0: Instruction keys allocated to the Programming Console.Data Comparison InstructionsInstructionCOMPAREDOUBLECOMPAREMnemonicCMPCMPLCode2060FunctionCompares two four-digit hexadecimal values.Compares two eight-digit hexadecimal values.BLOCKCOMPARE(@)BCMP68Judges whether the value of a word is within 16 ranges (defined bylower and upper limits).TABLECOMPARE(@)TCMP85Compares the value of a word to 16 consecutive words.Data Movement InstructionsInstructionMOVEMOVE NOTMnemonic(@)MOV(@)MVNCode2122BLOCKTRANSFERBLOCK SETDATAEXCHAGESINGLE WORDDISTRIBUTEDATACOLLECTMOVE BIT(@)XFER70(@)BSET(@)XCHG7173(@)DIST80(@)COLL81(@)MOVB82MOVE DIGIT(@)MOVD83FunctionCopies a constant or the content of a word to a word.Copies the complement of a constant or the content of a word to aword.Copies the content of a block of up to 1,000 consecutive words to ablock of consecutive words.Copies the content of a word to a block of consecutive words.Exchanges the content of two words.Copies the content of a word to a word (whose address isdetermined by adding an offset to a word address).Copies the content of a word (whose address is determined byadding an offset to a word address) to a word.Copies the specified bit from one word to the specified bit of a word.Copies the specified digits (4-bit units) from a word to the specifieddigits of a word.C-210.Appendix C- Programming InstructionsShift InstructionsInstructionSHIFTREGISTERWORD SHIFTMnemonicSFT(@)WSFT16ASYNCHRONOUSSHIFT REGISTER(@)ASFT17ARITHMETICSHIFT LEFTARITHMETICSHIFT RIGHTROTATE LEFT(@)ASL25(@)ASR26(@)ROL27ROTATE RIGHT(@)ROR28ONE DIGITSHIFT LEFTONE DIGITSHIFT RIGHT(@)SLD74(@)SRD75REVERSIBLESHIFT REGISTER(@)SFTR84Note:Code0/10FunctionCopies the specified bit (0 or 1) into the rightmost bit of a shiftregister and shifts the other bits one bit to the left.Creates a multiple-word shift register that shifts data to the leftin one-word units.Creates a shift register that exchanges the contents of adjacentwords when one is zero and the other is not.Shifts a 0 into bit 00 of the specified word and shifts the otherbits one bit to the left.Shifts a 0 into bit 15 of the specified word and shifts the other bitsone bit to the right.Moves the content of CY into bit 00 of the specified word, shiftsthe other bits one bit to the left, and moves bit 15 to CY.Moves the content of CY into bit 15 of the specified word, shifts theother bits one bit to the left, and moves bit 00 to CY.Shifts a 0 into the rightmost digit (4-bit unit) of the shift registerand shifts the other digits one digit to the left.Shifts a 0 into the rightmost digit (4-bit unit) of the shift registerand shifts the other digits one digit to the right.Creates a single or multiple-word shift register that can shift data tothe left or right.0: Instruction keys allocated to the Programming Console.Increment/Decrement InstructionsInstructionINCREMENTDECREMENTMnemonic(@)INC(@)DECCode3839FunctionIncrements the BCD content of the specified word by 1.Decrements the BCD content of the specified word by 1.BCD/Binary Calculation InstructionsInstructionBCD ADDBCD SUBTRACTMnemonic(@)ADD(@)SUBCode3031BDC MULTIPLYBCD DIVIDE(@)MUL(@)DIV3233BINARY ADDBINARYSUBTRACTBINARYMULTIPLYBINARY DIVIDE(@)ADB(@)SBB5051(©)MLB52(@)DVB53DOUBLE BCDADD(Con’t)(@)ADDL54FunctionAdds the content of a word (or a constant).Subtracts the contents of a word (or constant) and CY from thecontent of a word (or constant).Multiplies the content of two words (or contents).Divides the contents of a word (or constant) by the content of aword (or constant).Adds the contents of two words (or constants) and CY.Subtracts the content of a word (or constant) an CY from thecontent of the word (or constant).Multiplies the contents of two words (or constants).Divides the content of a word (or constant) by the content of a wordand obtains the result and remainder.Add the 8-digit BCD contents of two pairs of words (or constants)and CY.C-310.Appendix C- Programming InstructionsInstructionDOUBLE BCDSUBTRACTMnemonic(@)SUBLCode55DOUBLE BCDMULITPLYDOUBLE BCDDIVIDE(@)MULL56(@)DIVL57FunctionSubtracts the 8-digit BCD contents of a pair of words (or constants)and CY from the 80digit BCD contents of a pair of words ( orconstants).Multiplies the 8-digit BCD contents of two pairs of words (orconstants).Divides the 8-digit BCD contents of a pair of words (or constants)by the 8 –digits BCD contents of a pair of words (or constants)Data Conversion InstructionsInstructionBCD TOBINARYBINARY TOBCD4 to 16DECODER16 to 4DECODERMnemonic(@)BINCode23FunctionConverts 4-digit BCD data to 4-digit binary data.(@)BCD24Converts 4-digit binary data to 4 digit BCD data.(@)MLPX76(@)DPMX77(@)ASC86Takes the hexadecimal value of the specified digit(s) in a word andturn ON the corresponding bit in a word(s).Identifies the highest ON bit in the specified word(s) and moves thehexadecimal value(s) corresponding to its location to the specifieddigit(s) in a word.Converts the designated digit(s) of a word into the equivalent 8-bitASCII code.ASCII CODECONVERTLogic InstructionsInstructionCOMPLEMENTMnemonic(@)COMCode29LOGICAL ANDLOGICAL OREXCLUSIVE OREXCLUSIVENOR(@)ANDW(@)ORW(@)XORW(@)XNRW34353637FunctionTurns OFF all ON bits and turns ON all OFF bits in the specifiedwordLogically ANDs the corresponding bits of two word (or constants)Logically ORs the corresponding bits of two word (or constants)Exclusively ORs the corresponding bits of two words (or constants)Exclusively NORs the corresponding bits of two words (orconstants).Special Calculation InstructionsInstructionBIT COUNTERMnemonic(@)BCNTCode67FunctionCounts the total number of bits that are ON in the specified block__________C-410.Appendix C- Programming InstructionsSubroutine InstructionsInstructionSUBROUTINEENTERSUBROUTINEENTRYSUBROUTINERETURNMACROMnemonic(@)SBSCode91FunctionExecutes a subroutine in the main program.SBN92Marks the beginning of a subroutine program.RET93Marks the end of a subroutine program.MACRO99Calls and executes the specified subroutine, substituting thespecified input and output words for the input and output words inthe subroutine.Interrupt Control InstructionsInstructionINTERVALTIMERINTERRUPTCONTROLMnemonic(@)STIM(@)INTCode69FunctionControls interval timers used to perform scheduled interrupts.89Performs interrupts control, such as masking and unmasking theinterrupt bits for I/O interrupts.Code08FunctionDefines the start of a new step and resets the previous step whenused with a control bit.