---
# System prepended metadata

title: S7 - 1200 1500 程式撰寫
tags: [PLC, Seimens]

---

# S7 - 1200 1500 程式撰寫

[PLC 初始必要設定-暖啟動RUN 及 系統與時鐘儲存器](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=3953s)
[說明 PLC 初始必要設定-IP 暖啟動RUN 及 系統與時鐘儲存器](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=4184s)
[AND OR XOR 真值表](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=4264s)
[在PLC程式試 位元邏輯&amp; (AND)](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=4330s)
[在PLC程式試 位元邏輯 ＞=1 (OR)](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=4608s)
[在PLC程式試 位元邏輯x (XOR)](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=4788s)
[NAND NOR NXOR 在PLC程式試](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=5143s)
[真值表反推邏輯 (自保迴路)(斷路優先)](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=5353s)
[真值表反推邏輯 在PLC程式試](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=5591s)
[結合律 分配律 來簡化邏輯式](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=5713s)
[簡化邏輯式 在PLC程式試](https://www.youtube.com/watch?v=SQWFrC7v60Q&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=1&amp;t=5947s)
[自保迴路 啟動優先 真值表](https://www.youtube.com/watch?v=Wh_ZIpZ54NE&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=2&amp;t=356s)
[自保迴路 啟動優先 卡諾圖](https://www.youtube.com/watch?v=Wh_ZIpZ54NE&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=2&amp;t=464s)
[自保迴路 啟動優先 輸入PLC模擬](https://www.youtube.com/watch?v=Wh_ZIpZ54NE&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=2&amp;t=1456s)
[SET RESET](https://www.youtube.com/watch?v=Wh_ZIpZ54NE&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=2&amp;t=1567s)
[SR RS 自保便利指令](https://www.youtube.com/watch?v=Wh_ZIpZ54NE&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=2&amp;t=2386s)
[PLC的程序執行](https://www.youtube.com/watch?v=Wh_ZIpZ54NE&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=2&amp;t=5732s)
[初次掃描執行一次](https://www.youtube.com/watch?v=Wh_ZIpZ54NE&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=2&amp;t=5837s)
[四開關控制一盞燈-習題1](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=117s)
[四開關控制一盞燈-程式前置準備](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=200s)
[四開關控制一盞燈-開始撰寫-基本未簡化版](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=289s)
[四開關控制一盞燈-布林代數化簡](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=512s)
[四開關控制一盞燈-簡化版](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=746s)
[四開關控制一盞燈-卡諾圖解法](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=856s)
[四開關控制一盞燈-包成FC](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=1139s)
[輸出 和函式內變數關係](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=1637s)
[微分訊號 用 A B 及線圈來做-習題2](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=1734s)
[微分訊號 用 A B 及線圈來做-開始撰寫](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=1756s)
[微分 相關 指令介紹](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=1901s)
[ALT 單ON雙OFF-習題3](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=2307s)
[PULSE 不同指令寫法 不同用途](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=2374s)
[ALT 單ON雙OFF-各種解法](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=2497s)
[ALT 單ON雙OFF-包成FC](https://www.youtube.com/watch?v=LhgvjczTPwo&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=3&amp;t=3369s)
[Factory IO project from A to B](https://www.youtube.com/watch?v=KfM5MA_sx5Y&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=4&amp;t=0s)
[Factory IO project from A to B 寫手動啟動](https://www.youtube.com/watch?v=KfM5MA_sx5Y&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=4&amp;t=1456s)
[project from A to B 加手自動邏輯](https://www.youtube.com/watch?v=KfM5MA_sx5Y&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=4&amp;t=2300s)
[Factory IO project 2 From A to B (Set and Reset) 介紹](https://www.youtube.com/watch?v=KfM5MA_sx5Y&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=4&amp;t=3085s)
[Factory IO project 2 From A to B (Set and Reset) 設定](https://www.youtube.com/watch?v=KfM5MA_sx5Y&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=4&amp;t=3335s)
[Factory IO project 2 From A to B (Set and Reset) 手動控制](https://www.youtube.com/watch?v=KfM5MA_sx5Y&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=4&amp;t=3464s)
[Factory IO project 2 From A to B (Set and Reset) 自動控制](https://www.youtube.com/watch?v=KfM5MA_sx5Y&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=4&amp;t=3594s)
[Factory IO project 2 From A to B (Set and Reset) 自動程式](https://www.youtube.com/watch?v=eayUUca3ulg&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=5&amp;t=0s)
[Factory IO 空專案 練習 上下微分的概念](https://www.youtube.com/watch?v=eayUUca3ulg&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=5&amp;t=187s)
[警報(Error)及確認(Ack)用FB做 邏輯說明](https://www.youtube.com/watch?v=spNtluiAvp8&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=6&amp;t=4375s)
[警報(Error)及確認(Ack)用FB做 程式撰寫 (微分訊號狀態要放在Static)](https://www.youtube.com/watch?v=spNtluiAvp8&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=6&amp;t=4652s)
[用FB才有靜態變數 FC沒有](https://www.youtube.com/watch?v=spNtluiAvp8&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=6&amp;t=5166s)
[警報(Error)及確認(Ack)用FB做 程式撰寫 用SR改寫](https://www.youtube.com/watch?v=spNtluiAvp8&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=6&amp;t=5202s)
[全局變數 VS 區域變數 的 名稱 (Tags) 表示不同](https://www.youtube.com/watch?v=spNtluiAvp8&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=6&amp;t=5527s)
[樓層燈控](https://www.youtube.com/watch?v=RUKOS-DICvQ&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=7&amp;t=1297s)
[樓層燈控 程式撰寫](https://www.youtube.com/watch?v=RUKOS-DICvQ&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=7&amp;t=1382s)
[Factory IO Basic Sort](https://www.youtube.com/watch?v=RUKOS-DICvQ&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=7&amp;t=2274s)
[Factory IO sort height basic 程式撰寫](https://www.youtube.com/watch?v=p0GV0NsF00Y&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=8&amp;t=0s)
[Factory IO counter 說明動作邏輯](https://www.youtube.com/watch?v=kgDyxALwXnI&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=9&amp;t=1620s)
[Timer 練習1](https://www.youtube.com/watch?v=kgDyxALwXnI&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=9&amp;t=3027s)
[Timer 練習2](https://www.youtube.com/watch?v=kgDyxALwXnI&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=9&amp;t=3059s)
[Timer 練習3](https://www.youtube.com/watch?v=kgDyxALwXnI&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=9&amp;t=3146s)
[Timer 練習4](https://www.youtube.com/watch?v=kgDyxALwXnI&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=9&amp;t=3200s)
[Timer 練習 程式撰寫 (線圈)](https://www.youtube.com/watch?v=kgDyxALwXnI&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=9&amp;t=3637s)
[Timer 練習 程式撰寫 (FB)](https://www.youtube.com/watch?v=kgDyxALwXnI&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=9&amp;t=3637s)
[順序開關 (先開後關 後開先關) 說明 常用在 油壓控制閥及泵 天車馬達及煞車](https://www.youtube.com/watch?v=CrnYMfZF_o4&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=10&amp;t=0s)
[順序開關 (先開後關 後開先關) 程式撰寫(FB) 使用PLCSIM模擬](https://www.youtube.com/watch?v=CrnYMfZF_o4&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=10&amp;t=354s)
[順序開關 (先開後關 後開先關) 程式撰寫(線圈)](https://www.youtube.com/watch?v=CrnYMfZF_o4&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=10&amp;t=924s)
[時間累計斷電紀錄 M 程式訊息 電池點開](https://www.youtube.com/watch?v=CrnYMfZF_o4&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=10&amp;t=1431s)
[時間累計斷電紀錄 DB 保持打勾](https://www.youtube.com/watch?v=CrnYMfZF_o4&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=10&amp;t=2101s)
[時間累計斷電紀錄 計時器 及 稼動率](https://www.youtube.com/watch?v=CrnYMfZF_o4&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=10&amp;t=2250s)
[時間累計斷電紀錄 計時器 程式撰寫](https://www.youtube.com/watch?v=CrnYMfZF_o4&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=10&amp;t=2527s)
[紅黃綠順序燈  程式撰寫](https://www.youtube.com/watch?v=CrnYMfZF_o4&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=10&amp;t=2700s)
[Factory IO filling tank](https://www.youtube.com/watch?v=CrnYMfZF_o4&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=10&amp;t=2770s)
[Factory IO filling tank  程式撰寫](https://www.youtube.com/watch?v=CrnYMfZF_o4&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=10&amp;t=3241s)
[Factory IO - Pick &amp; Place (Basic) 基本設定](https://www.youtube.com/watch?v=9QEJIiaOtzs&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=11&amp;t=1s)
[Factory IO - Pick &amp; Place (Basic) 手動動作 程式撰寫 及 交叉引用查位址重複導致的問題](https://www.youtube.com/watch?v=9QEJIiaOtzs&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=11&amp;t=307s)
[Factory IO - Pick &amp; Place (Basic) 關鍵功能區塊 程式說明](https://www.youtube.com/watch?v=9QEJIiaOtzs&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=11&amp;t=717s)
[Factory IO - Pick &amp; Place (Basic) 關鍵功能區塊 程式撰寫](https://www.youtube.com/watch?v=9QEJIiaOtzs&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=11&amp;t=961s)
[Factory IO - Pick &amp; Place (Basic) 自動動作 程式撰寫 及 struct 應用](https://www.youtube.com/watch?v=9QEJIiaOtzs&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=11&amp;t=1440s)
[Factory IO - Seperate station 基本設定](https://www.youtube.com/watch?v=9QEJIiaOtzs&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=11&amp;t=3097s)
[int[0...100] 裡面存放個位數和十位數相乘的結果 如：Int[79]顯示63](https://www.youtube.com/watch?v=8clzoPB7vHY&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=12&amp;t=2189s)
[FILL_BLK 區塊清除](https://www.youtube.com/watch?v=8clzoPB7vHY&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=12&amp;t=2214s)
[int[0...100] 裡面存放個位數和十位數相乘的結果 程式撰寫](https://www.youtube.com/watch?v=8clzoPB7vHY&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=12&amp;t=2239s)
[JMPN](https://www.youtube.com/watch?v=8clzoPB7vHY&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=12&amp;t=2618s)
[Factory IO sorting station 參數設置](https://www.youtube.com/watch?v=8clzoPB7vHY&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=12&amp;t=2882s)
[Factory IO sorting station 加 encoder 加 sensor](https://www.youtube.com/watch?v=8clzoPB7vHY&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=12&amp;t=3344s)
[Factory IO sorting station 程式撰寫](https://www.youtube.com/watch?v=8clzoPB7vHY&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=12&amp;t=3528s)
[Factory IO - sort station](https://www.youtube.com/watch?v=_ZaTmcCT-so&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=13&amp;t=592s)
[Factory IO - Assembler 說明](https://www.youtube.com/watch?v=_ZaTmcCT-so&amp;list=PLL_LM72of7U8oV-XOvwJB2ujljWoAYizS&amp;index=13&amp;t=944s)
[ S R 線圈之間的程式執行狀況](https://www.youtube.com/watch?v=64bTOVPOEMo&amp;t=0s)
[ Factory IO - assembler 程式撰寫](https://www.youtube.com/watch?v=64bTOVPOEMo&amp;t=350s)
[ 類比信號 濾波 程式撰寫](https://www.youtube.com/watch?v=64bTOVPOEMo&amp;t=3783s)
[ Factory IO - level control 參數 及 說明</span>](https://www.youtube.com/watch?v=64bTOVPOEMo&amp;t=4712s)

###### tags: `PLC` `Seimens` 