




已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 事业单位临时工聘用合同2025年
- 软件许可销售合同(2025版)
- 社区医疗服务合作协议(2025版)
- 社会保险补偿合同协议书范本模板(2025版)
- 清掏化粪池安全协议书2025年
- 买卖水果合同格式(2025版)
- 商铺租赁合同范本2025年
- 旅游产业股权互换与旅游产品开发协议
- 人文测试题目及答案解析
- Lesson 6 what would you like for dinner?Period 2表格式教学设计 五年级上《英语》(接力版)(三起)
- 2025年湖南省中考化学真题含答案
- 2025年制冷设备维修工(高级)制冷系统故障排除鉴定试卷
- 人才内部流动管理办法
- 2025学校翻新跑道合同范本
- 中医护理病历书写课件
- 脑卒中患者早期康复护理措施
- 2025年辅警面试考试试题库目(答案+解析)
- 唐氏综合征课件
- 耕地保护培训课件
- 氢能存储与应用-第1篇-洞察及研究
- 肿瘤治疗技术发展与临床应用
评论
0/150
提交评论