版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Date:2022-3-6File:SSP2_03C.1SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.2SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation立即寻址的例子立即寻址的例子Date:2022-3-6File:SSP2_03C
2、.3SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation直接寻址的例子直接寻址的例子Date:2022-3-6File:SSP2_03C.4SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.5SIMATIC S7Siemens AG 200
3、0. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.6SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.7SIMATIC S7Siemens AG 2000. All rights reserved.Information and T
4、raining CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.8SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation存储器间接寻址的例子存储器间接寻址的例子L QBDBD 10 /将输出字节装入累加器1,输出字节的地址指针在数据双字DBD10 中/如果DBD10 的值为20000 0000 0000 0000 0000 0000 00100000,装入的是QB4A MLD 4
5、/对存储器位作“与”运算,地址指针在数据双字LD4 中/如果LD4 的值为20000 0000 0000 0000 0000 0000 0010 0011,则是对M4.3 进行操作Date:2022-3-6File:SSP2_03C.9SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.10SIMATIC S7Siemens AG 2000. All rights reserved.Info
6、rmation and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.11SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.12SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge f
7、or Automation00Date:2022-3-6File:SSP2_03C.13SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.14SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation地址寄存器的装入与传送指令地址寄存器的装入与传
8、送指令可以不经过累加器1,与地址寄存器AR1 和AR2 交换数据。下面是应用实例:LAR1 DBD20 /将数据双字DBD20 中的指针装入AR1LAR2 LD180 /将局域数据双字LD180 中的指针装入AR2LAR1 P#M10.2 /将带存储区标识符的32 位指针常数装入AR1LAR2 P#24.0 /将不带存储区标识符32 位指针常数装入AR2TAR1 DBD20 /AR1 中的内容传送到数据双字DBD20TAR2 MD24 /AR2 中的内容传送到存储器双字MD24Date:2022-3-6File:SSP2_03C.15SIMATIC S7Siemens AG 2000. All
9、 rights reserved.Information and Training CenterKnowledge for Automation寄存器间接寻址的例子寄存器间接寻址的例子指针常数P5.0 对应的二进制数为20000 0000 0000 0000 00000000 0010 1000。L P#5.0 /将间接寻址的指针装入累加器1LAR1 /将累加器1 中的内容送到地址寄存器1A MAR1, P#2.3 /AR1 中的P#5.0 加偏移量P#2.3, 实际上是对M7.3 进行操作= QAR1, P#0.2 /逻辑运算的结果送Q5.2L DBWAR1, P#18.0 /将DBW23
10、装入累加器1区域间间接寻址L P#M6.0 /将存储器位M6.0 的双字指针装入累加器1LAR1 /将累加器1 中的内容送到地址寄存器1T WAR1, P#50.0 /将累加器1 的内容传送到存储器字MW56P#M6.0 对应的二进制数为2#1000 0011 0000 0000 0000 000000110000。因为地址指针P#M6.0 中已经包含有区域信息,使用间接寻址的指令T WAR1, P#50中没有必要再用地址标识符M。Date:2022-3-6File:SSP2_03C.16SIMATIC S7Siemens AG 2000. All rights reserved.Inform
11、ation and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.17SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.18SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for
12、 AutomationDate:2022-3-6File:SSP2_03C.19SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.20SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.
13、21SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.22SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.23SIMATIC S7Siemens AG 2000. All right
14、s reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.24SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.25SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training Ce
15、nterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.26SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.27SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-
16、3-6File:SSP2_03C.28SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.29SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.30SIMATIC S7Siemens A
17、G 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2022-3-6File:SSP2_03C.31SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation双指针使用实例双指针使用实例配方号配方号数据长度数据长度配方源区数据块配方源区数据块目标目标起始地址起始地址读出配方目标区数据块读出配方目标区数据块Date:2022-3-
18、6File:SSP2_03C.32SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation双指针使用实例双指针使用实例Date:2022-3-6File:SSP2_03C.33SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation双指针使用实例双指针使用实例进栈数据进栈数据堆栈区长度堆栈区长度堆栈区数
19、据块堆栈区数据块堆栈区清零标志堆栈区清零标志堆栈区数据块堆栈区数据块执行条件执行条件Date:2022-3-6File:SSP2_03C.34SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation双指针使用实例双指针使用实例Date:2022-3-6File:SSP2_03C.35SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation双指针使用实例双指针使用实例Date:2022-3-6File:SSP2_03C.36SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation实验题实验题要要求编制数据判断查询功能,输入数据变量求编制数据判断查询功能
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 创建人民满意医院工作总结
- 2026年世界地球日环保知识答题考试题库(含答案)
- 环卫应急清雪除冰服务协议指南(2025版)
- 医患纠纷社工介入调解专家共识(2025版)
- 石棉肺并发症筛查随访共识
- 乡镇卫生院心电、除颤设备季度校准指南(2026版)
- 社区养老服务运营指南
- 玻璃器皿压制工安全操作规程
- 特种设备操作人员持证动态台账指南(2025版)
- 2026小学语文教资面试古诗词题库及答案
- (零模)苏州市2027届高三年级9月阳光调研试卷 生物试卷(含答案)
- 电梯更新改造工程监理规划
- 2026年托育机构生活照护员职业技能等级认定题库
- 2026年龙游经开高新控股集团有限公司及其子公司公开招聘合同制员工11人的笔试备考试题及答案详解
- 血常规解读:从化验单到临床线索
- 2026年江苏省泰州市抗震办公室(审图中心)招聘1人易考易错模拟试题(共500题)试卷后附参考答案
- 2026年世界职业院校技能大赛“智能网联汽车技术组”参考试题及答案
- 2026新教材语文 13《圆明园的毁灭》教学课件
- 《UI界面设计》高职全套教学课件
- 传统民俗文化节活动策划方案
- 合集-Q/GDW-10248.5-2016-变电(换流)站电气工程施工强制性条文执行记录表-表4-表46
评论
0/150
提交评论