




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 某某市抗旱應急預案
- 內分泌學(醫學高級):腎上腺疾病考試答案(題庫版)
- 2025年會計職稱考試《初級會計實務》內部控制與審計解題技巧與真題分析含答案
- 硫酸氨基葡萄糖膠囊對皮膚衰老的改善作用
- 老年人-可學習彈鋼琴等
- 魯科版普通高中課程標準實驗教科書
- 2025年天津國科匯康健康體檢中心招聘考試筆試試題(含答案)
- 2025年內蒙古興安銀鉛冶煉有限公司招聘考試筆試試題(含答案)
- 海洋防波堤修建要點
- 老師職業心態培訓課件
- 國企招聘中層領導筆試試題
- GB/T 30420.3-2023縫制機械術語第3部分:鋪布裁剪設備術語
- 鋼板折邊機完整版本
- 味精(雞精)批發合同書
- 2014科學調查體驗活動培訓
- 國家開放大學2023年7月期末統一試《22417客戶關系管理》試題及答案-開放專科
- 水環境綜合治理服務方案(技術標)
- 中國高鐵發展史
- 職業倦怠量表MBIGS (MBIGeneral Survey)
- 井下探放水技術專題培訓
- 西式面點師(高級)課件 項目4 甜品制作
評論
0/150
提交評論