SIEMENS STEP7 间接寻址

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.5
Information and Training Center Knowledge for Automation
Date: File:
2015-5-13 SSP2_03C.16
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.17
Date: File:
2015-5-13 SSP2_03C.8
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.9
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.1
Information and Training Center Knowledge for Automation
立即寻址的例子
SIMATIC S7
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.30
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.6
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.7
Information and Training Center Knowledge for Automation
存储器间接寻址的例子
L QB[DBD 10] //将输出字节装入累加器1,输出字节的地址指
针在数据双字DBD10 中
//如果DBD10 的值为2#0000 0000 0000 0000 0000 0000 0010 0000,装入的是QB4
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.22
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.11
Information and Training Center Knowledge for Automation
0
0
SIMATIC S7
Siemens AG 2000. All rights reserved.
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.2
Information and Training Center Knowledge for Automation
直接寻址的例子
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.24
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.25
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.10
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.19
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
SIMATIC S7
Siemens AG 2000. All rights reserved. Date: File: 2015-5-13 SSP2_03C.15 Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.18
Information and Training Center Knowledge for Automation
百度文库
Information and Training Center Knowledge for Automation
地址寄存器的装入与传送指令
可以不经过累加器1,与地址寄存器AR1 和AR2 交换数据。下面是应用 实例:
LAR1 DBD20 //将数据双字DBD20 中的指针装入AR1
LAR2 LD180 //将局域数据双字LD180 中的指针装入AR2 LAR1 P#M10.2 //将带存储区标识符的32 位指针常数装入AR1
Date: File:
2015-5-13 SSP2_03C.20
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.21
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.27
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
A M[LD 4] //对存储器位作“与”运算,地址指针在数据双
字LD4 中 //如果LD4 的值为2#0000 0000 0000 0000 0000 0000 0010 0011,
则是对M4.3 进行操作
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.3
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.4
2015-5-13 SSP2_03C.14
Information and Training Center Knowledge for Automation
寄存器间接寻址的例子
指针常数#P5.0 对应的二进制数为2#0000 0000 0000 0000 00000000 0010 1000。 L P#5.0 //将间接寻址的指针装入累加器1 LAR1 //将累加器1 中的内容送到地址寄存器1 A M[AR1, P#2.3] //AR1 中的P#5.0 加偏移量P#2.3, 实际上是对M7.3 进行 操作 = Q[AR1, P#0.2] //逻辑运算的结果送Q5.2 L DBW[AR1, P#18.0] //将DBW23 装入累加器1 区域间间接寻址 L P#M6.0 //将存储器位M6.0 的双字指针装入累 加器1 LAR1 //将累加器1 中的内容送到地址寄存器1 T W[AR1, P#50.0] //将累加器1 的内容传送到存储器字MW56 P#M6.0 对应的二进制数为2#1000 0011 0000 0000 0000 000000110000 。因为地址指针P#M6.0 中已经包含有区域信息,使用间接寻址的指令T W[AR1, P#50]中没有必要再用地址标识符M。
Date: File:
2015-5-13 SSP2_03C.28
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.29
Date: File:
2015-5-13 SSP2_03C.12
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.13
LAR2 P#24.0 //将不带存储区标识符32 位指针常数装入AR2
TAR1 DBD20 //AR1 中的内容传送到数据双字DBD20 TAR2 MD24 //AR2 中的内容传送到存储器双字MD24
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.26
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
Date: File:
2015-5-13 SSP2_03C.23
Information and Training Center Knowledge for Automation
SIMATIC S7
Siemens AG 2000. All rights reserved.
相关文档
最新文档