间接寻址与地址寄存器.ppt

  1. 1、本文档共23页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
间接寻址与地址寄存器

Indirect Addressing and Address Register Instructions Addressing Possibilities with STEP 7 Direct Addressing of Variables Direct Addressing of Address Identifiers in DBs Evaluating DB Information in the Program Instructions with DB Registers: CDB: Exchange DB Registers Load DB Register in ACCU1 L DBNO (load opened DB number in ACCU1) L DINO (load opened DI number in ACCU1) Load length of data blocks L DBLG (load the length/bytes of the opened DB in ACCU1) L DILG (load the length/bytes of the opened DI in ACCU1) Memory Indirect Addressing Structure of Pointers with Memory Indirect Addressing Special Features of Memory Indirect Addressing Address Areas for Storing 16-bit and 32-bit Pointers: Bit Memories (addressed absolute or symbolic, e.g.: OPN DB[MW30], OPN DI[Motor_1], etc. A I[MD30], T QD[Speed_1], etc.) Local Data Stack (addressed absolute or symbolic, e.g.: OPN DB[LW10], OPN DI[#DB_NO], etc. A I[LD10], T QD[#Par_Pointer], etc.) Global (Shared) Data Block (can only be addressed absolute, DB must be opened beforehand, e.g.: OPN DB[DBW0] (overwrites DB register !!!), OPN DI[DBW22], etc. A I[DBD10], T QD[DBD22], etc.) Instance Data Block (can only be addressed absolute, DI must be opened beforehand, e.g.: OPN DB[DIW20], OPN DI[DIW0] (overwrites DI register !!!), etc. A I[DID10], T QD[DID22], etc.) Characteristics in the Passing of Pointers to FBs and FCs Pointers passed in parameters cannot be used directly for memory indirect addressing. Pointers passed for memory indirect addressing must be copied into temporary variables before accessing. Example of Indirect Addressing Exercise 4.1: Loop Programming with Indirect Addressing Area-Internal, Register Indirect Addressing Area-Crossing, Register Indirect Addressing Instructions for Loading Address Registers Loading the Address Register LARn (n =1 or 2): Load contents of ACCU1 in ARn LARn Address Load contents of Address in ARn LARn P#Address Load address of Address in ARn Address: Processor re

文档评论(0)

dajuhyy + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档