Motion Control Products Application note How to display a page to indicate communication error

Similar documents
Please refer to application note AN00129 for further details on HCP2 configuration in ABB motion control products.

Motion Control Products Application note Connecting CP600 to motion products via Modbus TCP

Motion Control Products Application note Connecting CP600 to motion products via Modbus RTU

Motion Control Products Application note Connecting CP600 to motion products via Modbus RTU

Motion Control Products Application note Ethernet POWERLINK routing using the MotiFlex e180

Motion Control Products Application note Ethernet POWERLINK routing using motion drives

Inclusion of Modbus protocol support as standard makes integration of ABB products with any other Modbus RTU/TCP device as simple as possible

Motion Control Products Application note MotiFlex e180 PROFINET configuration AN

Application guide ACS355 and AC500-eCo.

AN Capture position, encoder or stepper values via simple to use high speed latching features

Motion Control Products Application note Connecting to e100 products from a remote location AN

Procedure to Create Custom Report to Report on F5 Virtual Services

Links Menu (Blogroll) Contents: Links Widget

AN Use Beckhoff TwinCAT System Manager to configure EtherCAT masters for control of ABB MicroFlex e150 servo drives

Cimplicity to TOP Server Connection

Highlight the s address (example: and go to the top of the page and click on Insert

FrontPage Student IT Essentials. October 2005 This leaflet is available in other formats on request. Saving your work

Introduction. Getting to Know Word The Ribbon. Word 2010 Getting Started with Word. Video: Exploring Your Word 2010 Environment.

Delegating Access & Managing Another Person s Mail/Calendar with Outlook. Information Technology

Chapter 2 Using Slide Masters, Styles, and Templates

Manage Account Settings in D2L

Workspace Administrator Help File

Excel The primary replacement for menus and toolbars in Office Excel 2007 is the Ribbon. Designed for easy browsing, the

These are activated from the Averiti Control Panel, illustrated in Figure 1. Figure 1: Averiti Control Panel

Word 2010 Getting Started with Word. Introduction. Getting to know Word The Ribbon. Video: Exploring Your Word 2010 Environment

AC500 profinet Solar T.P.S Page 1 of 24 With ET200S remote I/O Industrial Automation

Module 4: Advanced Development

Copyrighted material - provided by Taylor & Francis Not for distribution

Lab 4: Pass the Data Streams to a Match Processor and Define a Match Rule

Karlen Communications Add Accessible PowerPoint Placeholders. Karen McCall, M.Ed.

This document explains how to obtain a direct link from within an existing Facebook page to the hotel s booking

Microsoft Office Outlook 2007: Intermediate Course 01 Customizing Outlook

Access. Basics PRESENTED BY THE TECHNOLOGY TRAINERS OF THE MONROE COUNTY LIBRARY SYSTEM

IMPLEMENTING SCL PROGRAMS. Using Codeblocks

HarePoint Business Cards

Section 1-3A: Creating a hierarchically numbered list style

No Programming Required Create web apps rapidly with Web AppBuilder for ArcGIS

FreeConference Desktop Sharing with IBM Sametime User Guide

Organising your inbox

Hands-On Lab. Authoring and Running Automated GUI Tests using Microsoft Test Manager 2012 and froglogic Squish. Lab version: 1.0.5

for Watlow Controllers Quick Start Guide Version 5.0

Introduction to TOP Server 5 Troubleshooting and Best Practices

CUSTOMIZING CHECKPOINT TO WORK FOR YOU

Excel Tables & PivotTables

Adding a RSS Feed Custom Widget to your Homepage

To complete this database, you will need the following file:

ABB AC500 Technical Help Sheet

Create a Seating Chart Layout in PowerTeacher

Version Beta, pre-release. zspace Studio Users Guide

Acrobat X Professional

If this is the first time you have run SSMS, I recommend setting up the startup options so that the environment is set up the way you want it.

Using UniOP HMI panels with Galil controllers

Getting Started with Crazy Talk 6

To complete this database, you will need the following file:

Grapher 10 Ribbon Bar

DEVELOPING OOSIML SIMULATION MODELS. Using Codeblocks

Learning More About NetObjects Matrix Builder 1

Javascript in the Corvid Servlet Runtime Templates

Yokogawa Application Note 4. The CPU Device Area Setup is now displayed. In the example below, no global memory has been allocated for use

JAMS 7.X Getting Started Guide

Metrologics, LLC. Modbus Client Application User s Manual

Custom Reference Data Tables

CS-Studio Display Builder

IU Kokomo Career and Accessibility Center

A Guided Tour of Doc-To-Help

ActiveVOS Fundamentals

Technical Note. Setting up the Red Lion Crimson Software for Modbus TCP Communication to Tolomatic's ACS Drive. Contents

Some useful shortcut keys applicable for both Excel and Word (16 to 19 is only for Excel): Sr.No. Shortcut Keys Description

Crystal Reports 7. Overview. Contents. Parameter Fields

The Domino Designer QuickStart Tutorial

For many people, learning any new computer software can be an anxietyproducing

leveraging your Microsoft Calendar Browser for SharePoint Administrator Manual

Using LCS Help. In This Section

Table of Contents. Setting Up Your Calendar of Occasions Setting Up the Not Doing Now List Setting Up the Never Doing Now List...

Lab 19: Excel Formatting, Using Conditional Formatting and Sorting Records

Using Text/Html Widget on OMC Dashboard

New website Training:

ALTIRIS Console 6.5 Overview

EasyBuilder Pro V This model is a gateway device; therefore, it is not possible to generate a

Connecting InTouch to TOP Server V5. Using the FastDDE/SuiteLink Interface

PowerPoint Introduction

Technical Information Sheet

Styles and Conditional Features. Version: 7.3

TOP SERVER V5 CLIENT CONNECTIVITY ROCKWELL FACTORYTALK VIEW STUDIO. Table of Contents

Web Access to with Office 365

Automation AC500-eCo Sentinel Starter kit Plant Site Group Subscription

Navigating a Database Efficiently

<Partner Name> <Partner Product> RSA Ready Implementation Guide for

with TestComplete 12 Desktop, Web, and Mobile Testing Tutorials

Creating Web Pages with SeaMonkey Composer

Allowing access to Outlook 2000 folders Version 1.00

FeatureIDE: Overview. Thomas Thüm, Jens Meinicke. October 23, 2015

Here are the steps in downloading the HTML code for signatures:

Configuring LabVIEW 2009 to Communicate with Acromag Busworks and Etherstax Modbus I/O Modules via an OPC Server

Getting started 7. Writing macros 23

ABB Modbus RTU Driver for JMobile

DbSchema Forms and Reports Tutorial

Ignition HMI interface to Fanuc Industrial Robots

Table of Contents COURSE OVERVIEW... 3 LESSON 1: OUTLOOK 2010 CALENDAR INTERFACE... 5

Enterprise Modernization for IBM System z:

Transcription:

Motion Control Products Application note How to display a page to indicate communication error AN00201-002 Java script allows CP600 HMIs to perform a vast array of user-defined functions with ease Introduction The CP600 range of intelligent HMI panels is able to communicate with other peripherals (e.g. AC500 PLCs, ABB motion products) via a selection of communication protocols. This application note details how these HMIs can be programmed to display a particular page from the HMI project whenever a communication error is present. For general guidance on the use of Panel Builder 600 please refer to ABB manual 2CDC159007M0201. To configure a CP600 HMI to communicate with an ABB motion control product via Modbus RTU/TCP requires Panel Builder 600 version 1.80.00.34 (or later). Please contact your local Sales office if you need to update your existing version of this software. The following application notes may also be useful references: AN00198 : Integrated Modbus Support AN00199 : Connecting ABB CP600 HMIs to ABB Motion Products via Modbus TCP AN00200 : Connecting ABB CP600 HMIs to ABB Motion Products via Modbus RTU For the purposes of this application note we will assume a NextMove ESB-2 motion controller has been connected to a CP620 HMI and is using the ABB Modbus RTU protocol for communication ABB Motion control products 1

Overview of functionality To enable the HMI to detect a loss of communication with the connected PLC / Motion Control product we need to configure the following elements: A page to display in the event of the error being detected An internal variable used to store the last known communication status A scheduled task that calls a Java script function to check the current communication status The Java script function code It is assumed the reader is already familiar with creating HMI pages using the Panel Builder 600 software. Refer to the Panel Builder 600 software manual or the help file integrated within the software if more details are required on how to create and edit HMI pages. Creating an internal variable Double click the project configuration icon shown in the ProjectView pane (highlighted in our screenshot below). Our project is called Project1 and we have already added a second page to this project and named this page Comms Error. Having double-clicked the project configuration icon the software now displays the projects configuration screen in the right pane. We need to click on the Variables Widget icon as shown below so it becomes highlighted: In the Properties window click on the <empty> text.a + button will appear on the text box as shown below: Now click on the + button and then click Select Variable. A dialog appears listing the variables defined in the project (there are none at present of course) ABB Motion control products 2

Click on the green plus symbol and create a variable called LastCommsState Click OK and the Properties dialog for the project variables will now show our variable called LastCommsState exists. Creating a scheduled task Double click the Scheduler icon shown in the ProjectView pane (highlighted in our screenshot below). The software now displays a list of all of the programmed scheduled tasks (this list is empty at present as we re yet to create one) Click on the blue plus symbol to add a scheduled task. The software will add some default information about the scheduled task automatically ABB Motion control products 3

Click on the text in the Schedule column (Daily, Time, 13:57)..we need to change this to a schedule type that is performed every 2 seconds. The screenshot below shows how to configure the settings to achieve this Click OK and our Scheduler list now updates to reflect these changes. It is now worth giving this scheduled task a name that indicates what the task does.click on the text in the Name column (Schedule1) and rename this CheckComms (as shown below) Now click in the Action text box, a dialog will appear allowing us to program what action will be taken every 2 seconds We need to program the scheduled task to call a Java script function so on the Macro tab select Javascript as shown below ABB Motion control products 4

The software automatically lists an action called Javascript-CheckComms. The name for the Java script function is inherited automatically from the name we gave the scheduled task. Click OK to accept this. Creating the Java script code to display a page when a communication error occurs Double-click the project configuration icon again so that the Variables widget icon and the rest of the Mgr icons are displayed again. In the project window, at the bottom left corner, you will see we are currently viewing the Edit tab. Click on the Script tab instead The software now displays the Java scripts that are present in our project. As we saw in the previous step, the software automatically created a script called CheckComms (named after our schedule) and the code window now displays the outline for this script. ABB Motion control products 5

Click in the code editor, insert some blank lines before the final } character and then either paste or write the following lines of code so they become part of the function var plcmgr = project.getwidget("_syspropmgr"); var comstate = plcmgr.getproperty("protocol Communication Status"); var varwgt = project.getwidget("_variableswgt"); var compvar = varwgt.getproperty("lastcommsstate"); if( compvar!= comstate) { if(comstate === "2") { project.loadpage("comms Error.jmx"); varwgt.setproperty("lastcommsstate",2); }else{ project.lastvisitedpage(); varwgt.setproperty("lastcommsstate",1); } } else { return false; } Your Java script should now look something like the following This script compares the current communication status (read via the inbuilt system tag Protocol Communication Status ) against our defined internal variable LastCommsState. If they are different it decides whether to display the Comms Error screen (via the project.loadpage function) or to return to the last page that was displayed (via the project.lastvisitedpage function). These actions are performed every 2 seconds (as setup by our scheduled task) and if a communication error is detected our Comms Error page is displayed automatically ABB Motion control products 6

For more information about Java script and the available Java script functions within Panel Builder 600 please refer to the Working with Javascript in Panel Builder 600 topic in the help file included with the software. Contact us For more information please contact your local ABB representative or one of the following: Copyright 2012 ABB. All rights reserved. Specifications subject to change without notice. www.abb.com/drives www.abb.com/drivespartners www.abb.com/plc ABB Motion control products 7