




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認(rèn)領(lǐng)
文檔簡介
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 /將輸出字節(jié)裝入累加器1,輸出字節(jié)的地址指針在數(shù)據(jù)雙字DBD10 中/如果DBD10 的值為20000 0000 0000 0000 0000 0000 00100000,裝入的是QB4A MLD 4
5、/對存儲器位作“與”運算,地址指針在數(shù)據(jù)雙字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、送指令可以不經(jīng)過累加器1,與地址寄存器AR1 和AR2 交換數(shù)據(jù)。下面是應(yīng)用實例:LAR1 DBD20 /將數(shù)據(jù)雙字DBD20 中的指針裝入AR1LAR2 LD180 /將局域數(shù)據(jù)雙字LD180 中的指針裝入AR2LAR1 P#M10.2 /將帶存儲區(qū)標(biāo)識符的32 位指針常數(shù)裝入AR1LAR2 P#24.0 /將不帶存儲區(qū)標(biāo)識符32 位指針常數(shù)裝入AR2TAR1 DBD20 /AR1 中的內(nèi)容傳送到數(shù)據(jù)雙字DBD20TAR2 MD24 /AR2 中的內(nèi)容傳送到存儲器雙字MD24Date:2022-3-6File:SSP2_03C.15SIMATIC S7Siemens AG 2000. All
9、 rights reserved.Information and Training CenterKnowledge for Automation寄存器間接尋址的例子寄存器間接尋址的例子指針常數(shù)P5.0 對應(yīng)的二進制數(shù)為20000 0000 0000 0000 00000000 0010 1000。L P#5.0 /將間接尋址的指針裝入累加器1LAR1 /將累加器1 中的內(nèi)容送到地址寄存器1A MAR1, P#2.3 /AR1 中的P#5.0 加偏移量P#2.3, 實際上是對M7.3 進行操作= QAR1, P#0.2 /邏輯運算的結(jié)果送Q5.2L DBWAR1, P#18.0 /將DBW23
10、裝入累加器1區(qū)域間間接尋址L P#M6.0 /將存儲器位M6.0 的雙字指針裝入累加器1LAR1 /將累加器1 中的內(nèi)容送到地址寄存器1T WAR1, P#50.0 /將累加器1 的內(nèi)容傳送到存儲器字MW56P#M6.0 對應(yīng)的二進制數(shù)為2#1000 0011 0000 0000 0000 000000110000。因為地址指針P#M6.0 中已經(jīng)包含有區(qū)域信息,使用間接尋址的指令T WAR1, P#50中沒有必要再用地址標(biāo)識符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雙指針使用實例雙指針使用實例配方號配方號數(shù)據(jù)長度數(shù)據(jù)長度配方源區(qū)數(shù)據(jù)塊配方源區(qū)數(shù)據(jù)塊目標(biāo)目標(biāo)起始地址起始地址讀出配方目標(biāo)區(qū)數(shù)據(jù)塊讀出配方目標(biāo)區(qū)數(shù)據(jù)塊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雙指針使用實例雙指針使用實例進棧數(shù)據(jù)進棧數(shù)據(jù)堆棧區(qū)長度堆棧區(qū)長度堆棧區(qū)數(shù)
19、據(jù)塊堆棧區(qū)數(shù)據(jù)塊堆棧區(qū)清零標(biāo)志堆棧區(qū)清零標(biāo)志堆棧區(qū)數(shù)據(jù)塊堆棧區(qū)數(shù)據(jù)塊執(zhí)行條件執(zhí)行條件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實驗題實驗題要要求編制數(shù)據(jù)判斷查詢功能,輸入數(shù)據(jù)變量求編制數(shù)據(jù)判斷查詢功能
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 城市商業(yè)綜合體采購合同
- 軟件服務(wù)行業(yè)軟件測試與質(zhì)量保障方案
- 產(chǎn)品銷售及代理協(xié)議書
- 債權(quán)債務(wù)轉(zhuǎn)讓協(xié)議書
- 電焊勞務(wù)承包協(xié)議
- 公廁保潔承包合同協(xié)議書
- 自考行政管理社會熱點試題及答案
- 超市商品陳列與促銷管理方案
- 股東權(quán)益保障出資證明書(6篇)
- 農(nóng)村勞務(wù)輸出與管理服務(wù)協(xié)議
- 前列腺增生癥患者圍手術(shù)期的護理
- 五防系統(tǒng)調(diào)試報告
- 日語綜合教程第六冊 單詞表
- 在建項目雨季施工(防汛)安全隱患排查表
- 《廣東省普通高中學(xué)生檔案》模板
- GB/T 7715-2014工業(yè)用乙烯
- GB/T 40848-2021飼料原料壓片玉米
- GB/T 3715-2007煤質(zhì)及煤分析有關(guān)術(shù)語
- GB/T 2-2016緊固件外螺紋零件末端
- GB/T 12237-2021石油、石化及相關(guān)工業(yè)用的鋼制球閥
- GB/T 1094.11-2007電力變壓器第11部分:干式變壓器
評論
0/150
提交評論