




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 耳部肿瘤课堂
- 好奇产品培训体系构建
- 瞄准新质生产力
- 听了郝红英老师孩子心里发展敏感期与家庭教育的心得体会模版
- 奥康客户关系管理体系构建
- 办公室行政管理
- 技术岗位工作总结模版
- 大学生职业规划大赛《视觉传达设计专业》生涯发展展示
- 大学生职业规划大赛《人力资源管理专业》生涯发展展示
- 细胞治疗产品开发与应用
- 推销实战技巧与客户优秀服务技巧
- 福建新费用定额交底材料
- 器质性精神障碍患者的护理
- 趣味英语课件完整版
- 大学武术智慧树知到答案章节测试2023年浙江大学
- 前列腺增生症患者围手术期的护理
- 五防系统调试报告
- 日语综合教程第六册 单词表
- 市委政研室主任关于如何写稿子的讲话
- 在建项目雨季施工(防汛)安全隐患排查表
- 《广东省普通高中学生档案》模板
评论
0/150
提交评论