已阅读5页,还剩14页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
英文资料翻译机0405-33张明旺TheS7-200seriesisalineofmicro-programmablelogiccontrollers(MicroPLC)thatcancontrolavarietyofautomationapplications.Compactdesign,lowcost,andapowerfulinstructionsetmaketheS7-200aperfectsolutionforcontrollingsmallapplications.ThewidevarietyofS7-200modelsandtheWindows-basedprogrammingtoolgiveyoutheflexibilityyouneedtosolveyourautomationproblems.TheS7-200seriesofmicro-programmablelogiccontrollers(MicroPLC)cancontrolawidevarietyofdevicestosupportyourautomationneeds.TheS7-200monitorsinputsandchangesoutputsascontrolledbytheuserprogram,whichcanincludeBooleanlogic,counting,timing,complexmathoperations,andcommunicationswithotherintelligentdevices.Thecompactdesign,flexibleconfiguration,andpowerfulinstructionsetcombinetomaketheS7-200aperfectsolutionforcontrollingawidevarietyofapplications.TheS7-200storesinformationindifferentmemorylocationsthathaveuniqueaddresses.Youcanexplicitlyidentifythememoryaddressthatyouwanttoaccess.Thisallowsyourprogramtohavedirectaccesstotheinformation.Table4-1showstherangeofintegervaluesthatcanberepresentedbythedifferentsizesofdata.Table4-1DecimalandHexadecimalRangesfortheDifferentSizesofDataRepresentationByte(B)Word(W)DoubleWord(D)UnsignedInteger0to2550toFF0to65,5350toFFFF0to4,294,967,2950toFFFFFFFFSignedInteger-128to+12780to7F-32,768to+32,7678000to7FFF-2,147,483,648to+2,147,483,64780000000to7FFFFFFFRealIEEE32-bitFloatingPointNotapplicableNotapplicable+1.175495E-38to+3.402823E+38(positive)-1.175495E-38to-3.402823E+38(negative)Toaccessabitinamemoryarea,youspecifytheaddress,whichincludesthememoryareaidentifier,thebyteaddress,andthebitnumber.Figure4-3showsanexampleofaccessingabit(whichisalsocalled“byte.bit”addressing).Inthisexample,thememoryareaandbyteaddress(I=input,and3=byte3)arefollowedbyaperiod(“.”)toseparatethebitaddress(bit4).Youcanaccessdatainmostmemoryareas(V,I,Q,M,S,L,andSM)asbytes,words,ordoublewordsbyusingthebyte-addressformat.Toaccessabyte,word,ordoublewordofdatainthememory,youmustspecifytheaddressinawaysimilartospecifyingtheaddressforabit.Thisincludesanareaidentifier,datasizedesignation,andthestartingbyteaddressofthebyte,word,ordouble-wordvalue,asshowninFigure4-4.Datainothermemoryareas(suchasT,C,HC,andtheaccumulators)areaccessedbyusinganaddressformatthatincludesanareaidentifierandadevicenumber.AccessingDataintheMemoryAreasProcess-ImageInputRegister:ITheS7-200samplesthephysicalinputpointsatthebeginningofeachscancycleandwritesthesevaluestotheprocess-imageinputregister.Youcanaccesstheprocess-imageinputregisterinbits,bytes,words,ordoublewords:Bit:Ibyteaddress.bitaddressI0.1Byte,Word,orDoubleWord:IsizestartingbyteaddressIB4Process-ImageOutputRegister:QAttheendofthescancycle,theS7-200copiesthevaluesstoredintheprocess-imageoutputregistertothephysicaloutputpoints.Youcanaccesstheprocess-imageoutputregisterinbits,bytes,words,ordoublewords:Bit:Qbyteaddress.bitaddressQ1.1Byte,Word,orDoubleWord:QsizestartingbyteaddressQB5VariableMemoryArea:VYoucanuseVmemorytostoreintermediateresultsofoperationsbeingperformedbythecontrollogicinyourprogram.YoucanalsouseVmemorytostoreotherdatapertainingtoyourprocessortask.YoucanaccesstheVmemoryareainbits,bytes,words,ordoublewords:Bit:Vbyteaddress.bitaddressV10.2Byte,Word,orDoubleWord:VsizestartingbyteaddressVW100BitMemoryArea:MYoucanusethebitmemoryarea(Mmemory)ascontrolrelaystostoretheintermediatestatusofanoperationorothercontrolinformation.Youcanaccessthebitmemoryareainbits,bytes,words,ordoublewords:Bit:Mbyteaddress.bitaddressM26.7Byte,Word,orDoubleWord:MsizestartingbyteaddressMD20TimerMemoryArea:TTheS7-200providestimersthatcountincrementsoftimeinresolutions(time-baseincrements)of1ms,10ms,or100ms.Twovariablesareassociatedwithatimer:-Currentvalue:this16-bitsignedintegerstorestheamountoftimecountedbythetimer.-Timerbit:thisbitissetorclearedasaresultofcomparingthecurrentandthepresetvalue.Thepresetvalueisenteredaspartofthetimerinstruction.Youaccessbothofthesevariablesbyusingthetimeraddress(T+timernumber).Accesstoeitherthetimerbitorthecurrentvalueisdependentontheinstructionused:instructionswithbitoperandsaccessthetimerbit,whileinstructionswithwordoperandsaccessthecurrentvalue.AsshowninFigure4-5,theNormallyOpenContactinstructionaccessesthetimerbit,whiletheMoveWordinstructionaccessesthecurrentvalueofthetimer.Format:TtimernumberT24CounterMemoryArea:CTheS7-200providesthreetypesofcountersthatcounteachlow-to-hightransitioneventonthecounterinput(s):onetypecountsuponly,onetypecountsdownonly,andonetypecountsbothupanddown.Twovariablesareassociatedwithacounter:-Currentvalue:this16-bitsignedintegerstorestheaccumulatedcount.-Counterbit:thisbitissetorclearedasaresultofcomparingthecurrentandthepresetvalue.Thepresetvalueisenteredaspartofthecounterinstruction.Youaccessbothofthesevariablesbyusingthecounteraddress(C+counternumber).Accesstoeitherthecounterbitorthecurrentvalueisdependentontheinstructionused:instructionswithbitoperandsaccessthecounterbit,whileinstructionswithwordoperandsaccessthecurrentvalue.AsshowninFigure4-6,theNormallyOpenContactinstructionaccessesthecounterbit,whiletheMoveWordinstructionaccessesthecurrentvalueofthecounter.Format:CcounternumberC24Accumulators:ACTheaccumulatorsareread/writedevicesthatcanbeusedlikememory.Forexample,youcanuseaccumulatorstopassparameterstoandfromsubroutinesandtostoreintermediatevaluesusedinacalculation.TheS7-200providesfour32-bitaccumulators(AC0,AC1,AC2,andAC3).Youcanaccessthedataintheaccumulatorsasbytes,words,ordoublewords.Thesizeofthedatabeingaccessedisdeterminedbytheinstructionthatisusedtoaccesstheaccumulator.AsshowninFigure4-7,youusetheleastsignificant8or16bitsofthevaluethatisstoredintheaccumulatortoaccesstheaccumulatorasbytesorwords.Toaccesstheaccumulatorasadoubleword,youuseall32bits.Format:ACaccumulatornumberAC0SpecialMemory:SMTheSMbitsprovideameansforcommunicatinginformationbetweentheCPUandyourprogram.YoucanusethesebitstoselectandcontrolsomeofthespecialfunctionsoftheS7-200CPU,suchas:abitthatturnsonforthefirstscancycle,abitthattogglesatafixedrate,orabitthatshowsthestatusofmathoroperationalinstructions.(FormoreinformationabouttheSMbits,seeAppendixD.)YoucanaccesstheSMbitsasbits,bytes,words,ordoublewords:Bit:SMbyteaddress.bitaddressSM0.1Byte,Word,orDoubleWord:SMsizestartingbyteaddressSMB86LocalMemoryArea:LTheS7-200provides64bytesoflocalmemoryofwhich60canbeusedasscratchpadmemoryorforpassingformalparameterstosubroutines.Tip:IfyouareprogrammingineitherLADorFBD,STEP7-Micro/WINreservesthelastfourbytesof
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 福建省泉港一中2024届高考数学全真模拟密押卷含解析
- 广安市重点中学2024年中考四模英语试题含答案
- 甘肃张掖市2024年高三下学期联合考试物理试题含解析
- 甘肃省镇原县2024届毕业升学考试模拟卷英语卷含答案
- 甘肃省武威市民勤六中学2023-2024学年中考联考生物试题含解析
- 甘肃省武威市第二十三中学2023-2024学年毕业升学考试模拟卷生物卷含解析
- 人教版六年级下册数学期末测试卷及参考答案【培优B卷】
- 甘肃省陇南市第五中学2023-2024学年高考物理倒计时模拟卷含解析
- 小学中秋节活动总结(15篇)
- 异物入鼻怎办安全教案
- 物流中心施工组织设计方案(完整版)
- 酒店反恐防暴应急预案(word版)
- 向量知识点大全[基础资料]
- 医用气体系统设计.doc
- 食堂外包监督管理制度
- 初中生物第一单元教学设计方案教学设计方案
- 《集体舞:儿童圆舞曲》教案
- 卡通风地震防护安全知识培训讲座课件PPT模板
- 高中地理说课ppt课件
- 雨水流量公式详解(含计算过程及结果
- 二类医疗器械备案组织机构图和部门设置说明
评论
0/150
提交评论