WinGRAF PAC l Modbus TCP Slave Master l
Win-GRAF PAC 通訊協定 l Modbus TCP (Slave, Master) l Modbus RTU (Slave, Master) l Modbus UDP (Master) l Modbus ASCII (Master) l HART (Master) l DCON (ICP DAS I-7000 系列模組, RU-87 P 8/P 4 + I-87 xxx. W I/O 模組, I-87 K 8/K 4 + I-87 xxx. W I/O 模組) 4
Win-GRAF PAC (可編程自動化控制器) l WP-8148/8448/8848 l WP-8128 -CE 7/8428 -CE 7/8828 -CE 7 l WP-5238 -CE 7 (1 x LAN) l VP-1238 -CE 7 ( 5. 7”, 3 x I/O Slots) VP-2208 -CE 7 ( 7” , w/o I/O Slot) VP-4208 -CE 7 (10. 4”, w/o I/O Slot) VP-4238 -CE 7 (10. 4”, 3 x I/O Slots) l XP-8048 -CE 6/8348 -CE 6/8748 -CE 6 10
支援各種本機 I/O 模組 (1) (裝在 PAC 插槽上) 數位輸入 (DI) 數位輸入/輸出 (DIO) I-8042 W, I-8050 W, I-8054 W, I-8055 W, I-87042 W, I-87054 W, I-87055 W 數位輸出 (DO) I-8037 W, I-8041 AW, I-8056 W, I-8057 W, I-87037 W, I-87041 W, I-87057 PW (Relay Output) I-8060 W, I-8063 W, I-8064 W, I-8068 W, I-8069 W, I-87061 PW, I-87063 W, I-87064 W, I-87065 W, I-87066 W, I-87068 W-2 A, I-87069 W, I-87069 PW 數位輸入 (VAC) I-8058 W, I-87053 W-AC 1, I-87058 W, I-87059 W 類比輸入 (AI) I-8017 DW, I-8017 HCW, I-87017 RW, I-87017 RCW, I-87017 DW, I-87017 EW, I-87018 RW, I-87018 PW, I-87018 ZW, I-87019 PW, I-87019 RW, I-87019 ZW 類比輸出 (AO) I-8024 W, I-87024 CW, I-87024 UW, I-87024 DW, I-87024 RW, I-87024 W, I-87028 CW, I-87028 UW, I-87028 VW-20 V 繼電器輸出 11 I-8040 W, I-8046 W, I-8051 W, I-8052 W, I-8053 PW, I-87040 PW, I-87046 W, I-87051 W, I-87052 W, I-87053 PW, I-87053 W-A 2, I-87053 W-A 5, I-87053 W-E 5
支援各種本機 I/O 模組 (2) (裝在 PAC 插槽上) 多功能 (DIO, AIO) 溫度輸入 12 I-87026 W Thermister I-87005 W RTD I-87013 W, I-87015 PW T/C I-87018 W, I-87018 RW, I-87018 PW, I-87018 ZW, I-87019 PW, I-87019 RW, I-87019 ZW HART I-87 H 17 W Strain Gauge I-87016 W Counter/Frequency 輸入 I-8084 W, I-87082 W, I-87084 W Encoder 輸入 I-8093 W PWM 輸出 I-8088 W 通訊模組 I-8112 i. W, I-8114 i. W, I-8142 i. W, I-8144 i. W 溫度/濕度輸入 DL-100 T 485, DL-100 T 485 -W, DL-100 T 485 P-W (DCON Protocol) DL-100 TM 485, DL-100 TM 485 -W, DL-100 TM 485 P-W (Modbus RTU Protocol)
Win-GRAF 特色 建立自訂的 C Function & Function Block 13
Win-GRAF 特色 Multi-Modbus Master 16
Win-GRAF 特色 Multi-Modbus TCP/RTU Slave 17
Win-GRAF 特色 DCON 遠程 I/O 18
Win-GRAF 特色 控制器備援 #2 n 圖控軟體 (SCADA) 僅需連到 Active_IP。 n 2 台 PAC 會自動切換為 Active_IP 與 Passive_IP。 n 專案將自動回存到新的那台 PAC。 21 ICP DAS www. icpdas. com service@icpdas. com
Win-GRAF PAC 特色 配方表 (Recipe) 25
Win-GRAF PAC 特色 PID 控制 n 一台 PAC 可處理超過 200 PID。 26
Win-GRAF PAC 特色 HART Master n 支援 I-87 H 17 W 插裝在 PAC 上,可與 HART 設備進行通訊。 27
Win-GRAF PAC 特色 Win-GRAF 智能型 3 G 解決方案 28
變數型態 資料型態 BOOL (*) SINT USINT BYTE INT UINT WORD DINT (*) UDINT DWORD LINT Bits --8 bits (Small int, signed) 數值範圍 TRUE,FALSE -128 ~ +127 8 bits (Unsigned small int) 0 ~ +255 16 bits (Int, signed) -32768 ~ +32767 16 bits (Unsigned int) 0 ~ +65535 32 bits (Double int, signed) -2147483648 ~ +2147483647 32 bits (Unsigned double int) 0 ~ +4294967295 64 bits (Large int, signed) -263 ~ +(263 -1) ULINT (No support) *: 常用 31 64 bits (Unsigned large int) LWORD (No support) No support the Win-GRAF PAC. 0 ~ +(264 -1) REAL (*) LREAL STRING (*) TIME (*) ± 3. 4× 10 -38 ~ ± 3. 4× 1038 ± 1. 7× 10 -308 ~ ± 1. 7× 10308 --T#0 ms ~ T#23 h 59 m 59 s 999 ms 32 bits (Floating point) 64 bits (Floating point) Max. 255 characters 32 bits
資料型態轉換功能 • 可在 Win-GRAF 軟體的 Help 內,搜尋 “conversion”。 Any_To_BOOL , Any_to_SINT Any_To_INT , Any_To_DINT Any_To_LINT , Any_to_REAL Any_To_LREAL , Any_To_TIME Any_To_STRING , NUM_To_STRING BIN_To_BCD 34 , BCD_To_BIN
Function Block Instance 樣例變數的名稱 功能方塊的名稱 35
ST 基礎程式 1 • (* Here is comment *) • Each statement ends with a “; ” A : = B + C ; (* “: =“ means assign *) if A <= D then (* do operations … *) end_if ; 36
ST 基礎程式 2 • “: =“ means assignment A : = B * 5 ; (* correct *) A = B * 5 ; (* wrong *) • “=“ means “are they equal ? ”, result is TRUE or FALSE if A = B then (* correct *) end_if ; if A : = B then (* wrong *) end_if ; 37
ST 程式中,調用功能 (Function) • Return_val : = fun_name(par 1, par 2, …) ; or fun_name(par 1, par 2, …) ; example: OK 1 : = COM_OPEN( 2 , ‘ 9600, N, 8, 1’ ) ; 38
ST 程式中,調用功能方塊 (FB) • First declare a FB instance , type = FB name • fb_instance_name(par 1, par 2, …) ; Return 1 : = fb_instance_name. out_par 1; Return 2 : = fb_instance_name. out_par 2; … example: my_unpack 8 (type “unpack 8”) my_unpack 8( BYTE 1) ; BOO 0 : = my_unpack 8. Q 0 ; … BOO 7 : = my_unpack 8. Q 7 ; 39
使用看看 (PAC 的 Runtime Driver) 注意: 若無運行版 (Runtime) 的合法授權,Win-GRAF Driver 只能在 PAC 內運行 2 小時。 40 ICP DAS www. icpdas. com service@icpdas. com
詳細資訊,請參訪網頁 http: //www. icpdas. com/root/product/solutions/softplc_based_on_pac/win-graf/download. html 42 ICP DAS www. icpdas. com service@icpdas. com
泓格科技股份有限公司 謝謝各位! ICP DAS www. icpdas. com service@icpdas. com 43
- Slides: 43