- 1、本文档共23页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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 indirectaddressing. 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
您可能关注的文档
最近下载
- 2024-2030年中国六氟磷酸锂行业市场现状供需分析及投资评估规划分析研究报告.docx
- 防护工程之三维网植被护坡(附施工图解、工艺、造价编制).pdf VIP
- 《中铁一局集团有限公司工程项目管理绩效考核办法》(中铁一成本[2015]623号).doc
- 机械打眼开炸石方(附施工图解、造价编制).pdf VIP
- 路基土石方(借土填方)(附施工图解、工艺、造价编制).pdf VIP
- 2023扬州龙川控股集团有限责任公司招聘试题及答案解析.docx
- 交通安全设施之交通标志(附施工图解、工艺、造价编制).pdf VIP
- 路基土石方之填挖交界(附施工图解、工艺、造价编制).pdf VIP
- 2纵横造价实战--抛石挤淤附施工图解、工艺、造价编制.pdf
- 2024《我的阿勒泰》作品简介PPT课件(精品).pptx
文档评论(0)