1267540462

Embed Size (px)

Citation preview

  • 8/3/2019 1267540462

    1/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-1

    PLC Link OPCLC Link OPC

    Department of Engineering Physics

    Institut Teknologi Bandung

    2004

  • 8/3/2019 1267540462

    2/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-2

    TopicsTopics

    OLE for Process Control (OPC)

    Connecting PLC to HMI using OPC

  • 8/3/2019 1267540462

    3/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-3

    Objective:

    Use Wonderwares OPCLink I/O Server and OPC

    Browser to link to an OPC Server.

    Introduction

    OPCLink Server OPC Browser

    OLE for Process Control (OPC)OLE for Process Control (OPC)

  • 8/3/2019 1267540462

    4/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-4

    OLE for Process Control (OPC)OLE for Process Control (OPC)

    OPC is a published industrial standard for system

    interconnectivity.

    It uses Microsofts COM and DCOM technology to enableapplications to exchange data on one or more

    computers using a client/server architecture.

    OPC defines a common set of interfaces. So applicationsretrieve data in exactly the same format regardless of

    whether the data source is a PLC, DCS, gauge,

    analyzer, software application or anything else

    As a result, OPC is as an out-of-the-box, plug and

    play communication solution.

  • 8/3/2019 1267540462

    5/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-5

    OLE for Process Control (OPC)OLE for Process Control (OPC)

    Provide a standards-based infrastructure for the exchange

    of process control data different connection type

    (serial,radio,ethernet,etc) and various operatingsystem

    POWER

    ALLEN BRADLEY

    !

    RUN

    FLT

    BATT

    FORCE

    Dh485

    Rs232

    SLC 5/05 CPU

    R UN P RO GREM

    INPUT

    DC-SINK

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    INPUT

    DC-SINK

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    OUTPUT

    RELAY

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

  • 8/3/2019 1267540462

    6/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-6

    OPC SolutionOPC Solution

    POWER

    ALLENBRADLEY

    !

    RUN

    FLT

    BATT

    FORCE

    Dh485

    Rs232

    SLC5/05 CPU

    RUN PROGREM

    INPUT

    DC-SINK

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    INPUT

    DC-SINK

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    OUTPUT

    RELAY

    0

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

  • 8/3/2019 1267540462

    7/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-7

    OLE for Process Control (OPC)OLE for Process Control (OPC)

    OPC standardizes on a technology rather than aproduct

    OPC set of standards, data can be passed from any data

    source to any OPC compliant application includeHuman Machine Interfaces (or HMIs), trenders,

    spreadsheets, data archivers, Enterprise Resource

    Planning applications, and others. OPC enables to visualize, analyze, report, or do anything

    with applications from almost any vendor using one or

    more of the OPC specifications.

    OPC technology enable true interoperability, reduce

    implementation costs, and build a fully scalable system

    for the future.

  • 8/3/2019 1267540462

    8/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-8

    OPC ServerOPC Server

    Tag browsing

    Efficient standard mechanism for data exchange

    Support for Ranging (low-high)

    Multi Threading design

    Support of COM and DCOM

    Plug and Play

  • 8/3/2019 1267540462

    9/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-9

    Accessing OPC ServerAccessing OPC Server

    OPCENUM Service enables clients to access OPC

    Server of executive node in LAN

    Registry information will be required to access OPCServer on the other node from client machine.

    This interface information of COM (property, method) is

    registered in registry of local disk because OPC Serveris COM application.

    OPCENUM.EXE is a program that is executed on the

    node OPC Server is installed in and provides registryinformation of OPC Server corresponding the request

    of the other node.

  • 8/3/2019 1267540462

    10/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-10

    Accessing OPC ServerAccessing OPC Server

    Node A

    OPC ServerRegistry

    OPCEnum.exe

    Node B

    OPC Client

    Ethernet

    Get Server Info

    By NODE

    Server Information

    Call OPC BROWSE object

    with the node name from

    OPC Client (Node B).

    OPCENUM.EXE gets

    server list from local

    registry and passes itto Node B.

    OPC Client accesses

    OPC Server object with

    the server info andnode name

  • 8/3/2019 1267540462

    11/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-11

    ProprietaryProprietary vsvsOPC ConnectivityOPC Connectivity

    Common Plant Requirements

    Plant needed to monitor equipment

    Various different applications were needed to analyze data

    Various different devices generated data

    Plant process wanted to monitor their turbines using ta

    Human Machine Interface, or HMI, for visualization, a

    Process Historian for data storage, and a machinecondition monitoring application.

    The data would come from three different data

    sources; a PLC, a vibration monitoring system, and acalculation engine.

  • 8/3/2019 1267540462

    12/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-12

    Requirem entRequirem ent

    Minimize device loads by minimizing data requests

    Quickly and easily implement a communicationinfrastructure

    Minimize implementation and acquisition costs

  • 8/3/2019 1267540462

    13/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-13

    Proprietary SolutionProprietary Solution

    POWER

    Allen-BradleyQUALITY

    RUN

    BAT

    I/O

    Rs232

    OK

    R UN P R OGREM

    Logix5550

    RXD

    ETHERNET< >

    T X D O K

    ControlNET

    OK

    A 03*

    AT

    AT

    Required many custom

    drivers

    Multiple device drivers

    would create too many

    data requests

    Lengthy

    implementation

    time and excessivecosts incurred

  • 8/3/2019 1267540462

    14/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-14

    OPC SolutionOPC Solution

    POWER

    Allen-BradleyQUALITY

    RUN

    BAT

    I/O

    Rs232

    OK

    RUN PROGREM

    Logix5550

    RXD

    ETHERNET< >

    TXD OK

    ControlNET

    OK

    A 03*

    AT

    AT

    OPC solution

    minimizes devices

    drivers

    OPC drivers are

    readily available

    OPC reduces device

    loads significantly

    Implementation time

    and all costs drastically

    reduced

  • 8/3/2019 1267540462

    15/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-15

    Toolbox OPC Power ServerToolbox O PC Power Server

    Provide plant floor

    data from multiple

    brands Support

    FastDDE,SuiteLink,

    AdvancedDDE and

    DDE softwareinterface

    Support

    Wonderware

    InTouch,RSView32,

    Intellution32,iFix,etc

  • 8/3/2019 1267540462

    16/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-16

    FeaturesFeatures

    Supported on Windows 95/98/Me and NT/2000/XP

    Support forOPC Data Access 2.05 standard

    software interface reduces integration costs byconnecting to a wide range of applications

    Support forFastDDE & SuiteLink for seamless

    connectivity to Wonderware InTouch Support forIntellution NIO interface for direct

    connection to the iFix Process Database

    Support forAdvanceDDE, NetDDE and DDE roundsout the connectivity choices TOP Server offers

    Automatic Tag Database Generation

  • 8/3/2019 1267540462

    17/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-17

    Features ContinuedFeatures Continued

    Dynamic Tag Creation

    Tag Import/Export - bring in data from CSV files to

    speed configuration or sharing with other applications

    InTouch Tag Import Wizard reduces engineering time

    for Wonderware Users

    Free OPC Quick Client provides a known entity OPCclient for quick field deployment & testing

  • 8/3/2019 1267540462

    18/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-18

    Start Top Server PLC5Start Top Server PLC5

    On the Start menu, select Programs, select SoftwareToolbox, select Top Server

  • 8/3/2019 1267540462

    19/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-19

    Configuring ChannelConfiguring Channel

    Channel represents a communication medium from the

    PC to one or more external devices.

    Channel can be used to represent either a serial port

    or a card installed in the PC.

    D f E i i Ph i ITB M i 2004

  • 8/3/2019 1267540462

    20/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-20

    Configuring DeviceConfiguring Device

    Device represent PLCs or other hardware that the server

    will communicate with. The device driver that the channel

    is using restricts device selection.

    D t t f E i i Ph i ITB M i 2004

  • 8/3/2019 1267540462

    21/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-21

    A tag represents addresses with in the PLC or other

    hardware device that the server communicates with.

    The server allows both dynamic tags, (tags created in

    the client that access addresses directly) and user

    defined static tags.

    User defined static tags are created in the server andbenefit the user by allowing the tag to be browsed from

    OPC clients that support tag browsing.

    Creating TagCreating Tag

    D t t f E i i Ph i ITB M i 2004

  • 8/3/2019 1267540462

    22/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-22

    Creating TagCreating Tag

    Department of Engineering Physics ITB Mei 2004

  • 8/3/2019 1267540462

    23/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-23

    OPC Quick Client provides a known entity OPC client

    for quick field deployment and testing

    OPC Quick ClientOPC Quick Client

    Department of Engineering Physics ITB Mei 2004

  • 8/3/2019 1267540462

    24/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-24

    Creating Access Nam eCreating Access Nam e

    Department of Engineering Physics ITB Mei 2004

  • 8/3/2019 1267540462

    25/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-25

    Creating HM ICreating HM ITagnam eTagnam e

    Department of Engineering Physics ITB Mei 2004

  • 8/3/2019 1267540462

    26/26

    Programmable Logic Controller (PLC) Advance Programming

    Department of Engineering Physics-ITB Mei 2004

    15-26

    Create Dynam ic HM I ObjectCreate Dynamic HM I Object