CPM2A_PROGRAMMING MANUAL (W353-E1-2) (986750), страница 48
Текст из файла (страница 48)
Only oneCPM1A-TS002/102 Temperature Sensor Unit can be connected. (See page295 for an example of CPM1A-TS002/102 allocations.)294SectionI/O Allocation for CPM2C PCs5-3Example: Configuration Including Temperature Sensor Unit with 4 Inputs and CompoBus/S Link UnitCPU Unit(60 I/O points)Temperature Sensor Unit CompoBus/S I/O Link UnitCPM1A-TS002/102CPM1A-SRT2136 inputsIR 00000 to IR 00011IR 00100 to IR 00111IR 00200 to IR 002112 temperature inputsInput 0: IR 003Input 1: IR 004Input 2: IR 005Input 3: IR 00624 outputsIR 01000 to IR 01007IR 01100 to IR 01107IR 01200 to IR 0120715BitsInputs8 inputsIR 00700 to IR 007078 outputsIR 01300 to IR 01307No outputs1413IR 000Do not useIR 001Do not useIR 002Do not use121110090807060504IR 003Used for input 0 of the Temperature Sensor UnitIR 004Used for input 1 of the Temperature Sensor UnitIR 005Used for input 1 of the Temperature Sensor UnitIR 006Used for input 1 of the Temperature Sensor UnitIR 00703020100Do not useIR 010OutputsIR 011IR 012IR 013Only one 4-input Temperature Sensor Unit (CPM1A-TS002/102) can be connected to the PC.
The CPM1A-TS002/102 can, however, be connected togetherwith an Expansion I/O Unit or a different Expansion Unit.5-3I/O Allocation for CPM2C PCs5-3-1 CPU UnitsNo. of I/O(on CPU Unit)1020Model numberI/OCPM2C-10CDR-DCPM2C-10C1DR-DCPM2C-10CDTC-DCPM2C-10C1DTC-DCPM2C-10C1DTC-DCPM2C-10C1DT1C-DCPM2C-20CDTC-DCPM2C-20C1DTC-DCPM2C-20C1DTC-DCPM2C-20C1DT1C-DNoteAllocated bitsInput6 inputs: 00000 to 00005Output4 outputs: 01000 to 01003Input12 inputs: 00000 to 00011Output8 outputs: 01000 to 01007Max.
No. ofExpansion I/OUnits5Max. No. of I/O(see note 1)13051401. The values for the maximum number of I/O in the above table include the I/Oon Expansion I/O Units.2. Although only up to 5 Expansion Units or Expansion I/O Units can be connected to a CPM2C PC, no more than 10 input words and 10 output wordscan be allocated.295SectionI/O Allocation for CPM2C PCsCPU Unit Allocation5-3• In the following diagrams, shaded areas indicate bits actually used for inputs oroutputs.• Input bits are allocated starting from IR 00000.• Output bits are allocated starting from IR 01000.• Bits in the output words that are not used as output bits can be used as workbits.• Bits in the input words that are not used as input bits cannot be used as workbits.CPU Units with 10 I/O Points6 inputsIR 00000toIR 00005CPM2C-10CD-4 outputsIR 01000toIR 01003BitsInputs15141312IR 00011100908070605040302010009080706050403020100Do not useOutputs IR 010CPU Units with 20 I/O Points12 inputsIR 00000toIR 00011CPM2C-20CD-8 outputsIR 01000toIR 0100715BitsInputsIR 0001413121110Do not useOutputs IR 0105-3-2 Expansion I/O Units8No.
of I/OModel numberCPM2C-8EDC16CPM2C-16EDC8CPM2C-8ERCPM2C-8ETCCPM2C-8ET1C16CPM2C-16ETCCPM2C-16ET1C10CPM2C-10EDR24CPM2C-24ETCCPM2C-24ET1C296I/OAllocated bitsInputOutputInputOutputInput8 inputs: Word (m+1), bits 00 to 07--16 inputs: Word (m+1), bits 00 to 15-----Output8 outputs: Word (n+1), bits 00 to 07InputOutputInputOutputInputOutput--16 outputs: Word (n+1), bits 00 to 156 inputs: Word (m+1), bits 00 to 054 outputs: Word (n+1), bits 00 to 0316 inputs: Word (m+1), bits 00 to 158 outputs: Word (n+1), bits 00 to 07Max.
No. of Units555555SectionI/O Allocation for CPM2C PCs5-3Note m: “m” denotes the last input word allocated to the CPU Unit, or to the previousExpansion Unit or Expansion I/O Unit if one is already connected.n: “n” denotes the last output word allocated to the CPU Unit, or to the previousExpansion Unit or Expansion I/O Unit if one is already connected.Expansion I/O Unit Allocation• In the following diagrams, shaded areas indicate bits actually used for inputs oroutputs.• Input bits are allocated to Expansion I/O Units starting from word (m+1), where“m” is the last input word allocated to the CPU Unit, or to the previous Expansion Unit or Expansion I/O Unit if one is already connected.• Output bits are allocated to Expansion I/O Units starting from word (n+1),where “n” is the last output word allocated to the CPU Unit, or to the previousExpansion Unit or Expansion I/O Unit if one is already connected.• Bits in the output words that are not used as output bits can be used as workbits.• Bits in the input words that are not used as input bits can be used as work bits.Expansion I/O Unit with 8 Inputs8 inputsWord (m+1), bit 00toWord (m+1), bit 07CPM2C-8EDCNo outputs15BitsInputs1413m+112111009080706050403020100111009080706050403020100111009080706050403020100Do not useExpansion I/O Unit with 16 Inputs16 inputsWord (m+1), bit 00toWord (m+1), bit 15CPM2C-16EDCNo outputs15BitsInputs141312m+1Expansion I/O Units with 8 OutputsCPM2C-8ERCPM2C-8TCCPM2C-8ET1CNo inputs8 outputsWord (n+1), bit 00toWord (n+1), bit 0715BitsOutputs141312n+1297SectionI/O Allocation for CPM2C PCs5-3Expansion I/O Units with 16 OutputsCPM2C-16TCCPM2C-16ET1CNo inputs16 outputsWord (n+1), bit 00toWord (n+1), bit 1515BitsOutputs14131211100908070605040302010011100908070605040302010009080706050403020100n+1Expansion I/O Unit with 10 I/O Points6 inputsWord (m+1), bit 00toWord (m+1), bit 05CPM2C-10EDR4 outputsWord (n+1), bit 00toWord (n+1), bit 0315BitsInputsm+1Outputsn+1141312Do not useExpansion I/O Units with 24 I/O Points16 inputsWord (m+1), bit 00toWord (m+1), bit 15CPM2C-24ETCCPM2C-24ET1C8 outputsWord (n+1), bit 00toWord (n+1), 0715BitsInputsm+1Outputsn+114131211105-3-3 Expansion UnitsUnitAnalog I/O UnitModel numberCPM2C-MAD11Temperature Sensor UnitCPM2C-TS001CPM2C-TS101CompoBus/S I/O Link UnitCPM2C-SRT21Note298I/OInputOutputInputOutputInputOutputAllocated words2 inputs: m+1, m+21 output: n+12 inputs: m+1, m+2--1 input: m+11 output: n+1Max.
No. of Units4451. m: “m” denotes the last input word allocated to the CPU Unit, or to the previous Expansion Unit or Expansion I/O Unit if one is already connected.n: “n” denotes the last output word allocated to the CPU Unit, or to the previous Expansion Unit or Expansion I/O Unit if one is already connected.SectionI/O Allocation for CPM2C PCs5-32. Because the CPM2C-MAD11 Analog I/O Unit and the CPM2C-TS001/101Temperature Sensor Units require 2 I/O words each, only 4 of these Unitscan be connected to the PC.
(The CPU Unit itself requires one input wordand one output word.) A different Unit, such as an Expansion I/O Unit or theCPM2C-SRT21 CompoBus/S I/O Link Unit, can, however, be connected inaddition to 4 Analog I/O Units or Temperature Sensor Units.Analog I/O UnitCPM2C-MAD112 analog inputsInput 0: word (m+1)Input 1: word (m+2)1 analog outputOutput 0: word (n+1)Temperature Sensor UnitsCPM2C-TS001/TS1012 temperature inputsInput 0: word (m+1)Input 1: word (m+2)No outputsCompoBus/S I/O Link UnitCPM2C-SRT218 inputsInput: word (m+1)8 outputsOutput: word (n+1)Note Input bits 00 to 07 in word (m+1) are for outputs from the Master. Output bits 00 to07 in word (n+1), are for inputs to the Master.5-3-4 Examples of Expansion Unit and Expansion I/O Unit AllocationUp to 5 Expansion Units or Expansion I/O Units can be connected to a CPM2CPC.
Input bits and output bits are automatically allocated starting from the CPUUnit and continuing through Expansion Units and Expansion I/O Units in theorder in which they are connected. The input area consists of the 10 words fromIR 000 to 009, and the output area consists of the 10 words from IR 010 to 019.Although I/O bits are allocated automatically, it is necessary to ensure that boththe number of input words and the number of output words do not exceed 10. Forexample, the Analog I/O Unit and Temperature Sensor Unit require 2 inputwords and so it is not possible to connect 5 of these Units.299SectionI/O Allocation for CPM2C PCs5-3Example: CPU Unit with 20 I/O Points + Expansion I/O Unit with 24 I/O PointsCPU Unit(20 I/O points)Expansion I/O Unit(24 I/O points)12 inputsIR 00000toIR 0001116 inputsIR 00100toIR 001158 outputsIR 01000toIR 010078 outputsIR 01100toIR 0110715Bits14IR 000Inputs1312111009080706050403020100Do not useIR 001IR 010OutputsIR 011Example: CPU Unit with 20 I/O Points + 5 Expansion I/O Units with 24 I/O PointsExpansion I/O Unit(24 I/O points)Expansion I/O Unit(24 I/O points)12 inputsIR 00000toIR 0001116 inputsIR 00100toIR 0011516 inputsIR 00200toIR 002158 outputsIR 01000toIR 010078 outputsIR 01100toIR 011078 outputsIR 01200toIR 01207CPU Unit(20 I/O points)Bits15IR 000IR 001InputsIR 002IR 003IR 004IR 005IR 010IR 011Outputs IR 012IR 013IR 014IR 0153001413Do not use12111009Expansion I/O Unit(24 I/O points)Expansion I/O Unit(24 I/O points)16 inputsIR 00300toIR 0031516 inputsIR 00400toIR 0041516 inputsIR 00500toIR 005158 outputsIR 01300toIR 013078 outputsIR 01400toIR 014078 outputsIR 01500toIR 01507Expansion I/O Unit(24 I/O points)080706050403020100SectionI/O Allocation for CPM2C PCs5-3Example: Configuration Including Expansion I/O Units and a CompoBus/S I/O Link UnitCPU Unit(20 I/O points)12 inputsIR 00000toIR 00011Expansion I/O Unit(16 input points)Expansion I/O Unit(16 input points)16 inputsIR 00100toIR 0011516 inputsIR 00200toIR 002158 outputsIR 01000toIR 01007No outputsBits15IR 000Inputs141311Expansion I/O Unit(16 output points)No inputs1009080716 outputsIR 01200toIR 01215060504CompoBus/S I/OLink Unit8 inputsIR 00300toIR 00307No inputs16 outputsIR 01100toIR 01115No outputs12Expansion I/O Unit(16 output points)8 outputsIR 01300toIR 0130703020100Do not useIR 001IR 002IR 003Do not useIR 010IR 011OutputsIR 012IR 013301SectionI/O Allocation for CPM2C PCs5-3Example: Configuration Including Analog I/O Units, Temperature Sensor Units, and Expansion I/O UnitCPU Unit(20 I/O points)Analog I/O Unit 1CPM2C-MAD1112 inputsIR 00000toIR 000112 analog inputsInput 0: IR 001Input 1: IR 0028 outputsIR 01000toIR 010071 analog outputOutput: IR 01115BitsIR 000Inputs1413Temperature SensorUnit 1CPM2C-TS0012 temperature inputsInput 0: IR 003Input 1: IR 00411102 analog inputsInput 0: IR 005Input 1: IR 006Temperature SensorUnit 2CPM2C-TS1012 temperature inputsInput 0: IR 007Input 1: IR 0081 analog outputOutput: word 012No outputs12Analog I/O Unit 2CPM2C-MAD11090807No outputs06Do not useIR 001Used for input 0 of Analog I/O Unit 1IR 002Used for input 1 of Analog I/O Unit 1IR 003Used for input 0 of Temperature Sensor Unit 1IR 004Used for input 1 of Temperature Sensor Unit 1IR 005Used for input 0 of Analog I/O Unit 2IR 006Used for input 1 of Analog I/O Unit 2IR 007Used for input 0 of Temperature Sensor Unit 2IR 008Used for input 1 of Temperature Sensor Unit 2IR 009IR 010OutputsIR 011Used for the output of Analog I/O Unit 1IR 012Used for the output of Analog I/O Unit 2IR 013302050403Expansion I/O Unit(24 I/O points)16 inputsIR 00900toIR 009158 outputsIR 01300toIR 01307020100SECTION 6Ladder-diagram ProgrammingThis section explains the basic steps and concepts involved in writing a basic ladder diagram program.
It introduces theinstructions that are used to build the basic structure of the ladder diagram and control its execution. The entire set of instructions used in programming is described in Section 7 Instruction Set.6-16-26-36-46-56-66-7Basic Procedure . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Instruction Terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Basic Ladder Diagrams . . . . . . . .