




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、Date: 2022-4-28File No.:SSP1_03C.1SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationSTEP 7 編程方法編程方法Date: 2022-4-28File No.:SSP1_03C.2SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation程序結(jié)構(gòu)程序結(jié)構(gòu)STEP
2、7為設(shè)計(jì)程序提供三種方法?;谶@些方法,可以選擇最適合于你的應(yīng)用的程序設(shè)計(jì)方法為設(shè)計(jì)程序提供三種方法?;谶@些方法,可以選擇最適合于你的應(yīng)用的程序設(shè)計(jì)方法。線性化線性化模塊化模塊化結(jié)構(gòu)化結(jié)構(gòu)化線性化編程:所有的指令都在一個(gè)塊 (OB1) 內(nèi)。模塊化編程:每個(gè)設(shè)備的控制指令都在各自的塊內(nèi)。 OB1按順序調(diào)用每個(gè)塊。結(jié)構(gòu)化編程:不同的塊調(diào)用可重復(fù)利用的代碼。OB1 (或其他塊) 調(diào)用這些塊并傳遞相應(yīng)的參數(shù)。OB1OB1OB1配方 A配方 B混合器排空泵排空Date: 2022-4-28File No.:SSP1_03C.3SIMATIC S7Siemens AG 2000. All rights
3、reserved.Information and Training CenterKnowledge for Automation線性化編程線性化編程OB1Network 1Network 2Network 3電機(jī)控制電機(jī)控制信息信息取得操作的小時(shí)數(shù)取得操作的小時(shí)數(shù)Date: 2022-4-28File No.:SSP1_03C.4SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation線性編程實(shí)例線性編程實(shí)例 - - 傳送帶控制傳送帶控制Date:
4、 2022-4-28File No.:SSP1_03C.5SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation模塊化編程模塊化編程電機(jī)控制電機(jī)控制信息信息取得操作小時(shí)數(shù)取得操作小時(shí)數(shù)OB 1FC 1FC 2FC 3Date: 2022-4-28File No.:SSP1_03C.6SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowl
5、edge for Automation主程序 子塊程序處理程序處理g調(diào)用另一個(gè)塊的指令塊結(jié)束 OBFC/FB模塊化程序的執(zhí)行模塊化程序的執(zhí)行Date: 2022-4-28File No.:SSP1_03C.7SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationLT模塊化編程實(shí)例模塊化編程實(shí)例 - - 液位監(jiān)視液位監(jiān)視Date: 2022-4-28File No.:SSP1_03C.8SIMATIC S7Siemens AG 2000. All
6、rights reserved.Information and Training CenterKnowledge for Automation結(jié)構(gòu)化編程結(jié)構(gòu)化編程OB 1電機(jī)電機(jī) 1FC 1電機(jī)電機(jī) 2FC 1電機(jī)電機(jī) 3FC 1Date: 2022-4-28File No.:SSP1_03C.9SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automationab罐選擇開關(guān)撥碼開關(guān)0000成分 A成分 BLTLTLTLTLT結(jié)構(gòu)化編程實(shí)例結(jié)構(gòu)化編程實(shí)例 D
7、ate: 2022-4-28File No.:SSP1_03C.10SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation程序塊類型程序塊類型故障FBFBFBFCSFCSFBFB 帶背景數(shù)據(jù)塊陰影: OB組織塊組織塊循環(huán)定時(shí)過程OB = 組織塊FB = 功能塊FC = 功能SFB = 系統(tǒng)功能塊SFC = 系統(tǒng)功能 操作系統(tǒng)Date: 2022-4-28File No.:SSP1_03C.11SIMATIC S7Siemens AG 2000.
8、All rights reserved.Information and Training CenterKnowledge for Automation 塊類型塊類型 特性特性 組織塊 - 操作系統(tǒng)和用戶程序的接口 (OB) - 各層次的優(yōu)先級(jí) (1 26)- 局部數(shù)據(jù)堆棧中的特殊啟動(dòng)信息 功能塊 (FB) - 帶參數(shù) / 數(shù)據(jù)保持- 不帶參數(shù) / 數(shù)據(jù)保持 - 不帶參數(shù) / 數(shù)據(jù)不保持 功能 (FC) - 只傳遞一個(gè)返回值 (調(diào)用時(shí)必須分配參數(shù)) - 數(shù)據(jù)不保持 - 可帶參數(shù) 數(shù)據(jù)塊 (DB)- 結(jié)構(gòu)化,局部存儲(chǔ) (背景 DB)- 結(jié)構(gòu)化,全局?jǐn)?shù)據(jù)存儲(chǔ) (在整個(gè)程序中均有效)用戶定義的塊用戶定
9、義的塊Date: 2022-4-28File No.:SSP1_03C.12SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation塊類型塊類型 特點(diǎn)特點(diǎn) 系統(tǒng)功能- 存儲(chǔ)在CPU的操作系統(tǒng)中(SFC)- 用戶可以調(diào)用此功能 (不需要存儲(chǔ)器)系統(tǒng)功能塊- 存儲(chǔ)在CPU的操作系統(tǒng)中 (SFB)- 用戶可以調(diào)用此功能 (需要存儲(chǔ)器)系統(tǒng)數(shù)據(jù)塊- 用于組態(tài)數(shù)據(jù)和參數(shù)的數(shù)據(jù)塊 (SDB) 系統(tǒng)塊系統(tǒng)塊Date: 2022-4-28File No.:SSP1
10、_03C.13SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation數(shù)據(jù)塊類型和結(jié)構(gòu)數(shù)據(jù)塊類型和結(jié)構(gòu)數(shù)據(jù)字節(jié) 0 數(shù)據(jù)字節(jié) 81918 位CPU314中塊的大小是8K字節(jié) 數(shù)據(jù)塊提供的最大存儲(chǔ)空間依賴于CPU的型號(hào)07Date: 2022-4-28File No.:SSP1_03C.14SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKno
11、wledge for Automation調(diào)用程序塊調(diào)用程序塊調(diào)用程序塊調(diào)用程序塊被調(diào)用的塊被調(diào)用的塊(OB, FB, FC)(FB, FC, SFB, SFC)程序執(zhí)行程序執(zhí)行調(diào)用另一個(gè)塊的指令塊結(jié)束Date: 2022-4-28File No.:SSP1_03C.15SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation執(zhí)行OB1中的程序 (循環(huán)執(zhí)行)事件 (日期時(shí)間中斷、硬件中斷等) 調(diào)用其他 OB,F(xiàn)B,F(xiàn)C輸出模塊A I 0.1A I
12、0.2= Q8.0塊OB 1循環(huán)監(jiān)視時(shí)間的開始啟動(dòng)塊 (OB 100)上電后執(zhí)行一次從模塊讀信號(hào)狀態(tài),并保存到過程映象區(qū) (PII)把過程映象輸出表(PIQ) 寫到輸出模塊CPU 循環(huán)循環(huán)輸入模塊循環(huán)程序執(zhí)行循環(huán)程序執(zhí)行Date: 2022-4-28File No.:SSP1_03C.16SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation過程映象過程映象字節(jié) 0字節(jié) 1字節(jié) 2: CPU 存儲(chǔ)器區(qū)字節(jié) 0字節(jié) 1字節(jié) 2: PIIPIQ 用戶
13、程序 CPU 存儲(chǔ)器區(qū) : :A I2.0= Q4.3 : : : :11Date: 2022-4-28File No.:SSP1_03C.17SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationS7-300 模塊的編址模塊的編址PSCPUSMSMSMSMSMSMSM模塊 12 4 5 6 7 8 9 10槽號(hào)地址 0.0地址 0.7地址 1.0地址 1.7Date: 2022-4-28File No.:SSP1_03C.18SIMATIC S
14、7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation多層組態(tài)中的多層組態(tài)中的 DI/DO DI/DO 編址編址機(jī)架 0槽 1 2 3 4 5 6 7 8 9 10 11 機(jī)架 396.0 to99.7100.0 to103.7104.0 to107.7108.0 to111.7112.0 to115.7116.0 to119.7120.0 to123.7124.0 to127.7IM(接受) PS機(jī)架 264.0 to67.768.0 to70.772.0 to
15、75.776.0 to79.780.0 to83.784.0 to87.788.0 to91.792.0 to95.7IM(接受) PS機(jī)架1IM(接受) 32.0 to35.736.0 to39.744.0 to47.748.0 to51.752.0 to55.756.0 to59.760.0 to63.740.0 to43.7PS 0.0 to 3.720.0 to23.724.0 to27.728.0 to31.712.0 to15.716.0 to19.7 4.0 to 7.7 8.0 to11.7IM(發(fā)送) CPUPSDate: 2022-4-28File No.:SSP1_03C
16、.19SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationS7-300模擬量模塊的尋址模擬量模塊的尋址IM256 to270336 to350352 to366368 to382304 to318320 to334272 to286288 to302 (發(fā)送) 槽口號(hào) 2 3 4 5 6 7 8 9 10 11 384 to398400 to414432 to446448 to462464 to478480 to494496 to510416
17、to430機(jī)架機(jī)架 1R0電源模塊IM(接收) 電源模塊CPU512 to526528 to542544 to558560 to574576 to590592 to606608 to622624 to638機(jī)架機(jī)架 2IM(接收) 電源模塊機(jī)架機(jī)架 3640to654656to670672to686688 to702704 to718720 to734736 to750752 to766IM(接收) 電源模塊Date: 2022-4-28File No.:SSP1_03C.20SIMATIC S7Siemens AG 2000. All rights reserved.Information
18、and Training CenterKnowledge for AutomationS7-300培訓(xùn)設(shè)備的組成培訓(xùn)設(shè)備的組成Date: 2022-4-28File No.:SSP1_03C.21SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationS7-300 培訓(xùn)設(shè)備的組態(tài)培訓(xùn)設(shè)備的組態(tài)PS1CPU2DI 1640DI 1654DO 1668DO 16712DI 16816DO 16920AI/AO410352模塊-槽號(hào)-I/O 地址- A版
19、版(16 通道I/O 模塊)PS1CPU2DI 3240DO 3254DI8/DO868AI 27304模塊-槽號(hào)-I/O 地址- B版版(32 通道I/O 模塊)Date: 2022-4-28File No.:SSP1_03C.22SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for AutomationS7-400 培訓(xùn)設(shè)備的組成培訓(xùn)設(shè)備的組成Date: 2022-4-28File No.:SSP1_03C.23SIMATIC S7Siemens AG 2000
20、. All rights reserved.Information and Training CenterKnowledge for AutomationS7-400培訓(xùn)設(shè)備的組態(tài)培訓(xùn)設(shè)備的組態(tài) PS缺省地址:CPUDI3228181716151413121110987654321槽號(hào)DI3232DO3236DO3240AI8 1216Date: 2022-4-28File No.:SSP1_03C.24SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Auto
21、mation模擬器模擬器V0 8 1 5AI1AI2AO1AO2AI2AI1-15V.+15V-15V.+15VAI1AI2 AO1AO2VDIDO.........Date: 2022-4-28File No.:SSP1_03C.25SIMATIC S7Siemens AG 2000. All rights reserved.Information and Training CenterKnowledge for Automation傳送帶模型傳送帶模型INI 1 到 INI 3 (接近開關(guān))M 1 (電機(jī)
溫馨提示
- 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度綠色環(huán)保材料采購(gòu)預(yù)付款合同樣本
- 二零二五年度電力設(shè)施安裝工程收款合同樣本
- 二零二五年度古建筑風(fēng)格圍墻修復(fù)與施工合同
- 2025年度搬家服務(wù)與家居清潔合同
- 2025安裝合同協(xié)議書范本:數(shù)據(jù)中心基礎(chǔ)設(shè)施安裝
- 二零二五年度酒店保安及服務(wù)質(zhì)量保障合同
- 二零二五年度智慧城市規(guī)劃設(shè)計(jì)合同
- 2025版綠色辦公大樓租賃合同全新方案
- 二零二五年度安裝工人勞務(wù)與綠色建筑認(rèn)證合同范本
- 2025年度彩鋼房租賃與氣候變化適應(yīng)合同
- DB44-T 2604-2025 城鎮(zhèn)污水處理能源消耗限額
- 3-6歲兒童學(xué)習(xí)與發(fā)展指南
- 2025-2030中國(guó)鐵路牽引電動(dòng)機(jī)行業(yè)市場(chǎng)發(fā)展趨勢(shì)與前景展望戰(zhàn)略研究報(bào)告
- 2025-2030中國(guó)手機(jī)游戲棋牌行業(yè)市場(chǎng)深度調(diào)研及競(jìng)爭(zhēng)格局與投資前景研究報(bào)告
- 社區(qū)文化品牌塑造與居民認(rèn)同的動(dòng)態(tài)構(gòu)建-全面剖析
- (高清版)DB510100∕T 082-2012 成都市商務(wù)寫字樓等級(jí)劃分
- 股東內(nèi)部持股協(xié)議書
- 礦山企業(yè)管理規(guī)章制度匯編
- 2025-2030中國(guó)電力設(shè)備檢測(cè)行業(yè)市場(chǎng)深度調(diào)研及發(fā)展前景與投融資戰(zhàn)略規(guī)劃研究報(bào)告
- 2025年煤礦頂板的考試題及答案
- 爆破作業(yè)風(fēng)險(xiǎn)評(píng)估職責(zé)
評(píng)論
0/150
提交評(píng)論