slide 2 session description in this session will discuss issues related to communications between...

64

Upload: thomas-simon

Post on 25-Dec-2015

233 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)
Page 2: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

© 2012 Invensys. All Rights Reserved. The names, logos, and taglines identifying the products and services of Invensys are proprietary marks of Invensys or its subsidiaries. All third party trademarks and service marks are the proprietary marks of their respective owners.

WW TSS-05InBatch Advanced Troubleshooting

Matt Mummert Shri Mariyala

October, 2012

Page 3: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 4

Project Start.Best Practices.

Batch systems are often considered mission critical in the production process; therefore, batch systems need to be designed so that the process integrity is ensured even during unexpected external events.A batch management solution, facilitating the batch execution on physical process equipment, expands across multiple layers of the system, including (but not limited to):

Control system infrastructure Network infrastructure Computer system infrastructure Batch Management software User interaction

Each one of these layers must be thoroughly analyzed and considered as a critical part of the batch management solution. It is vital that, after the critical variables surrounding the batch execution are identified, the system is designed to address their needs at the right level.(From InBatch R&D WHITE PAPER - Best Practices and Considerations for Designing Reliable InBatch Solutions)

Page 4: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 5

One of the most important things you can do on a project is to make sure that the system functional specification completely describes the desired operation of the system and no more.(From InBatch deployment guide)

Project Start.Best Practices.

Page 5: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 6

Best Pratices – What Do We Take Away?

- InBatch Deployment Guide

- InBatch R&D WHITE PAPER - Best Practices and Considerations for Designing Reliable InBatch Solutions

Page 6: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 7

Advanced Troubleshooting - Topics

• InBatch Architecture

• Batch Equipment

• Batch Phase Logic

• IBCli/DAServer

• Batch IBMX

• Batch Warm Restart Files

• BatchMngr Parameters

Page 7: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 8

Advanced Troubleshooting - Topics

• BatchGuiConfig Ctrl

• Batch Redundancy

• Batch History

• Reports

• System Monitoring

• Log Flags

Page 8: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 9

InBatch Architecture 1

Batch History Information Server

InBatch Dev Client

Batch Server + DAServer

PLCs

Access Reports Remotely

InBatch Runtime Clients/Touch

Page 9: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 10

InBatch Integrate with System Platform

Batch History Information Server

InBatch Dev Client

Batch Server + DAServer

PLCs

Access Reports Remotely

InBatch Runtime Clients/Touch

• AOr

GRAOS

Page 10: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 11

PHASE 4

PHASE 5

PHASE 6

Phases modeled within System Platform

Extremely flexible and powerful batch management capabilities

Extremely flexible and powerful platform and plant model

InBatch Server

PHASE 1

PHASE 2

PHASE 3

Phases modeled within Control System

MX communication

SystemPlatform

Device Integration Device

System Platform Integration – How ?

Page 11: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 12

Batch Equipment Analysis

● Batch started but no activity, why?

● What is equipment status?

● How to track and identify which equipment in use?

● What is Unit, Connection & Segment Status?

● How to update equipment status (TagView)

Page 12: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 13

Equipment Definition - ModelEditor

Page 13: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 14

Units/Connections Status - Batch Display

Page 14: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 15

Segments Overview

Page 15: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 16

Segments Linked to Connections

Page 16: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 17

Equipment Status – TagView

Page 17: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 18

Where is Tagview.exe?

Page 18: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 19

Equipment Status – What Do We Take Away?

• Unit Status values must be consistent - Process Model Vs USTAT tags

• USTAT tags are linked to the correct addresses in PLC

• Blank or incorrect values for USTAT leads to “waiting for available equipment” state

• Allocating a connection allocates all segments of that connection

• All connections that contain segment allocated by another connection are ‘busy’

• Technote 25 – Using Segments to define Model Limitations in InBatch.

Page 19: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 20

Monitor Phase Status – Batch Display

Page 20: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 21

Monitor Phase Status – Phase Logic Tool

Page 21: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 22

Where is InBatch Phase Logic Tool?

Page 22: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 23

Phase Logic Tool – Add to Env. Display

Page 23: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 24

Phase Logic Tool-Add to Env. Display

Page 24: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 25

Monitor Phase Status – TagView

Page 25: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 26

Monitor Phase Status – WWClient

Note: Phase status values using WWClient

Page 26: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 27

Phase Monitor – What Do We Take Away?

• Phase Control/Status bits linked to the control system must be unique and valid addresses in PLC. Duplicate items cause issues

• Phase must always be in ready state prior to the beginning of the phase execution

• At any point in time, only status is present.

• Technotes as follows:

Page 27: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 28

Phase Monitor – What Do We Take Away?

• TN 555 – Active batch behavior when IBCli looses communications to IOServer

• TN 504 - Phase control bit behavior

• TN 312 – InControl phase logic for InBatch

• TN 23 – Developing Allen Bradley Phase logic for InBatch

Page 28: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 29

InBatch IBCli Parameters

● Response Time - Time after which an IBCli request to the IOServer will timeout. Default 15 seconds

● Ping Time - Interval at which IBCli will ping the IOServer to detect a connection loss. Default 2 seconds. To enable debug for IBCli, set the Ping Time to “-999”

● Advise All - Performs an Advise All on initialization

● Disable Timestamp – Disable the end of phase timestamp feature for this topic.

Page 29: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 30

IBCli debug – Log Messages with PingTime = -999

Reading a value from DAServer/IADAS:

2011/07/20 16:20:13.399/-03B4:14A4/IBCli /...(ProcessUpdate) Update

for [G2_V9072-V9074-CS-DONE] of [1] 2011/07/20 16:20:13.399/-

03B4:14A4/IBCli /...(ProcessUpdate) Time Stamp for [G2_V9072-V9074-

CS-DONE] of [2011/07/20 20:20:11] Quality [1c0]

Page 30: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 31

IBCli debug – Log Messages with PingTime = -999

InBatch writing value to DAServer/IADAS

2011/07/20 16:20:13.899/-03B4:14A4/IBCli /(tt) wwCliPoke - request:

[22869912]  tag: <G2_V9072-V9074-CS-RESET> Value:[1]

2011/07/20 16:20:13.899/-03B4:14A4/IBCli  /...(tt) Adding tag to request -

request: [22869912]  tag: <G2_V9072-V9074-CS-RESET> req type: [1]

2011/07/20 16:20:13.899/-03B4:14A4/IBCli  /...(ProcessUpdate) Update for

[G2_V9072-V9074-CS-RESET] of [1] 2011/07/20 16:20:13.899/-

Page 31: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 32

Where are IBCli Parameters?

Page 32: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 33

InBatch 9.5 – Trace IBCli via Logger

Page 33: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 34

InBatch - Environment Editor

• Any updates to Environment Editor requires Update Environment to affect changes, which means, stop runtime services, which means, it costs production down time.

Page 34: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 35

DAServer/IADAS Parameters

Page 35: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 36

DAServer/IADAS – Log Flags

Page 36: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 37

InBatch IBMX - Add Application in Env. Editor

Page 37: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 38

InBatch IBMX – Configure in TagLinker

Page 38: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 39

InBatch IBMX – Launch Galaxy Browser from TagLinker

Page 39: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 40

InBatch IBMX – Galaxy Browser

Page 40: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 41

IBMX with Verbose Mode-Log Messages

Page 41: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 42

InBatch IBMX - ObjectViewer

Page 42: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 43

InBatch IBMX – What Do We Take Away?

● Platform must be deployed to enable IBMX

● IDE must be installed in order to browse Galaxy browser inside of TagLinker

● Requires IDE and Runtime license for Platform

● Use TagView, Phase Logic, Batch Display and ObjectViewer to track Phase Control/Status tags

● InBatch and ArchestrA AppServer Communication Recommendations using IBMX – White Paper (Tech Article)

Page 43: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 44

Batch Warm Restart

● Warm Restart files - If there is no warm restart folder, batchmngr doesn’t startup

● .batchwrdebug – Creating a .batchwrdebug folder from command line enables the debug for warm restart information. This folder created under x:\>program files\wonderware\InBatch\Cfg\Config_a\.batchwrdebug

Page 44: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 45

Batch Parameters

Page 45: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 46

BatchMngr Parameters

● Param Timeout - Time in seconds, of all attempts to read a parameter tag value before timeout failure. Default value set to 30 seconds. If you see any parameter read timeouts in the logger tune this setting

● Phase Batch Status – Puts all phases on hold when batch is on hold – Add this setting if all phases needs to be on hold when batch is on hold

● Disconnect Clients – Disconnect all deadlock (misbehaving) clients – Add this setting if any clients misbehaving, otherwise it will cause negative impact to the BatchMngr

Page 46: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 47

InBatch ActiveX Ctrl - BatchGuiConfig

Page 47: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 48

BatchGuiConfig – Properties

● Note: MessageBoxes has to be disabled from popup, otherwise it will cause the view to not respond until message is acked.

Page 48: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 49

BatchGuiConfig – Events

● Terminate/Initialize the control using Startup/Shutdown events of Batch Server accordingly.

Page 49: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 50

SFCCtrl and OcxBatchCtrl

● Terminate/Initialize these controls inside of view using Shutdown/Startup events of BatchServer

Page 50: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 51

InBatch ActiveX Controls – What Do We Take Away?

● View locks up due to InBatch ActiveX Controls not terminated gracefully when connection lost to BatchServer (Server shutdown/loss network connection)

● Technote 364 – How to configure BatchGuiConfig ActiveX Ctrl for Redundancy Client Switch-Over. This technote is good for Standalone Server also.

● Starting with InBatch 9.5, use Technote 797 “Configuring InBatch Runtime Client Communication Timeouts.” These timeouts are configured in registry and technote covers details on configuration.

Page 51: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 52

InBatch Redundancy● Configuration Utility

Page 52: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 53

InBatch Redundancy (cont.)

● RedCfg File

● LMHost File

● Messages in the logger

Page 53: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 54

InBatch Redundancy (cont.)● Contents of RedCfg file

Line 1: Remote machine name. Line 2: (blank, not used). Line 3: The path to the remote machine’s config_A directory. Line 4: (blank, not used). Line 5: The local hostname for the primary network (must not be a machine name). Line 6: The local hostname for the secondary/backup network, if one exists. Line 7: The remote hostname for the primary network (must not be a machine name). Line 8: The remote hostname for the secondary/backup network, if one exists.

Note: The file content must end with a carriage return. Just press the Enter key after the last entry and then save the file. The contents of the RedCfg file must exactly match the entries in the Hosts or LMHosts files.

Page 54: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 55

InBatch Redundancy (cont.)● Contents of LMHost file

100.100.100.1 BATCHMASTER #PRE100.100.100.2 BATCHBACKUP #PRE100.100.100.10 INTOUCH1 #PRE100.100.100.11 INTOUCH2 #PRE100.100.100.12 INTOUCH3 #PRE100.100.100.1 BATCHMAST #PRE100.100.100.2 BATCHBACK #PRE200.200.200.1 BACKUP1 #PRE200.200.200.2 BACKUP2 #PRE

Page 55: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 56

InBatch Redundancy (cont.)● Technotes:

● 139 – Installing and configuring Redundancy Option for InBatch

● 302 – How to create host file and redcfg file for InBatch 8.0 redundancy setup which is still valid for later versions also

● 881 – Configuring InBatch Redundant Servers to Sync in a WorkGroup Environment

Page 56: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 57

Batch History & Reports (cont.) ● ReportQReader

● Custom Reports – Tech Note 767

Page 57: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 58

Log Flags for 9.5 ● XES Diags – all service apps

● App Load: %

● Max Delay: s

● Trace – HistQReader

● E.g. transactions and admin thread activity

● Trace – IBMX / IBCLI

● E.g. read, write, data updates, quality, ack/nak, etc

● Replaces –d (debug) and –p-999 (PingTime) options

Page 58: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 59

Log Flags for 9.5 (cont.)● Trace – OcxBatch ActiveX / Batch Display / Batch Scheduler

● Init, term, heartbeat, focus

● Trace – Recipe Editor

● XML Import and Export

Page 59: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 60

Log Flags for 9.5 (cont.)Security and Active Directory Trace Log Options

● [HKLM\SOFTWARE\Wonderware\InBatch\ArchestraSec\Debug]

● [HKLM\SOFTWARE\Wonderware\InBatch\NativeSec\Debug]

Page 60: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 61

Log Flags for 9.5 (cont.)Batch WR File Log Option

● Create folder before startup. Logs to folder. Send to Tech Support.

Page 61: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 62

Diagnostic Tools

● Operating System Log Files - Application/System/Security Event Log files

● ArchestrA Log files

● Windows Debugging tool

● Phase Logic Tool

● WWClient

Page 62: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 63

Diagnostic Tools (cont.)Microsoft WinDbg - used by Tech Support to examine DMP files.

Page 63: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 64

Diagnostic Tools (cont.)Technotes:

Page 64: Slide 2 Session Description In this session will discuss issues related to communications between InBatch and both Archestra (IBMX) and PLCs(DAServers)

Slide 65

Questions?

THANK YOU