位置检测模版sm338快速入门_第1页
位置检测模版sm338快速入门_第2页
位置检测模版sm338快速入门_第3页
位置检测模版sm338快速入门_第4页
位置检测模版sm338快速入门_第5页
已阅读5页,还剩36页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

wj快wj快SLCA&DCSBeijingMarch4,2005初学者必要必须有一个S7-300站,带电源模块、CPU314-2DPSM338(订货号:6ES7338-STEP7(>)编程器已经按照实际硬件设备,正确建立了一个S7-300站编程器已经通过编程介质(如:CP5511、CP5512、CP55611或者PCAdapte,外加通讯电缆“MPI电缆”、“RS232电缆”)正确连接到S7-300站的CPU编程口端子连接图和布线规则在对模板进行接线时,应注意以下事项:编电源的接地与CPU的接地不。因此,应将SM338(M)的引以低阻抗连接到CPU的接地编导线(引脚3-14)必须,最好使绞电缆。并将任一端的层为了支承SM338的层,应使用支承元件(订货号:6ES7390-如果超出编的最大输出电流 mA),必须连接一个外部电源SM338参数配STEP7SM338CPU处于“STOP“模式下进行。当你设定完所有的参数后,应将参数从编程器到CPU中。当CPU从“STOP“模式转换为“RUN“模式时,CPUSM338。不能通过用户程序对参SM338的可编程参数概述及其缺省值,见下表。(STEP7进行参数赋参数值范使能“诊断中断有/使能参数,所有的3个通工SSI绝对值编类型无/13位/21位/25无:编输入被关掉位报文帧长码/二进SSI位置检测的数据代码类注意电缆长度和波特传输速单稳时125kHz/250kHz/500kHz单稳时间是两个SSI报文间间的时wj快wj快所编程的单稳时间必对值编的单稳时间标准0–由于标准化,编的数值在地址区内右移。不位2-址区将步进/分辨FREEZE关闭0数字量输入的上升沿发编码数值的注意传输速率和单稳时间会影响非等时模式中绝对值编值的精度在等时模式中传输速率和单稳时间将影响FREEZE功能的精度(参见编制造商的技所编程的单稳时间必须大于绝对值编的单稳时间绝对值编的单稳时间将使用以下限制(1/传输速率)<“绝对值编的单稳时间”<64μs+2x(1/传输速率使能FREEZE用FREEZE功能可以“保持“SM338当前的编码值。FREEZE功能连接到SM338的数字量输入“DI0“和“DI1“。必须使能FREEZE功能,也就是说用STEP7进行参数赋值。(如图直到FREEZE功能结束前,将始终保持编值,并可以作为结果的一个功能进行评估结束FREEZE功能可以对每个编输入结束FREEZE功能。可以用STEP7运行“TPQBxyz“,在用户程序中对0、1和2位置位来响应该功能。响应后,相应的编值的31位被删除,并重新刷新。编值又可以再次被保持。一旦模板的输出地址的响应位地址SM338STEP7SM338组态过程输入编输输入地址(组态)+地址偏0“初始模板地1“初始模板地址“+4字节地址2“初始模板地址“+8字节地址编输入的数据双字结构每个编输入的数据双字具有如下结构输出你可以在用户程序中,使用STEP7LPID“xyz“(LAD的“Move“指令)程序编制,编码值的存取和保存功能使假设你想在编输入处,并且评估编码值。“初始模板地址“为“256“。OB1 之后,你可以继续从位地址区MD100、MD104和MD108编码值。编码值保存在双字的位0到位30中。诊断中断程序本节将阐述SM338的诊断中断行为。SM338可以触发诊断中断。有关下述OB和SFC,参见STEP7的,其中阐述使能诊断没有预置中断,换言之,即如果没有相应的参数赋值,中断将被。应使用STEP7赋诊断中断OB82程序编CPU可以中断用户程序的执行,处理诊断中断块(OB82)。在用户程序中,你可以调OB82SFC51SFC59,以从模板中获得更为详细的诊断信息。OB82OB82 快 jOB82程序如订货 快 j6ES7338-4BC01-特位置检测模板SM338具有以下特性:连接最多3个绝对值编(SSI),2个数字量输入(用于保留编数值提供位置编数值,用于STEP7软件程序的进一步处理可在用户程序中处理SM338的编码值等时模式24VDC额定输入电压;与CPU所支持的编类位置检测模板SM338支持以下编类型带13位报文帧长度的编带21位报文帧长度的编带25位报文帧长度的编编值的持续时间取决于传输和处理方法单稳时间超过64μs的编不能用于SM338所支持的数据支持码和二进制码数据格式等时模硬件CPUDPMaster需要支 接口模块(IM153-x)需要支特 快 j在“等时模式“下,“DPMaster“和“位置检测模板SM338“之间,可以在“PROFIBUSDPSM338“的16个信号输入字节,保持一致、协调;如果,当前“PROFIBUSDP“通讯循环中,由于“等时模式“失败造成其他的错误。那么,在下一个“PROFIBUSDPSM338”可SM33816个信号输入字节,将无法自检测编码绝对值编以报文桢的形式向SM338传送编码值。通过SM338启动报文桢的传送“非等时模式“的编码值检测可以随时进行在“等时模式“的编码值将在PROFIBUSDP循环中的Ti时间内同步进行检测“非等时模式“编码值检测SM338 338“等时模式“编码值DPDPDP循环同步时,将SM338在每PROFIBUSDP循环TiSM338PROFIBUSDP 码与二进制码的转wj快wj快传送的编值和规格被送值包对编的置根使的位编位之之的它连编位一送。为了让SM338识别编位置,应指定位置(0步/分辨率编值标准化举例例如,当使用单圈编时,2(的9次方幂)步=512步/分辨率(分辨率/360°)。在STEP7中进行下列参数设置编绝对值:13标准化:4步/SM338的错误诊SM338可以提供所有诊断报文,而无需其它STEP7中诊断报文后的每个诊断报会致使以下动作诊断报文被输入到模板的诊断中,并传送到模板中的SF指示灯并调用OB82。读出诊断SFC,读出详细的诊断报文(参见附录“信号模板的诊断数据”)。在模板诊断中,你可以查看STEP7中的故障原因(参见STEP7的 指示灯指示的诊断报文,SF指示灯就亮。当所有错误被排除之后,指示灯就熄灭。如果出现外部故障(传感器电源短路),组故障(SF)指示灯也亮,与CPU的运在启动时以及SM338自测试时,SFSM338;POS-INPUT的诊断诊断诊断监模板有问模内部模外部模通道模外部辅助电源模模板没模参数模通道信模触发模通道通道(编输入组态/参数赋值出错通道(编输入外部通道错误(编错误通道(编输入故障原因及诊断诊断模板模板检测到一内部模板检测到PLC中的外部模板检测到PLC外的通道某些通外部辅没有模板的电源电压馈入模板的电源电压模板没通电后报文排参数一组或者多组参数不重新赋值模板存在通通道错误;或者模板其他通看门狗断临时的高电磁排除干通道在编输入处检测到模板道的错组态/参数赋值出错传送给模板的参数重新赋值模板外部通道错误(编错误编电缆断线,没有连接电缆或编故检查所连接的SM338的技术规参见“ReferenceManualPositionDecoderModuleSM338POS- 快 j附OB1程序实参考手册《PositionDecoderModuleSM338POS-常见什么原因会造成“POSINPUR,sensorerror”SM338模板错误信息SIMATILC SM338\SM dl\CPU314C2 < 03/04/20051635O Cycle Version:Blockversion:Timestamp

2005-03-0416:35:19下1996-02-1516:51:12下Lengths(block/logic/data):0017000046Bits0-3=1(Comingevent),Bits4-7=1(Eventclass1(Coldrestartscan1ofOB1),3(Scan2-nofOBPriorityofOB1(Organizationblock1,forsystemforsystemCycletimeofpreviousOB1scanMinimumcycletimeofOB1umcycletimeofOB1DateandtimeOB1Block:Block: "MainProgramSweepNetwork:Network: Network:Network: Network:Network: SIMATILC SM338\SM dl\CPU314C2 < 03/04/20051635Network:Network: Network:Network: Network:Network: Network:Network: wwProductInformationontheReferenceProgrammableLogicControllersS7-300ModuleDataRelease OrderThepositiondecodermoduleSM338;POS-INPUTisdistinguishedbythefollowingfeatures:3inputsfortheconnectionof umthreeabsolutevalueencoders(SSI)and2digitalinputstofreezetheencodervaluesDirectreactionpossibletoencodervaluesinmovingProcessingofacquiredencodervaluesoftheSM338inuserSupportsclockedTypeofencodervalueacquisition(seechapter)canbeFree24VDCratedinputNon-isolatedagainsttheFastmodeselectable;withfasterencoderrecordingandcompressedcheckbackinterfaceFastmodeisavailableasofSM338;POS-INPUTfirmwareversionV2.0.0andasofSTEP7V5.3+SP2selectable. SupportedencoderThefollowingencodertypesaresupportedbytheSM338;POS-Absolutevalueencoder(SSI)with13-bitmessageAbsolutevalueencoder(SSI)with21-bitmessageAbsolutevalueencoder(SSI)with25-bitmessageSupporteddataTheSM338;POS-INPUTsupportsthegraycodeandbinarycodedataFirmwareYoucanuseSTEP7HWConfigfirmwareupdatetoloadPOS-INPUTintheoperatingsystemmemoryoftheSM338inordertoextendthefunctionalityandTheoldfirmwareisdeletedwiththestartofthefirmwareupdate.Ifthefirmwareupdateisinterruptedorcanceledforanyreason,theSM338;POS-INPUTisnolongerfunctional.Restartthefirmwareupdateandwaituntilithasbeensuccessfullycompleted.necessarysystemservicesProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease -SynchronousThebasicsofsynchronousoperationaredescribedinaseparateHardwareForthesynchronousoperationoftheSM338,youCPUwhichsupportsclockedDPmasterwhichsupportstheequidistantbusSlaveinterface(IM153-x)whichsupportssynchronousDependingonthesystemparameterization,theSM338worksineithernon-synchronousorsynchronousmode.Insynchronousoperation,thedataexchangebetweenDPmasterandSM338issynchronoustothePROFIBUSDPcycle.Insynchronousoperationall16bytesofthecheckbackinterfaceareIfsynchronicityislostduetofaultsorfailureordelayofGlobalControl(GC),theSM338goesbackintosynchronousoperationinthenextcyclewithouterrorIfsynchronicityislost,thecheckbackinterfaceisnotProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease - Faultindicator–ConnectiontothegroundofFaultindicator–ConnectiontothegroundoftheVoltageRS123456789 MODOD 13DIDIOC(Clock)OC(Clock)1D(Data)1D(Data)1C(Clock)1C(Clock)2D(Data)2D(Data)2C(Clock)2C(Clock)DI1input)M(encoder)MS7-300BackplaneFigure1- ModuleViewandBlockDiagramoftheSM338;POS-WiringPleaseobservethefollowingimportantrulesofthewiringoftheThegroundoftheencodersupplyisconnectednon-isolatedtothegroundoftheCPU.Thus,connectpin2oftheSM338(M)withlowimpedancewiththegroundoftheCPU.Theencoderlines(pins3to14)mustbetwistedpairsandshielded.Applytheshieldtobothsides.FortheshieldconnectiontotheSM338,usetheshieldconnectionelement(ordernumber6ES7390-5AA00-0AA0).Iftheoutputcurrent(900mA)oftheencodersupplyisexceeded,thenyoumustconnectanexternalpowersupply.ProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease -FunctionsoftheSM338;POSEncodervalueTheabsolutevalueencodertransfersitsencodervaluesinmessagestotheSM338.ThetransferofthemessageisinitiatedbytheSM338.Innon-synchronousoperation,theencodervaluesareacquiredwhileitisfreeInsynchronousoperationtheencodervaluesareacquiredsynchronizedtothePROFIBUSDPcycleateachTi.FreerunningencodervalueTheSM338alwaysinitiatesthetransferofamessageaftertheendoftheparameterizedmonofloptime.Asynchronoustothesefreerunningmessages,theSM338processestheacquiredencodervaluesduringthecycleofitsupdatingrate(seeTechnicalData).Thus,inthecaseoffreerunningencodervalueacquisition,encodervaluesofdifferentagesresult.Thedifferencebetweenthe umandminimumageisthejitter(seeTechnicalData).SynchronousencodervaluesSynchronousencodervaluesacquisitionisautomaticallysetif,intheDPmastersystem,theequidistantbuscycleisactivatedandtheDPSlaveissynchronizedtotheDPcycle.TheSM338initiatesthetransferofamessageineachPROFIBUSDPcycleatthetimeTi.SynchronoustothePROFIBUSDPcycle,theSM338processesthetransferredencodervalues.ProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease - Gray/DualIntheGraysetting,theencodervaluesprovidedbytheabsolutevalueencoderingraycodeisconvertedintoDualcode.IntheDualsetting,encodervaluesprovidedbytheabsolutevalueencoderremainunchanged.IfyouhaveselectedtheGraysetting,theSM338alwaysconvertstheentireencodervalue(13,21,25bits).Asaresult,precedingspecialbitsaffecttheencodervaluesandfollowingbitscouldbefalsifiedundercertaincircumstances.TransferredEncoderValueandThetransferredencodervaluecontainstheencoderpositionoftheabsolutevalueencoder.Dependingontheencoderused,additionalbitswhicharelocatedbeforeandaftertheencoderpositionarealsotransferredinadditiontotheencoderSothattheSM338candetecttheencoderposition,makethefollowingNormalization,places(0..12),Normalization,units/Normalization,ThenormalizationdeterminesthepositionoftheencodervaluesinthecheckbackIf“Places”=1,2...12,thisindicatesthatthefollowingnonrelevantbitsintheencodervaluesareremovedandtheencodervalueisrightjustifiedintheaddressrange(seefollowingexample).If“Places”=0,thisindicatesthatthefollowingbitsareretainedandavailableforevaluation.Thiscanbeusefulifyouuseanabsolutevalueencoderwhichtransfersinformationinthefollowingbits(seemanufacturerinformation)andyouwanttoevaluatethese(seealsochapter).Parameterunits/ umof13bitsareavailablefortheunits/revolution.Accordingtothe“Places”data,theresultingnumberofunits/revolutionisautomaticallydisplayed.ProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease -ExampleofnormalizationofanencoderYouareusingasingle-turnencoderwith29units=512units/revolutionInSTEP7youhavesetthefollowingAbsoluteencoder:13Units/revolution:Beforethenormalization:cyclicallyacquiredencodervalues 0000000000000000000001100100XXXX0TransferredAfterthenormalization:encodervalues 00000000000000000000000001100100RelevantResult:Bits0to3(4places,markedwith“x”)areFreezeThefreezefunction“freezes”thecurrentencodervaluesoftheSM338.ThefreezefunctioniscoupledtothedigitalinputsDI0andDI1oftheSM338.Thefreezeistriggeredbyanedgechange(risingedge)onDI0orDI1.Afrozenencodervalueisidentifiedbythebit31(outputaddress)beingset.Withadigitalinputyoucanfreezeone,twoorthreeencodervalues.Youmustswitchonthefreezefunction,i.e.setthecorrespondingparametersSTEP7.ThefreezefunctionisnotpossibleinfastTheencodervaluesareretaineduntilthefreezefunctionisendedandcanthusbeevaluateddependentontheevent.ProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease - EndingthefreezeThefreezefunctionmustbeendedateveryencoderinput.Youacknowledgethefunctionintheuserprogrambysettingthebit0,1or2dependingonthechannelwiththeSTEP7-OperationTPAB“xyz”(foraprogramexample,seechapterAfterexiting,bit31ofthecorrespondingencodervalueisagaindeletedandtheencodervaluesareagainupdated.Arenewedfreezingoftheencodervaluesisagainpossibleassoonasyouhavedeletedtheacknowledgmentbitintheoutputaddressofthemodule.InsynchronousoperationtheacknowledgmentisprocessedattimeTo.Fromthispointintimearenewedfreezingoftheencodervaluescantakeplaceviathedigitalinputs.Thefreezefunctionisautomaticallyacknowledgedifyounewlyparameterizethecorrespondingchannelwithdifferentparameters(see1.1.3chapter).Iftheparametersremainidentical,thefreezefunctionremainsSM338;POS-INPUTYouparameterizetheSM338;POS-INPUTwithSTEP7.YoumustperformparameterassignmentinSTOPmodeoftheCPU.Assoonasyouhavesetalltheparameters,downloadtheparametersfromtheprogrammingdevicetotheCPU.OnatransitionfromSTOPto RUNmode,theCPUthentransferstheparameterstotheSM338.TheparameterscannotbechangedbytheuserProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease -ParametersoftheSM338;POS-YouwillfindanoverviewoftheparametersthatyoucansetandtheirdefaultsettingsfortheSM338inthetablebelow.ThedefaultsettingsapplyifyouhavenotperformedparameterassignmentSTEP7(defaultsetting ParametersoftheSM338;POS-valuesFastReleaseAffectsall3DiagnosisReleaseAffectsall3(SSI)1)none;13bits;21bits;25none:Theencoderinputisswitchedoff.CodetypeGray;CodeprovidedbyBaudrate1)125kHz;250kHz;500kHz;1DatatransferrateoftheSSIpositiondecoder.Observetherelationshipbetweenthecablelengthandbaudrate(seeTechnicalData)Monofloptime16s;32s;48s;64Themonofloptimeistheminimumtimeintervalbetween2SSImessageframes.Theparameterizedmonofloptimemustalwaysbegreaterthanthemonofloptimeoftheabsolutevalueencoder.Units/revolution0to2toNormalizingrightjustifiestheencodervaluesoftheencoderabsolute;non-relevantplacesareSwitchingonoff;0;Designationofthedigitalinputwhoserisingedgecausesafreezingoftheencodervalue.SeetechnicaldataoftheabsolutevalueThemonofloptimeisthetimeintervalbetween2SSImessageframes.Theparameterizedmonofloptimemustbegreaterthanthemonofloptimeoftheabsolutevalueencoder(seetechnicaldataofthemanufacturer).Thetime2 (1/baudrate)isaddedtothevalueparameterizedinHWconfig.Atabaudrateof125kHzwithaparameterizedmonofloptimeof16s,aneffectivemonofloptimeof32sisactuallyachieved.Thefollowingrestrictionappliestothemonofloptimeoftheabsolutevalue(1/baudrate)<Monofloptimeoftheabsolutevalueencoder<64s+ (1/baudtothepowerofPleasenotethatinnonsynchronousoperationthebaudrateandthemonofloptimeaffecttheaccuracyandactualityoftheencodervalues.Insynchronousoperationthebaudrateandthemonofloptimeaffecttheaccuracyofthefreezefunction.ProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease - SM338;POS-INPUTDatarangefortheencoderTheinputsandoutputsoftheSM338areaddressedasoftheinitialmoduleaddress.TheinputandoutputaddressisdeterminedattheconfigurationoftheSM338inSTEP7.Input Inputaddress(fromtheconfiguration)+address0”Initialmodule1”Modulestartaddress”+4bytesaddress2”Modulestartaddress”+8bytesaddressStructureofthedoubledatawordinStandardForeachencoderinputthedoubledatawordismadeupas 25bitsensorvalueingrayorbinary0=encodervalueisnotfrozen.Thevalueisconstantly1=encodervalueisfrozen.ThevalueremainsconstantuntilProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease -StructureofthedoubledatawordinFastForeachencoderinputthedoubledatawordismadeupas 25bitsensorvalueingrayorbinaryStatusdigital1=Grouperror(sensorerror,ext.auxiliaryvoltageerror)1=Parameterassignmenterror1=Readyforoperation(checkbackvalueInthedoubledatawordofchannel0,thestatusoftheI0issetinbit27(statusdigitalinput)andinthedoubledatawordofchannel1,thestatusofthedigitalinputI1isset.Thebitisalways=0inthedoubledatawordofchannelOutputAddressimStandard InitialmoduleAcknowledgingthefreezeBit0=encoderinputBit1=encoderinputBit2=encoderinputReadingoutdataYoucanreadoutthedataareasinyouruserprogramwiththeSTEP7-OperationLPED“xyz”.ExampleofaccesstoencodervaluesanduseofthefreezeYouwanttoreadoutandevaluatethevalueoftheencoderattheencoderinputs.Themodulestartaddressis256.NooutputdataaresupportedinfastProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease - LReadencodervalueintheaddressrangeTencoderinputStoreencodervalueinmarkerdoubleUMAcquireandstorefreezestatusfor=MLReadencodervalueintheaddressrangeTencoderinputStoreencodervalueinmarkerdoubleUMAcquireandstorefreezestatusfor=MLReadencodervalueintheaddressrangeTencoderinputStoreencodervalueinmarkerdoubleUMAcquireandstorefreezestatusfor=MLLoadandacknowledgefreezeT(SM338:outputaddressAfterwardsyoucanfurtherprocesstheencodervaluesfromthemarkerrangeMD100,MD104andMD108.Theencodervalueiscontainedinbits0to30ofthemarkerdoubleword.ProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease -DiagnosisoftheSM338;POS-TheSM338makesdiagnosticmessagesavailable,i.e.,alldiagnosticmessagesarealwaysprovidedbytheSM338withoutyourassistance.ActionsfollowingdiagnosticmessageinSTEPEachdiagnosticmessageleadstothefollowingThediagnosticmessageisenteredinthediagnosisofthemoduleandforwardedtotheCPU.TheSFLEDonthemoduleIfyouhaveprogrammed“EnableDiagnosticInterrupt”inSTEP7,adiagnosticinterruptistriggeredandOB82iscalled.ReadingoutdiagnosticYoucanreadoutdetaileddiagnosticmessagesbymeansofSFCsintheuserprogram(refertotheAppendix“DiagnosticDataofSignalModules”).YoucanviewthecauseoftheerrorinSTEP7,inthemodulediagnosis(refertoonlineHelpforSTEP7).DiagnosticmessageviaSFTheSM338indicateerrorsforyoubymeansoftheirSFLED(grouperrorLED).TheSFLEDlightsassoonasadiagnosticmessageistriggeredbytheSM338.Itgoesoutwhenallerrorshavebeenrectified.Thegroupfault(SF)LEDalsolightsupincaseofexternalerrors(shortcircuitofencodersupply),independentoftheoperatingstatusoftheCPU(ifpowerisTheSFLEDlightsuptemporarilyatstartupduringtheselftestoftheSMProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease - DiagnosticmessagesoftheSM338;POSThetablebelowgivesanoverviewofthediagnosticmessagesfortheSM DiagnosticmessagesoftheSM338;POSScopeoftheDiagno-ModuleInternalChannelerrorModulenotChannelerrorProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease -Causesoferrorsandremedial DiagnosticsMessagesoftheSM338,CausesofErrorsandRemedialPossibleErrorModuleAnerrordetectedbythemodulehasInternalModulehasdetectedanerrorwithintheautomationsystem.ExternalModulehasdetectedanerroroutsideoftheautomationsystem.ChannelerrorIndicatesthatonlyspecificchannelsarefaulty.ExternalauxiliarysupplymissingThepowersupplyL+tothemoduleisFeedsupplyModulenotModulerequiresinformationwhetheritshouldworkwithparameterspresetbythesystemorwithyourparameters.MessagepresentafternetworkactiveuntiltransferoftheparametersbytheOneparameterorthecombinationofparametersisnotplausibleReassignmoduleChannelinformationChannelerrorpresent;modulecanChannelerrorAnerrordetectedbythemodulehasoccurredattheencoderinput.Configuration/IllegalparameterhadbeentransferredtomoduleReassignmodule(encodererror)Brokenwireinencodercable,encodercablenotconnectedorencoderCheckconnectedProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease - InterruptsoftheSM338;POSInthisSection,theinterruptbehavioroftheSM338;POS-INPUTisdescribed.TheSM338cantriggerdiagnosticinterrupts.TheOBsandSFCsmentionedbelowcanbefoundintheonlineHelpforSTEP7,wheretheyaredescribedingreaterdetail.EnablingTheinterruptsarenotpreset–inotherwords,theyareinhibitedwithoutappropriateparameterassignment.AssignparameterstotheInterruptEnableinSTEP7(refertoSection1.1.3).DiagnosticIfyouhaveenableddiagnosticinterrupts,then ingactiveerrorevents(initialoccurrenceoftheerror)anddepartingerrorevents(messageaftertroubleshooting)arereportedbymeansofinterrupts.TheCPUinterruptsexecutionoftheuserprogramandprocessesthediagnosticinterruptblock(OB82).Intheuserprogram,youcancallSFC51orSFC59inOB82toobtainmoredetaileddiagnosticinformationfromthemodule.ThediagnosticinformationisconsistentuntilsuchtimeasOB82isexited.WhenOB82isexited,thediagnosticinterruptisacknowledgedonthemodule.ProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease -TechnicalSpecificationsofthe338;POS-DimensionsBxHxT Voltages,Currents, 24 Reversepolarity no,onlyagainstshieldPermittedpotential 1between(Mconnection)andoftheCPU L+–0.8Outputcurrent Fromthebackplane max.10mAFromtheloadL+(noPowerdissipationofthe EncoderinputsPOSINPUT0to DifferencesignalsforSSI dataandSSIclockDatatransferrateandcable125kHzmax.320mlengthofabsolute 250kHzmax.160encoders(twistedpairand 500kHzmax.60m1MHzmax.20Messagedurationofthe 13bits 21bits SSItransmission125 112s176s208250 56 88s104500 28 44 521 14 22 26Monoflop 16s,32s,48s,64DigitalinputsDI0,DIInputConnectionofatwo–wireBEROS,type2ShieldedlineSignal:–3V...5Signal:11 Signal:2mASignal:9mA0>1:max.3001>0:max.3001kHz60032DiagnosticLEDGroupLEDumage (2Message+monoflop+580Minimumage Message+130 Message+monoflop+450 every450umage (2Message+monofloptime+400Minimumage Message100 Messagemonofloptime+360 every360Synchronousencodervalue EncodervalueattimeTithecurrentPROFIBUSProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease - IsochroneIsochronetimeoftheInStandardssssInFasts0s0ssumumage (2Message+monoflop+580Minimumage Message+130 Messageduration+monofloptime+450s Max(messagedurationn+param.Monofloptimen)n=0,1,2,Thefollowingrestrictionappliestothemonofloptimeoftheabsolutevalueencoder:(1/baudrate)<Monofloptimeoftheabsolutevalueencoder<64s+2x(1/baudrate)ProductInformationontheReferenceManualProgrammableLogicControllersS7-300ModuleDataRelease -wPwPiemenPage1ofAutomationsystems>SIMATICIndustrialAutomationSystems>PLC>SIMATICS7>S7-300/S7-300F>Functionmodules>FAQBlockSM338PositiondetectionModulenonoperationalafterdownloadofAftertheloadingoftheconfiguration,thepositiondetectionmoduleSM338isparametrized,however,itdoesnolongerwork.Nonewactualpositionisdetected.Thelastdetectedactualpositionremainsunmodified.Whathastobedone?IfaconfiguredSM338(6ES7338-4BC01-0AB0/E-statusE01)withFirmwareversionV1.0.0isloadedwithth

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论