西门子PLC快速查找数据算法

上传者: fenglingxicao | 上传时间: 2021-08-29 18:08:18 | 文件大小: 6.49MB | 文件类型: ZIP
1、当我们在一个 **链表** 或者 **顺序表** 中 **查找** 一个数据元素 是否存在 的时候,唯一的方法就是**遍历**整个表,这种方法称为 **线性枚举**。如果这时候,**顺序表是有序**的情况下,我们可以采用**折半**的方式去查找,这种方法称为 **二分枚举**。线性枚举 的时间复杂度为 O ( n ) ,二分枚举 的时间复杂度为 O ( l o g 2 n ) 2、PLC查找数据一般使用场景:在博图软件中预先定义好数组,根据数组下标索引到数据;那这就是一个典型的底层实现结构是一个数组,数组类型可以是任意类型,而且数组下表是有序的,那我们完全可以使用折半查找代替遍历整个表,以此通过算法节省CPU扫描时间,提升设备相应速度!(如定义1...10,快速找到上位下发第N个数组下标所存储的数据);其优势在数组内容较大时明显

文件下载

资源详情

[{"title":"( 66 个子文件 6.49MB ) 西门子PLC快速查找数据算法","children":[{"title":"AdditionalFiles","children":[{"title":"PLCM","children":[{"title":"plcmArchive.pma15_0 <span style='color:#111;'> 4B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Vci","children":[{"title":"Vci.db <span style='color:#111;'> 24.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"XRef","children":[{"title":"XRef.db <span style='color:#111;'> 60.00KB </span>","children":null,"spread":false}],"spread":true},{"title":"System","children":[{"title":"PEData","children":[{"title":"Meta","children":[{"title":"ChangeListProvider","children":[{"title":"Siemens.Automation.DomainModel.xml <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"ChangeListConsumer","children":[{"title":"Iecpl.xml <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false},{"title":"Siemens.Simatic.Lang.IPI.Target.xml <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false},{"title":"Siemens.Simatic.Lang.Online.xml <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false},{"title":"Siemens.Simatic.Lang.xml <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false},{"title":"HmiBase.xml <span style='color:#111;'> 2.99KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"PEData.plf <span style='color:#111;'> 2.74MB </span>","children":null,"spread":false},{"title":"PEData.idx <span style='color:#111;'> 102.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"UserFiles","children":null,"spread":false},{"title":"查询数据算法.ap16 <span style='color:#111;'> 7.56KB </span>","children":null,"spread":false},{"title":"TMP","children":null,"spread":false},{"title":"Logs","children":null,"spread":false},{"title":"IM","children":[{"title":"SearchIndex","children":[{"title":"_oa_1.del <span style='color:#111;'> 9B </span>","children":null,"spread":false},{"title":"segments_ee <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"_od.cfs <span style='color:#111;'> 5.64KB </span>","children":null,"spread":false},{"title":"_o6_2.del <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"segments.gen <span style='color:#111;'> 20B </span>","children":null,"spread":false},{"title":"_o6.fdx <span style='color:#111;'> 2.51KB </span>","children":null,"spread":false},{"title":"_o7.cfs <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"_o8.cfs <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"_oc_1.del <span style='color:#111;'> 9B </span>","children":null,"spread":false},{"title":"_o6.fdt <span style='color:#111;'> 105.41KB </span>","children":null,"spread":false},{"title":"_o6.tii <span style='color:#111;'> 363B </span>","children":null,"spread":false},{"title":"_o6.tis <span style='color:#111;'> 27.47KB </span>","children":null,"spread":false},{"title":"_o6.tvf <span style='color:#111;'> 37.25KB </span>","children":null,"spread":false},{"title":"_o9.cfs <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"_o6.tvx <span style='color:#111;'> 5.02KB </span>","children":null,"spread":false},{"title":"_o6.fnm <span style='color:#111;'> 2.60KB </span>","children":null,"spread":false},{"title":"_o6.frq <span style='color:#111;'> 6.32KB </span>","children":null,"spread":false},{"title":"_ob.cfs <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false},{"title":"_o6.tvd <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false},{"title":"_oc.cfs <span style='color:#111;'> 5.64KB </span>","children":null,"spread":false},{"title":"_o6.prx <span style='color:#111;'> 4.68KB </span>","children":null,"spread":false},{"title":"_oa.cfs <span style='color:#111;'> 2.76KB </span>","children":null,"spread":false}],"spread":false},{"title":"HMI","children":[{"title":"BrokerInfo.dat <span style='color:#111;'> 272B </span>","children":null,"spread":false},{"title":"DeviceFolders.dat <span style='color:#111;'> 40B </span>","children":null,"spread":false},{"title":"S","children":[{"title":"0","children":[{"title":"RtData.idx <span style='color:#111;'> 241.86KB </span>","children":null,"spread":false},{"title":"intermediate.dti <span style='color:#111;'> 111B </span>","children":null,"spread":false},{"title":"RtData.plf <span style='color:#111;'> 7.84MB </span>","children":null,"spread":false},{"title":"Generates","children":[{"title":"pdata.pwx <span style='color:#111;'> 348B </span>","children":null,"spread":false},{"title":"SimWork","children":[{"title":"pdata.pwx <span style='color:#111;'> 348B </span>","children":null,"spread":false},{"title":"pdata.rt_file.@MSG <span style='color:#111;'> 1024.00KB </span>","children":null,"spread":false},{"title":"pdata.ETH0.cnk <span style='color:#111;'> 178B </span>","children":null,"spread":false},{"title":"pdata.srt <span style='color:#111;'> 209.41KB </span>","children":null,"spread":false},{"title":"pdata.ORIE.cnk <span style='color:#111;'> 96B </span>","children":null,"spread":false}],"spread":false},{"title":"HmiSRT.ini <span style='color:#111;'> 70B </span>","children":null,"spread":false},{"title":"pdata.rld <span style='color:#111;'> 22.85KB </span>","children":null,"spread":false},{"title":"pdata.ETH0.cnk <span style='color:#111;'> 178B </span>","children":null,"spread":false},{"title":"pdata.srt <span style='color:#111;'> 209.41KB </span>","children":null,"spread":false},{"title":"qcontrols","children":[{"title":"D29000003.qml <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false},{"title":"Global.qml <span style='color:#111;'> 15.17KB </span>","children":null,"spread":false},{"title":"D29000008.qml <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false},{"title":"D2900000A.qml <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false},{"title":"D29000001.qml <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"D29000002.qml <span style='color:#111;'> 1006B </span>","children":null,"spread":false},{"title":"D29000005.qml <span style='color:#111;'> 3.11KB </span>","children":null,"spread":false},{"title":"D29000000.qml <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"D29000007.qml <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"D29000004.qml <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"P1000000.qml <span style='color:#111;'> 8.95KB </span>","children":null,"spread":false},{"title":"D29000009.qml <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"D29000006.qml <span style='color:#111;'> 4.18KB </span>","children":null,"spread":false}],"spread":false},{"title":"DownloadTask.xml <span style='color:#111;'> 772B </span>","children":null,"spread":false},{"title":"pdata.ORIE.cnk <span style='color:#111;'> 96B </span>","children":null,"spread":false},{"title":"ProjectCharacteristics.rdf <span style='color:#111;'> 162B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"SPL","children":[{"title":"options <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明