




已阅读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-2025学年高二上学期1月期末生物学试题(含答案)
- 健康医疗智能硬件开发合作契约书
- 秘密花园的阅读引导:英文名著导读教案
- 智慧城市智慧交通系统智能调度预案
- 产品定制开发合同书及产品质量保障承诺书
- 大数据分析平台开发合作协议
- 2024年宁夏回族自治区消防救援总队招聘机关消防文员考试真题
- 铁路沿线危树清理施工方案
- 二年级下册数学口算题-可打印
- 公司信息化安全规章制度及操作手册
- 福建省南平市2024-2025学年九年级上学期期末语文试题(解析版)
- 2025年湖南工程职业技术学院高职单招高职单招英语2016-2024历年频考点试题含答案解析
- 苏教版二年级数学下册单元测试题及答案
- 部编版五年级下册语文全册优质课件
- 约等于计算题100道乘除法
- 水泵站工程施工设计方案
- 新闻类文体的翻译(课堂PPT)
评论
0/150
提交评论