6es5998-1db21band1

520
SIEMENS 51MATIC 55 COM 525 Programming Package for the Communications Processors CP 524 and CP 525 (S5-DOS) Manual Volume 1/2 Order No. 6ES5 998-10821 Release 08

Upload: maghfoor4392

Post on 26-Nov-2014

109 views

Category:

Documents


1 download

TRANSCRIPT

SIEMENS51MATIC 55COM 525Programming Package for the Communications ProcessorsCP 524 and CP 525 (S5-DOS)ManualVolume 1/2Order No.6ES5 998-10821Release 08We have checked the contents of this manual for agreement with thehardware andsoftware descrbed. Since deviationscannot be pre-cludedentirely, wecannotguarantee full agreement. However, thedata in thismanuaJ are reviewed regularly and any necessary correc-tionsIncludedInsubsequent editions. Suggestions forin1>rovementare welcomed.Technical data subjett to changeSiemens AktiengesellschaftThereproduction, transni&Sionoruse athisdocumentoritscontents Is not permtted without express written authority.Offenders will be liable for damages. All rights, including rightscreated by patent grant or registration fA a utility model or design, arereserved.Copyright @Siemens AG 1991 All rights reserved6ES599810821ElektronikwerkKarlsruhePrinted In the Federal ReplbJic of GermanyContentsWaming C79000-R8576-C499InformationSuggestions/CorrectionsVolume 112How to Use the Manual C79000-08576-C499-033CP 525-2Communications Processor4Instructions C79000-88576-C537-07CP 524Communications Processor5Instructions C79000-B8576-C538-06-6Computer Link withRK 5127User's Guide C79000-B8576-C539-08Event Output and Listingwith the PT88/PT89 Printer8User's Guide C79000-88576.. C541-05910Volume 26ESS998-10821Release08SIEMENSWarnhinweisGefahren beimEinsatz sogenannter SIMATIC-kompatibler Baugrup-pen fremder Hersteller"Den Hersteller eines Produktes (hier SIMATIC) trifft die Produktbeobach-tungspflicht, d. h. er muBgenerell var Gefahren des Praduktes warnen. DieseProduktbeobachtungspflicht wurde von der neueren Rechtssprechung auch auffremde Zubehorteileerstreckt. Der Hersteller hat danach die Verpflichtung, auchsolche Gefahren zu beobachten und zu erkennen, die aus der Verbindung desProduktes mit ProduktenandererHersteller entstehen.AusdlesemAniaBsehenwirunsverpflichtet, unsereKunden, dieSIMATIC-Produkteeinsetzen, zu warnen, sogenannte SIMATIC-kompatibleBaugrup-pen fremder Hersteller als Ersatz- oder Zusatzbaugruppen in dasAutomatisierungssystemSIMATle einzusetzen.Unsare Produkte werden einer anspruchsvollen Qualtiatssicherung unterworfen.Unsist nichtbekannt, obdiefremdenHerstellersogenannter SIMATIC-kompatiblerBaugruppen Oberhaupt oder eine annahernd gleichwertige QualiUitssicherungdurchfuhren. Diese sogenannten SIMATIC-kompatiblen Baugruppen kommennicht imEinvernehmen mit uns auf den Markt; as gibt keine Empfehlung derSiemensAG, sogenannteSIMATIC-kompatibleBaugruppenfremder Herstellerein-zusetzen. DieWerbungder fremden Hersteller sogenannter SIMArlC-kompatiblerBaugruppen erweckt irrtumlich den Eindruck, als sei der Inhalt der Werbung inFachzeitschriften, Katalogen oder Ausstellungen mit uns abgesprochen. Werdensogenannte SIMATIC-kompatible Baugruppen fremder Hersteller mit unseremSIMATIC-Automatisierungssystemverbunden, handelt as sich umeinen empfeh-lungswidrigen Gebrauch unseres Produkts. Wegen der universellen Vielfalt derEinsatzmoglichkeiten unserer SIMATIC-Automatisierungssysteme und der hohenZahl der weltweit vermarktetenProdukte, konnen wir diekonkrete Gefahrenanalysedurch diesesogenanntenSIMATIC-kompatiblenBaugruppennicht konkret beschrei-ben.C79000-08563-(702-01 12/89 1Es geht Dbar die tatsachlichen Moglichkeiten des Herstellers hinaus, ailediesesogenannten SIMATIC-kompatiblen Baugruppen in ihrer Wirkung auf unserSIMATIC-Produkt uberprOfenzu lassen. Treten Mangel bei der Verwendungvonsogenannten SIMATIC-kompatiblen Baugruppen in einem SIMATIC-Automatisie-rungssystemauf, werden wir fOr solcheSysteme jede Gewahrleistung ablehnen.1mFall von Produkthaftpflichtschaden verursacht durch den Einsatz von sage-nanntenSIMATIC-kompatiblenBaugruppen sindwir nicht haftbar, dawir dieAn-wender rechtzeitig vor den potentiellen Gefahren der Benutzung sogenannterSIMATIC-kompatibler Baugruppen gewarnt haben."2 C7900008563(70201 12/89WarningRisks involved in the use of so-calledSIMATIC-compatible modules ofnon-Siemens manufacture"The manufacturer of a product (SIMATle in this case) is under the generalobligationtogivewarningofpossiblerisksattachedtohisproduct. Thisobligationhas been extended in recent court rulings to include parts supplied by othervendors. Accordingly, themanufacturer isobligedtoobserveandrecognizesuchhazards as may arise when a product is combined with products of othermanufacture.For thisreason, wefeel obligedtowarnourcustomerswhouseSIMATICproducts not to Install so-called SIMATIC-compatible modules of othermanufacture In the formof replacement or add-on modules in SIMATICsystems.Our products undergoa strict quality assuranceprocedure. We haveno knowledgeas to whether outsidemanufacturers of so-called SIMATIC-compatible moduleshave any qualityassurance at allor one that isnearly equivalent toours. These so-calledSIMATIC-compatible modulesarenatmarketedinagreement withSiemens;wehavenever recommendedtheuseofso-calledSIMATIC-compatiblemodules ofother manufacture. The advertising of these other manufacturers for so-calledSIMATIC-campatible modules wrongly creates the impression that the subjectadvertised in periodicals, catalogues or at exhibitions had beenagreed with us.Where so-called SIMATIC-compatible modules of non-Siemens manufacture arecombinedwithour SIMATICautomationsystems, wehaveacaseof ourproductbeingusedcontrarytorecommendations. Becauseof thevarietyofapplicationsofour SIMATIC automation systems and the large number of these products marketedworldwide, we cannot give a concrete descriptionspecifically analyzing thehazardscreated by these so-called SIMATIC-compatible modules.C79000D8S63C70207 11/89 3It isbeyondthemanufacturer'scapabilitiestohaveall theseso-calledSIMATle-compatible modules checked for their effect onour SIMATIC products. If theuse ofso-calledSIMATie-compatiblemodulesleadstodefectsinaSIMATICautomationsystem, nowarranty forsuchsystemswillbe givenbySiemens.In the event of product liability damages due to the use of so-called SIMATIC-compatiblemodules, Siemens arenot liablesincewetooktimelyactioninwarningusers of the potential hazards involved in so-called SIMATrC-compatible modules. II4 C79000-D8563-C702-07 12/89AvertissementRisques lies it I'utilisation de modules de constructeurs tiers commer-cialises sous la designation de "modules compatibles SIMATIC"eele constructeur d'un produit (dans Ie cas present SIMATle) a I'obligationd'observer Ie produit, c'est-a-direqu'iI est oblige, d'une maniaregenerale, d'attirerI'attention sur las dangers inherents au produit. Ces derniers temps, lajurisprudence a etendu cette obligation d'observation du produit aux elementsaccessoiresissusdeconstructeurstiers. Enfoi dequoi, Ieconstructeur aaussiI'obligation d'observer son produit pour deceler les dangers susceptibles desurvenir dans Ie cadre de I'association de son produit avec des produits deconstructeurs tiers.Pour cette raison, nous nous voyons obliges d'attirer I'attention de nosclients, utilisateurs de produitsSIMATIC, sur les risques lies a"utilisationde"modules compatiblesSIMATIC" de constructeurs tiers atitre de modules deremplacement ou de complement dans les prodults de notre systemed'automatisatlon SIMATIC.Nos produits font I'objet d'une assurance qualite tras poussee. II nous estimpossibledesavoirsi lesconstructeurstiersde"modulescompatiblesSIMATIC"mettent enceuvreun systemequaliteet, dansI'affirmative, si leurs dispositionsd'assurance qualitepermettent d'obtenirIeniveaude qualiterequis. Les"modulescompatibles SIMATIC"ne sont pas commercialises avec notre consentement :Siemens AG n'a emis aucune recommandation concernant I'utilisation de"modules compatibles SIMATIC" de constructeurs tiers. La publicite desconstructeurs tiersde"modules compatiblesSIMATle" laisse penser atort que lestextes publicitaires dans les revues, les catalogues ou les expositions ont eteconvenusavecnous. L'utilisationconjointede"modules compatiblesSIMATIC" deconstructeurs tiers et de produits de notre systeme d'automatisation SIMATICconstitue un cas d'utilisation de nos produits qui est contraire a nosrecommandations. Considerant la grande diversite d'emploi de notre systemed'automatisation SIMATICainsi que I'importance du parc mondial des produitsinstalles, il nousest impossiblededonner unedescriptionconcretedeI'analysedes risques lies aI'emploi des"modules compatiblesSIMATle".09000-D8563-C702-01 12/89 5Nousn'avonspaslapossibilitematerielledeproceder aucontraledeI'interactionde notre produit SIMATle avec les "modules compatibles SIMATIC" deconstructeurstiers. Nousrejetonstout appal engarantiepourlesvicessurvenantdansunsystemed'automatisationSIMATlemettant aussi enoouvredes"modulescompatiblesSIMATIC"de constructeurs tiers.Nous declinonstoutaresponsabilit8pourlessinistresrelevant delaResponsabiliteCivile Produits, etant donne que nous avons attire atemps I'attention desutilisateurs sur les risques potentials inherents a I' utilisation de "modulescompatiblesSIMATIC"de constructeurs tiers. ~6 C79000-D8563C70201 12/89Safety-Related Guidelines for the User1 GeneralThis manual provides theinformation required for the intended useof theparticular product. The documentation is written for technically qualifiedpersonnel suchasengineers, programmersor maintenancespecialists whohave been speciallytrainedandwhohavethespecializedknowledgerequiredin the field of instrumentationandcontrol.A knowledgeof thesafetyinstructions andwarningscontainedinthismanualand their appropriate application are prerequisites for safe installation andcommissioningaswell assafetyinoperationandmaintenanceof theproductdescribed. Only qualified personnel as defined in section 2 have thespecialized knowledge that is necessary to correctly interpret the generalguidelines relating to the safety instructions and warnings and implementthemin each particular case.Thismanual isaninherent part of thescopeof supplyevenif, for logisticreasons, it hastobe orderedseparately. For thesake of clarity, not all detailsof all versionsoftheproduct aredescribedinthedocumentation, nor canitcover all conceivablecasesregardinginstallation, operationand maintenance.Shouldyourequirefurtherinformationorfacespecial problemsthat havenotbeendealt withinsufficient detail inthisdocumentation, pleasecontact yourlocal Siemens office.We would also point out thatthecontents ofthis product documentationshaH not become a part ofor modify any prior or existing agreement, commItment or legal relationship. The PurchaseAgreement containsthecomplete andexclusiveobligationsofSiemens. Any statements containedInthis documentation do not create new warranties or restrict the existing warranty.2 QualifiedPersonnelPersons who are not qualified should not be allowed to handle theequipment/system. Non-compliance with the warnings contained in thismanual or appearing on theequipment itself can result in severepersonalinjury or damagetoproperty. Onlyqualifiedpersonnel shouldbeallowedtowork on this equipment/system. Siemens AG1991 C79QOOD8576oC33601 3Safety-Related Guidelines5 Procedures for Maintenance and RepairIf measurement or testingworkisto be carriedout onan active unit, the rulesand regulations containedinthe"VBG 4.0 Accident preventionregulations"ofthe German employers liability assurance association (Berufsgenossen-schaften) must beobserved. Particular attention is drawn to paragraph 8.. Permissible exceptions when working on live parts". Use only suitableelectricaltools.AWarning Repatrs to an item of automation eqUipment may only be carried out bySiemens service personnel or an authorized Siemens repair center. Forreplacement purposes.use only parts or components that are contamedin thespare parts list or listed in theII Spare parts"section of this manuaJ.Unauthorized opening of equipment and improper repairs can result infoss of lifeor severe personal injury as well as substantiaJ property damage Before opening the equipment,always remove the power plug or open thedisconnecting switch. Only use the fusetypes specified in the technical specifications or themaintenance instructions of this manual. Do not throw batteries into an open fire and do not carry out any sofdering workon batteries (danger of explosion). Maximum ambient temperature10Doe.lithium batteries or batteries containing mercury should not be opened orrecharged.Make sure that the same type is used when replacing batteries. Batteries and accumulators must be disposed of as classified waste. Thefollowing points require attention when using monitors:Improper handling, especially the readjustment of the high voltage or fitting ofanother tubetype can result in excessive X-ray radiationfrom the unit. Thelicenseto operate such a modified unit automatically lapses andthe unit mustnot be operated at aU.Theinformationinthismanual ischeckedregularlyfor updatingandcorrectnessandmaybemodifiedwithout prior notice. Theinformation containedinthismanual is protectedby copyrightPhotocopyingandtranslationintoother languagesisnot permittedwithout expresspermissionfrom Siemens.4 10 cm).Thediagram onthe next pageshows therequiredprotectivemeasuresagainst electrostaticdischarge.5 Measurements andModification toESDModules Measurementsonmodulesmayonlybecarriedout under thefollowingconditions:- themeasuringequipment isgrounded (e.g. viathe PEconductor ofthe power supplysystem) or .- when electrically isolated measuring equipment is used, the probemust be discharged (e.g. by touching the metallic casing of theequipment)before beginning measurements. Only grou'nded soldering irons may be used.oSiemens AG C79OO(}D8078-C339-01 3ESD GUidelinesf-:b-.Sitting position Standing positionf-d::-df-d::-.a Conductiveflooringb Anti-statictablec Anti-staticshoesd Anti-static coate GroundingWrist strapf Grounding connection ofthe cabinetsStanding/sittingposition6 Shipping of ESD ModulesAnti-static packing material must always be used for modules andcomponents, e.g. metalizedplasticboxes, metal boxes, etc. for storinganddispatch of modulesandcomponents.If thecontainer itself isnot conductive, themodulesmust bewrappedin'aconductive material such as conductive foam, anti-static plastic bag,aluminiumfoil or paper. Normalplasticbagsor foilsshouldnot beused underany circumstances.For moduleswithbuilt-inbatteriesensurethat theconductivepackingdoesnot touch or short-circuit the battery connections; if necessary cover theconnectionswithinsulatingtape or material.4 >S;emens AG CT9000D807(J.C339-01Remarks FonnYour comments and recommendations will help us to improve the quality and useful-ness of our pUblications. Please take the first available opportunity to fill out this ques-tionnaire and return it to Siemens.Please do not forget to state the title, order number and releaseof your manual.Title of Your Manual: .Order No. of Your Manll8l: Release: .DDDDD2. Is the information you need easy to find?3. Is the text easy to understand?Please give each of the following questions your own personal mark within the rangefrom 1 (very good) to 5 (poor).1. Do the contents meet your requirements?4. Does the level of technical detail meet your requirements?5. Please rate the quality of the graphics/tables:Additional comments:...... "... ," .078000-V8S76-C06&01 1I\)~miSiemensAGAUTE 1163076181KarlsruheFederal Republic of GermanyPlease check any industry that applies to you:DAutomotiveDChemicalDElectrical MachineryDFoodDInstrument and ControloNonelectrical MachineryOtherFrom:Your Name:Your Title:Company Name: . . . . . . . . . . . . . . . . .Street:City, Zip Code: .Phone:DPharmaceuticalDPlasticDPulp and PaperDTextilesDTransportationDPetrochemicalRemarks FonnYour comments and recommendations will help us to improve the quality and useful-ness of our publications. Please take the first available opportunity to fill out this ques-tionnaire and return it to Siemens.Please do not forget to state the title, order number and releaseof your manual.Title of Your Manual: ................................................................................................Order No. of Your Manll8l: ....................................................... Release: .oDDDDPlease give each of the following questions your own personal mark within the rangefrom 1 (very good) to 5 (poor).1. Do the contents meet your requirements?2. Is the information you need easy to find?3. Is the text easy to understand?4. Does the level of technical detail meet your requirements?5. Please rate the quality of the graphics/tables:Additional comments:........."..C79000-V8576-C066-01 1I\)oIiSiemensAGAUT E 11630-76181KarlsruheFederal Republic of GermanyPlease check any industry that applies to you:oAutomotiveoChemicaloElectrical MachineryoFoodoInstrument and ControloNonelectrical MachineryOtherFrom:Your Name:Your Title:Company Name: . . . . . . . . . . . . . . . Street:City, Zip Code: . . . . . . . . . . . . . . .Phone:oPharmaceuticaloPlasticoPUlp and PaperoTextilesoTransportationoPetrochemicalSIEMENS51MATIC 55Howto Use the ManualC79000-D8576-C499-03D8576499-01Contents1 Things toRemember2 Where Do I FindThis intheManual?:3 Abbreviations4 OrderingData5 FurtherRelevant Documentation2Page3591214D8576499-011 ThingstoRememberThis manual is intendedtohelpyouuse the CP525-2andCP524communicationsprocessorsas follows:- for the "Computerlink withRK512" and- for "Event output andloggingwiththe PT88jP.r89printer"It isalsointendedtohelpyouprogramtheassociatedCP 525userprogram withtheprogranmingpackage COM525.Themanual isdividedintobID parts.CP525-2The OF525-2isoftenabbreviatedtoOP525.CP524The OP524can beusedjustas the CP525whenyouwishtocommunicatewithonly me partner.The CP ~ 2 4 has onlyODe serial device interface; ithas DOPCinmrface. ThereforeonlyEPROMsubmodules that havebeenpro-grammedonthe PGcanbeusedonthe CP524.Theserial deviceinterfaceofthe CP524corresponds tothedeviceinterfaceIF1onthe CP525. AnEPROMsubmodulepro-grammed for IF1canbeusedbothonthe CP525andCP524.The CP524isnot referredtointhepartsofthismanual;however, almost all the informationreferringtoIF1onthe CP525alsoappliestothe OP524, except the CP 525 functionsavailablewhenyou areusingthe PGonline (e.g. start, stop,transfer).:3D8576499-01Youshould first developyouruserprogram usinga GP 525. Youcanthenconnect the PGonlineandtransferyour OP525userprogram directlytoa RAMsubmodule pluggedintothe CP525. Thenyoucancarryout thestart-up. Anycorrectionswhichmaybeneededcanthenbecarriedout quickly. Onceyouhave completedthesecorrections, youcanthenprogramthe EPROMfor usewiththe OP 524.The OP 525andCP524 eaDDOI: beusedinassociationwiththeprogrammablecontroller S5-135U/S processor (CPU921).We wishyoueverysuccesswithyour cODDIl\D1ications processor!4COM525D8576499-022 Where Do I FindThis intheManual?This manualprogrammingpackagefor the conmunicationsprocessors CP524and CP 525 (S5-DOS)is dividedintotwo parts. Bothparts containa tableof contents of thewholemanual.Part 1Section1Section2Section3Section4'DJis sectial isDOt used'Jhissection isDOt usedJnst:r:uctions OIlusingthemanna]'lhesearegeneral instructions that youshouldbearinmind; this sectionalsoincludes- abbreviations andtheir explanations- orderingdata- further relevant documentationCoaIIluoicationspnx:essor CP525-2InstructionsThis isanintroductorydescription; it containsimportant informationabout installingandrmmi.ngthemodule.500576499-01Section5Section6Section7Section8e:e-micatioDsprocessor CP524Instructions'Ibis isanintroductorydescription: itcontainsimportant informationabout installingandrunningthemodule.'Ibissectioo. isDDt usedca.pat:erl:iDk wi1:hIlK. 512User's guideThis guideprovides thefollowing:- basicfacts- important, general informationabout progranmdng- helpincorrectingerrorsinthe computer linkcomponentEvent autpat andlogging witht:hePl'88/Pl89pr:in1:erUser's guide'Ibisguideprovides you withthefollowing:- basicfacts- important, general informationabout programming- helpincorrectingerrorsintheloggingprinter6D8576499-0lPart 2Section1Section2Section3Section4ee.ptt:er1in1t withRK: 512ExampleofapplicationThis isanintroduction. Whenyouhave workedthroughthis example you will havegenerateda CP525userprograminwhich all the important func-tionsof the computer link are implemented. 'Ibissectionconcerns programmingthe STEP5user pro-gram for the CPU.KveIlt: oat:paLandloggingwit:h thePl88JPl89prin1:erExampleofapplicationThis isanintroduction. Whenyouhaveworkedthroughthisexample you will havegenerateda CP525user program inwhich allthe important func-tionsoftheloggingprinterare implemented. Thissectionalsoconcerns prograumingthe STEP 5userprogram for the CPU.Rotes OIl 'theoperatingsys1:emsPCPIJI-86and85-DOOUser's guideThis is informationyoushouldbefamiliar withbeforeyouinstall the COM525 programmingpackage.lnJpawingpaclrageOOKS25User' s guideThis isanintroductoryguidefor theprogrammingpackage COM525as follows:- containsall thescreenmasks output by COM525- includes instructions about theentriestobemade inthefields of the screenmasks.7D8576499-01Section5Section,Section7001I 525 EssagesReferencemanualThis isa descriptionof theerrormessages whicharedisplayedonthe screenofyour programmer bythe COM525programmingpackage.HUM525User'sguideThis isanintroductiontoprogrammingEPROMs asfollows:- includes all the screenmasks output by PROM525- contains informationabout theentriestobemadeinthefields ofthescreenmasks.UsfDg theband] jug blocksReferencemanual'Ibis referencemanual providesanoverview of theftmctions providedbythebandlingblocks, withparticularemphasis onthe computer linkor theloggingprinter.8D8576499-013 AbbreviationsA-NR.ANZWAS5120BBLGR.cCFCLCLCMLCOM525CPCPUCRDBDBNRDLDRDWDXEIBFDFIFOFWFIGIBBHOBIFJBJobmunberConditioncodewordInterfacemodule 5120BellFieldlengthCondensed printCoordinationflagChainedlogComputer linkCurrent messagelogProgrammingpackage COM525for theccmmunicationsprocessors CP525andCP524CoDmunicationsprocessorCentral processing unitcarriagereturnDatablockDatablocknumberLeft-handdata. byteina datawordRight-banddatabyteina datawordDatawordExpandeddatablockExpanded printFunction blockDiskdriveFirstin first out bufferFlagwordFlagbyteGroupinhibit bitHeavy print(data) HandlingblockDevice interfaceJumper block9D8576499-01IAUF:PT88IlEPadapterOBProcedure IAUFPT88(loggingprinter PT88/Pl'89function)Module-EPROM-programmingadapterOrganizationblockPAFE Conditioncodebytefor parameter assignmenterrorsn ~ ~ r ~ b l ~ kPC Programmable controllerPG ProgranmerPSEUDOR/WfunctionPSEUDOREADjWRITEfunctionPSL Process status logPr8SjPrS9 Pr88/PT89printerQANFQUEQTYPQVZBEPl'ELBS422-ARS485R/Wfunctionss-oosSSprogramSHLSSNRSYSIDSYSTATUUPDATESMLStart address of sourceSourcelength = numberofpiecesof sourcedataSourcetype = typeofdatasourceTimeoutReplytelegramEIAstandardRS422-AEIAstandardRS485READ/WRITEfunctionOperatingsystemSTEP5programSequential message logInterfacenumberIdentificationareaSYSIDErrormessageareaofthe SYSTATCurrent loopsignals (20mA)UnderlinedUpdatesequential message log10D8576499-01V.24ZANFZIAEZTYPZVZV.24signalsStart address of destinationDestinationlength= number ofpiecesofdestinationdataDestinationtype= typeof datadestinationCharacter timeout1100576499-034 OrderingDataJIieDD:tysubmodules for d1eCP525-2aDdCP524:KPIWII S'lhnodu.1.es16Kwords32Kwords64KwordsJIemoxy su1JaKx1ul.esfor CP525-2:BAlI suhnodules16Kwords32Kwords64Kwords64Kwords, 377RAMsubmodule, bufferedInterfacemodulesfor t:he CP524:V.24'lTl (20mA)RS422-A/485Order number6ES5 373-lAA416ESS 373-lAA616ES5 373-lAA81Ordernwnber6ES5 377-0AB216E85 377-0AB316ES5 377-0AB416ES5 377-0BB416ES5 752-0AA226ES5 752-0AA126ES5 752-0AA42Installaticln guidelinesfor SDIATICcompact devices:C79000-B8576-C252SignallingfunctioDsforstandardCP's:CooIpact signal.lingfunctioDs:Progran,ningpackage00II PIIC:126ES5 848-7WA01 (7=MS-DOS)6ES5 842-8WA01 ( 8 = P C P ~6E85 848-7WEOl (7=MS-DOS)6ES5 848-8WEOl (8=PCP/M)6ES5 895-4SF21 (9=5.25")6E85 835-4SF21 (3=3.5")Pleaseenquire at yournearest SIEMENSbranchor thenearesttechnical officeabout thenumbers orlettersmarkedxor (-yy).D8576499-03Band] fugblocks:85-l35U/ R processor85-150U85-1SSUSt:andard cableCCIIDeetorSOrdernumber6ESS842-xCBxO(-yy)6ESS844-xCAxO(-yy)6ESS846-xCAOlOrdermunberCf 525 - PG6xx (TTY) 6ES5 726-OxxxOCP525/524- CP525/524 (TTY)CP525/524 - PROMEAM (TTY)OP525/524 - AS 5120 (TTY)OP525/524 - PROMEAR(TTY)OP 525/524 - PT88/PT89 (TTY/V.24)CP525/524- ModemN10 (V.24)CP525/524- CP525/524(V.24)CP525/524 - PROMEAR(V.24)6ES5 726-lxxxO6ESS 725-8xxxO6ES5 726-2xxxO6ES5 726-3xxxO6ES5 726-5xxxO6E85 726-7xxxO6ESS 726-8xxxO6ES5 726-4xxxOCP524 - CP524 (V.lljRS422-A) 6ES5 725-7xxxOOP 525 IF2 - PG7xx 6ES5 734-5xxxO(xxx = SIMATIClengthkey)13D8576499-015 FurtherRelevant Documentation/1/ See theorderingdatafor thehandlingblocks/2/ PT88/PT89printer - description14IIIIIIIIIIIIIIIIIIIIIIIIjIIIIIIIIIIIIIIIIIIIIIIIIIIISIEMENSSiemens Aktiengesellschaft Thereproduction, transmissionor useof thisdocument or its contents is not permittedwithout express writtenauthority.Offenders will be liable for damages. Allrights, including rights created by patentgrant or registration of a utility model ordeSign, are reserved.Siemens AG1988Order No.: C79000-B8S76eCS41Order from: G e r ~ i t e w e r k KarlsruhePrinted inthe FederalRepublic ot GermanyAG06890.5 AS198 EnSIEMENSSIMATIC S5Communications Processor CP 525-2Instructions C79000-88576-C537-07,6.16.26.36.46.56.66.76.86.96.10SbmdardcableCoImectorsConnectionOP525 - PG6xx (TTY)ConnectionCP525/524- CP525/524 (TTY)ConnectionOP525/524- PROMEAM(TTY)ConnectionOP525/524- AS 5120 (TTY)ConnectionOP525/524 - PROMEAR(TTY)ConnectionOP525/524- PT88/PT89 (TTYJV.24)ConnectionCP525/524- ModemN10 (V.24)ConnectionCP525/524- CP525/524 (V.24)ConnectionCP525/524- PROMEAR(V.24)ConnectionCP525,IF2 - PG7xx (TTY)ii3535363637383940404142B8576537-04 Communications Processor CP525-21 Technical Description1.1 ApplicationThe CQIW1Djcatiaasprocessor CP525-2canbeusedinthepro-grammablecontrollersof ~ e SIMATIC5U range (S5-115U, S5-135U,85-150Uand85-155U). Bote dlat t:beCP525-2caDIIOtbeused inCmljaDctfJm widl dieSS-13SD/ S processor.Usingthe communications processor CP525-2andtheaccompanyingprogrammingpackage COM525youcanaccomplishthefollowing:- log pzocess st:at8sand :EssagesoriginatiDgIn dieprocessand/or- liDk,oarpmgtillllBble contmller vith otherprogm1IID8blecoat:I:Ollers orC'iiipIILersBycomectingtheprinterPT88/Pr89, youcanlogprocess statesandmessages. The communications processor OP 525-2initiatesthecompilation ofmessage texts andtheiroutput ontheprinter.Iftheprogrammablecontroller (PC) ispart ofanautomationnetwork, itcanexchangedatawithoneormore programmablecontrollersorwitha central process computer (computer link).Thesetasksarealsocarriedout independentlybythe CP525-2.Thedataexchangebetweenthe CP525-2andthecentral processor(CPU) oftheprogrammablecontrollerisrestrictedtoa minimum.Onlythevariabledata (current processvalues) isexchangedbetweenthe CPUandthe CP525-2. The OP525-2hasitsownmemoryfor invariabledata, whichyouprogram usingtheprogranmingpackage COM525.1 Communications Processor CP 525-2CP525-2:- listingprocess statusesandmessages originatinginthepro-cess- linkingprogrammablecontrollerswitheachotherorwithcompu-tersSTEP5 BASICPACKAGE Programmingpackagefor PG COM 525[]] .J JIProgrammere.g.PG635PG675PG68SPG695Userprogramfor CP525-2,. ...,. '.,ll .i 'o,,.' ....STEPS ..userprogramProgrammablecontrollere.g. SS115US5135US5150US5155UThe communications processor CP525-2canbepluggedintothe85programmablecontrollersoftheU range. By usinga programmer(PG) andtheprogrammingpackage COM525 J youcan writeyour userprogram for the OP 525-2 (e.g. messagetextstobeoutput onthePT88/P'I'89printer). Oncewritten, thisuserprogram isstoredeitherinanEPROMsubmodule orina RAMsubmodule.Ifyoudecidetostore itintheRAMsubmodule J cmmect the PGtodevice interface2 ofthe OP 525-2andtransfer theuserprogram for the OP 525-2tothe RAMsubmodule. This submodulemust alreadybepluggedintothememorysubmodule receptacleofthe CP525-2.2B8576537-04 Communications Processor CP525-2. You alsoprogramyour STEP5user programfor the CPUonthe PGusingtheSTEP5 BASICPACKAGE.Thefollowingdevices canbe connecteddirectlytothe CP525-2:- otherprogrammablecontrollers- central canputer- thePr88/Pl'89printerNote:Withthe CP524andwithspecial drivers youcancormect othermanufacturers' equipment toyour programmablecontroller (e.g.computers, printersorintelligent subsystems). Formoreinformationabout special drivers contact yournearest Siemensbranch orteclmical office.3DO;)/O::J.J/-U.j1.2 Mechanical DesignCommunications Pr0cessor CP 525-2CP 525-2RUNSTOPPGR(Viewfromfront)Receptacle formemory submodule:RAM: 16,32 or 64 KwordsJIr)EPROM: 16. 32 or 64 KwordsMode selectorLEDdisplay for device interface 1Device interface 1 ( IF 1 )TIYorV.24LEDdisplayfor device interface 2Device interface 2(IF 2 )TTVorV.24TTYinterfac.e for programmingtheCP 525 with the PG*): whenprogrammingthe 64Kwordmemorysubmoduleonthe PGyouneedanadapter (MEPadapter), sincea different programmingvoltageisrequiredfor EPROHs of thetype 27256.4Conmnmications Pre,cessor CP 525-2On itsfront panel, the c..ommunications processorhas two25-pinfemale Gatmoncormectors withserial device interfacesforconnectingdevices (printer PT88/PT89, other programmable con-trollersorcentral computers). Insteadofthesedevices, deviceinterface2(IF2) canalsobeusedtocomect theprogranuner(PG).Eachof thedevice interfaceshas anLEDdisplay.Usingthemode selector r:he followingoperatingmcdes canbeselected:- RUN- SIDP= PGR(nojobswill beprocessed)The functionof theswitchsettingSTOPis identical withthat ofPGR.Thememorysubmodulefor theuser program ispluggedintothesubmodulereceptacle. Youcan useeitherEPBOII snlmndu1.esorRAIlsn1wnocJnlesThe connectiontothe85bus inthe PCframe isestablished viatwo48-pinbackplaneconnectors.1.3 Serial DeviceInterfacesTransmission viabothdevice interfacesisserial andasynchro-nous. Bothloopcurrent (TrY) andV. 24signals a r ~ availableonthe twodevice interfaces.The loopcurrent (20IDA) canbesuppliedbyboththe CP525-2andfromthepartner device. Onlytheendwhichprovides thecurrentisnon-floating. 'Ibe CPsupplies thecurrent (20mA) via jumpersintheconnectorofthedeviceinterface. The 24vrequiredforgeneratingloopcurrent is takenfromthe PCbus. Witha closedcircuit, a current of 20IDAmust flow( logical 1) ifthelinecurrent circuit isfunctioningcorrectly. Whenthecurrent isinterrupted, logical 0results.5B8576537-03 Communications Pr(cessor CP 525-2The CClT!' reconnnendationt V. 24/V.28applyfor theV. 24signals. Alogical zeroisa v o l t a g ~ greaterthan+3 V; a logical 1avolt-agelessthan-3V.Theforegoingtechnical detailsareirrelevant ifyou usethestandardcablecomectors toconnect the PT88/pT89printerJ otherprogrammable controllersorcertaincomputers. These cotmectorsare designedfor V.24or TTYsignals (seeSection6).Whenyou writetheuser program withthe COM535programmingpackageyoudecide thefollowing:- whichpartner istobelinkedonwhichinterface- whichsettingsarerequiredfor thetransmissionparameters(transmission rate, frpme format)Forfurther detailsrefertotheuser's guidefor the COM525progrannningpackage.1.4 Dua1-port RAM, Interfacetothe CPOThe dataexchangebetweenthe CP525-2andthe CPUisrestrictedtoa minimum. Onlythevariabledata (current processvalues) isexchangedbetweenthe CPUandthe CPt The CP525-2has itsownusermemoryfor invariabledata, e. g., messagetexts.Dataisexchangedbetweenthe CPUandthe CP525-2usinga connnonmemoryarea: the dIJal-porI: BAlI.Thedual-port RAM isonthe CP525-2andissimilartoa mailbox.The CP525-2and CPUcanleavemessages (data, requests, etc.) foreachotherin thismailbox.6B8576537-03 Communications Processor CP 525-2The CPUofthe PCalways actsasmaster for data exchange. TheCP525-2must "wait tobeasked" bythe CPUwhether itwants totransfer data. Thispollingfunctioniscarriedout bystandardfunctionblocks ("handling blocks") inthecpu. Thesearethesamehandlingblocks that areusedbyother communications.processors.Theactual exchangeof d2.tabetweenthe CPUandCP525-2isalsomanagedby handlingblocks. Formore details, refertothede-II scription"Usingthehandlingblocks" inthismanual . Data < S>Handlingblocks(Standardfunctionblocks)85busDual-port< ~ RAM7~ >UsermemoryDeviceinterface1Deviceinterface2B8576537-03 Communications P r ~ c e s s o r CP 525-2The dua1-port BAlI ofthe OP525-2isstructured a ~ follows:Addresses Area: Dual-portBAlI ConunerltDec. Hex.61952F200F220F240F260F280F2AOF2CO62176 F2EO62207F2FF62464F400F7FF65279FEFFFY 0-FY 31FY 32-FY 63FY 64- FY 95FY 96-FY127FY128-FY159FY160-FY191FY192-FY223-FY224 -FY255as-area(2) page (3) pageBI area RI areafor IF1 for IF2(4) vect:or (5)vectorregister regi.s1:erinterface interfacenumber number(1) lPC flagarea(2048flags)Systemdataareaforcontrolling/monitoringthedataexchangeonepageisavailablefor eachdeviceinterfaceInterfaceareaforjobdataA vectorregisterisassignedtoeachpageThis diagram isexplainedonthefollowingpage.8B8576537-03 Communications Processor CP525-2(1) InterprocessorCIJIIIIIImication(IPC) flagarea:IPCflags aredefinedas follows:- IPCflags arepart oftheflagareaof a CPUor- iftheyarespecifiedas IPCoutput bytes (interms of thecomputer link) theyarepartof thedual-port RAM oftheCP525-2. These IPCflags arealsocalledcoordinationflags.IPCflags arerequiredbecausetheyareusedas follows:- for thecyclicexchangeofdatabetweenepus inbytes- for thedataexchangebetweenCPOs andthe CP525-2. The !PCflagareainthedual-port RAMof the CP 525-2isresponsiblefor thisfunction.The IPCflagareainthe Cf 525-2covers 256 !PCflagbytes(2048 IPCflags).Withthe computerlinkandRK512the IPCflags (coordinationflags) ~ n beusedto:inhibit aDdeDable1:he dataexchange bet-ween1:heCPU andCP. Byinhibitingthis exchange, youcan preventdatathathasnot yet beenevaluatedfrombeingoverwritten.These IPCflags must be (lesignatedas output flagbytes. Forfurther details seetheuser'sguidefor the computer link withRK512.Whenyouareusingthep:.:inter PT88/PT89 J youdo notneedthe IPCflags.The IPCflagsaretransferredonceper STEP5programcyclebetweentheflagareaofthe CPUandthe IPCflagareaof theCP525-2 (similartotheprocess imagefor d i g i t a ~ . inputs andoutputs) .Toprevent multipleaddressingwhenusingseveral CPsor CPs anda coordinatorinone PC, youmust dividethe IPCflags intogroups (jumper settings see3.4.2). Thisalsoapplies ifthereismore thanone CPU ina PC.9B8576537-04Note:Communications Processor OP 525-285-115U: the IPCflags must belistedinDBl as IPCoutputflags.SS-135U:85-155U: the IPCflags must beenteredas IPCoutput flags intheDBl ofeachCPU. This isalsothecasewhenonlyone CPU isbeingusedalongwitha CP525-2.SS-lS0U: sincethe IPCflags areina different address area,thefunctionblockFBTRANSFER handlesthecyclicexchangeof IPCflags betweenthe CPUandCP. The IPCflags must bespecifiedwhentheblockiscalled. Theblock callmust beat theendofthecycleofyour STEPSprogram.(2) (3) Data ttaDsfer area(page)Eachdeviceinterfaceofthe CP525-2hasitsownpageassignedto it. Thismeans that eachCP525-2usedina programmablecontrollerbas twopages.Thepageistheareawithinthedual-port RAM inwhichdata isexchangedbetweenthe OP525-2andthe CPU. This datamay, e.g.,benumerical values, tobeloggedontheprinter. InadditionItheprogrammablecontroller can alsotransfer systemmes-sages tothe OP525-2viathepage.(4)(5) Vector register - int:erfaceDIDIIberThepagesof all the CPs ina PCareinthe sameaddress area. Toensurethat onlytherequiredpageisaddressedwhendataareexchanged, eachpage canonlybeaddressedby itsiDI:erfaceDlDber. This isbetween0and255andisset onthe CPbymeansof jumpers.Eachpagehas avector mgister allocatedto it. Thevectorregistersof all theCPs have the sameaddress.10B8576537-03 Communications Processor CP 525-2Ifoneofthetwopagesofaparticular CPistobe addressedbythe CPU(e.g., totransfer datatothe CP525-2), the CPU writestheinterfacenumber of t;herequiredpage in all t hevectorregistersavailable. EachCPcompares thecontentsofthevectorregisterwith itsowntwointerfacenumbers. Ifthe CPrecognizesthat themunbermatches aninterfacenumber, therequiredpageisenabledfor datatransfer. This functioniscarriedout automat-icallyby handlingblocks.Sincetheinterfacenumbersof the CP525-2canonlybeset inpairs, youset the eveninterfacenumberof IF1onthe OP 525-2.The interfacenumber of IF2isautomaticallyset withthenexthigher number (formoredetails see3.4.1Moduleaddress/inter-facenumber).first CP525-2 secondCP525-2I------------tExample with2CPsPage 1Inter-facenumbere.g. "2"Page2Inter-facenumbere.g. "3"Page 1"!nter-facenumbere.g. "4"Page2Inter-facenumbere.g. "5"all pagesareinthe sameaddressareantDIlbers between0and255setwithj u m p e ~ s onthe CPVector Vectorregister register';ector Vector allvectorregistersregister register areinthe sameaddre" ~ s area11Communications Processor CP 525-21.5 Memory SubmodulesThememorysubmoduleof the CP525-2containsyour CP 525userprogram. Theuser programincludes thefollowing:- thespecificprograms for the device interfaces ("interpretersandprocedures"). Theseprograms decidewhichfunction (compu-terlink orprinter) iscarriedoutviawhichinterfaceontheCP- the"actual"user program, i.e., themessagetextsfor thelogging printerand/or thetelegramparameters for the computerlinkThe interpretersandprocedures ofthe twointerfacesrequireatotalof8Kwords (2x 4Kwords) inthememorysubmodule, regar-dlessofwhether oneorbothinterfacesarebeingused. TheCP525-2alsostores auser datamanagerfor eachinterfaceinthememorysubmodule. This manager is dynamic, i. e., itgrowswiththenumberof itemsof user data; per interface it canbeamaximum of 4Kwords long.Computer link withRK512: per interfacea maximum1Kwordisre-quiredfor thetelegram parameters. A16Kwordme:..ooryS11'ba>duleisadequatefor one computerlink per CP525-2 interfacePrinterPT88jPr89: theavailablememoryspace depe:nds ontheca-pacityof thememory sum.1Oduleandon whether oneor twointer-faces arebeingused.Youcan useeitherEPBOII sulwnodt.il..es orBAHSI1JnodW.es. When itispluggedin, theRAM isbattery-backed viathebacl'Planebusoftheprogranunablecontroller.lIIIl'OIlr6lflI:iftheBAlI3UlDodule isunpluggedfromthe CP525-2or the OPisdisconnectel fromthe PC, theuser programstoredintheRAM islost!! r12B8576537-05 Communications Processor CP 525-2The followingmemorysubmodules areavailablefor the CP525-2:16Kwords32Kwords64Kwords:RAK su1wMJnles16Kwords32Kwords64lCwordsWhenyouareprogranmingthissubmoduleonthe PG, youmust useanadapter (MEPadapter), sinceadifferent programmingvoltageisrequiredfor EPROHs ofthetype27256.Inthe CP525-2, youmayalsousethebuffered377BAHsubmodule (64Kwords).The ordernumbers for these submodules canbe foundintheorder-ingdatainthismanual.Ifyouwishtousebothinterfaces thefollowing submodules canbeused:IF! andIF2 16Kw 32 Kw 64Kwsubmodule submodule submodulePT88/Pl'89/ PT88/Pl'89 no yes yesPT88/Pl'89/ CL yes yes yesCL / PT88/Pl'89 yes yes yesCL/ CL yes yes yesPT88/PT89 - printer PT88/PT89CL - computer link withBK512Ifyouonlyrequire ODeinterfaceyoucanuse all thememorysubmodules for theprinterandthecomputer link.1388576537-071.6 Hardware ClockCommunications Processor CP525-2Incontrast tothe CP524 (software clock) the OP525has abattery-backedhardware clocktodisplaythedateandtime.Leapyears andchanges ofyearareautomaticallytakenintoac-count bythesoftwareofthe OP. Even ifthe CP525is switchedoff (forupto1year)J withdatasupportedonlybythebatteryback-up, changes ofyear andleapyears aretakenintoaccountwhen itisswitchedonagain.As soonas the CP525-2modulehas beenpluggedintothepro-granmablecontroller, theclock startsnumingwiththesettings:January 1st, 0.00hours. Theyear isset at random.Furtherdetails about thehardware clockcanbefoundintheuser'sguide "Computer linkwithRK512" or intheuser's guide"OP525: signallingandlistingwiththe PT88jPT89printer"(OP525: readingandwritingthedateandtime).Thehardware clockisaccurateto+/- 50ppm,i.e. +/- 4.3seconds per day.14B8576537-071.7 Technical DataDegreeofprotectionaccordingtoDIN40050andIEO144Perm. ambient temperatureduringoperationduringtransport andstorageHumidityclass DIN40040Operating altitudePower supplyCurrent input 5 VCurrent input 24VBack-upvoltageBack-upcurrent (at 600.andwithout RAMsubmodule)TransmissionprocedureTransmissionrateTransmissioncableTransmissionlinkTrYTransmissionlinkV24Designd ~ e n s i o n s (W xHxD)backplane connector(packagingsystem)WeightCommunications ~ e s s o r CP 525-2 .IPOOoOCto550-40Cto+700codeletterFupto3,500m above sealevel5V +/- 5%; 24V for currentsources2.1A max; 1.8A measuredstatically60 mAmin. 2.7V140\fAmax.asynchronous, procedures canbeloaded via PG110to19200bpswithTrYmax. 9600bpsshielded4-wirecablewithbraidedshieldandmetalconnector: earthingrequiredbothendsmax. 1 kIn at 9600bpsmax. 20m20.32mmx160mmx233.4mmES 902/ row2, 48-pinapprox. 0.4kg15B8576537-042 InstallationCommunications Processor CP525-22.1 SlotsintheProgrammableControllerThe OP525-2canbepluggedintothefollowingprogramnablecontrollers (fanrequired):S5-1l5UwithsubrackCR700-2Slot numberSS-115U withsubrackER701-3The interfacemodules 304and 314arerequiredS5-1l5U withsubrackCR700-3:The interfacemodules 304and314 arerequiredFanrequiredS5-135OWiththe CP525-2, nocoordinationprocessorisrequired ifonlyone CPU isused.S5-15OOFurtherdetailsabout your programnablecontroller canbefoundintheappropriatemanual.16B8576537-06SS-155UCommunications Processor CP525-2The OP 525-2canbepluggedintothefollowingexpansion unit(fanrequired):FJJ1850The interfacemodules 304and314arerequired.2.2 P1ugqinginandRemovingtheCP525-2DoDOt z:emove or plug in theCP525-2when'thepolleE'ison! Ddsalso applieswhenyou arereplaciDgt:he m 'L) snbnodu1..el2.3 InstallationGuidelinesThe cOlUlectingcablebetweenthe CP525-2anda partnerdevicemust bea cablewitha shieldearthed at bothends andwithmetalcmmectors. The standardcablecotmectorslistedinthecatalogand inSection6meet theserequirements.Theshieldmust make largeareacontactwiththecasingofthemetal connector (not onpin7). Ifthepartnerdevice doesnothave a metal cormector, the cableshieldmust make largeareacontactwithground. Ifthereisa largedifferenceingrOWldpotential betweenthe CP 525-2andthepartner device, a poten-tial equalizingcable shouldbe included. Thecableshouldbekept awayfromthyristor drives andpow-er cables carryingmorethan500V. Further informationabout installationcanbe fOWldinthe"Installationguidelines for SDfATICcompact d e v i c ~ " (seeorderingdata).17B8516537-033 operationCommunications Processor CP 525-23.1 Controls andDisplaysCP 525-2 (Viewfrom front)RUNSTOPPGRMode selectorooLEDdisplay for device interface 1LEOdisplayfor device interface 21888576537-033.2 operatingModesModeselectorCommunications Prccessor CP 525-2RUNSTOP= PGRTheprocessor rtmSinthenormal operatingmode J theuser functions whichhavebeenprogrammedareprocessed. The LEDs arenotlit (:.f LEDs are lit, see 3.3)No jobsareprocessed. The functionoftheswitch position"STOP" is identical withthatof "PGR". The LEDs are lit.3.3 statusDisplaysEachinterfacehas a redlEDdisplay. IfthelEDdisplayofadevice interfaceis lit, oneofthefollowinghas occurred:- devicedriverandprocedurefor theinterfacenot loaded- modeselectorswitchedtoSTOPjPGR- followingtheloadingoftheuserprogram, driveandprocedure,no OP 525-2cold r e s t a ~ t was carriedout- OP 525-2 stillinstart-upphasefollowinga power failure(takesmax. 10s)- "serious"errorrecognizedduringstart-up(e.g., wrongmemorysubmodule: submodule typenot permitted).19B8576537-033.4 JumpersettingsCommunications P r o ~ e s s o r CP525-2The diagrambelowshows thepositionof the jumper .blocks onthemodule. Adjustmentsneedtobemade onlyonJB16/ JB25/ JB51.The jumpers ontheremaining jwnper blocks areset inthefactoryandshouldnot be changed.MemorysubmoduleEPROMorRAMJB 16JB17Start addressRI areaBPCo~~bR1IF 1IF2JB51V.24 controlsignalsJB34 1611UlmmiUlAmiTest jJmpers 1 iQumouUmJB23AddressingmodeJB25IPC flag area8PCoNNECToR2IF =Device interface 20JB ... =jJmper block ...B8576537-03 Communications Processor CP 525-23.4.1 IfoduleAddress/ InterfaceNumberAs describedin 1.4, the dataistransferred viathepageareaofthedual-port RAM. Each ofthe twodevice interfacesof theCP525-2has itsownpage andisallocateditsowninterfacenumber (values from0to255).Youspecifythe interfacentnnbers bysettingtheJOOduleaddressofthe CP 525-2 at JB16. For example, ifyouselect themoduleaddress "0"I (nojumpers inserted), thendevice interface 1 (IF1) has the interfacenumber "0". Device interface2 (IF2) isautomaticallyassignedthenext highernumber - interfacenumber"1".Moduleaddress ---:>IFlPage 1Interfacenumbere.g. "0" plus 1=IF2Page 2Interfacenumbere.g. "1"(onlyevennumbers allowed)IDIPOB.TARTI The jumper st!ttingisbinary. Onlyeven tDDberscanbeselectedfor IF 1; IF2isthenautomaticallyassignedthenexthigher oddnumber.Rote: toensurethat the OPUaddresses the CPcorrectly, youmustspecifythe same interfacenumber (parameter SSNR) whenassigningparameterstothehandlingblocksas that set onthe CP.21B8576537-03Jumper block110. 16:16151413121110 90000000 00000000 012345678Jumper open: 0x 2n= 0Jumper inserted: 1x 2nCommunicationsCP 525-2Jumper Value8-9 irrelevant 27-10 2 216-11 4 225-12 8 234-13 16 243-14 32 252-15 64 261-16 128 27Ezample: selectedinterfacenumber equals 1216151413121110 90000000 0I I0000000 01234567812decimal = Ox20+0x21+1x22+1x23+0x24+0x25+0x26-t0x27Jumpers 6-11and5-12areinserted; theother jumpersremainopen.Theupper device(i.e. IF1) now has interfacenumber12andthe lower device interfacethereforeautomaticallyhasaddress 13.22B8576537-03 Communications Processor OP 525-23.4.2 F.lJabliDg/DisabliDg!PCFlagsAs describedin 1.4andintheuser'sguide "Computer link withRK512" youcanenableor inhibit thedatatransfer betweentheCPUand CP525-2by usingthe IPCflags. 'lhese IPCflags nntSt bespecifiedasoutput flags; inthis situationtheterm"coordin-ationflag" canbeusedinstead of the tennIPCflag.Theprinter PT88jP1'89 does not requireany IPCflc'.gs.A total of 256 !PCflagbytes areavailableinthe progranunablecontroller (2048 !PCflags).Inmultiprocessor operat:,'.on, IPCflags area means of exchangingdatabetweentheprocessors. Ifseveral CP525-2s orseveralCPUs (inthe85-135U) areinstalledintheprogrammablecontrol-lerthe IPCflags must be dividedupamongthe CPs andthe coor-dinator (seealsoinstructionsfor theS5-135U). The !PCflagsmust thenbeenabledonthemodules bymeans of jumpers. OntheCP525-2thereareeight jumpers availableat jumper block25.Withtheappropriate jumper settingonthisblock, 32contiguousIPCflagbytes canbe enabledordisabled.23:88576537-03Jumper blockDO. 25:8 7 6 5 4 3 2 1o 0 0 0 0 0 0 0o 0 0 0 0 0 0 0910111213141516Communications Processor CP525-2Jumper IPCflagbyte8- 9 0 317-10 32 636-11 64 955-12 96 1274-13 128 1593-14 160 1912-15 192 2231-16 224 255Jumper inserted: thecorrespondingIPCflagbytesareenabled.IlJIl1OB7ARTl: the correspondingIPCflagbytesmust alsobeenteredintheDBls ofthe CPUs inthe85-135Uand115UI Thesecanthenbeaddressedasflags inthe STEP5program.24B8576537-03 Communications P r ( ~ e s s o r CP 525-2The followingisanexamv1eofthedistributionof IPCflagsbetweentwo CP525-2s andone coordinatorwiththe 85-135U:Coordinator first CPU secondCPU first secondCP 525-2 CP525-2DBl . DBl O 318, 12 32,35,61IPC IPC 32 63output outputflag flag64.. 255 bytes bytes64 64IPC IPCoutput inputflag flagbyte byte--This example specifiesthat thefirst CPU"coordinates" thedataexchangewiththe first CP525-2viaone (or several) bitsoftheIPCflagbytes 8and12. Therefore thearea0to31isenabledonthefirst CP525-2. (Anareaof 32contiguous IPCflags mustalways be enabledor disabled). Jumper 8-9isinsertedonjumperblock25. InDBl ofthe iirst CPU, youmust enterbytes 8 and12as IPCoutput flagbytes.Inthe samewaythesecondCPUcoordinates thedataexchangewiththe secondCP525-2viaIPCflags 32, 35, 61. OnthesecondCP525-2thearea32to63must thereforebeenabled(jumper 7-10inserted). Youmust thenenterthebytes 32, 35and61as IPCoutput flags inDBl ofthesecondCPU.Sincethe IPCflagareajx!stsonlyonce ineachPC, onlythe IPCflags 64to255canbeusedforotherpurposes. Inthis examplewe selectedthe IPCflag64for CPU- CPUcommunication (IPCoutput flaginDBl ofthefirst CPU- IPCinput flaginDBl ofthe secondCPU). Theareawhichcontainsbyte 64must thereforealsobe enabledinthecoordinator.25B8576537-03 Communications Processor CP 525-23.4.3 settings oftheDeviceInterfacesEachdevice interfacehas both20rnAcurrent loopsignals andV.24signals. Accordingto C C r T T ~ control signals arerequiredfor V.24. The evaluation of thecontrol signals dE.pends onthedeviceprocedureinstalled. The jumpers aresetat thefactorysothat thesignalsarenot evaluatedbytheprocedure software.This settingmeans that all devices intendedfor connectiontothe CP525-2canbeopere-ted.Thecontrol signalsareas follows:Pin65Dataset readyCleartosendDSROTSOneachdevice interfaceoneofthesesignals canbeused(asrequired).Thefactorysettingoftlle jumpers isas follows:16 151413121110 9000I I I000o 0 000I I Io 0 000Jumper block,10. 511234567826B8576537-03 Communications Prv:essor CP 525-2The significanceofthe ~ umpers isas follows:Device interface1:8- 9 insertedand7-10open=DSR(pin6) selected7-10insertedand8- 9open=CTS (pin5) selected6-11inserted =CTS/DSRinput not used6-11open = thesignal selectedwithjumpers 8-9and7-10canbe evaluatedbythesoftware5-12open = thesignal is invertedforevaluation5-12inserted = thesignal isevaluateddirectlyDevice interface2:4-13 insertedand3-14open =DSR(pin6) selected3-14insertedand4-13 ~ e n =CTS (pin5) selected2':'15 inserted = CTS/DSRinput not used2-15open = thesignal selected withjumpers 4-13and3-14canbeevaluatedbythesoftware1-16open = thesignal is invertedforevaluation1-16inserted = thesignal isevaluated directly27B8576537-03 Communications Pr(Jcessor CP 525-23.4.4 Pe:rmanent Jumper :;ettingsThe following jumpers arE. set inthefactoryandliiUst not bechanged:16151413121110 90000000 0I I I I I I I0000000 01234567816151413121110 9Jumper blockno. 17000I I I000o 0 0 () 0I Io 0 000Jumper block no. 231234567816151413121110 90000000 0I I I I I I I I0000000 012345 6 7 828Jumper blockno. 3488576537-03 Communications Processor CP 525-24 SettinguptheHardwareWheninstallingthe Cf 525-2moduleJfollowthechecklist below:1. Checkthe jumper settingonthemoduleaccordingto3. 4.2. Insert amemory submodule inthe CP subrnodule t:eceptacle.3. Plugthe CP 525-2module intooneof thepermittedslots inyour device. The power supplymust be switched off (see2.1) .4. Connect thepartner device (e.g. PT88/PT89) andthe CP525-2(seeSection6).s. Checkthepositionof themode selectoronthe CP525-2. Itmust be switchedtoIIRUNII, toallowdataexchangewiththepartner device.6. Make thecorrect settingsat thepartner device. Thesesettings canbefoundinthe user's guide "Computer linkwithRK512" and"Printer PT88jPI'89" inthesectiondescribinginstallation.Make surethat theparameters requiredfor transmission(datarate, parity, stop bit, character length) arethe sameinboththepartner devicean-i the CP525-2.7. Switchonthepower supplytoyour CP. BothlEDdisplays onthefront ofthe CPlightup. Theoperatingsystemcarriesout a self-test. The LEDof the device interfacebeingstartedgoes out if n.) errorhas beendetectedandyouhavedone oneofthe - pluggeda progranmedEPROMintothe CP (devicedriverandtransmissionproceduremust beprogrammedfor eachdeviceinterface) .-transferredyour userprogramfromthe POtothe RAMpluggedintothe CP525-2andhave thencarriedout a cold restart.29Communications Processor CP525-25 PinAssignments5.1 BackplaneConnector 1d b z2 Ground +sv4 UBAT6 ADB12 ADB 0 /CPKL8 ADB13 ADD 1/HEMR10 ADB14 ADB 2/MEMW12 ADB15 ADB 3 /BDY14 ADB 4 DB 016 ADB 5 DB 118 ADB 6 DB 220 ADB 7 DB 322 ADB 8 DB 424 ADB 9 DB 526 ADB10 DB 628 /DSI ADB11 DB 730 BASP32 Ground30Communications Processor CP 525-25.2 BackplaneConnector 2d b z2 Ground +5V468101214 /NAU16/BAU1820 /HOLDA /DHAFA22 TXD /STOPPA24 GEP26 RXD2830 GROUND24V32 GrO\Dld +24V31Communications Processor CP 525-25.3 MemorySubmoduleInterfacec b a1 ADB12 Ground +5V2 ADB 0 ADB 1 ADB 23 ADB 3 ADB 4 ADB 54 ADB 6 ADB 7 ADB 85 ADB 9 ADB10 ADB116 ADB13 ADB14/RD7/WRDB 0 DB 18 DB 2 DB 3 DB 49 DB 5 DB 6 DB 710 DB 0 DB 1 DB 211 DB 3 DB 4 DB 512 DB 6 DB 7 Kl13 les lOS K214 les les K315 UCMOS PSW' K416 +sv Ground K532B8576537-03 Communications Processor CP525-25.4 DeviceInterface 1 (IF1)Pin Designation1 - ground (Gex)2- transmitter TXDV24 IF!3- receiver RXDV24IFl5- cleartosendeTSV24 IF!6- dataset readyDSRV24IF1; receivermust be convertedfromerstoDSRwithjtunper.7 -8 -9-10 -11 -12-13 -14-15 -16 -17-18-19 -20 -21-22 -23 -24 -25 -TTL0Vnot usednot usedtransmitter (+) TTYIFnot usedcurrent source (+) 20mAreceiver (+) TTYIF1receiver (-) TTYIFlnot usedcurrent sourceu(+) 20 mAnot usednot usedtransmitter (-) TTYIFlnot usedcurrent source (. ) 20mAnot usednot usedcurrent source (-) 20mAnot used33B8576537-03 Communications Processor CP 525-25.5 DeviceInterface 2 (IF2)Pin Designation1- ground (Gex)2 - transmitter TXDV24 IF23- receiver RXDV24IF25- cleartosendCTSV24IF26- dataset readyDSRV24 IF2; receivermust be convertedfromCTStoDSRwitha jumper.7 - TTLOV8 - not used9- receiver (+) PGTTY10- transmitter (+) TTYIF211 - not used12 - current source (+) 20mA13 - receiver (+) TTYIF214- receiver (-) TTYIF215 - not used16 - current source (+) 20 rnA17 - not used18 receiver (-) PGTTY19 - transmitter (-) TTYIF220 - not used21 - current source (-) 20rnA22 - not used23 - transmitter (+) PGTTY24- current source (-) 20 IDA25 - transmitter (-) PGTTY34B8576537-07 Communications Processor CP525-26 StandardcableConnectorsFor themost conmonconnections betweendevices therearestand-ardcableconnectors available (seeorderingdata).The cablecanonlybeconnected at the lower jack of the CP 525 .6.1 connectionCP525 - PG6xx (TTY)+ 12V-12V~ ITransmitter V', 12+20mA .'\~ I+TxD . \ 10II1II1I231+TxD -RxD i I8 Receiver~ Receiver I; ~ ' - R X D18 .CP525-------,9 .'\ +RxD-12VTransmissionrate settingl- ~~ Transmittelsl \ ! _TxD 20mA ~ j 121-.!.L... Shield .. 124,25CasingGexIi-'--------..... l"l_______...1 K1 117K2 I 435B8576537-04Communications Processor CP525-26.2 connectionCP525/524 - CP525/524 (TTY)CP525/524-19Transmitter ~1014...\-TxDCP525/524l' ,." Shield \.; I 1CasingGex L---'--..---------oo-------------..---r--l CasingGexI ,_..-..-_.. ... ..-... J l ,;.. ..~ Transmitter!\ I Receiver -:?19' ,-TxD +RxD 13r - - - ~ - " - " - - - - - - - - - - " " - - - - - - "I1316.3 connectionCP525/524 - PROMEAM(TTY)+5VPROMEAM,-----------------------.. _ - ~Ii+ 5V ---2105/ RTS >--4106/ eTS 5108.2/ DTR. >--20107/ DSR 6111 :>-- 23125/ RI 22109/ DOD 8141/ PS3 >--18142/ PKl. 25113>--24 onlyfor synchronousdatatransfer114 / TxC 15 (not availablewithstandardjumper115/ ~ C 17 settings)102Shield 1(< > Arrowshowsdirection of signal)Signal numberingisaccordingtoCCrTTrecommendationV.24, sig-nal designationisaccordingtointernationallyacceptedabbre-viations (RS 232 C).7B8576538/4 Communications Processor CP 524Thepositionandsignificanceof the jumpers ontheV. 24modulecanbe foundin3.4inthese instructions.Whenyouprogramyour CP524user programusingtheprogranuningpackage COM525, youspecifythesettingof the transmissionparameters (transmissionrate I frame format).1.3.2 TrY lbdu1eThe TTYmodule is equippedwitha transmitter andreceiverfor20mAcurrent loopsignals. Thecurrent loopitselfcanbe sup-pliedbothbythe CP 524andthepartner device. Onlythe endwhichsuppliesthecurrent isnon-floating. The OPsupplies thecurrent (20mA) viajumpers inthefront cormector. The 24Vrequiredfor generatingthecurrent looparetakenfromthe PCbus. Witha closedcircuit, a current of 20mAmust flow(logical 1) ifthelinecurrent circuit isfunctioningcorrectly.Whenthecurrent isinterruptedlogical O. results.The followingdiagramshows the intercormectionofcurrent loopsignals.Device1 Device 2SIS)- +TRANS-RECEIVERMrrrER+-+ -24 VCURRENTGROUND(CHASSOURCEonactivedevicearrowsshowdirectionof flow8B8576538/4Communications Processor CP 524The followingfigure shows thepinassignment ofthe25-pinfemale Cannonconnector onthefront panel of the TTYmodule:ReceiverTransmitterCurrent sourceReceiver(20mA)Current sourceTransmitter(20mA)Ground25-pinfemale connectorpinno.+13~ 14+10~ 19+~ 1621~ ~122424V 24Vintern externJu3 321I .Current generat10nShield+91>Arrows showdirectionofsignal flow)9B8576538/4 Conummications Processor OP 524Thepositionandsignificanceofthe jumpers ontheTTYmodulecanbefoundin3.4intheseinstructions.Youset theparametersfor thedatatransmission(datarate,parity, stopbits) usingtheprogrammingpackage COM525 onthePG. Amaximumdatarateof 9600bps ispossiblewiththeTrYmodule.1.3.3 BS422-A/485lfoc1al.eTheRS422-A/485module canbeusedinthecmIplter l:iDk totransfer data. in full or in half duplex. 'Ihe jumpersettings canbefoundinSection3.4. In half duplexoperation, youcannot usethestandardprocedures 3964and3964R. Inthiscase, youmustusespecial drivers.TheBS422-A/485module can alsobeusedwiththe1DggiDg printerP'l88jPl89, thereare, hO"tfever, nostandardcablecormectorsavailable.TheRS422-A/485moduleelectricallyisolatestheinterfacesignalsfromthepower supply. Theelectrical characteristicsoftheBS422-A/485moduleareas follows:- in full duplexmode: accordingtotheEIAstandardBS422-A(CCrrr recamnendationV.ll)- in half duplexmode: accordingtotheEIAstandardRS485.The differencebetweenthetwostandards isthat onlyonetransmittermaybeavailablewiththeEIAstandardRS422-A,whereas several transmittersandreceiversarepermitted withtheEIAstandardRS48S. In half duplexmode, thedataexchange canonlytakeplace viathetwo-wirelineR.Apart fromthetransmit andreceivelines, theRS422-A/485moduleisequipped witha seriesofcontrol andmonitoringlinesaccordingtotheccrrrrecODII1endationX.24andISO8481. For thecomputer linkandtheloggingprinter PT88jPr89, thesecontrolandmonitoringsignalsare not requiredanddonot needtobeconnected.10B8576538/6 Communications Processor CP524Inthefollowingexamples, onlytransmit andreceivelinesarecormected. The followingapplies tosignalsaccordingtothe EIAstandardRS422-A(V.11) andEIAstandardRS485:- logic0 (ON) corresponds toVA >VB VA = greater than+3V- logic1 (OFF) corresponds toVA Handlingblocks(Standardfunctionblocks)85 busDual-port< > RAM14< i>UsermemoryDeviceinterfaceB8576538/4 Communications Processor CP 524The dua1-port BAH of the CP524isstructuredas follows:Addresses Area: Dua1-port BAH ConnnentDec. Hex.61952F200F220F240F260F280F2AOF2CO62176 F2EO62207F2FF62464F400F7FF65279FEFFFY 0-FY 31FY 32-FY 63FY 64-FY 95FY 96-FY127FY128-FY159FY160-FY191FY192-FY223FY224-FY255RS - area(2) pageRI areafor deviceinterface(3)vector registerinterfacenumber(1) IPC flagarea(2048flags)Systemdataareaforcontrolling/monitoringthedataexchangeonepage isavailablefor thedeviceinterfaceInterfaceareaforjobdataA vectorregisterisassignedtoeachpageThis diagram isexplainedonthefollowingpage.15B8576538/4 Communications Processor CP 524(1) InteEprocessor COIIIIlUIlication(IPC) flag areaIPCflags aredefinedas oneof thefollowing:- IPCflags maybepart of theflagareaof a CPU.- Iftheyarespecifiedas IPCoutput bytes (intermsof thecomputer link), they arepart of thedual-port RAMof theCP524. These IPCflags arealsocalledcoordinationflags.IPCflags areneededbecauseof thefollowing:- IPCflags areusedfor thecyclicexchangeofdatabetweenepus inbytes.- Theycanalsobeusedfor thedataexchangebetweenCPUs andthe CP524. The IPCflagareainthedual-port RAMof theCP 524isresponsiblefor this function.The IPCflagareainthe CP524covers 256 IPCflagbytes (2048IPCflags).Withthe computer linkandRIC512) the IPCflags (coordinationflags) canbeusedtoiDbibit andenablethedataexchange00-t:ween theCPOandCP. Byinhibitingthis exchange, youcanprevent datathat hasnot yet beenevaluatedfrombeingover-written. These IPCflags must bedesignatedasoutput flagbytes.Forfurther details, seetheuser'sguidefor thecomputer linkwithRK512.The IPCflagsarenot used,if youareworkingwiththePT88/PT89logging printer.The IPCflags aretransferredonceper STEP5programcyclebetweentheflagareaofthe CPUandthe IPCflagareaoftheCP524 (similartotheprocess imagefor digital inputs andoutputs) .Toprevent multipleaddressingwhenyouareusingseveral CPs orCPs anda coordinatorinone PC, youmust dividethe IPCflagsintogroups (jumper settings see3.4.2). This alsoapplies ifthereismore thanone CPUina PC.16B8576538/4Note:Communications Processor CP 524SS-115U: the IPCflags ~ t belistedinDBl as IPCoutputflags.S5-135U: the IPCflags must be enteredas ~ P C output flags intheDB1of eachCPU. This alsoapplieswhenonlyoneCPU isbeingusedalongwitha CP524.85-150U: sincethe IPCflags areina different addressarea,theftmctionblockFBTRANSFER handles thecyclicex-changeof IPCflags betweenthe CPUandCP. The IPCflags must bespecifiedwhentheblock iscalled. Theblock call must be at the endofthecycleofyour STEP5program.SS 155U: the IPCflags must beenteredinDBl of the CPU asoutput flags. This isalsothecasewhenonlyone CPUandone CP524arebeingused.(2) Datatransfer area(page)The device interfaceof the CP524has a pageassignedto it. Thepage1s theareawithinthedual-port RAMinwhichthedata areexchangedbetweenthe CP524andcpu.(3) Vector register - interface naoberThepagesof all the CPs ina PCareinthesameaddress area.Toensurethat onlytherequiredpageisaddressedwhen. dataisexchanged, eachpage canonlybeaddressedby usingitsinterface1IUIIIber. This is ~ e t w e e n 0 and255and isset onthe CPbymeansof jumpers.The pagehas a 'Vector register allocatedto it. Thevectorregis-tersof all theCPs havethe sameaddress.Ifthepageof a particular OPistobeaddressedbythe CPU(e. g., totransfer datatothe CP524) the CPU writes theinterfacenumber oftherequiredpagein all thevector registersavailable. EachCPcompares thecontents of thevectorregister17B8576538/4 Communications Processor CP524withits owninterfacenumber. Ifthe CPrecognizes that thenumber whichbas beenenteredmatches its interfacenumber therequiredpageisenabledfor datatransfer. This functioniscarriedout automaticallybydatahandlingblocks.first OP 524 secondCP 524 Example withtwo CPs_ - . _ - - ~ - - - - -all pages areinPage Page thesameaddressarea~ - - - - - - - - - ---------- ------------Interface Interface numbers between0number number and255set withe.g. "12" e.g. "13" jumpers onthe CP---------- ~ - - - - - - - - ---------_--.allvectorregistersVector Vector havethe sameaddressregister registerL.- ...... _18B8576538/41.5 Memory SubmodulesCommunications Processor CP 524The memorysubmoduleofthe OP 524containsyour CP524 userp:rogram. whichincludes thefollowing:- thespecificprograms for thedevice interface ("interpreterandprocedure"). These programs determinewhichfunction(computer linkor printer) is p e r f o ~ e d .- the "actual"user program, i.e., themessages for theprinterand/or telegramparameters for the computer link.The interpreterandprocedurerequire a total of 8Kwords inthememorymodule. The CPalsosetsupa manager for theuser datainthemodule. This: manager is dynamic, i.e. itgrows withthenum-berof user data. It canoccupya maximum of 4Kwords For the computer link withRK512a maximum of 1KwordisreqUired.Tooperatea computer linka 16KwordEPROMmodule isrequired.For the PT88/PT89, therequiredmemoryspace depends onthesizeofyouruser progam.OnlyEP.ROHsuhnodtJ1escanbeusedinthe OP524, since (incon-trast tothe CP525) thereisnointerfacetotheprogrammerrequiredtoloadthesoftwareinthe RAM.Thefollowingmemorysubmodulesareavailablefor the CP524:EPBlIIsuboodules16Kwords32Kwords64Kwords Whenprogrammingthis submoduleonthePGyoumust useanadapter (MEPadapt-er), sincea different programningvoltageisrequiredfor EPROMs of thetype27256.Theordernumbers for these submodules canbefmmdintheorderingdatasection ofthismanual.19B8576538/61.6 Technical DataDegreeofprotectionaccordingtoDIN40050andlEG144Perm. ambient temperaturedur:lngoperationdur:lngtransport andstorageHumidityclass (DIN40040)Operating altitudePower supplyCurrent input 5 VCP524TrYmoduleV.24moduleRS422-A/485moduleCurrent input 24VTrYmoduleTransmissionprocedureTransmissionrateTransmissioncableTransmissionlinkTrYTransmissionlinkV24TransmissionlinkRS422/A-485Connmmications Processor CP 524IPoaoOeto55C-400to+700codeletterFupto3,500m above sealevel5V +/- 5%;24V +25%/-15%1.5A max.0.8A, measuredstatically0.1A, measuredstatically0.2A, measuredstatically0.5A, measuredstatically60mAasynchronous, exchangeableprocedures110to19200bpswithTrYmax. 9600bpsshielded4-wirecablewithbraidedshieldandmetalconnector: earthingrequiredbothendsmax. 1km at 9600bpsmax. 20mmax. 1200m20B8576538/4Designdimensions (W' x Hx D)backplane connector(packagingsystem)WeightCommunications Processor OF 52420.32mmx160mmx233.4mmES 902/ row2, 48-ptnapprox. 0.4kg21B8576538/42 Insta11ationCommunications Processor CP 5242.1 SlotsintheProgrammableControllerThe CP524canbepluggedintothefollowingprogrammable con-trollers (fanrequired):S5-ll5UwithsubrackCR700-2Slot numberSS-llSUwithsubrackER701-3Slot numberThe interfacemodules 304and314arerequiredS5-l15DwithsubrackCR700-3SlotnumberThe interfacemodules 304and314arerequired85-1350SlotnumberWiththe CP 524, nocoordinationprocessor isrequired ifonlyone CPU isused.85-15011Slot number3 11 19 107 115 123 131 139 14722B8576538/4S5-15SUSlot numberCommunications Processor CP 524Furtherdetailsabout your programmablecontroller canbe foundintheappropriatemanual.The OP 524 canbepluggedintothefollowing expansion unit (fanrequired):EO'185OSlot numberTheinterfacemodules 304and314arerequired.2.2 P1ugginginandRemovingthe CP 524TheCP524DUSt notbereDm1ed or plugged in when thepower ison! '1'bis also applieswhenreplacingtheSl1hoodu1es!23B8576538/4 Communications Processor CP 5242.3 Insta11ationGuidelinesThe connectingcablebetweenthe CP 524anda partner devicemustbea cablewitha shieldearthed at bothends andwithmetalconnectors. The standardcableconnectors listedinthecatalogandinSection6meet theserequirements.The shieldmust make largeareacontact withthe casingof themetal connector (not onpin7). Ifthepartner device doesnothave a metal connector, thecableshieldmust makelargeareacontact withground. Ifthereis a largedifferenceingroundpotential betweenthe CP524andthepartner device, a potentialequalizingcable shouldbe included. The cable shouldbekeptawayfrominterferinga. c. power controllercables, thyristordrives andpower cables carryingmore than500V.Further informationabout installationcanbe foundinthe "In-stallationguidelinesfor SIMATICcompact devices" (seeorderingdata).24B8576538/4Communications Processor CP 5243 Operation3.1 Contro1s andDisplaysCP5241;!i;;;1iiil : ~ po 0IF1 IF2ModeselectorLEDdisplays25B8576538/43.2 OperatingModesMode selectorCommunications Processor CP 524RUN 'lheprocessor runs inthenormal operatingmode, theuserfunctions whichhave beenprogrammedareprocessed. ThetEns arenotlit (ifLEOs are lit, see3.3)STOP Nojobsareprocessed. The LEDIFl is lit.3.3 statusDisplaysIfthe lEDIF! is lit, oneofthefollowinghasoccurred:- devicedriver andprocedurenot loaded- modeselector switchedtoSTOP- CP524 stillinstart-upphasefollowinga power failure (takesmax. 10s)- seriouserrorrecognizedduringstart-up(e.g. I incorrectmemorysubmodule - submoduletypenot permitted).IfthelEDIF2is lit, oneof thefollowinghasoccurred:- seriouserrorrecognizedduringstart-up(e.g., incorrectmemory submodule - submoduletypenot permitted)- CP524 stUl instart-upphasefollowinga powerfailure (takesmax. 10s)26B8576538/43.4 JumperSettingsCommunications Processor CP524The jumpers onthe :Interfacemodules (V.24, TTYandBS422/A-485)andonthe CP524arepreset inthefactory. Youcan usethissettingtooperatethe OP524andthe interfacemodules imme-diately(ifonlyone cODlIlUllications processorisusedinthe PC).The interfacenumber istheno. All the IPCflags areenabled.Tochangetheinterfacenumber (moduleaddress) onthe CP524 orenable/inhibit IPCflags J maketheappropriate jumper settings.Formore informationreferto3.4.1and3.4.2.V.24 Module:JumpersettingsassuppliedFRONTCONNECTOR, 25- PIN1 2 3 0 Ju90 Ju60 JUS 0 JuSo JU4 0 Ju20 Ju8o 0 0 Ju1 Ju7Backplaneconnector27B8576538/4nY-Module:JumpersettingsassuppliedFRONTCONNECTOR, 25 - PIN 0 Ju33 2 1Ju Ju Ju421! ! iiiBackplaneconnectorCommunications Processor CP 52428B8S76538/6RS422-A/485Module:Jumper settings as suppliedFRONTCONNECTOR, 15 - PINX10X9 va ..X1114 32 1Xi 10:012o 3XXXX54761011o 0 rmo200ml03Backplane connectorConmunications Processor CP524 .29B8S76538/4Communications Processor CP 524OP524: factoryjumpersettingsOc=J Ju10 (3,2,1)JB5216IIIIIIII1-BP[] t::::l Ju 7(1,2.3)0 [Z)Ju 6(3,2, 1)o l:ZJ Ju 4(1 ,2,3)JB ...== jumper block Ju ... =jumper ..coNNECToR1BPcoNNECToR2-..-JB541J B 3OCDCJOOClO5 OCDOOOClCl16Ju 1 (3,2,1)1 cJuS 2[l31lJ10\l,f.j Jug ~ ~"'1fS'""c:::z:JTest jumpers ~t::::::3~c:::::Jc:::::::Ji ~ ~ Ju5(1,2,3)oc:;::::)~ [] Ju2 (1,2,3)MemorysubmodulereceptacleIF l' Interfacemodulereceptacle. ~ I .~ IIF -interface30B8576538/4 Communications Processor CP5243.4.1 Jb1a]e Adckess/fnt:erface lbaberAs describedin1.4thedataistransferred viathepages of thedual-port RAK. Thepageisassignedaninterfacenumber rangingfrom0to255. Withthe CP524, the interfacenumber is identicalwiththemoduleaddress.Themoduleaddress (interfacenumber) isset inbinaryonthe OP524 at jumperblockJB53.Bote: toensurethat the CPUaddresses the CPcorrectly, youmustspecifythe same interfacenumber (parameter SSNR) whenassigningparameterstothehandlingblocks that isset ontheCP.JmIper block 353:16151413121110 90000000 00000000 01 2 345678Jumper open: 0x 2D== 0Jumper :Inserted: 1x 2nJumper Value8-9 1 27-10 2 216-11 4 225-12 8 234-13 16 243-14 32 252-15 64 261-16 128 2731B8576538/4 Communications Processor OF 524EsaIIple: selectedinterfacenumber equals 12.16151413121110 9o 0 0 0 0 0 0 0I I0000000 01 2 34567812decimal == Ox20+0x21+lx22+1x23+0x24+0x25+0x26+0x27Jumpers 6-11and5-12areinserted, theother jumpers remainopen.As describedin1.4and intheuser'sguide "ComputerlinkwithRIC512" youcanenableorinhibit thedatatransferbetweentheCPUandCP524by usingtheIPCflags. These IPCflags must bedesignatedasoutput flagbytes. In thissituation, the term"coordinationflag" can alsobeusedinstead of IPCflag.A totalof 256 IPCflagbytesareavailable (2048 IPCflags).No!PCflags areusedwiththe PT88/89printer.In multiprocessoroperation, IPCflags allowtheexchangeofdatabetweentheprocessors.Ifseveral CP524sorseveral CPUs(inthe85-135U) areinstalled intheprogrammablecontroller JtheIPCflagsmust bedividedupamongtheCPs andthecoor-dinator (seealsoinstructionsfor the85-135U). The IPCflagsmust thenbeenabledonthemodules bymeans of jumpers. OntheOP524thereareeight jumpersavailable at locationJB52. Byappropriate jumpersetting at this location, 32contiguous IPCflagbytes canbeenabledordisabled.32Jumper inserted: thecorrespondingIPCflagbytesareenabled.IIJIP(IlDR'lI: thecorrespondingIPCflagbytesmust alsobeenteredintheDBlsofthe CPUs inthe S5-135Uand115UI Thesecanthenbeaddressedasflags inthe STEP5program.B8576538/4JmIperbloc1tJB52:87654 3 2 1o 0 0000000000000 0910111213141516Communications Processor CP524Jumper IPCflagbyte8- 9 0 317-10 32 636-11 64 955-12 96 1274-13 128 1593-14 160 1912-15 192 2231-16 224 25533B8576S38/4 Communications Processor CP 524Thefollowingexample shows thedistributionof IPCflags betweentwo OP 5248andonewiththe S5-l35U:Coordinator first CPU secondCPU first secondCP 524 CP524DBl DBl O. 318, 12 32,35,61IPC IPC 32 63output outputflag flag64.. 255 bytes bytes64 64IPC IPCoutput inputflag flagbyte byteThis examplespecifiesthat thefirst CPU"coordinates" thedataexchangewiththe first CP524 viaone (or several) bitsoftheIPCflagbytes 8and12. Thereforethearea0to31is enabledonthe first CP524. (Anareaof 32contiguous IPCflags must alwaysbeenabledordisabled!). Jumper 8-9is :InsertedonJB52. InDBlofthe first. CPU, youmust enterbytes 8and12as IPCoutputflagbytes.Inthe samewaythe secondCPUcoordinates thedataexchangewiththe secondCP524 viaIPCflags 32, 35, 61. OnthesecondCP524,area 32to63must thereforebeenabled (jumper 7-10inserted).Youmust thenenterbytes 32, 3Sand61as IPCoutput flags inDBi ofthesecondCPU.Sincethe IPCflagareaexistsonlyonceineachPC, onlyIPCflags 64to255canbeusedforotherpurposes. This exampleusesIPCflag64for CPU- CPUcamnunication (IPCoutput flaginDB1ofthe first CPU- IPCinput flaginDBl ofthesecondCPU). '!heareawhichcontains byte 64must thereforealsobeenabledinthecoordinator.34B8576538/4 Communications Processor CP5243.4.3 Ja.persOIldieV.24 lb1d.leJumpers Jal and.Ja2determinewhether the internal clockpulseofthe OP 524isusedas thetransmit andreceiveclockpulseontheCP524orwhether thepulseis suppliedbytheline1 2 3Jul 0--0 0 Receive clockpulseinternalo 0--0 Receive clockpulsefranlineJuS 0--0 0 Receive clockpulse=transmit pulseo 0--0 Receive clockpulsedepends on JulJu2Ju40--0 0 Transmit clockpulseinternalo 0--0 Transmit clock pulsefromline0--0 0 Transmit clockpulseof CP524connectedtoline113 (pin24)o 0--0 Transmit clock pulsenot suppliedbyCP 524Withjumpers Ja3andJUS, thepolarity of thetransmittedandreceiveddatacanbereversedas follows:123Ju3 0--0 0 Transmitteddatawithnormal polarityo 0--0 TransmitteddatanegatedJuS 0--0 0 Receiveddatawithnormal polarityo 0--0 ReceiveddatanegatedWithjumperJa6, all V.24receivers canbeconnectedsothat allthesignalsareinthepositivevoltagerangeas follOW's:123Ju6 0--0 0 All receivedsignalsmust havetheV.24signal level.o 0--0 All receivedsignals canbe:Inthepositivevoltagerange35B8576538/4 Communications Processor CP524Withjumper Jut, erscanbepermanently at open circuitpotentialorswitchedthroughfromthefront plugas follows:123Ju9 0--0 0 ers at opencircuitpotentialo 0--0 ers atpin53.4.4 JmEperSem dieT.lY lbJaleWithjumpers JalandJu2, thepolarity of thetransmittedorreceiveddatacanbereversedas follows:1233ul 0--0 0 Transmitteddatanegatedo 0--0 Transmitteddatawithnormal polarityJu2 0--0 0 Receiveddatawith nomal polarityo 0--0 ReceiveddatanegatedtlithjumperJa3, the 24V sourcevoltagefor generatingthecurrent loopcanbereconnectedas follows:Ju3 0--0 0 24Vsuppliedby pin9ofthefront cOIUlectoro 0--0 24Vsuppliedbybackplanecormector (internally)Ju4 0--0 0 Receiveclock pulsefromtransmitpulseo 0--0 Receiveclock pulsesupplied byCP524.36B8576538/4 Communications Processor CP5243.4.5 JUIIIperSCDtheBS422-A/485BX1ul.eThe jumperD isusedtoswitchover thedatadirectiononthetwo-wirelineR.123X3 0--0 0 Settingforfull duplexmode. Datacanonlybereceivedonthe two-wirelineR.X3 0 0--0 Settingforhalf duplexmode. Withthesignal JRTS, datacaneitherbetransmitted orreceivedonthe two-wirelineR../RTS= 0 - ->transmitjRTS = I -->receiveUsingtheJt-per X4youcanapplyeitherthesignal jPS3or theinternal transmit clockpulse (TxCint) tothetwo-wirelineBJprovidingthat the two-wireoutput Bissetas aninput byjumpersX8andX9.123X4 0--0 0 Signal /pS3 canbetransmittedonthetwo-wire lineB.X4 0 0--0 The internal transmit clockpulseheint canbesent onthe two-wirelineB.WithjaIIpern youcan usea clock pulsetransmittedonthetwo-wirelineSas thereceiveclock pulse.X5xso 00--0Clock pulse at input Sisnotusedasreceiveclock pulse.Clock pulse at input Sisusedas thereceiveclockpulse.37B8S76S38/4 Communications Processor CP 524WithjallpersX6aDd r1youcanselect thetransmit andreceiveclock pulse.12:3X6 0--0 0 The internal transmit clockpulseX7 0 0--0 (TxCint) isusedas transmit andreceiveclockpulse.%6 0 0--0 The internal transmit clock pulseX7 0 0--0 (TxCint) isusedas thetransmitclock pulseandisusedas thereceiveclockpulse.%6 0--0 0 The clock pulsetransmitted viatheX7 0--0 0 two-wirelineSisusedasthetransmit clock pulseandthe:Internalreceiveclockpulseusedas thereceiveclock pulse.X6 0 0--0 The clock pulsetransmitted viatheXl 0--0 0 two-wirelineSisusedas thetransmit clock pulse, theinternalreceiveclockpulse (RxCint) isusedas thereceiveclock pulse.The jmIpers%4. IS. X6and rIcanbeusedfor synchronoustransmission withclock pulsecontrol accordingtotheDINdraftISO8481. Thetwo-wirelineB(designationX accordingtoISO8481) must beset asanoutput byjumpers %8andX9.123X4 0 0--0 The internal transmit clock pulse:IS 0--0 0 (TxCint) isusedas thetransmitX6 0 0 0 clock pulse. The internal clockX7 0 0--0 pulseissimultaneouslytransmittedonthe two-wirelineB.38B8576538/4 Communications Processor CP524Withjtlllpel:sXI andD youcanset the two-wire lineB as aninput orouptut.1 2 3 4X8 0--0 0--0 Two-wirelineBis connectedasX9 0--0 0--0 anoutput. '!belineX(B) canbeusedas aninput. X(A) isconnectedtoframe.With j..,ers noaDd nl youcansuppress thecontrol signal onthe two-wire l:lneR for recognizingthebreak status.X8 0 0--0 0 Two-wire lineB iseotmectedasX9 0 0--0 0 aninput. The lineX(B) cannot beused.nonlnonlo 0o 00--00--0Nocontrol signal onthetwo-wirelineII - recognition ofthebreakstatus cannot beguaranteed.Two-wirelineR has thecontrolsignal, thebreakstatuswill berecognized.39B8576538/4 Communications Processor CP 5244 settinguptheHardwareWhensettingupthe CP524modulefollowthechecklist below:1. Checkthe jumpersettingonthemoduleaccordingto3.4.2. Insert a programmedEPROMsubmodule inthereceptacle.3. Insert an:Interfacetoodule inthereceptacle. Checkthe jumpersett1Jlgaccord1Jlgto3.4. The interfaceJOOdulemust besecuredbythe twoscrews.4. Plugthe OP524mdule intooneofthepermittedslotsinyourdevice (see2.1). The power supplymust be switchedoff.5. Connect thepartner devicetothe CP524(seeSection6).6. Checktheposition ofthemode selector onthe CP524. Itmustbeswitchedto"RUN", todataexchangewiththepartner de-vice.7. Hakethecorrect settings at thepartnerdevice. Thesesett1Jlgs canbefoundinthe user'sguide "Computer link with1UC512" and"Event output andloggingwiththe PT88/PT89printer"inthesectionsdescribinginstallation. Makesurethattheparametersrequiredfor transmission(datarate,parity, stop bit, characterlength) arethe sameinboththepartner deviceandthe CP524.8. Switchonthepower supplytoyour PC. BothLEDdisplays onthefront oftheCP524lightup. 'Ibeoperatingsystem carriesou.t a self-test. The LEDs goout if noerrorhasbeendetectedand ifthedevicedriverandtransmissionprocedurefor theserial device interfacearepresent inthe EPROM.40B8576538/45 PinAssignmentsBackplane connector 1d b z2 OV +sv4--6 ADB12 ADB 0 CPlCL8 ADB13 ADB 1 MEMR10 ADB14 ADB 2 MEKW12 ADB15 ADB 3 BDY14 ADB 4 DB016 ADB 5 DB118 ADB 6 DB220 ADB 7 DB322 ADB 8 DB424 ADB 9 DB526ADB10 DB628 ADB11 DB73032 OVCommunications Processor CP524Backplanecmmector 2d b z2OV +5V46810121416182022STOPPA24262830 H24V M 24V32 OV +24V41B8576538/4MemorysubmodulecmmectorCommunications Processor CP524c b a1 SADB12 H +sv2 SADB 0 SADB 1 SADB 23 SADD 3 SADB 4 SADB 54 SADB 6 SADB 7 SADD 85 SADB 9 SADB10 SADB116 SADB13 SADB14 OE7 WRITE SDB 8 SDB 98 SDB10 SDB11 SDB129 SDB13 SDB14 snB1510 SDB 0 SDB 1 SDS 211 SDB 3 SDB 4 sns 512 SDB 6 SDB 7 Kl13 CS1 CS3 K214 CS2 CS4 K315 UmI>S+S V PSW K416 +sv H KS42B8576538/4Interfacemodule cormectorCommunications Processor CP 524c ba12 H MM3 +5V +SV +5 V4 SSK1 PMl RxD5 SSK2 PS3 TxD6 SSK3 HUEeTS7RTS8DSR9DTH.10DCD11RI12'!'xC13'!'xCInt.14BxDt axe15 H24V H24VaxeInt.16 +24V +24V+24V43B8576538/4 Communications Processor CP5246 StandardcableConnectorsForthemost comnonconnections betweendevices therearestand-ardcablecOIU'lectors (seeorderingdata).6.1 ConnectionCP524/525 - CP524/525 (TTY)CP525/524.-------..---..--..---..-119 IITransmitterI10 .-TxD2112+24VCP525/624--------1\13 Receiver14I!II Transmitter Receiver -? i19' -TxD +RxO 13 . fI . 1 ',' ShIeld \.' 1 ,L-----------------------..J44B8576538/4 Communications Processor CP5246.2 ConnectionCP524/525 - PROMEAH (TTY)I ' I ; II t I' I i Receiver ~ \ \ , I1 I V Shield \..i !CasingGex r---1--...-------------------------...-t--l Casing -1 2V; !---------------------------_... .__...._--..---------------------CP525/524--_.. _-------_.. _-----------,II,,,I131,~ Receiver I1411011 +TxD~ Transmitter II I19; .-TxD,+EPROMEAMr-----......-------... --------------....Ii+5 V --0:>--Transmitter ~7-12V+sv45B8576538/4Communications Processor CP 5246.3 ConnectionCP524/525 - AS 512C (TTY)+24V15 l18AS512----------------------------1!\ 14!.+20mAiI \ Transmitter ~+TxD ; \ 2+20mA! \ 51-20mA I 17-TxDtlI!IiIiI+TxDi\ +RxDi \j tj \ -RxD10Receiver 1141~ Transmitter i Receiver-;:::'19t \ i -TxD +RxD \ 3CP525/524r----------------------------,1311 I \.1 Shield \/CasingGex .J:----f------------------------------------...---r-----lCasingt I___________________________J d~ --I .'24 IDevice.12 identifier: 25 I~ 1 a -1._---------------------------Note: togeneratea current looptheAS 512must be supplied with24V viatheAMPcOIUlectors onthefront panel.46B8576538/5 Communications Processor CP 5246.4 ConnectionCP524/525 - PROHEAR (TTY)CP525/524 PROMEAR+TxD/\ 14f \ Transmitter -TxD I 712i +20mA+ 2410i'-20mA, Receiver J I" 14:r-------------------------..-e' +20mA+ 24 V ----. I13: I, 1 , J \ ' '. Receiver 0-21: I 20mA -RxD\ Ii 1 1: . ,I Shield \1 115t____ J6.5 ConnectionCP524/525 ModemN10 (V.24)CP525/524-----------------------,IReceiver i-eEJ3! ;'\ AxD ! "ModernN10,---------------------------.,I Transmitter TxD /"\ I 3 0 dlingblocks blocks~a a~IIIv VJob JobData block block DataDatab;mdJ iug blocks (BDBs) inthe STEP5userprogramonthe CPUtransfer thedatafromthe CPUtothe CP525and vice-versa. HDBsalsoinitiatethe jobstobeexecuted- a SENDjob(senddata) ora FETCHjob(fetchdata). The lIDBisassigneda jobnnmber underwhichthecorrespondingjob isstored inthejobblockonthe CP525. All thejobstogetherareknownas thejobblock.3B8576539-03 Computer LinkwithRK512The job block onthe CP j25 contains all specifica.tions regardingthedestinationor sourceof the dataintheotherPC.The data handling block inthe CPUcontains all tl1e specifi-cations regardingthe sourceordestinationofthedatain itsownPC.Tomakeuseof the computer link, yourequire two programs foreachprogrammablecontrolleras follows:- the STEP5userprogram inthe CPUincludingthe HDBs withparameters assignedaccordingtotheirjobsand- the CP525 userprogr:am inthe CP 525includingthe jobs inthe jobblockandtheprocedureandinterpreterInterpreter: manages thedataexchangeProcedure: implements the transferTheprogrammingpackageaMS2Ssupports youwhenyouaregeneratingthe OP 525user program.4B8576539-03 Computer LinkwithRK5121.1 TransmittingData (SENDJob)The CPU of PC1istosenddataon itsowninitiativetothe CPUof PC2 (SENDjob).SERDjobPC1 PC2CPU CP525 CP525 CPUSENDU - I ~Proce- Proce-DIRECT dure >durenn fiIIATV VSENDIEInter- RECEIVE --> Inter-ALL> preter preter>ALLfi fiUData Job Datasource block desti-nationn= jobnumber588576539-03 Computer LinkwithRK512First the HDB SF.RDDIBECTn (n = jobnwnber) is cEllledinthe CPUof PC1. This initiates thecall-upof the datafromthedatasourceintheereof PC1bythe interpreterof the CP(PC1). The SENDDIRECTrequires thefollowingparameters tobespecified:- interfacenumber of the CP525inPC1- thenumber of thecorrespondingSENDjobonthe CP 525 (PC1)- detailsofthedatasource (where thedatatobe sent isstoredinthe CPU of PC1)The datatransfer fromthe CPUtothe CP 525inPC1 ishandledbytheHDBSERDALL.Thefollowingparametersareassignedtothe SENDjobinthe jobblockonthe OP525of PC1:- thenumber of the corresponding SENDDIRECTinthe CPU- detailsof thedatade3tination: i.e.) where thedataistobestoredinthereceiver- (PC2)This information issent tothereceiver PC2alongwiththedata.Nojobblockisnecessaryonthe OP525inPC2. Inthe CPUof PC2, thehandlingblockItECKIVEALL iscalledcyclically. Thishandlingblocktransfers thedatareceivedbythe CP 525totheCPU. TheRECEIVEALL isassignedtheinterfacenumber of theCP525pluggedintoPC2. (Toset the interfacenumber, seetheinstructions for the CP525in thismanual).688576539-03Computer LinkwithRK5121.2 FetchingData (FETCHJob)PC1 istofetchdataon itsowninitiativefromthe CPUof PC2(FETCHjob) ..FETal job----- PC1 ---------- PC2 -----CPUCP525OP525CPUI>Proce-IdurefiVInter-SENDIpreter noCF-10thbyteFFH(bit)-->all CPUs--11thbyte --:> 1st databyte--12thbyte --:> 2nddatabytedata" " """"" " "-- Xthbyte --:> nthdatabyte--DLE 10K*--> endidentifier--ETX 03H*-->" " pas. acknowl. "n--i> nthdatabyte*-->endidentifier*--> I' n*-- poSt aclmowl.within5sec*-- start character*--> pos. acknowl.fo1. reptel ideerrormessage*-- endidentifier*--" It*--> pos. acknowl.Another follow-onSENDtelegram isstarted iftherearemore than256bytestobetransferred.50B8576539-034.1.2 DataComputer Link withRK512 jOb: CP525 (1) requests datafromCP525 (2).OP525 (1):Interpreter> procedureCP525 (2)procedure interpreter=== IElaIt:elegraa ==========;(telegram header)Beplyt:e1egraIl wi1:h data =====iferror110 data==========I'ollow-oo IElaIt:el.egraa =====>=====Pollow-on:r:eply t:elegraa wit:h data =if errorDOdataFollow-onFETCHtelegrams andfollow-onreplytelegramswithdata IIIaresent only ifthevolumeof informationdataexceeds 128bytes.Ifthereisan errornumber :f: 0inthe4thbyteofthereply thennodata will beadded.51B8576539-03 Computer LinkwithRK512SequeDce ofevents fora IE1aIte1egraa: (request telegram)CP525 (1) CP525 (2)telegramheader-- STX 02H *--> start character

-- 3rdbyte 45H - - ~ command: FETCH-- 4thbyte 44H - - ~ type: datablock-- 5thbyte 64H - - ~ source: DB100-- 6thbyte 64H - - ~ " DWlOO-- 7thbyte OOR --:>number:-- 8thbyte32H --:>" 50 DW-- 9thbyte OAR(byte) - - ~ OF= F10. 7--10thbyte17H(bit) - - ~ onlyCPU1-- DLE lOR *-->endidentifier-- ETX 03H *-->" "areaorOCR areatooshortwithother datatype(startaddress+length >area_.... ---... _-------~ - - - - - - - - - - - - - - - - - -4H 048 OAR d) Access toarea not possibleforuser:e. g. hardwarememorytoosmallorI/Omodulenot pluggedin~ - - ---_...----~ ~ - - ~ - - ~ ~ ~ - - - ~ - - - ~ ~5H OSH OCR e) Vrongconditioncodeword:group messagefor allerrorsattributabletothis ANZW6H 068 OAR Error codefromthe CPUtotheCP,whichthe orcannot interpret100B8576539-03RemedyComputer LinkwithRK ~ 1 2- Checkparameterassignment onCPUandCPand ifnecessarycorrector- Partnerbasillegal parameters inthetelegram headerFindthepermissibledatatypesinthejobtables (Section2.6).- Checkparameterassignment onCPUandCP,if necessary setupblock- Partnerbaswrongparameters inthetelegramheaderFindthepermissibledatatypes in thejobtables (Section2.6).- Checkparameterassignment onCPUandCP1 necessarycheckblock/area or- Partnerbaswrongparameters inthetelegram header- Checkparameterassignment onCPUandCPor- Partnerbas wrongparameters inthetelegramheaderFindthepermissiblestartaddressesandlengthsin thejobtables (Section2.6)Check whether conditioncodewordisvalid.Evaluate PAminhandlingblock( STEP5userprogram).101Computer LinkwithRK512 B8576539-03No. for No. for No. forMllW SYSTAT REPTEL DescriptionEl:mEsdetectedbyCPduriDg dataettbangebet.weenCPUandCP:6H lOB OAR a) Timeout for handshake onCP---- -----------------------1lH b) AU. jobwithout request ordirectjobdespiteoverload---- - - - - ~ - - - - - - - - - - - - - - - - - -12H c) Wrongsequencefor handshakebyCPU---- -----------------------13H d) Unknownjobtypeorillegal jobnuinber for direct job---- - ~ ~ - ~ ~ - - ~ - - - - ~ ~ ~ - - - ~ - ~ ~148 e) Illegal aclmowledgement fromCPUduringhandshake102B8576539-03RemedyComputer LinkwithRK512Checkwhether RECEIVE.AIJ, or SEND.AIJ, arecalledinyour STEP5program; evaluatethePAlEinthehandlingblock.CheckSTEPSprogram, e.g., errorsinhandlingblock(MessagealsopossibleaftertransferfromPCtoCP).CheckSTEP5program, e.g., errorsinhandlingblock.CheckSTEP5program, e.g., wrongparametersforhandlingblock.CheckSTEP5program.103B8576539-03 Computer LinkwithRK512No. for No. for No. forANZW SYSTAT REPTEL DescriptionSyst:ma errors at start ofjobprocessing:7H 15H a) Number ofdirect jobswhichcanbeprocessedsimultaneouslytoolargefor CP524/CP525---- - - - - ~ - - - - - - - - - - - - - - - - - -16H b) Current jobwas terminatedwitherror statuswhenCPwas coldrestarted(power on) orcoldrestartedfromPO---- - - - - ~ - ~ - ~ - - ~ - ~ - ~ - ~ ~ - - - -1711 c) AreaismaskedbySTEP5program(bit 7 inANZW = 1)---- - - - - ~ - - - - - - - - - - - - - - - - - -lEU d) Fieldlengthfor'"readSYSIDtt(RECEIVEDIRECT223) toosmall---- - - - - ~ - - - - - - - - - - - - - - - - - -1FH e) "Readdate/time" (RECEIVEDIRECT218) illegal, OPissetas time slave104B8576539-03RemedyComputer LinkwithRK512ModifySTEP5programsothat maximum10 direct jobsruns:lmultaileouslyThereisnoremedy withpower on. Whencold restartingthe CPfromthePG, youshouldmakesurethat nomore CPUjobsarerunningbeforewritingtoaninterface. The SYNCHRONIIDBclearsthejobstatuses :Inthedual-port-RAMbut not the SYSTATentry.Reset bit 7intheANZW.- ~ - - - - - - - - - - ~ - ~ - - ~ ~ - - - - - ~ - - ~ - - - - -For SYNCHRONthefieldlengthshouldbegreaterthan orequal to128bytesor dowithout "Read8YSm" (dataisneverthelessavailableinthedual-port RAM).Beforereadingthedate/time, the CPmust bedesignatedasmaster- thisthenappliestothismodule. Checkwhether theOPonthe other interfacehasbeen set tomaster.lOSB8576539-03computer Link withRK512No. forM.fOJ7HNo. forSYSTAT20HNo. fromREPTEL DescriptionParaEter ass. errorsintheSTEP5pros. detected bytheCP(e.g. inthepseudoRJV paLaEters) orjobblock(CP525 user program)a) Noparameters were storedintheOF 525userprogramfor thisdirect job (\Dlder this jobnumber)---- - - - - ~ - - - - - - - - - - - - - - - - - -21H b) Error indatatype (DB) OB ):- unknowndatatypeor- datatypenot allowed(e.g.ext. DB) or- datatypenot allowedinIIDBparameters inconnection withdatatypeinthe jobblock(CP525user program)---- - - - - ~ - - - - - - - - - - - - - - - - - -228 c) Start address specifiedtoohighfor requireddatatypeor startaddress or DB/DX no. toolow---- - - - - ~ - - - - - - - - - - - - - - - - - -238 d) Coordinationflagsnot allowedwiththisdatatypeorwrong bitnumber specified---- - - - - ~ - - - - - - - - - - - - - - - - - -24H e) CPUnumber speciiedtoohighinpseudoR/Wparameters---- - - - - ~ - - - - - - - - - - - - - - - - - -25H f) Transmissionlength > 64Kbytestoolongfor CP525---- - - - - ~ - - - - - - - - - - - - - - - - - -26H g) Lengthof telegramheader toogreat or lengthtoogreat fortypespecified(inownPC)106B8576539-03RemedyComputer LinkwithRK512Createparametersfor this job withCOM52Sorselect other jobnumber.Findthepermissibledatatypes andtheircombinations :Inthejobtables (Section2.6).Findthepermissiblestart addressesandDB/DXnos. inthejobtables (Section2.6) that canbespecifiedinthe OP525userprogram or STEP5program(withpseudoRJW parameters).Coordinationflagsare notpermissiblefor alldatatypes (seeSection 2.6). Checkwhetherthe bitnumber (0to7) has beenspecifiedcorrectlywhenusingthepseudoRJWfunction.CPUnos. permitted: none, 1, 2, 3 or4If necessary split thejobintoseveral jobswithsmallerlengths.Findthepermissiblelengths :In thejobtables (Section2.6)that canbespecified inthe lIDBorfor thepseudoR/Wparameters. Ifnecessary split thejobintoseveral jobswithsmaller lengths.107&IB8576539-03Computer Link withRK512No. for No. ~ o rNo. forAf(lM SYSTAT REPTELDescriptionIf diepartner:detectsan errorwhen processinga job:fEua aootherdevice.itse