塊結(jié)構(gòu)和塊編輯ppt課件_第1頁
塊結(jié)構(gòu)和塊編輯ppt課件_第2頁
塊結(jié)構(gòu)和塊編輯ppt課件_第3頁
塊結(jié)構(gòu)和塊編輯ppt課件_第4頁
塊結(jié)構(gòu)和塊編輯ppt課件_第5頁
已閱讀5頁,還剩21頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、Date:2022-5-9File:Blocks.1SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives塊構(gòu)造和塊編輯塊構(gòu)造和塊編輯OB 1FBFCFBFBFBFBFCFBFCDate:2022-5-9File:Blocks.2SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives目的學(xué)習(xí)了本章之后,他將學(xué)習(xí)了本章之后,他將 .了解不同類型的了解不

2、同類型的S7塊塊.懂得懂得“構(gòu)造化編程的原理構(gòu)造化編程的原理 .了解過程映像的意義了解過程映像的意義(PII, PIQ).可以解釋循環(huán)程序執(zhí)行的原理可以解釋循環(huán)程序執(zhí)行的原理.了解并可以選擇了解并可以選擇STEP7編程言語編程言語 - LAD, FBD 和和 STL .可以運(yùn)用可以運(yùn)用LAD/STL/FBD編輯器編輯、存盤并下裝編輯器編輯、存盤并下裝S7邏輯塊到邏輯塊到CPU.可以用可以用“塊監(jiān)視測(cè)試功能進(jìn)展簡單程序調(diào)試塊監(jiān)視測(cè)試功能進(jìn)展簡單程序調(diào)試.可以設(shè)置可以設(shè)置LAD/STL/FBD編輯器編輯器Date:2022-5-9File:Blocks.3SIMATIC S7Siemens AG

3、2003. All rights reserved.SITRAIN Training for Automation and Drives缺點(diǎn) OB組織塊組織塊循環(huán)定時(shí)過程程序塊類型程序塊類型操作系統(tǒng)FCSFCFB 帶背景數(shù)據(jù)塊圖例:OB = 組織塊FB = 功能塊FC = 功能SFB = 系統(tǒng)功能塊SFC = 系統(tǒng)功能 DB= 數(shù)據(jù)塊FBFCFBFBDBDBSFB最大嵌套深度:S7-300:8(16對(duì)CPU 318)S7-400:24(2 至 4 個(gè)附加級(jí)給缺點(diǎn) OB, 對(duì)每一個(gè)優(yōu)先級(jí))Date:2022-5-9File:Blocks.4SIMATIC S7Siemens AG 2003. A

4、ll rights reserved.SITRAIN Training for Automation and Drives程序構(gòu)造程序構(gòu)造分塊程序分塊程序構(gòu)造化程序構(gòu)造化程序一切的指令都放在一個(gè)一切的指令都放在一個(gè)塊中塊中 (通常是組織塊通常是組織塊OB 1) 單一功能的指令放在單一的塊單一功能的指令放在單一的塊中,中,OB1調(diào)用這些單獨(dú)的塊調(diào)用這些單獨(dú)的塊可反復(fù)運(yùn)用的功能裝入單個(gè)塊中,OB 1 (或其他塊) 調(diào)用這些塊并傳送相關(guān)數(shù)據(jù)。OB 1OB 1Recipe ARecipe BMixerOutletOB 1PumpOutlet線性化程序線性化程序Date:2022-5-9File:Blo

5、cks.5SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives過程映象過程映象字節(jié) 0字節(jié) 1字節(jié) 2:CPU存儲(chǔ)器區(qū)字節(jié) 0字節(jié) 1字節(jié) 2: PIIPIQ 用戶程序CPU存儲(chǔ)器區(qū) : :A I2.0= Q4.3 : : : :11I 2.0S 1K 1Q 4.3Date:2022-5-9File:Blocks.6SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation

6、 and Drives循環(huán)程序執(zhí)行循環(huán)程序執(zhí)行執(zhí)行OB1中的程序 (循環(huán)執(zhí)行)事件 (日期時(shí)間中斷、硬件中斷等) 調(diào)用其他 OB,F(xiàn)B,F(xiàn)C輸出模塊A I 0.1A I 0.2= Q4.0塊OB 1循環(huán)監(jiān)視時(shí)間的開場(chǎng)啟動(dòng)塊 (OB 100)上電后執(zhí)行一次從模塊讀信號(hào)形狀,并保管到過程映象區(qū) (PII)把過程映象輸出表(PIQ) 寫到輸出模塊CPU 循環(huán)循環(huán)輸入模塊Date:2022-5-9File:Blocks.7SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives插入

7、插入S7 S7 塊塊Date:2022-5-9File:Blocks.8SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and DrivesLAD/STL/FBD編輯器編輯器聲明表聲明表代碼部分代碼部分細(xì)節(jié)窗口細(xì)節(jié)窗口Date:2022-5-9File:Blocks.9SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and DrivesSTEP7 編程言語編程言語AI 0.0A

8、I 0.1= Q8.0STL&Q8.0=I 0.0I 0.1FBDI 0.0I 0.1Q8.0LADDate:2022-5-9File:Blocks.10SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives選擇編程言語選擇編程言語Date:2022-5-9File:Blocks.11SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives用用

9、 LAD/FBD 編程編程Date:2022-5-9File:Blocks.12SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives用用 STL 編程編程Date:2022-5-9File:Blocks.13SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives塊的保管塊的保管帶有塊稱號(hào)的當(dāng)前工程途徑Date:2022-5-9File:Blocks

10、.14SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives在在OB1中調(diào)用塊中調(diào)用塊Date:2022-5-9File:Blocks.15SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives下載塊到下載塊到 PLC Date:2022-5-9File:Blocks.16SIMATIC S7Siemens AG 2003. All rights r

11、eserved.SITRAIN Training for Automation and Drives簡單程序調(diào)試簡單程序調(diào)試Date:2022-5-9File:Blocks.17SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives下載和保管修正的塊下載和保管修正的塊翻開在線保管下載翻開離線Date:2022-5-9File:Blocks.18SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training f

12、or Automation and Drives練習(xí)練習(xí): 電機(jī)點(diǎn)動(dòng)電機(jī)點(diǎn)動(dòng) (FC 16)Date:2022-5-9File:Blocks.19SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives練習(xí)練習(xí):在在 OB 1中調(diào)用中調(diào)用 FC 16Date:2022-5-9File:Blocks.20SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Driv

13、es假設(shè)他想知道更多假設(shè)他想知道更多Date:2022-5-9File:Blocks.21SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives編輯器用戶設(shè)置:編輯器用戶設(shè)置:“General標(biāo)簽標(biāo)簽Date:2022-5-9File:Blocks.22SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives編輯器用戶設(shè)置:編輯器用戶設(shè)置:“View標(biāo)

14、簽標(biāo)簽Date:2022-5-9File:Blocks.23SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives編輯器用戶設(shè)置:編輯器用戶設(shè)置:“STL標(biāo)簽標(biāo)簽Date:2022-5-9File:Blocks.24SIMATIC S7Siemens AG 2003. All rights reserved.SITRAIN Training for Automation and Drives編輯器用戶設(shè)置:編輯器用戶設(shè)置:“LAD/FBD標(biāo)簽標(biāo)簽Date:2022-5-9File:Blocks.25SIMATIC S7Siemens AG 2003. All rights reserved.

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論