1 / 33

Win-GRAF

Win-GRAF. ICP DAS CO., LTD. By Chun Tsai , chun@icpdas.com. What is Win-GRAF?. An Programming Tools supports IEC61131-3 standard Programming languages:

silver
Télécharger la présentation

Win-GRAF

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Win-GRAF ICP DAS CO., LTD. By Chun Tsai , chun@icpdas.com

  2. What is Win-GRAF? • An Programming Tools supports IEC61131-3 standard • Programming languages: Ladder Diagram (LD) Function Block Diagram (FBD) Structured Text (ST) Sequential Function Chart (SFC) Instruction List (IL) • An useful debugging tools for Soft-PAC ICP DAS www.icpdas.com service@icpdas.com

  3. Win-GRAF Workbench Run in Windows 7 or 8 (32-bit or64-bit) or XP • Delivered with a Win-GRAF USB dongle. • It becomes Trial (Demo) version if without the USB dongle. Program Editor Variables FBD & others Message ICP DAS www.icpdas.com service@icpdas.com

  4. Protocols embedded in the Win-GRAF PAC • Modbus TCP (Slave, Master) • Modbus RTU (Slave, Master) • Modbus UDP (Master) • Modbus ASCII (Master) • DCON (ICP DAS I-7000 series modules, RU-87P8 / P4 + I-87xxxW cards, i-87K8 / K4 + I-87xxxW cards) ICP DAS www.icpdas.com service@icpdas.com

  5. Protocols embedded in the Win-GRAF PAC (Future) • FRnet • CAN • CANopen • HART ICP DAS www.icpdas.com service@icpdas.com

  6. Ladder Diagram ICP DAS www.icpdas.com service@icpdas.com

  7. ST ICP DAS www.icpdas.com service@icpdas.com

  8. FBD ICP DAS www.icpdas.com service@icpdas.com

  9. SFC ICP DAS www.icpdas.com service@icpdas.com

  10. Uses ST in graphical Editor FBD LD ICP DAS www.icpdas.com service@icpdas.com

  11. Win-GRAF PAC (Programmable Automation Controller) • WP-8148/8448/8848 • WP-5238 (1 LAN) • VP-25W8, VP-4138 • XP-8048-CE6/8348-CE6/8748-CE6 • XP-9148-CE6/9348-CE6/9748-CE6 (metal shell) ICP DAS www.icpdas.com service@icpdas.com

  12. Win-GRAF Features Multi-Modbus Master

  13. Win-GRAF Features Multi-Modbus RTU slave

  14. Win-GRAF Features Soft-GRAF HMI ICP DAS www.icpdas.com service@icpdas.com 14

  15. Win-GRAF Features Working With VB.net , C# App. ICP DAS www.icpdas.com service@icpdas.com

  16. Win-GRAF Features DCON Remote I/O ICP DAS www.icpdas.com service@icpdas.com 16

  17. Win-GRAF PAC Features Redundancy 1: HMI/SCADA XP-8048-CE6 / XP-9148-CE6 LAN2 RS-408 LAN1 LAN1 Modbus TCP I/OModules • Modbus TCP I/O, Modbus TCP meters. • Supports 1Active IP address for HMI/SCADA • Application code and data are auto-redundant. iDCS-8000 ICP DAS www.icpdas.com service@icpdas.com

  18. Win-GRAF PAC Features Redundancy 2 HMI/SCADA XP-8048-CE6 / XP-9148-CE6 LAN2 LAN1 LAN1 RS-408 RS-485 RS-485 • DCON I/O • Modbus RTU I/O RU-87P8or Modbus RTU I/OModules ICP DAS www.icpdas.com service@icpdas.com

  19. Win-GRAF PAC Features Binding (for DCS system) • Data exchanging between PACs PAC3 PAC1 PAC2 ICP DAS www.icpdas.com service@icpdas.com

  20. Win-GRAF PAC Features On Line Change • Update application while application is running Application PC/Win-GRAF WP-8xx8 On Line Change Modified application ICP DAS www.icpdas.com service@icpdas.com

  21. Win-GRAF PAC Features Recipe PC/Win-GRAF Variables:WaterButterMilkSaltOrange JuiceApple WP-8xx8 Recipe Value ICP DAS www.icpdas.com service@icpdas.com

  22. Basic Concepts For Programming

  23. Variables Name : Starting with “A” ~ “Z” Case insensitive , “MOT” is same as “moT” Can use 0 ~ 7 or “_” for 2nd ~ *th character Input / Output variable only appear in I/O boards Function block instance variables must assign type as a function block name

  24. Variable Types *: Common ICP DAS www.icpdas.com service@icpdas.com

  25. TIME variable Value : T#23h59m59s999ms Always positive, “-T#5s “ is wrong “T#10.5s” is wrong, “T#10s500ms” is correct Can tick / stop / reset a time variable tStart(TIME_VAR1) ; tStop(TIME_VAR1) ; TIME_VAR1 := T#0s ;

  26. Type Conversion Math calculation should use same type. Wrong : DINT01 := REAL01 + 5 ; Correct: DINT01 := Any_To_DINT(REAL01) + 5 ; Comparing value should use same type. Wrong : if DINT01 > REAL01 then Correct: if Any_To_REAL(DINT01) > REAL01 then

  27. Type Conversion Functions Help on Win-GRAF workbench, search “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 , BCD_To_BIN

  28. Function Block Instance

  29. ST Basics 1 (* Here is comment *) Each statement ends with a “;” A := B + C ; (* “:=“ means assign *) if A <= D then (* do operations … *) end_if ;

  30. ST Basics 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 ;

  31. Call a function in ST Return_val := fun_name(par1,par2, …) ; or fun_name(par1,par2, …) ; example: OK1 := COM_OPEN( 2 , ‘9600,N,8,1’ ) ; COM_OPEN( 2 , ‘9600,N,8,1’ ) ;

  32. Call a function block in ST First declare a FB instance , type = FB name fb_instance_name(par1,par2, …) ; Return1 := fb_instance_name.out_par1; Return2 := fb_instance_name.out_par2; … example: my_unpack8 (type “unpack8”) my_unpack8( BYTE1) ; BOO0 := my_unpack8.Q0 ; … BOO7 := my_unpack8.Q7 ;

  33. Thank you!

More Related