49
Driver Configuration InduSoft Web Studio

Driver Configuration Webinar

Embed Size (px)

DESCRIPTION

InduSoft Web Studio offers over 240 drivers for native communication with every major manufacturer of PLC and controller. InduSoft Web Studio offers powerful driver configuration capabilities, which will be discussed in our Driver Configuration webinar.

Citation preview

Page 1: Driver Configuration Webinar

Driver ConfigurationInduSoft Web Studio

Page 2: Driver Configuration Webinar

InduSoft (Andre Bastos – VP of Quality Assurance) Company Overview

Main advantages of the InduSoft solution

Communication Drivers Module on InduSoft Web Studio

Communication Drivers Types – Serial/Ethernet/API

Communication Protocols – Impact on Driver Configuration

Optimizing Communication

Main Driver Sheet vs Standard Driver Sheets

Multiple Connections on TCP/IP-based Drivers

Troubleshooting Communication Problems

Updating your communicating drivers with newer versions

Q & A

Agenda

Page 3: Driver Configuration Webinar

Company Overview

Page 4: Driver Configuration Webinar

Established in US in 1997

Pioneer in industry: First HMI/SCADA package for Microsoft Windows CEWeb solution and XML integration in HMI/SCADAPatent for database connectivity

Certifications:

Awards:

Corporate profile

Page 5: Driver Configuration Webinar

Main advantages of the InduSoft

solution

Page 6: Driver Configuration Webinar

Common features

Data Acquisition 240+ native drivers, OPC, APIs Wired and wireless connectivity Support for different physical layers

Graphical visualization Multi-platform support Support for mobile devices Thin Clients (Web, Mobile Access, Secure Viewer) Linked symbols

Background tasks Run as a Service or Application Alarm management system Built-in Trend object Event logger Interface to SQL Relational Databases (MS SQL Server, Oracle, MS Access, etc) Security System Recipes Remote Management

Page 7: Driver Configuration Webinar

InduSoft Web Studio

InduSoft Web Studio is an easy-to-use HMI/SCADA/MES/OEE solution

Runs on any current Microsoft Operating system (32 and 64 bits) including Windows CE/Mobile, Embedded XP/Standard, Windows 7 & 8 and All Server Editions

Page 8: Driver Configuration Webinar

The power of choice – Multi-platform

SCADAOEE / MES

HMI

Mobile

Seamless deployment across all operating systems supported by

Microsoft

Hardware manufacturer independency!

Page 9: Driver Configuration Webinar

1997Windows CE v1.0

Windows 95CEView v1.0

2013Windows CE 7Windows 7 & 8

CEView v7.1

Investment protection – 100% Compatibility

Page 10: Driver Configuration Webinar

Deployment

Page 11: Driver Configuration Webinar

Communication Drivers Module on

InduSoft Web Studio

Page 12: Driver Configuration Webinar

InduSoft Web StudioCore Process

Tags Database

Comm.Driver

Process Controller

Communication Channel

Local Viewer

Remote SecureViewer

Web Thin Client

TCP/IP Communications

Communication Drivers Module on IWS

Page 13: Driver Configuration Webinar

Communication Drivers Types – The Physical Layers

Serial/Ethernet/API

Page 14: Driver Configuration Webinar

Physical Layer:

Using default Windows resources APIs Serial Communication Channels:

default: RS232 (Voltage) RS422/485 (Current)USB

Note: Dedicated channel

EthernetNote: Multiple Connections

Using 3rd-Party APIs specific bus types, such as CAN, Profibus, DeviceNet,

ControlNet, Interbus, ASi, DH+, and so forth

Ref.: http://icpdas-usa.com

Communication Drivers Module on IWS

Page 15: Driver Configuration Webinar

Communication Drivers Module on IWS

Physical Layer - Serial:The physical port will be used ONLY by that specific communication type!

RS232 (Voltage) – short distances, only peer to peer

RS422/485 (Current) – supports multi-drop and longer distances

Page 16: Driver Configuration Webinar

Communication Drivers Module on IWS

Physical Layer - Ethernet: The physical port can be used for the communication with

the PLCs, but also with anything else that goes through Ethernet, such as web server and clients (internet), e-mails, etc…

For PLCs, it does support several devices and usually the Controller supports multiple connections

Page 17: Driver Configuration Webinar

Communication Drivers Module on IWS

Physical Layer - Other:Depending on the bus that you want to be, you may need specific PC-Adaptors that will allow your PC or WinCE device to be a node on that specific bus.

The PC-Adaptor comes with Device Drivers and it would need an API to allow access to it

Some of the most common Industrial Buses that require specific PC cards are: Profibus-DP ControlNet DeviceNet DH+ / DH485 / RIO Interbus Modbus Plus ControllerLink

Page 18: Driver Configuration Webinar

Communication Protocols

Serial / Ethernet / API

Page 19: Driver Configuration Webinar

How the Driver gets the Data

Logical Layer:

Protocols: Messaging Scheme

Most of the drivers is based on the concept of Master x Slave

Master: Side of the communication that starts the conversation and sends the messages

Slave: Side of the communicationthat listens and wait to receive messages from the Master, and then replies back

Ref.: http://www.modbus.org

Page 20: Driver Configuration Webinar

How the Driver gets the Data

Logical Layer:Protocols: Messaging Scheme

Example of a message frame

Master: Sends the message. This is what we call TX (Transmit)

Header: usually the bytes that identify the beginning of the message, total number of bytes of the message, slave address that the message is addressed to, etc…Message: usually the Command (Read, Write, etc…), the Controller Register type, the initial address and the quantity of registers that will be read

Error Check: Error check calculation, executed on both ends, to see if the messages are valid, using bytes from the message, header, or both

Header Message Error Check

Page 21: Driver Configuration Webinar

How the Driver gets the Data

Logical Layer:Protocols: Messaging Scheme

Example of a message frame

Slave: Replies to the message sent by the Master. This is what we call RX (Receive)

Header: bytes that identify the beginning of the message, total number of bytes of the message, slave address that the message was addressed to, so the Master can identify the response, etc…

Message: it may have a Reply Command (Read, Write, etc…), and then the values requested by the Master

Error Check: Error check calculation, executed on both ends, to see if the messages are valid, using bytes from the message, header, or both

Header Message Error Check

Page 22: Driver Configuration Webinar

Communications

Logical Layer:Factors that Impact the Communication:Message Size: Depending on the protocol, the Controller supports only a certain number registers to be sent in a RX message. It varies a lot depending on the device manufacturer.

Some devices support only 32 words per messageOthers, 64 words or even 512

If the driver requests a message larger than what the protocol supports, the Controller replies with an error message

Number of Messages: Because of the limitations for size of the message that the Controller supports, some protocols require several messages to acquire a certain amount of registers, impacting the overall driver performance

Less Messages = Faster CommunicationsProgram your Controller in a way that the registers can fit in fewer messages

Page 23: Driver Configuration Webinar

Communications

Logical Layer:Factors that Impact the Communication: Special CasesPACs, CIP: Most of new Programmable Automation Controller, have programming language and protocols based on variables or tag names

One example of this kind of device and protocol is the Ethernet/IP PLC families from Rockwell: ControlLogix, FlexLogix, CompactLogix, Micrologix 1100/1400

The communication with these devices is impacted byThe max message sizes supported by the CIP protocol are FIXED in

TX: 544 bytesRX: 493 bytes

The name of the Tags that will be accessed are part of the message

This means that shorter tag names yield more tags per message = faster communication

Use Arrays!!! - 1 Tag Name + several values!

Page 24: Driver Configuration Webinar

Communications

Logical Layer:Factors that Impact the Communication: Special Case3rd Party APIs based drivers:Some drivers were developed using specific 3rd-Party APIs, for different reasons

Beckhoff TwinCAT (TWCAT) - ADSOMRON – Fins/Sysmac Gateway (OMRON)CodeSys (COSYS) - PLCHandlerModbus Plus (MODPL) – Cyberlogic MBX Suite Straton (STRAT) – Q-InterfaceDH+ / RIO using SST Card (SSTDH/STRIO)

The Driver calls functions from these APIs to reach the field device’s registers values

The performance of this kind of driver depends (a lot) on the 3rd-Party API

Page 25: Driver Configuration Webinar

Ethernet

Physical + Logical LayersEthernet-based drivers

Fast baud-rateSame physical port accessing several different devices and protocolsMultiple connections to the same device

Page 26: Driver Configuration Webinar

Configuring Communication Drivers on

InduSoft Web StudioMain vs Standard

Driver Sheets

Page 27: Driver Configuration Webinar

Main Driver Sheets

Main Driver Sheet (MDS) :Pros:

Simple Configuration: usually uses the same PLC address syntaxAutomatic calculation of block sizes and group of messagesPossibility of configuring Scan for Always, Screen, AutoNote: Keep in mind that the Readings happen in Groups! The closer the

I/O addresses are to each other, the better the communication will be

Cons:Fixed scan Rate for all groupsEvery row requires a Station configurationHard to identify a faulty communication group It is hard to identify in which read group the PLC address isWrites Items Only. No Group Writing (it may be an issue for Recipes)

Page 28: Driver Configuration Webinar

Main Driver Sheets

Main Driver Sheet (MDS) :

Page 29: Driver Configuration Webinar

Main Driver Sheets

Main Driver Sheet (MDS) Troubleshooting:

Use the Output Window or LogWin Depending on the Driver, the most common errors are related to:

Wrong Station• Depending on the driver, the Station field has specific

parameters. Some require Network number, or TCP port number, etc…

Wrong Communication Settings• Some drivers support different PLC families (ABTCP, ABKE) and

this configuration is made on the “Driver Settings” Window• For Serial drivers, wrong baud rate, parity, RTS config

Wrong PLC I/O Address (non-existing N70, DB10, 441001, etc…)

Page 30: Driver Configuration Webinar

Main Driver Sheets

Main Driver Sheet (MDS) Troubleshooting:

On the Output Window, you will be able to see the error message and that will give you an idea where to look at

For Tag-Based PLCs (PACs) the most common error is mistyping the PLC Tag name on the I/O Address column! One wrong address will invalidate the whole reading group.

Enable the “Protocol Analyzer” to see which Tag you mistyped.

Page 31: Driver Configuration Webinar

Main Driver Sheets

Main Driver Sheet (MDS) Troubleshooting: To see the tags that are in each Read Group created

by the MDS, follow the below steps:

Open the .App file using a Text Edit (e.g. Notepad) Find the [Options] section Create the following entry: DumpDriverSheets=1 Save, close the file and open the project As you call the runtime, you will find the files with the groups

created by the MDS in the project’s \Web\Dump folder. Use the development “Open File” to visualize them.

Page 32: Driver Configuration Webinar

Main Driver Sheets

Main Driver Sheet (MDS) Changing the Reading Rate.

Open the .App file using a Text Edit (e.g. Notepad) Find the [Options] section Create the following entry: MainDrvAlwaysTrigger=<tagname> <tagname> is the name a project tag that you will use as Trigger

for the MDS. You can use an existing System Tag, such as BlinkFast (200 ms rate) or create your own.

Save, close the file and open the project As you call the runtime and enable the log on the Output Window

you will see the new reading rate.

Page 33: Driver Configuration Webinar

Standard Driver Sheets

Standard Driver Sheet (SDS)

Page 34: Driver Configuration Webinar

Standard Driver Sheets

Standard Driver Sheet (SDS)Standard Driver SheetPros:

Total Control of your Communication: choose when you want to read or writeRead constantly or on-demandWrite an entire Group of variables or one single itemIndividual Group Communication Feedback1 Station configuration for the entire group

Cons:Configuration is less-friendly than MDSManual configuration of Blocks obeying Block SizesOnly 1 Station per worksheetOnly 1 Register type per worksheetYou may end up using several worksheets – harder maintenance

Main Driver Sheet Standard Driver Sheet(s)

Qty./project 1 9999

Rows/sheet 4096 4096

Scan period approx 600ms

(default)

You decide what triggers each sheet independently:

-Independent Read/Write Triggers -Enable Read When Idle -Enable Write On Tag Change

PLC address Mix type Single type for each sheet

Page 35: Driver Configuration Webinar

Standard Driver Sheets

Standard Driver Sheet (SDS)Standard Driver SheetEnable Read When Idle:

Use this field when you want to achieve the fastest communication possible.It has a lower priority of all the other operations, but runs constantly“Idle” means whenever the driver is not Writing or executing a Read Trigger Main Driver Sheet Reading events have a higher priority than the worksheets

configured with this field enabled

Read Trigger:It is recommended to use it when you want to read something specific, on a

specific situation, orYou want to have a constant reading rateCan be used to read recipes, PID parameters, and other stuff that you don’t

need to read constantlyHas a higher priority than the “Enable Read”Main Driver Sheet shares priority with this command

Page 36: Driver Configuration Webinar

Standard Driver Sheets

Standard Driver Sheet (SDS)Standard Driver SheetEnable Write on Tag Change:

Use this field when you want to write only a single (or some specific) address(es) in the PLC

Each tag change will be a TX message sent to the PLCIn conjunction with the Write Status and Write Completed fields, allows the

user to know when the operation was completed and if it was successful It has a higher priority than any read event Recommended for writing Bits from Bytes and Words

Write Trigger:It is recommended to use it when you want to write several addresses at just

one shot, e.g. Download a recipe or PID parameters It usually does not work when you want to write individual Bits from Words

and Bytes

Page 37: Driver Configuration Webinar

Updating the Communication

Drivers

Page 38: Driver Configuration Webinar

Updating the Communication Drivers

Page 39: Driver Configuration Webinar

Updating the Communication Drivers

Page 40: Driver Configuration Webinar

Updating the Communication DriversDriver Update

Download the driver Setup file from InduSoft’s Web Site Close InduSoft Web Studio Run the Setup program (e.g. MODBU.exe) Chose the InduSoft Installation folder where you will install the updated driver Follow the instructions on the screen Once the installation is finished, the driver will have been updated Execute the “Install System Files” on the Embedded Target Device to update the Runtime there as well

Page 41: Driver Configuration Webinar

InduSoft Training Modules - Drivers

Page 42: Driver Configuration Webinar

Training Modules 7 & 8: Drivers

Page 43: Driver Configuration Webinar

Training Modules 7 & 8: Drivers

Page 44: Driver Configuration Webinar

Training Modules 7 & 8: Drivers

Page 45: Driver Configuration Webinar

In-Depth Training is also Available

CustomizedTraining

is alsoAvailable at your Facility!

Contact:[email protected]

Page 46: Driver Configuration Webinar

Q&A?

Page 47: Driver Configuration Webinar

How to Contact InduSoft

Page 48: Driver Configuration Webinar

Email(US) [email protected](Brazil) [email protected](Germany) [email protected]

Support [email protected] site

(English) www.indusoft.com(Portuguese) www.indusoft.com.br(German) www.indusoft-germany.de

Phone (512) 349-0334 (US) +55-11-3293-9139 (Brazil) +49 (0) 6227-732510 (Germany)

Toll-Free 877-INDUSOFT (877-463-8763) Fax (512) 349-0375

Contact InduSoft Today

Germany

USA

Brazil

Page 49: Driver Configuration Webinar

Email(US) [email protected](Brazil) [email protected](Germany) [email protected]

Support [email protected] site

(English) www.indusoft.com(Portuguese) www.indusoft.com.br(German) www.indusoft-germany.de

Phone +1(512) 349-0334 (US) +55-11-3293-9139 (Brazil) +49 (0) 6227-732510 (Germany)

Toll-Free (USA) 877-INDUSOFT (877-463-8763) Fax +1(512) 349-0375

Contact InduSoft Today

Germany

USA

Brazil