CPM2A_PROGRAMMING MANUAL (W353-E1-2) (986750), страница 32
Текст из файла (страница 32)
The CompoBus/S I/O Link Unit establishes an I/O linkof 8 inputs and 8 outputs between the Master Unit and the PC.Note For the CPM1A, a CPM1A CPU Unit with 30 or 40 I/O points must be used toconnected the CompoBus/S I/O Link Unit. It cannot be connected to a CPM1ACPU Unit with 10 or 20 I/O points.CompoBus/S Master Unit(or SRM1 CompoBus/SMaster Control Unit)CPM1A/CPM2A CPU UnitCPM1A-SRT21CompoBus/SI/O Link UnitCPM2CCPU UnitCPM2C-SRT21CompoBus/SI/O Link UnitSpecial flat cable or VCTF cableFrom the standpoint of the CPU Unit, the 8 input bits and 8 output bits allocatedto the CompoBus/S I/O Link Unit are identical to input and output bits allocated toExpansion I/O Units even though the CompoBus/S I/O Link Unit does not controlactual inputs and outputs.
The input and output bits allocated to the CompoBus/S I/O Link Unit are one side of an I/O link between the slave CPU Unit andthe CPU Unit to which the Master Unit is connected.Master PC (CS1 Series)CPU UnitI/O memoryOutput2000Input2004SpecificationsCPM1A, CPM2A, or CPM2CCompoBus/SMaster UnitUnit No. 0CPU Unit with 30 I/O pointsI/O memory8 bits8 bits8 bits8 bitsNodenumber:0InputIR 002OutputIR 012ItemModel numberCompoBus/SI/O Link UnitSpecificationCPM1A or CPM2A:CPM1A-SRT21CPM2C:CPM2C-SRT21Master/slaveCompoBus/S SlaveNumber of I/O points8 input points, 8 output pointsNumber of words allocatedin CPU Unit I/O memory1 input word, 1 output wordNode number setting(Allocated in the same way as Expansion I/O Unitsand other Expansion Units)Set using the DIP switch(Set before turning on the CPU Unit’s power supply.)197SectionCompoBus/S I/O Link UnitsLED IndicatorsIndicatorCOMM(yellow)ERR(red)StatusONOFFONOFF3-3MeaningCommunications in progress.Communications stopped or error has occurred.A communications error has occurred.Indicates normal communications or stand-by.Usage ProcedureConnect the Unit.Connect the CompoBus/S I/O Link Unit.Determine the node address ofthe CompoBus/S I/O Link Unit andset the DIP switch.The node number should be a unique number between 0 and 15.Wire the CompoBus/S transmissionpath.Connect the CompoBus/S I/O Link Unit to a CompoBus/Stransmission path.Connecting theCompoBus/S I/O LinkUnitUse the DIP switch to set the CompoBus/S I/O Link Unit’s nodenumber, communications mode, and the status of output datawhen a communications error occurs.Connect the CompoBus/S I/O Link Unit to the CPU Unit.
Only one CompoBus/SI/O Link can be connected. When Expansion I/O Units or other Expansion Unitsare also connected, they can be connected in any order from the CPU Unit.CPM1A/CPM2A CPU UnitCPM1A-SRT21CompoBus/SCPM2C CPU UnitI/O Link UnitCompoBus/S I/OLink UnitI/O AllocationI/O words are allocated to the CompoBus/S I/O Link Unit in the same way asExpansion I/O Units or other Expansion Units, the next available input and output words are allocated. When “m” is the last allocated input word and “n” is thelast allocated output word, the CompoBus/S I/O Link Unit is allocated “m+1” asits input word and “n+1” as its output word.CompoBus/S I/O Link UnitWord m+1bits 00 to 078 inputs8 outputsWord n+1bits 00 to 07198SectionCompoBus/S I/O Link Units3-3In the following example, a CompoBus/S I/O Link Unit is connected to a CPUUnit with 30 I/O points.IR 000IR 001IR 002CPU Unit with30 I/O pointsCompoBus/SI/O LInk UnitIR 010IR 011IR 012Input wordsOutput wordsThe input word (m+1) contains the 8 bits of data from the Master Unit and twoCompoBus/S communications flags.15Word m+1009 08 070000000Data from the Master UnitCompoBus/S Communications Error Flag0: Normal; 1: ErrorCompoBus/S Communication Status Flag0: Stopped; 1: CommunicatingWrite the data to be transmitted to the Master Unit in the output word (n+1).15Word n+1007000000000Data to be transferred to the Master UnitThe 8 bits of I/O data are not always transmitted simultaneously.
In other words,8 bits of data transmitted from the Master CPU Unit at the same time will not always reach the Slave CPU Unit simultaneously, and 8 bits of data transmittedfrom the Slave CPU Unit at the same time will not always reach the Master CPUUnit simultaneously.When the 8 bits of input data must be read together, modify the ladder program inthe CPU Unit receiving the data. For example, read the input data twice in succession and accept the data only when the two values match.Unused bits in the CompoBus/S I/O Link Unit’s output word can be used as workbits, but unused bits in the output slaves cannot be used as work bits.Unused bits in input word cannot be used as work bits.Determining the Node Number and Making DIP Switch SettingsNode NumberThe CompoBus/S I/O Link Unit is a Slave Unit with 8 input bits and 8 output bits.The node number setting is made using the DIP switch; the inputs and outputsshare the same node number.The range of possible node number settings is determined by the type of PC theMaster Unit is mounted to and the settings on the Master Unit.
For details refer tothe CompoBus/S Operation Manual.199SectionCompoBus/S I/O Link Units3-3DIP Switch SettingsUse the DIP switch to set the CompoBus/S I/O Link Unit’s node number, communications mode, and the status of output data when a communications error occurs.CPM1A-SRT21DIP switchCPM2C-SRT21Pinlabels1, 2, 4, Node Address Settingand 8PinsContentsAddress8421AddressPins8421012345670000000100100011010001010110011189101112131415100010011010101111001101111011111 = ON, 0 = OFFDRHOLDNoteONOFFONOFFLong-distance communications mode (See note 2.)High-speed communications modeRetain inputs after a communications error.Clear inputs after a communications error.1.
Always turn OFF the power supply before changing the DIP switch settings.2. Never touch the DIP switch when the Unit is operating. Static electricity maycause operating errors.200SectionCompoBus/S I/O Link Units3-33. The long-distance communications mode can be used only when one of thefollowingMasterUnitsisconnected:C200HW-SRM21-V1,CQM1-SRM21-V1, or SRM1-C0-V2.Wiring the CompoBus/SCommunications PathWire the CompoBus/S communications path as shown in the following diagrams.CPM1A-SRT21These terminals are not used. They canhowever be used as communicationspower supply relay terminals.NC (BS+)NC (BS–)(BS +)(BS –)Connect the CompoBus/S Communications Cable.CPM2C-SRT21From the CompoBus/Scommunications pathBD LBD HBD HBD HBD LBD LNCTo the CompoBus/Scommunications path201SECTION 4Communications FunctionsThis section describes how to use the communications functions provided in the CPM1, CPM1A, CPM2A, CPM2C, andSRM1(-V2) PCs.4-1 Introduction .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2044-1-1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2044-1-2 Wiring Ports . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2044-2 CPM1/CPM1A Communications Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2054-2-1 Host Link Communications . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . .2054-2-2 One-to-one NT Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2064-2-3 One-to-one PC Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2074-3 CPM2A/CPM2C Communications Functions . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . .2094-3-1 Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2094-3-2 No-protocol Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . .2264-3-3 One-to-one NT Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2354-3-4 One-to-one PC Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2384-4 SRM1(-V2) Communications Functions . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2424-4-1 Host Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2424-4-2 No-protocol Communications . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . .2454-4-3 One-to-one NT Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2514-4-4 One-to-N NT Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . .2524-4-5 One-to-one PC Link Communications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2534-5 Host Link Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2544-5-1 IR/SR AREA READ – RR . . . .