Win graf
This presentation is the property of its rightful owner.
Sponsored Links
1 / 33

Win-GRAF PowerPoint PPT Presentation


  • 93 Views
  • Uploaded on
  • Presentation posted in: General

Win-GRAF. ICP DAS CO., LTD. By Chun Tsai , [email protected] What is Win-GRAF?. An Programming Tools supports IEC61131-3 standard Programming languages:

Download Presentation

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


Win graf

Win-GRAF

ICP DAS CO., LTD.

By Chun Tsai , [email protected]


What is win graf

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 [email protected]


Win graf workbench

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 [email protected]


Protocols embedded in the win graf pac

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 [email protected]


Protocols embedded in the win graf pac future

Protocols embedded in the Win-GRAF PAC (Future)

  • FRnet

  • CAN

  • CANopen

  • HART

ICP DAS www.icpdas.com [email protected]


Ladder diagram

Ladder Diagram

ICP DAS www.icpdas.com [email protected]


Win graf

ST

ICP DAS www.icpdas.com [email protected]


Win graf

FBD

ICP DAS www.icpdas.com [email protected]


Win graf

SFC

ICP DAS www.icpdas.com [email protected]


Uses st in graphical editor

Uses ST in graphical Editor

FBD

LD

ICP DAS www.icpdas.com [email protected]


Win graf

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 [email protected]


Win graf

Win-GRAF Features

Multi-Modbus Master


Win graf

Win-GRAF Features

Multi-Modbus RTU slave


Win graf

Win-GRAF Features

Soft-GRAF HMI

ICP DAS www.icpdas.com [email protected]

14


Win graf

Win-GRAF Features

Working With VB.net , C# App.

ICP DAS www.icpdas.com [email protected]


Win graf

Win-GRAF Features

DCON Remote I/O

ICP DAS www.icpdas.com [email protected]

16


Win graf

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 [email protected]


Win graf

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 [email protected]


Win graf

Win-GRAF PAC Features

Binding (for DCS system)

  • Data exchanging between PACs

PAC3

PAC1

PAC2

ICP DAS www.icpdas.com [email protected]


Win graf

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 [email protected]


Win graf

Win-GRAF PAC Features

Recipe

PC/Win-GRAF

Variables:WaterButterMilkSaltOrange JuiceApple

WP-8xx8

Recipe Value

ICP DAS www.icpdas.com [email protected]


Basic concepts for programming

Basic Concepts For Programming


Variables

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


Win graf

Variable Types

*: Common

ICP DAS www.icpdas.com [email protected]


Time variable

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 ;


Type conversion

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


Type conversion functions

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


Function block instance

Function Block Instance


St basics 1

ST Basics 1

(* Here is comment *)

Each statement ends with a “;”

A := B + C ; (* “:=“ means assign *)

if A <= D then

(* do operations … *)

end_if ;


St basics 2

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 ;


Call a function in st

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’ ) ;


Call a function block in st

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 ;


Thank you

Thank you!


  • Login