版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 上海大学《机械制造工艺及装备》2024-2025学年第二学期期末试卷
- 梅河口康美职业技术学院《保密行政管理》2024-2025学年第二学期期末试卷
- 天津艺术职业学院《影视后期编辑实践》2024-2025学年第二学期期末试卷
- 河源职业技术学院《光电转换材料》2024-2025学年第二学期期末试卷
- 日照职业技术学院《禽病专题》2024-2025学年第二学期期末试卷
- 企业档案管理制度
- 煤矿企业安全责任制度
- 南充职业技术学院《影视录音工艺》2024-2025学年第二学期期末试卷
- 昆明铁道职业技术学院《微积分I》2024-2025学年第二学期期末试卷
- 2026年度广安市广安区公开考调公务员(参照管理工作人员)及事业人员(22人)考试参考题库及答案解析
- HZS120混凝土搅拌站安装方案
- 病理学基础绪论课件
- 2026年春学期部编版小学语文五年级下册教学计划附教学进度表
- 燃气具安装维修培训课件
- DB22∕T 3259-2021 健康儿童及青少年心肌酶参考区间规范
- 设计公司团队介绍
- 2026年江西电力职业技术学院单招职业适应性考试必刷测试卷附答案
- 2022年临床医学三基考试(综合)三基三严医技训练试卷
- 全市 控告申诉知识竞赛题
- 2025年9月17日事业单位联考《综合应用能力(A类)》试题及答案
- 留学生交通安全培训课件
评论
0/150
提交评论