版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、date: 2022-2-4file no.: ssp1_03c.1simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation第第5章章 s7-300/400軟件基礎(chǔ)軟件基礎(chǔ)date: 2022-2-4file no.: ssp1_03c.2simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation5.1
2、s7-300的數(shù)據(jù)環(huán)境的數(shù)據(jù)環(huán)境5.2 邏輯操作指令邏輯操作指令5.3 程序控制指令程序控制指令5.4 傳送和比較指令傳送和比較指令5.5 運(yùn)算指令運(yùn)算指令5.6 轉(zhuǎn)換指令轉(zhuǎn)換指令 5.7 計(jì)數(shù)器指令計(jì)數(shù)器指令5.8 計(jì)時(shí)器指令計(jì)時(shí)器指令5.9 塊操作指令塊操作指令date: 2022-2-4file no.: ssp1_03c.3simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation5.1 s7-300的數(shù)據(jù)環(huán)境的數(shù)據(jù)環(huán)境1 數(shù)據(jù)類型數(shù)據(jù)類型
3、位位 bool 例:例: true 或或 false (1 或或0) 字節(jié)字節(jié) byte 例:例: b#16#0ff 字字 word 例:例: w#16#0 ffff 雙字雙字 dword 例:例:dw#16#0ffff_ffff 整數(shù)整數(shù) int 例:例:-3276832767 雙整數(shù)雙整數(shù) dint 例:例:-214783648 214783647 實(shí)數(shù)實(shí)數(shù) real real 例:例: 1.2 或或 34.5e-12 時(shí)間時(shí)間 s5time 例:例:s5t#2h5m (時(shí)基時(shí)基 10ms) 字符字符 char 例:例:a日期日期時(shí)間時(shí)間 time_of_day time_of_day 例
4、:例:tod#12:23:45.12tod#12:23:45.12 時(shí)間時(shí)間 time 例:例:t#20h_31m_23s (時(shí)基時(shí)基 1ms)日期日期 date 例:例:d#1990-1-1 (時(shí)基時(shí)基 1天天)date: 2022-2-4file no.: ssp1_03c.4simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation說明: s5time 為為 simatic時(shí)間時(shí)間 范圍范圍 s5t#0h_0m_0s_10ms s5t#2h_4
5、6m_39s_0mstime為為 iec時(shí)間時(shí)間 范圍范圍 t#0 0 0 . 0 t#23 59 59.999time-of-day 為為 日計(jì)時(shí)日計(jì)時(shí) 范圍范圍 tod#0:0:0.0 tod#23:59:59.999date: 2022-2-4file no.: ssp1_03c.5simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation2 過程映象過程映象字節(jié) 0字節(jié) 1字節(jié) 2: cpu 存儲(chǔ)器區(qū)字節(jié) 0字節(jié) 1字節(jié) 2: piipiq
6、用戶程序 cpu 存儲(chǔ)器區(qū) : :a i2.0= q4.3 : : : :11date: 2022-2-4file no.: ssp1_03c.6simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationpscpusmsmsmsmsmsmsm模塊 12 4 5 6 7 8 9 10槽號(hào)地址 0.0地址 0.7地址 1.0地址 1.7date: 2022-2-4file no.: ssp1_03c.7simatic s7siemens ag 2000.
7、 all rights reserved.information and training centerknowledge for automation3. step 7 的可能尋址范圍的可能尋址范圍設(shè)計(jì)的地址區(qū)設(shè)計(jì)的地址區(qū) 訪問區(qū)域訪問區(qū)域 縮寫縮寫 加在一起的最大區(qū)域加在一起的最大區(qū)域過程映象過程映象 i/q 輸入 /輸出位 i / q 0.0 - 65,535.7 輸入 /輸出字節(jié) i/qb 0 - 65,535 輸入 /輸出字 i/qw 0 - 65,534 輸入 /輸出雙字 i/qd 0 - 65,532存儲(chǔ)器標(biāo)志存儲(chǔ)器標(biāo)志 存儲(chǔ)器位 m 0.0 - 255.7 存儲(chǔ)器字節(jié) mb 0
8、 - 255 存儲(chǔ)器字 mw 0 - 254 存儲(chǔ)器雙字 md 0 - 252 i/q 外部輸入外部輸入/輸出輸出 i/q 字節(jié), 外設(shè) pib/pqb 0 - 65,535 i/q 字, 外設(shè) piw/pqw 0 - 65,534 i/q 雙字, 外設(shè) pid/pqd 0 - 65,532 定時(shí)器定時(shí)器 定時(shí)器 (t) t 0 - 255計(jì)數(shù)器計(jì)數(shù)器 計(jì)數(shù)器 (c) c 0 - 255date: 2022-2-4file no.: ssp1_03c.8simatic s7siemens ag 2000. all rights reserved.information and training
9、 centerknowledge for automation設(shè)計(jì)的地址區(qū)設(shè)計(jì)的地址區(qū) 訪問區(qū)域訪問區(qū)域 縮寫縮寫 加在一起的最大區(qū)域加在一起的最大區(qū)域數(shù)據(jù)塊數(shù)據(jù)塊 數(shù)據(jù)塊 (db) db 0 - 65,535數(shù)據(jù)塊數(shù)據(jù)塊 用opn db打開 位 dbx 0.0 - 65,535.7 字節(jié) dbb 0 - 65,535 字 dbw 0 - 65,534 雙字 dbd 0 - 65,532 用opn di打開 位 dix 0.0 - 65,535.7 字節(jié) dib 0 - 65,535 字 diw 0 - 65,534 雙字 did 0 - 65,532說明:db塊包含由任意一個(gè)塊存取的數(shù)據(jù)塊包
10、含由任意一個(gè)塊存取的數(shù)據(jù).db塊用塊用“opn db”打開打開. di塊用于存取與塊用于存取與fb和和sfb塊的數(shù)據(jù)塊的數(shù)據(jù). di塊用塊用“opn di” 打開打開. s7同時(shí)只能識(shí)別一個(gè)同時(shí)只能識(shí)別一個(gè)db塊和一個(gè)塊和一個(gè)di塊的數(shù)據(jù)塊的數(shù)據(jù).date: 2022-2-4file no.: ssp1_03c.9simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation5.2 邏輯操作指令邏輯操作指令1. 位邏輯指令位邏輯指令(1)基本邏輯指令:)
11、基本邏輯指令:與與, , 或或date: 2022-2-4file no.: ssp1_03c.10simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation(2)基本邏輯指令:異或)基本邏輯指令:異或 (xor)date: 2022-2-4file no.: ssp1_03c.11simatic s7siemens ag 2000. all rights reserved.information and training centerknowled
12、ge for automation 異或異或 (xor(xor)指令練習(xí):指令練習(xí):date: 2022-2-4file no.: ssp1_03c.12simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation(3)常開和常閉觸點(diǎn),傳感器和符號(hào))常開和常閉觸點(diǎn),傳感器和符號(hào)date: 2022-2-4file no.: ssp1_03c.13simatic s7siemens ag 2000. all rights reserved.informa
13、tion and training centerknowledge for automation 常開常閉觸點(diǎn)練習(xí)常開常閉觸點(diǎn)練習(xí)date: 2022-2-4file no.: ssp1_03c.14simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation與或非操作練習(xí)與或非操作練習(xí)date: 2022-2-4file no.: ssp1_03c.15simatic s7siemens ag 2000. all rights reserved.in
14、formation and training centerknowledge for automation(4)賦值,置位,復(fù)位)賦值,置位,復(fù)位date: 2022-2-4file no.: ssp1_03c.16simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation 置位復(fù)位操作練習(xí)置位復(fù)位操作練習(xí)date: 2022-2-4file no.: ssp1_03c.17simatic s7siemens ag 2000. all rights
15、reserved.information and training centerknowledge for automation(5 5)觸發(fā)器的置位)觸發(fā)器的置位 / / 復(fù)位復(fù)位date: 2022-2-4file no.: ssp1_03c.18simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation置位復(fù)位觸發(fā)器練習(xí)置位復(fù)位觸發(fā)器練習(xí)date: 2022-2-4file no.: ssp1_03c.19simatic s7siemens a
16、g 2000. all rights reserved.information and training centerknowledge for automation(6)中間輸出操作中間輸出操作ladi 1.0i 1.1( )m0.0i 2.0i 2.1( )m 1.1not( )q 4.0ai1.0ai1.1=m 0.0am 0.0ai2.0ai2.1not=m 1.1am 1.1=q 4.0stli 1.0i 1.1&i 2.0i 2.1m0.0m1.1q 4.0=fbddate: 2022-2-4file no.: ssp1_03c.20simatic s7siemens ag
17、 2000. all rights reserved.information and training centerknowledge for automation中間輸出操作練習(xí)中間輸出操作練習(xí)date: 2022-2-4file no.: ssp1_03c.21simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation(7 7) rlo - rlo - 邊沿檢測(cè)邊沿檢測(cè) ( (檢測(cè)確檢測(cè)確 i1.0 i1.0與與i1.1i1.1的邊沿的邊沿) )
18、pi1.0i1.1m1.0m8.0ni1.0i1.1m1.1m8.1ladi1.0i1.1p=&m1.0m8.0i1.0i1.1n=&m1.1m8.1fbdai1.0 ai1.1fpm1.0=m8.0a i 1.0ai 1.1fnm1.1=m8.1stli1.0i1.1rlom1.0m8.0m8.1m1.1ob1-循環(huán)例如date: 2022-2-4file no.: ssp1_03c.22simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for aut
19、omation(8 8)信號(hào))信號(hào) - - 邊沿檢測(cè)邊沿檢測(cè) (i1.0=1 (i1.0=1 時(shí)時(shí) 檢測(cè)檢測(cè) i1.1i1.1的邊沿的邊沿) )i1.1=m8.0posm_bitm1.0&i1.0i1.1=m8.1negm_bitm1.1&i1.0fbdai1.0 a ( a i1.1fpm1.0)=m8.0ai1.0a(ai1.1fnm1.1)=m8.1stli1.1m8.0posm_bitm1.0qi1.0i1.1m8.1negm_bitm1.1qi1.0lad例如i1.0i1.1m1.0m8.0m8.1m1.1ob1-周期date: 2022-2-4file no.: s
20、sp1_03c.23simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation2 計(jì)數(shù)器線圈操作計(jì)數(shù)器線圈操作加計(jì)數(shù)加計(jì)數(shù)線圈線圈cu減計(jì)數(shù)減計(jì)數(shù)線圈線圈cd i0.0為置數(shù)脈沖為置數(shù)脈沖 i0.1為加計(jì)數(shù)脈沖為加計(jì)數(shù)脈沖 i0.2為減計(jì)數(shù)脈沖為減計(jì)數(shù)脈沖cv=0時(shí)時(shí) c5=offcv 0時(shí) c5=onq0.5=c5i1.0 =on時(shí),時(shí),i0.0=on時(shí)時(shí)cv=10。 i0.1脈沖使計(jì)數(shù)加脈沖使計(jì)數(shù)加1 i0.2脈沖使計(jì)數(shù)減脈沖使計(jì)數(shù)減1date:
21、 2022-2-4file no.: ssp1_03c.24simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation3 計(jì)時(shí)器線圈操作計(jì)時(shí)器線圈操作脈沖計(jì)時(shí)器(脈沖計(jì)時(shí)器( sp )i1.0 =on時(shí)時(shí)擴(kuò)展脈沖計(jì)時(shí)器(擴(kuò)展脈沖計(jì)時(shí)器( se )i1.0 =on時(shí)時(shí)計(jì)時(shí)器的數(shù)據(jù)格式:計(jì)時(shí)器的數(shù)據(jù)格式:date: 2022-2-4file no.: ssp1_03c.25simatic s7siemens ag 2000. all rights res
22、erved.information and training centerknowledge for automation開通延時(shí)計(jì)時(shí)器(開通延時(shí)計(jì)時(shí)器( sd )i1.0 =on時(shí)時(shí)保持型開通延時(shí)計(jì)時(shí)器(保持型開通延時(shí)計(jì)時(shí)器( ss )i1.0 =on時(shí)時(shí)關(guān)斷延時(shí)計(jì)時(shí)器(關(guān)斷延時(shí)計(jì)時(shí)器( sf )i1.0 =on時(shí)時(shí)date: 2022-2-4file no.: ssp1_03c.26simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation5.3
23、 程序控制指令程序控制指令(1)主控繼電器功能主控繼電器功能date: 2022-2-4file no.: ssp1_03c.27simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation主控繼電器(主控繼電器(mcr)是梯形邏輯主控開關(guān),控制信號(hào)流的通斷。)是梯形邏輯主控開關(guān),控制信號(hào)流的通斷。主控繼電器的啟動(dòng)指令(主控繼電器的啟動(dòng)指令(mcra)主控繼電器的開通指令(主控繼電器的開通指令(mcr)主控繼電器的停止指令(主控繼電器的停止指令(mcr
24、d)date: 2022-2-4file no.: ssp1_03c.28simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation主控繼電器的例子主控繼電器的例子1i0.0=on 執(zhí)行執(zhí)行“mcr”之間的指令。之間的指令。i0.0=off 不執(zhí)行不執(zhí)行“mcr”之間的指令。之間的指令。其中置位信號(hào)不變,其中置位信號(hào)不變, 賦值信號(hào)被復(fù)位。賦值信號(hào)被復(fù)位。date: 2022-2-4file no.: ssp1_03c.29simatic s7sie
25、mens ag 2000. all rights reserved.information and training centerknowledge for automation主控繼電器的例子主控繼電器的例子2date: 2022-2-4file no.: ssp1_03c.30simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation(2)無條件跳轉(zhuǎn)無條件跳轉(zhuǎn)指令指令date: 2022-2-4file no.: ssp1_03c.31simat
26、ic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation(3)條件跳轉(zhuǎn)條件跳轉(zhuǎn)指令指令date: 2022-2-4file no.: ssp1_03c.32simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation跳轉(zhuǎn)跳轉(zhuǎn)指令練習(xí)指令練習(xí) (跳過之處不掃描)date: 2022-2-4file no.: ssp1_
27、03c.33simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation5.4 傳送和比較指令傳送和比較指令傳送指令傳送指令 字節(jié),字,雙字字節(jié),字,雙字傳送。傳送。比較指令比較指令整數(shù),雙整數(shù),實(shí)數(shù)比較。整數(shù),雙整數(shù),實(shí)數(shù)比較。比較符比較符:eq_i, ne_i, gt_i,eq_i, ne_i, gt_i,lt_i, ge_i, le_i.lt_i, ge_i, le_i.eq_d, ne_d, gt_d,eq_d, ne_d, gt_d,lt_d
28、, ge_d, le_d.lt_d, ge_d, le_d.eq_r, ne_r, gt_r,eq_r, ne_r, gt_r,lt_r, ge_r, le_r.lt_r, ge_r, le_r.date: 2022-2-4file no.: ssp1_03c.34simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation5.5 運(yùn)算指令運(yùn)算指令整數(shù)運(yùn)算整數(shù)運(yùn)算運(yùn)算符:運(yùn)算符:add_i. sub_i.mul_i. div_i.add_di. sub
29、_di.mul_di. div_di, mod_di.實(shí)數(shù)運(yùn)算實(shí)數(shù)運(yùn)算運(yùn)算符:運(yùn)算符:add_r. sub_r. mul_r. div_r.sin, cos,tan,asin, acos, atan,ln, expdate: 2022-2-4file no.: ssp1_03c.35simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation5.6 轉(zhuǎn)換指令轉(zhuǎn)換指令bcd碼與整數(shù)轉(zhuǎn)換碼與整數(shù)轉(zhuǎn)換 bcd_i把通道中把通道中的的bcd碼碼轉(zhuǎn)換為整數(shù)存轉(zhuǎn)換
30、為整數(shù)存入入通道通道中。中。 i_ bcd把通道中的把通道中的整數(shù)轉(zhuǎn)換為整數(shù)轉(zhuǎn)換為bcd碼碼存入存入通道通道中。中。雙整數(shù)與實(shí)數(shù)轉(zhuǎn)換雙整數(shù)與實(shí)數(shù)轉(zhuǎn)換di _rroundbcd_di, di _ bcd ,i _ di , di _i 。date: 2022-2-4file no.: ssp1_03c.36simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation5.7 計(jì)數(shù)器指令計(jì)數(shù)器指令雙向計(jì)數(shù)器雙向計(jì)數(shù)器i0.0為加計(jì)數(shù)脈沖為加計(jì)數(shù)脈沖i0.1為
31、減計(jì)數(shù)脈沖為減計(jì)數(shù)脈沖i0.2為置數(shù)脈沖為置數(shù)脈沖i0.3為復(fù)位脈沖為復(fù)位脈沖cv0時(shí),時(shí),c0=on。向上計(jì)數(shù)器向上計(jì)數(shù)器i0.0為加計(jì)數(shù)脈沖為加計(jì)數(shù)脈沖i0.1為置數(shù)脈沖為置數(shù)脈沖i0.2為復(fù)位脈沖為復(fù)位脈沖cv0時(shí),時(shí),c0=on。date: 2022-2-4file no.: ssp1_03c.37simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation向下計(jì)數(shù)器向下計(jì)數(shù)器i0.3為減計(jì)數(shù)脈沖為減計(jì)數(shù)脈沖i0.4為置數(shù)脈沖為置數(shù)脈沖i0.5
32、為復(fù)位脈沖為復(fù)位脈沖cv0時(shí),時(shí),c0=on。說明:梯形圖中梯形圖中cv為用十六進(jìn)制表示的計(jì)數(shù)器的當(dāng)前值。為用十六進(jìn)制表示的計(jì)數(shù)器的當(dāng)前值。梯形圖中梯形圖中cv_ bcd為用為用bcd碼表示的計(jì)數(shù)器的當(dāng)前值。碼表示的計(jì)數(shù)器的當(dāng)前值。梯形圖中的梯形圖中的pv值可以用值可以用bcd碼表示的數(shù)值由通道送入。碼表示的數(shù)值由通道送入。date: 2022-2-4file no.: ssp1_03c.38simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation
33、5.8 計(jì)時(shí)器指令計(jì)時(shí)器指令脈沖計(jì)時(shí)器(脈沖計(jì)時(shí)器(sp)擴(kuò)展脈沖計(jì)時(shí)器(擴(kuò)展脈沖計(jì)時(shí)器(se)date: 2022-2-4file no.: ssp1_03c.39simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation開通延時(shí)計(jì)時(shí)器(開通延時(shí)計(jì)時(shí)器(sd)保持型開通延時(shí)計(jì)時(shí)器(保持型開通延時(shí)計(jì)時(shí)器(ss)date: 2022-2-4file no.: ssp1_03c.40simatic s7siemens ag 2000. all right
34、s reserved.information and training centerknowledge for automation關(guān)斷延時(shí)計(jì)時(shí)器(關(guān)斷延時(shí)計(jì)時(shí)器(sf)說明:梯形圖中梯形圖中bi為用十六進(jìn)制表示的計(jì)數(shù)器的當(dāng)前值。為用十六進(jìn)制表示的計(jì)數(shù)器的當(dāng)前值。梯形圖中梯形圖中 bcd為用為用bcd碼表示的計(jì)數(shù)器的當(dāng)前值。碼表示的計(jì)數(shù)器的當(dāng)前值。梯形圖中的梯形圖中的tv值可以用值可以用bcd碼表示的數(shù)值由通道送入。碼表示的數(shù)值由通道送入。date: 2022-2-4file no.: ssp1_03c.41simatic s7siemens ag 2000. all rights reser
35、ved.information and training centerknowledge for automation5.9 塊操作指令塊操作指令1 溫度控制(溫度控制(s7-pro1)說明:檢測(cè)溫度在說明:檢測(cè)溫度在piw256中,顯示在中,顯示在pqw368中。中。 溫控溫控1的溫度保持在的溫度保持在82,控制器為控制器為q 0.0 。 溫控溫控2的溫度保持在的溫度保持在182,控制器為控制器為q 0.1 。設(shè)計(jì):設(shè)計(jì):ob1為主程序,負(fù)責(zé)調(diào)用控制程序?yàn)橹鞒绦?,?fù)責(zé)調(diào)用控制程序fc1。 db1和和db2為通用數(shù)據(jù)塊。為通用數(shù)據(jù)塊。 其中其中db1為溫控為溫控1的控制參數(shù)數(shù)據(jù)塊。的控制參數(shù)數(shù)
36、據(jù)塊。 db2為溫控為溫控2的控制參數(shù)數(shù)據(jù)塊。的控制參數(shù)數(shù)據(jù)塊。date: 2022-2-4file no.: ssp1_03c.42simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationdb塊:塊:db1db2date: 2022-2-4file no.: ssp1_03c.43simatic s7siemens ag 2000. all rights reserved.information and training centerknowle
37、dge for automationfc塊:塊:fc1date: 2022-2-4file no.: ssp1_03c.44simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationob塊:塊:ob1date: 2022-2-4file no.: ssp1_03c.45simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for
38、automation運(yùn)行仿真:運(yùn)行仿真:溫控溫控1控制仿真控制仿真溫控溫控2控制仿真控制仿真date: 2022-2-4file no.: ssp1_03c.46simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation2 溫度控制(溫度控制(s7-pro2)說明:檢測(cè)溫度在說明:檢測(cè)溫度在piw256中,顯示在中,顯示在pqw368中。中。 溫控溫控1的溫度保持在的溫度保持在82,控制器為控制器為q 0.0 。 溫控溫控2的溫度保持在的溫度保持在1
39、82,控制器為控制器為q 0.1 。設(shè)計(jì):設(shè)計(jì):ob1為主程序,負(fù)責(zé)調(diào)用控制程序?yàn)橹鞒绦颍?fù)責(zé)調(diào)用控制程序fb1。 db1和和db2為為fb1型數(shù)據(jù)塊。型數(shù)據(jù)塊。 其中其中db1為溫控為溫控1的控制參數(shù)數(shù)據(jù)塊。的控制參數(shù)數(shù)據(jù)塊。 db2為溫控為溫控2的控制參數(shù)數(shù)據(jù)塊。的控制參數(shù)數(shù)據(jù)塊。date: 2022-2-4file no.: ssp1_03c.47simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationfb塊:塊:fb1date: 2022-
40、2-4file no.: ssp1_03c.48simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationdb塊:塊:db1db2date: 2022-2-4file no.: ssp1_03c.49simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationob塊:塊:ob1date: 2022-2-4fi
41、le no.: ssp1_03c.50simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation運(yùn)行仿真:運(yùn)行仿真:溫控溫控1控制仿真控制仿真溫控溫控2控制仿真控制仿真date: 2022-2-4file no.: ssp1_03c.51simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automation3溫度控制(
42、溫度控制(s7-pro3)說明:檢測(cè)溫度在說明:檢測(cè)溫度在piw256中,顯示在中,顯示在pqw368中。中。 溫控溫控1的溫度保持在的溫度保持在82,控制器為控制器為q 0.0 。 溫控溫控2的溫度保持在的溫度保持在182,控制器為控制器為q 0.2 。 溫控溫控3的溫度保持在的溫度保持在282,控制器為控制器為q 0.4 。設(shè)計(jì):設(shè)計(jì):ob1為主程序,負(fù)責(zé)調(diào)用控制程序?yàn)橹鞒绦颍?fù)責(zé)調(diào)用控制程序fb1和和fc1。 db1和和db2為為fb1型數(shù)據(jù)塊。型數(shù)據(jù)塊。 其中其中db1為溫控為溫控1的控制參數(shù)數(shù)據(jù)塊。的控制參數(shù)數(shù)據(jù)塊。 db2為溫控為溫控2的控制參數(shù)數(shù)據(jù)塊。的控制參數(shù)數(shù)據(jù)塊。 db3為
43、通用數(shù)據(jù)塊,為溫控為通用數(shù)據(jù)塊,為溫控3的控制參數(shù)。的控制參數(shù)。 fb1控制溫度控制溫度1,2。fc1控制溫度控制溫度3 。date: 2022-2-4file no.: ssp1_03c.52simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationfc塊:塊:fc1date: 2022-2-4file no.: ssp1_03c.53simatic s7siemens ag 2000. all rights reserved.informatio
44、n and training centerknowledge for automationfb塊:塊:fb1date: 2022-2-4file no.: ssp1_03c.54simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationdb塊:塊:db1db2date: 2022-2-4file no.: ssp1_03c.55simatic s7siemens ag 2000. all rights reserved.information and
45、 training centerknowledge for automationdb3date: 2022-2-4file no.: ssp1_03c.56simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationob塊:塊:ob1date: 2022-2-4file no.: ssp1_03c.57simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for automationob1續(xù)續(xù)運(yùn)行仿真:運(yùn)行仿真:i0.0,i0.1=on: piw25610 q0.0=off.i0.2,i0.3=on: piw25620 q0.2=off.i0.3,i0.4=on: piw25630 q0.4=off.date: 2022-2-4file no.: ssp1_03c.58simatic s7siemens ag 2000. all rights reserved.information and training centerknowledge for a
溫馨提示
- 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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 生物醫(yī)藥套筒連接施工協(xié)議
- 住宅小區(qū)門禁系統(tǒng)安裝與維護(hù)合同
- 文化傳播公司法務(wù)聘用合同
- 珠寶首飾售后保養(yǎng)專員合同
- 機(jī)床及金屬加工展租賃合同
- 影視制作中標(biāo)合作協(xié)議
- 木材配送貨車司機(jī)招聘合同
- 2024年戰(zhàn)略合作伙伴關(guān)系合同
- 美術(shù)創(chuàng)作實(shí)踐培訓(xùn)室租賃合同
- 公辦幼兒園兼職司機(jī)招聘協(xié)議
- 2024年企業(yè)數(shù)據(jù)存儲(chǔ)與安全服務(wù)合同
- 2022年北京市公務(wù)員錄用考試《行測(cè)》真題及答案解析
- 江蘇省泰興市2024-2025學(xué)年高三上學(xué)期期中考試語文試題(含答案)
- 家長(zhǎng)會(huì)教學(xué)課件
- 律師事務(wù)所律師事務(wù)所風(fēng)險(xiǎn)管理手冊(cè)
- 靜脈曲張的護(hù)理查房課件
- 2024年消防宣傳月知識(shí)競(jìng)賽考試題庫500題(含答案)
- 2024年典型事故案例警示教育手冊(cè)15例
- 高一歷史(中外歷史綱要上冊(cè))期中測(cè)試卷及答案
- 20K607 防排煙及暖通防火設(shè)計(jì)審查與安裝
- 一氧化碳中毒培訓(xùn)課件
評(píng)論
0/150
提交評(píng)論