siemens存储卡的选择doc 16页.docx
《siemens存储卡的选择doc 16页.docx》由会员分享,可在线阅读,更多相关《siemens存储卡的选择doc 16页.docx(17页珍藏版)》请在冰豆网上搜索。
siemens存储卡的选择doc16页
siemens存储卡的选择(doc16页)
部门:
xxx
时间:
xxx
整理范文,仅供参考,可下载自行编辑
siemens存储卡的选择
MMC卡是西门子新型PLC的程序、数据的存储体,目前应用于以下几种PLC产品:
订货号产品名称
6ES7314-1AF10-0AB0新型CPU314
6ES7315-2AG10-0AB0新型CPU315-2DP
6ES7312-5BD00-0AB0CPU312C
6ES7313-5BE00-0AB0CPU313C
6ES7313-6CE00-0AB0CPU313C-2DP
6ES7313-6BE00-0AB0CPU313C-2PTP
6ES7314-6CF00-0AB0CPU314C-2DP
6ES7314-6BF00-0AB0CPU314C-2PTP
6ES7613-1CA00-0AE3C7613
6ES7635-2EC00-0AE3C7635OP
6ES7635-2EB00-0AE3C7635OP
6ES7151-7***-0AB0ET200SwithCPU
注:
以上产品的订货号会因为产品软硬件的升级略有调整,产品特性以产品名称为准。
1.在定购以上产品时,PLC本身不带有MMC卡,所以为了正常使用PLC,您必须根据您工程项目实际需求定购一个大小适用的MMC卡,如果您的PLC上未插入MMC卡,你是无法将STEP7中的程序和数据下载下去的,同时你应当注意,不能带电插拔MMC卡,否则会丢失程序或损坏MMC卡。
2.在Simaticmanager中,选择一个程序块下载,则该块被下载到MMC卡中,如果在窗口左边的树型图中选中Block文件夹进行下载,则所有的块被下载到MMC卡上,MMC中原有的信息将被覆盖,向MMC卡读写数据或下载程序的次数不受限制。
3.除过CPU中集成的SFB/SFCs块外,MMC当中其他的块可被在线删除。
4.对某些CPU用新版MMC卡(6ES7953-XXX10-0AA0)替代旧版MMC卡(6ES7953-XXX00-0AA0)时需要升级PLC的OPERATINGSYSTEM。
升级时需要使用PG(6ES7798-0BA00-0XA0)或带USB口的编程器(6ES7792-0AA00-0XA0),通过STEP7MANAGER窗口中的菜单功能“PLC/UPDATEOPERATINGSYSTEM”将CPU_HD.UPD文件写到MMC卡上,CPU_HD.UPD文件可以在www4.ad.siemens.de网站上下载得到。
5.MMC卡作为CPU的装载内存(LoadMemory),在为您的CPU选型MMC的时候,我们建议您所选的MMC卡一定要大于等于您所选定的CPU工作内存的大小(workmemory),最好比工作内存大一些,但如果您的应用中,PLC工作时要使用大量的过程数据,历史数据,配方数据等或控制工艺中存在较多的用户程序块、STEP7中的应用功能块(如FB41、FB42等)时,建议选用2-8M的MMC卡,但请注意只有314、315-2DP、C7系列的PLC支持8M的MMC卡。
6.MMC卡是装载内存,所以不能够在上位机中的组态软件中直接读取MMC卡上的数据值(DB块中的数据),组态画面读取的是PLCRAM内存中的数据。
7.在西门子的PLC上必须使用西门子专用的MMC卡,如下表中所列出的,不能使用数码相机、移动电话或PDA等数码产品使用的通用型MMC卡。
TheordernumbersforMMCcardsareinthefollowing table:
MicroMemoryCard/S7-300
Ordernumber
64Kbytes
6ES7953-8LF11-0AA0
128Kbytes
6ES7953-8LG11-0AA0
512Kbytes
6ES7953-8LJ11-0AA0
2Mbytes
6ES7953-8LL11-0AA0
4Mbytes
6ES7953-8LM11-0AA0
8Mbytes
6ES7953-8LP11-0AA0
MMC常见问题列表
QUESTION1:
如何确定STEP7中的工程项目需要使用多大空间的MMC卡?
QUESTION2:
MMC卡上存储程序块或数据块的限制是什么?
QUESTION3:
如何删除MMC卡上的数据或程序?
QUESTION4:
31X型PLC插入MMC卡后,STOP灯不停闪烁,怎么办?
或如何格式化MMC?
QUESTION5:
插入MMC卡的S7300PLC不能正常调用SFC54程序块?
QUESTION6:
采用MMC卡的S7300和C7613,635系列CPU是如何完成数据保持功能的?
QUESTION7:
我如何将一些系统文件或是项目相关的文件存储到MMC上?
QUESTION8:
我想将我的STEP7项目完整地保存在MMC卡上,该选择多大的MMC?
QUESTION9:
我对插入MMC卡的S7300PLC进行了加密,但我忘记了密码,如何才能对MMC解密,或删除MMC卡上的密码?
QUESTION1:
如何确定STEP7中的工程项目需要使用多大空间的MMC卡?
Answer:
确定您的控制程序所需的MMC卡的大小,可以按以下步骤进行:
1.在STEP7Manager中打开您的Project;
2.选中您的程序块,点击鼠标右键(或快捷键Alt+Enter),打开程序块的属性页面:
3.选择弹出窗口中的General-Part2页面:
从上图中可以看出您的某个程序块在PLC中占用装载内存和工作内存的字节数。
4.将您项目中所有程序块(OB、FC、FB、DB)占用装载内存(LoadMemoryRequirement)的数量加在一起:
这里的OB1程序块需要占用装载内存(即MMC卡)中的248个字节。
这里的FB101程序块需要占用MMC卡中的4490个字节。
将OB、FB、FC、DB(不包括SFC、SFB、Systemdata)所需占用的字节数加在一起:
得到的总的字节数量在除以1024,就可以知道您的Project中的程序块需要多大的MMC卡空间。
5.如果您已经有Siemens的PLC和MMC,那么您可以通过在线诊断,获取PLC工作内存和装载内存(MMC卡)的使用情况。
在STEP7Manager界面中,选中CPU,用CP5611或PC-Adapter连接PLC的MPI通讯口,使用快捷键Ctrl+D,弹出PLC的诊断信息窗口:
当MMC卡未插入PLC中时:
因为PLC中没有插入MMC卡,LoadmemoryRAM+EPROM列为空,WorkMemory列中显示当前PLC的工作内存为48K,EPROM是S7-400、旧款S7-300使用的装载内存卡;
在PLC中插入MMC卡时,
使用快捷键Ctrl+D弹出PLC的内存使用情况:
可以看出PLC的内存使用情况为0%,空余128K装载内存和48K工作内存;
将您的程序下载到PLC当中:
使用Ctrl+D弹出PLC的内存使用情况:
可以看出,您的控制程序在PLC中对装载内存和工作内存的占用情况。
返回
QUESTION2:
MMC卡上存储程序块或数据块的限制是什么?
IsthereanyrestrictiontothenumberofblocksIcanloadontoanMMC(MicroMemoryCard)?
ANSWER:
Yes,thereisalimitednumberofblocksyoucanloadontoanMMCdependingitssizeasshownbythetablebelow:
Type
MLFB
Maximumnumberofblocks
MMC64KB
6ES7953-8LF11-0AA0
768
MMC128KB
6ES7953-8LG11-0AA0
1024
MMC512KB
6ES7953-8LJ11-0AA0
2560
MMC2MB
6ES7953-8LL11-0AA0
6528
MMC4MB
6ES7953-8LM11-0AA0
12672
Table1:
MaximumnumberofblocksonanMMC
PleasenoteheretheapplicablequantityframeworkforeachCPU(numberofblocksaltogether).
返回
QUESTION3:
如何删除MMC卡上的数据或程序?
HowcanIdeletethedataorprogramonaMMC(MicroMemoryCard)?
YoucanusethefollowingproceduretodeletetheblockonanMMCintheCPU:
1.TheMMCtobedeletedisslottedintheCPU.
2.IntheSIMATICManager,switchtoonlinemodevia"View>Online"orbypressingtheappropriatebutton.
3.IntheOnlinewindow,youselecttheblockfolder.
4.Selectalltheblocksinthefolderwhichyouwanttodelete.
5.Clickthe"Delete"keyonyourPCkeyboard(youcanacknowledgethemessagethatsystemfunctionscannotbedeleted).
返回
QUESTION4:
31X型PLC插入MMC卡后,STOP灯不停闪烁,怎么办?
或如何格式化MMC?
WhydoestheSTOPLEDflashonmyCPU31xCwhentheMMC(MicroMemoryCard)isslotted?
TheCPUdoesnotbehavelikethiswithotherMMCs.
ANSWER:
TheMMCinyourCPUisnotformattedorcontainsdatathatcannotbeinterpretedbythisCPU(e.g.theconfigurationofadifferentCPUtypeoranoperatingsystemnotcompatiblewiththeCPU).
WARNING:
WhenyouformattheMMCallthedatathatislocatedontheMMCisdeleted!
ProceedasfollowstoformattheMMC.
1.YourCPUrequestsanoverallreset(slowflashingoftheSTOPLED).
2.PuttheswitchintotheMRESpositionandholditthereuntiltheSTOPLEDlightspermanently(approx.9seconds).
3.Youmustthenreleasetheswitchwithinthenext3secondsandthenputitbackintotheMRESposition.TheSTOP-LEDnowflashesduringformatting.
IftheMMCcannotbeformattedasdescribedabove,thentheMMCisdefective.
NOTE:
ItisonlypossibletoformattheMMCifthereisdatalocatedontheMMCthatisinvalidfortheCPU.OtherwisetheMMCisonlyinitializedthroughthestepsdescribed.
MoreinformationontheMMCisavailableinEntryID:
8861901
返回
QUESTION5:
插入MMC卡的S7300PLC不能正常调用SFC54程序块?
WhydoestheSFC54"RD_DPARM"notworkwiththenewS7-300CPUwithMMC?
ANSWER:
;
InthenewS7-300CPUswithmicroMemoryCard,SFC54"RD_DPRARM"forreadingoutadatarecordofachosenblockofthesystemdataconfiguredwithSTEP7hasbeenreplacedbySFC102"RD_DPARA".
SFC102"RD_DPARA",incontrasttotheoldSFC54"RD_DPARM"isanasynchronouslyexecutedsystemfunction.ThismeansthattheprocessingisextendedovervariousSFCcalls.
BlockscontainingSFC54"RD_DPARM"cannotbeloadedtoanewS7-300CPUwithMMC.Therefore,pleasereplacethecallfotheSFC54"RD_DPARM"bythecalloftheSFC102"RD_DPARA"andadjustyourprogramminglogictotheasynchronousbehaviouroftheSFC102"RD_DPARA"an.
Below,youwillfindacomparisonofthetwosystemfunctions:
SFC54"RD_DPARM"
SFC102"RD_DPARA"
Observations
Inputs
---
REQ
FunctionwillbeexecutedonlywithREQ=1;newforSFC102
IOID
---
ParameterhasbeendroppedforSFC102;seeLADDR
LADDR
LADDR
SFC54:
anyblockaddress,specificationoftheEresp.AaddressrangeoverIOID((B#16#54=PeripherieEingang;B#16#55=peripherialoutput)SFC102:
anyblockaddress;SpecificationoftheEresp.Aaddressrangeoverbit15ofLADDR(mostsiginficantbit)Bit15=0->peripherialinputBit15=1->peripherialoutput
RECNUM
RECNUM
useidentically
Output
RET_VAL
RET_VAL
useidentically;however,thereareadditionalerrornumbersforSFC102atdisposition.
---
BUSY
BUSY=1;theorderhasnotbeenfinishedsofar,therearenoresultsatdisposition
RECORD
RECORD
useidentically
Table1:
ComparisonSFC54andSFC102
返回
QUESTION6:
采用MMC卡的S7300和C7613,635系列CPU是如何完成数据保持功能的?
HowdoestheremanencefunctionoftheS7-300CPUsandC7-613andC7-635compactdevicesworkwithMicroMemoryCard?
ANSWER:
TheremanencecharacteristicsdescribedbelowaffecttheS7-300compactCPUs,S7-300modularCPUsandtheC7-613andC7-635compactdeviceswithMMC.Wedescribetheremanencecharacteristicsafterchangesinoperatingmodeintermsofdatablocks,times,countersandmarkers.
Datablocks:
∙CPUSTOP/RUNorPowerOFF/ON
1.DatabasecontentsofCPUs31xC,312,314,315-2DP,C7-613andC7-635arealwaysremanent.
2.TheDBscanbedefinedasremanentornon-remanentfortheCPU317-2DP.
Therefore,asettinginSTEP7(V5.2+SP1)isrequiredforCPU317-2DP:
oAnexplanationfortheactivationordeactivationoftheoption"Non-Retain"intheblockpropertiesoftheDB,canbefoundintheentry-ID:
17146856or
oaDBwascreatedwithSFC82"CREA-DBL".WhilecreatingaDBwithSFC82itisdeterminedintheattributesoftheDBinBit2,whethertheDBshallgetremanentornot.
Note:
Only256Kbytesofthemainmemory(512Kbyte)canbeusedforremanentdatablocksataCPU317-2DP!
NoremanentDBwillbecreatedanymoreandthevalue80B2(notsufficientmainmemory)willbedisplayed,ifthemainmemoryistoosmallforremanentdatablocks.
∙Memoryreset(MRES)
1.Thedatawillberesettothevaluesintheloadingmemory(initialvalue).ThesearethelastcurrentvalueswhichwereloadedwiththePGintotheCPUorwhichwerewrittenwiththeSFC84intotheloadingmemory.
2.Allblocksoftheloadingmemoryremainunchanged.Thedatablocksareinitializedinthemainmemory.
∙CPUPowerOFF->pullMMC->PowerON->PowerOFF->plugMMC->PowerON
1.Thedataareresettothevaluesintheloadingmemory.ThesearethelastcurrentvalueswhichwereloadedfromthePGintotheCPUorwrittenintotheloadingmemorywithSFC84.
2.Allblocksoftheloadingmemoryremainunchanged.Thedatablocksareinitializedinthemainmemory.
Note:
Ifitisrequiredtosafeguardcurrentdata,thosehavetobesavedontheMMC(loadingmemory).SFC84canbeusedforthispurpose.ThefrequencyofthewriteaccessesontheloadingmemoryiscriticalbecauseaMMConlyallows100,000writeaccesses.
Markers,timesandcounter:
Theseoperandareascanbedefinedasremanentornon-remanentintheHWconfigurationunder"ObjectpropertiesCPU>remanence".
∙CPUSTOP/RUNorPowerOFF/ON
Theseoperandareas