




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Date:2021-12-26File:SSP2_03C.1SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.2SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation立即寻址的例子立即寻址的例子Date:2021-12-26File:SS
2、P2_03C.3SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation直接寻址的例子直接寻址的例子Date:2021-12-26File:SSP2_03C.4SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.5SIMATIC S7Siem
3、ens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.6SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.7SIMATIC S7Siemens AG 2000. All rights reserved.Inf
4、ormation and Training CenterKnowledge for AutomationDate:2021-12-26File: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
5、,装入的是QB4A MLD 4 /对存储器位作“与”运算,地址指针在数据双字LD4 中/如果LD4 的值为20000 0000 0000 0000 0000 0000 0010 0011,则是对M4.3 进行操作Date:2021-12-26File:SSP2_03C.9SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.10SIMATIC S7Siemens AG 2000. All
6、rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.11SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.12SIMATIC S7Siemens AG 2000. All rights reserved.Information and Tr
7、aining CenterKnowledge for Automation00Date:2021-12-26File:SSP2_03C.13SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.14SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Autom
8、ation地址寄存器的装入与传送指令地址寄存器的装入与传送指令可以不经过累加器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:2021-12-26File:SSP2_03C.15
9、SIMATIC S7Siemens AG 2000. All 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 /逻辑运算的结果
10、送Q5.2L DBWAR1, P#18.0 /将DBW23 装入累加器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:2021-12-26File:SSP2_03C.16SIMATIC S7Siemens AG
11、2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.17SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.18SIMATIC S7Siemens AG 2000. All rights reserved.Informat
12、ion and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.19SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.20SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge f
13、or AutomationDate:2021-12-26File:SSP2_03C.21SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.22SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:S
14、SP2_03C.23SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.24SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.25SIMATIC S7Siemens AG 200
15、0. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.26SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.27SIMATIC S7Siemens AG 2000. All rights reserved.Information
16、 and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.28SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.29SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for
17、AutomationDate:2021-12-26File:SSP2_03C.30SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationDate:2021-12-26File:SSP2_03C.31SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation双指针使用实例双指针使用实例配方号配方号数据长度
18、数据长度配方源区数据块配方源区数据块目标目标起始地址起始地址读出配方目标区数据块读出配方目标区数据块Date:2021-12-26File:SSP2_03C.32SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation双指针使用实例双指针使用实例Date:2021-12-26File:SSP2_03C.33SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training
19、CenterKnowledge for Automation双指针使用实例双指针使用实例进栈数据进栈数据堆栈区长度堆栈区长度堆栈区数据块堆栈区数据块堆栈区清零标志堆栈区清零标志堆栈区数据块堆栈区数据块执行条件执行条件Date:2021-12-26File:SSP2_03C.34SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation双指针使用实例双指针使用实例Date:2021-12-26File:SSP2_03C.35SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation双指针使用实例双指针使用实例Date:2021-12-26File: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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 财务成本管理对于企业创新的影响试题及答案
- 角色与社会的相互作用文学概论试题及答案
- 法律学试题及答案
- 法律事务考试试题及答案
- 优化学习路径的22025年计算机二级公共知识试题及答案
- Web技术的进化历史试题及答案
- 软件工程中的迭代开发原则试题及答案
- 计算机WPS常用教程总结试题及答案
- 网络管理员考试实务试题及答案
- 经济法考试的思维训练与实战技巧试题及答案
- HG-T 4062-2023 波形挡边输送带
- 牛背山岩桑坪生态旅游客运索道项目对大熊猫国家公园生态影响评价报告
- 乙状结肠癌根治术手术
- 提水试验过程及数据处理
- 呼吸系统(0001)课件
- 单位食堂美食节策划方案
- 小学高段学生数学应用意识培养的实践研究 开题报告
- GB/T 17592-2024纺织品禁用偶氮染料的测定
- GA/T 2015-2023芬太尼类药物专用智能柜通用技术规范
- 唱片行业前景分析
- 新华DCS软件2.0版使用教程-文档资料
评论
0/150
提交评论