AN-POV-003 Using the radio button and check-box objects

Similar documents
Figure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel.

D3D Pythons 1. Material Utilities

This tutorial will teach you about operators. Operators are symbols that are used to represent an actions used in programming.

SCADA system & HMI Programming. Pre-request: Have good knowledge with PLC Basic. Plot all variables and store the values

The following content has been imported from Legacy Help systems and is in the process of being checked for accuracy.

Javascript in the Corvid Servlet Runtime Templates

Contents. IDEC Communication Driver. Driver for Serial communication with Devices using the IDEC MicroSmart Communication Protocol INTRODUCTION...

Modbus TCP Server Driver for JMobile

KingSCADA Quick Start Manual How to create a new project

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

Software Engineering Software Requirements Specification (SRS) Document

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

Program s UI or Keyboard buttons are shown bold. Working procedure and sequence explanation. 2 or more contents descriptions or explanations are

CINCINNATIR CINCINNATI HYDRAULIC SHEAR WITH TOUCHSCREEN SHEAR CONTROL A SUPPLEMENT TO THE OPERATION MANUAL FOR THE

3.2 Circle Charts Line Charts Gantt Chart Inserting Gantt charts Adjusting the date section...

Installation and Programming Instructions Part: Service Gateway

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Import Tool for PanelBuilder

Forms iq Designer Training

Writer Guide. Chapter 15 Using Forms in Writer

Welcome to ThinkEssentials

Microsoft Office Excel Use Excel s functions. Tutorial 2 Working With Formulas and Functions

DNP3 Client Configuration

TRAINING GUIDE FOR OPC SYSTEMS.NET. Simple steps to successful development and deployment. Step by Step Guide

Obtaining a login and password to the Online Application

Java Classes and Objects

SIMATIC HMI. Software RemoteOperate V2. Preface. Overview 1. Range of functions of the RemoteOperate software. Hardware and software requirements

SCUtils ConvertTask Guide Solution for Microsoft System Center 2012 Service Manager

Ignition HMI interface to Fanuc Industrial Robots

Manual. empower charts 6.4

User Manual. pdoc Pro SDK Server. Copyright 2018 Topaz Systems Inc. All rights reserved. Version 2.1. Last Update: March 15, 2018

BEFORE INSTALLATION: INSTALLATION:

Dabo Tutorial: Hello_msgBox

Visual Designer v7.0. Quick Start Guide

getting STARTed Virtual Coin Cabinet 2v9 beta COIN database SOFTWARe STePHeN HUSTON FileMaker Pro developer .A FIleMAKeR PRO 10 RUNTIMe SOlUTION

Graphical User Interface. GUI in MATLAB. Eng. Banan Ahmad Allaqta

Kodak i5000 Series Scanners Software Release Notes

SolidWorks 2017 Installation Guide

Programming in C++ Prof. Partha Pratim Das Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Advanced Reporting Tool

EMP105A-D - How to plan and build a basic form in Front Page.

ZLog Z6R Altitude Data Recording and Monitoring System

egrapher Language Reference Manual

Connecting UniOP as Modbus/TCP Server

Impossible Solutions, Inc. JDF Ticket Creator & DP2 to Indigo scripts Reference Manual Rev

Customizing Wizards with Cisco Prime Network Activation Wizard Builder

WallSign TASKE Call Center Management Tools Version 7.0. Table of Contents TABLE OF CONTENTS TASKE WallSign Startup and Shutdown...

UNITRONICS ETHERNET/IP COMMS WITH A FENA-01/11/21 ADAPTER MODULE

Cimplicity to TOP Server Connection

Custom Reference Data Tables

How to lay out a web page with CSS

Quick Reference for the FloridaCHARTS Fetal Death Query

Adding Dynamics. Introduction

SQL Server. Management Studio. Chapter 3. In This Chapter. Management Studio. c Introduction to SQL Server

Install Error Code 8000ffff Windows Vista Service Pack 1

Version NaViSet Administrator 2. Quick Start Guide English

Controlled Assessment Task. Question 1 - Describe how this HTML code produces the form displayed in the browser.

Unable To Remove Printer Driver Currently In

IBM NetBAY Virtual Console Software. Installer and User Guide

Python: Developing Geoprocessing Tools. David Wynne, Jon Bodamer

5. JavaScript Basics

PHY Microprocessor Interfacing Techniques LabVIEW Tutorial - Part X File Output and Input

Republicbank.com Supported Browsers and Settings (Updated 03/12/13)

IRIS-Net Project Generator User Guide

OMEGA APPLICATION NOTE - AN001 Introduction to OM-LMPLC programming Simple output cycling COPYRIGHT OMEGA

Writer Guide. Chapter 15 Using Forms in Writer

Interface. 2. Interface Adobe InDesign CS2 H O T

Manual.

Introduction to TOP Server 5 Troubleshooting and Best Practices

Copyright 2017 Softerra, Ltd. All rights reserved

YASKAWA Drive. PROFINET Function Block for Use in TIA Portal User Instructions

Q. The mcolor installer is reporting "There was a problem installing. permission. If that does not work, try remove.bat followed by install.bat.

SCANXLS V3.3 Copyright 2007 Patrick O'Beirne Systems Modelling Ltd User Guide

NEO OPC Client Driver. The NEO OPC Client can be launched by configuring an OPC Link from the New Link or Add Link dialog as the followings:

Document # Rev. C 4/10 Cencon 4 Getting Started Guide

Step 10: Conversion to PDF

Table of Contents. Taking a First Look 2 Intelligent Remote Control 2 Before You Start 4

Kaspersky PURE 2.0. Anti-Banner: lists of allowed and blocked web-addresses

Bpm online sales. Team Package User Guide

RoboDAQ7. By John Buzzi. Masters of Engineering Report. Cornell University

Enterprise Architect. User Guide Series. Wireframe Models. Author: Sparx Systems Date: 15/07/2016 Version: 1.0 CREATED WITH

Introduction to Unreal Engine Blueprints for Beginners. By Chaven R Yenketswamy

User Guide. Version 1.x

StarTeam Layout Designer Help

PiXtend with CODESYS Create Project

Tutorial: Introduction to Flow Graph

Setting up Pinnacle Ethernet IP communication with Allen Bradley PLCs

Chart of Account (COA) Maximums

Syncrosoft License Control Release Notes

Tech Note Application Guidelines

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

Section Software Applications and Operating Systems - Detail Criteria Supporting Features Remarks and explanations (a) When software is design

Copyright 2018 MakeUseOf. All Rights Reserved.

AVG Business Edition Remote Administration

Service & Support. How do you create a weekly timer with WinCC flexible? WinCC flexible 2008 SP2. FAQ October Answers for industry.

WIRELESS DATABASE VIEWER PLUS (ENTERPRISE EDITION) SERVER SIDE USER GUIDE

Table of Contents. 1. OS Requirements Packages which have to be preinstalled IIS setup under Windows XP or Windows 2003 Server..

How to Use SVG Cut Files

Office 2016 Excel Basics 06 Video/Class Project #18 Excel Basics 6: Customize Quick Access Toolbar (QAT) and Show New Ribbon Tabs

SOLIDWORKS PDM Understanding Data Card Tabs

Transcription:

Category Software Equipment Software Demo Application Implementation Specifications or Requirements Item POV Version: 7.1 and later Service Pack: Windows Version: Windows XP SP3, Vista SP2, Win 7 SP1, Win 8 Web Thin Client: Yes Panel Manufacturer: Panel Model: Other Hardware: Comm. Driver: All Controller (e.g.: PLC) All Application Language:. Summary Point of View s (POV s) development toolbox includes a Radio Button object and a Check Box object. Frequently, developers confuse the operation of these objects. This application note explores the operation of the Radio Button object and the Check Box object. The Radio Button Object The Radio Button is a graphical user interface that allows a user to choose one of a predefined set of options. Radio buttons got their name from the buttons used on radios to select a preset station. Once the button was pressed, pressing it again (generally) does not change the selection. Only by pressing another radio button could the selection be changed. The POV radio button works in this manner, and is consistent with the functioning of radio buttons in Microsoft Windows. The Radio Button and its Object Properties dialog box appear as follows: The Radio caption can be changed to any valid caption. A POV tag defined in the Tag field is assigned the value in the True field when the radio button is selected. 1

In the example above, the POV tag is Tag1, and the True value is 1. If the Radio Button is selected, Tag 1 will be assigned a value of 1. In a runtime setting, assuming Tag1 has an initial setting of 0 and the Radio Box has not been selected, the Radio Button will have a clear center. When the Radio Button is selected, Tag1 will be assigned a value of 1 (i.e. the value in the True Value field) and there will be a small black dot in the center of the Radio Button. Note that repeatedly selecting the Radio Button will not toggle the value of the tag defined in the Tag Field. Every time the Radio Button is selected, it will be assigned the value indicated in the True Value field (in this example, Tag1 will be assigned a value of 1). However, if another POV object or script (Math or VBScript) resets the tag to a value of 0, the Radio Button will be deselected. If you want to create a group of Radio Buttons that interact with each other, this can be easily done by creating multiple Radio Buttons that use the same Tag but have different values in the True Value field. At runtime, if each Radio Button has a different True Value, then only one Radio Button will be selected at a time. An interesting feature of the POV Radio Button is the Tri-State option. This option can be selected by first pressing the Advanced button in the Object Properties dialog box. A new dialog box pops up that allows the developer to enter advanced settings for the Radio Button object. If the Tri-State option is not selected (i.e. it is unchecked), the Radio Button operates in a Normal Mode (as described above). Only two states are allowed; either selected (when the Radio Button is clicked on, or when the tag specified in the Tag field is set to a value as specified in the True Value field) or unselected (when the tag specified in the Tag field has a value different that the value specified in the True Value field). If the Tri-State option is selected, the Radio Button works in the following manner: Assuming the value of the tag specified in the Tag field (Tag1 in our example) is not equal to either the True Value or the Tri-State Value, the Radio Button is not selected (clear center). The first time the Radio Button is selected, the tag specified in the Tag field will be set to the True Value. The center of the Radio Button will have a small black circle indicating it is selected. 2

The next time the Radio Button is selected, assuming the tag specified in the Tag Field has not changed its value from the True Value, the tag (e.g. Tag1) will be assigned the Tri-State value. Additionally, the circle and black center will be grayed out. Note that if the tag value (e.g. Tag1) changes from the True Value before the Radio Button is pressed again (i.e. when it would normally be set to a Tri-State value), when the Radio Button is pressed again, it will be set to the True Value, not the Tri-State value. The tag specified in the Tag Field can be any POV tag type (Boolean, Integer, Real, or String), but it is essential that the value in the True Field and the Tri-State field (if used) must be consistent with the tag data type. If the Tri-State value is used, it must not be the same value as the True Value, and if the tag is a String tag type, the Tri-State Value must not be an empty string. 3

The application above uses the same tag in the Tag Field of each Radio Button, demonstrating one method of using a combination of Radio Buttons to select one of a multiple of options. Using this approach, only one Radio Button in the combination could be selected at a time. This method results in the tag being set to a value corresponding to the option selected. Another method of using Radio Buttons is with the Feedback field. The Feedback field is accessed in the Advanced dialog box. The Feedback field contains a tag of the same data type used in the True Value field and the Tri-State field (if it is used) of the Radio Button. The Feedback field works in the following manner: If the value of the tag in the Feedback field equals the value of the tag in the True Value field, the Radio Button state is set to True. A small black circle will appear in the Radio Box. If the value of the tag in the Feedback field equals the value of the tag in the Tri-State value field, the Radio button will be set to Tri-State. A small black circle will appear in the Radio Box and the entire circle will be grayed out. If the neither of the above conditions is satisfied, the Radio Button state is set to False. When using the Feedback field, it is important to note that the Radio Button does not operate in a Normal state. Consider the first example above, which shows Normal operation of the Radio Button. The parameters were set as follows: Radio Button Tag = Tag1 (tag type integer) True Value = 3 Tri-State box checked Tri-State value = 4 Feedback field empty When Radio Button1 is selected, Tag1 is set to a value of 1. When Radio Button2 is selected, Tag1 is set to a value of 2. When the Radio Button 3 object is selected the first time, Tag1 will be set to a value of 3 (the True Value). When the Radio Button 3 is selected a second time, without another object changing Tag1 s value, the Tag1 value will be set to a value of 4 (the Tri-State value). If Radio Button 3 is selected again, without another object changing Tag1 s value, Tag1 will be set to a value of 3 (the True Value). Additional selections of the Radio Button 3 object will toggle Tag1 s value between the Tri-State value and the True Value. Once Tag1 is set to a different value (another Radio Button object, another object or by Script), the first subsequent selection of the Radio Button 3 object will set Tag1 s value to 3. Now consider the functioning of the Radio Button when a tag is specified in the Feedback field. For example, we will create a new tag called Tag2 (tag type integer) and specify this in the Feedback field. All other parameters as specified above remain the same. The displayed state of Radio Button3 object will follow the value of Tag2; i.e. If Tag2 = 3, Radio Button3 displays as True If Tag2 = 4, Radio Button3 displays as Tri-State For all other values of Tag2, Radio Button3 displays as False When Radio Button1 is selected, Tag1 is set to a value of 1. When Radio Button2 is selected, Tag1 is set to a value of 2. When the Radio Button 3 object is selected the first time, Tag1 will be set to a value of 3 (the True Value). However, two things are now different from the Normal operation: 1. The display state of Radio Button3 object will follow Tag2 s value, not change based on Radio Button3 being selected. 4

2. Despite whatever Tag2 s value is set to (False, True, or Tri-State), when the Radio Button3 object is selected, Tag1 value will be set to 3. Repeated selections of the Radio Button3 object will not toggle between the True Value and the Tri-State value. Only the True Value will be used to set Tag1 s value (until set to a different value by another object or Script). The Check Box Object The Check Box object is another graphical user interface that permits a user to make a selection or set of selections when multiple Check Boxes are used. By convention, when multiple Radio Boxes are used, only one selection is allowed, whereas by convention multiple Check Box selections are allowed. However, this is not an absolute requirement. With POV, a Check Box can have one of 3 possible states; False (empty box), True (checked box), or Tri- State (grayed out box), as illustrated below. In its normal state, the Check Box object will toggle between the False and True state. If the Tri-State option is enabled, the Check Box will toggle between the False, True and Tri-State states. Table of False, True and Tri-State Result Values Stored in Tag (Tag field) Data Type True Value Tri-State Value Result = False Result = True Result = Tri-State Boolean* 1 1 n/a 0 1 n/a Integer 2 n/a 0 2 n/a Integer 2 4 0 2 4 Real 5.3 n/a 0 5.3 n/a Real 5.3 7.8 0 5.3 7.8 String Hello n/a 1.0000 Hello n/a String* 2 Hello Goodbye <Null> Hello Goodbye * 1 Do not use the Tri-State option if the tag type is Boolean. Unexpected results can occur. * 2 It is recommended to use the Tri-State option if the tag type is String. The Tri-State value can be set to any valid string value. Do not use a null string value ( ), otherwise the Check Box will not toggle properly. However, the Tri-State value can be set to a blank if desired ( ). 5

Note: One major difference between the Check Box and the Radio Button control is that the Check Box will toggle between the False and True states (or False, True and Tri-State states if the Tri-State option is enabled), whereas the Radio Button will not toggle unless the tag specified in the Tag field is changed by another object. When the Check Box object is selected, the value of the tag specified in the Tag field toggles between the False value and True Value, or between False value True Value Tri-State value False (and so on) if the Tri-State option is enabled. If a tag is placed in the Feedback field, the toggling between states will operate differently. Similar to the operation of the Radio Button object, the value of the Check Box s Feedback tag will control the display of the Check Box (i.e. empty box, checked box or grayed out check box). The value of the Feedback tag will determine the display state of the Check Box as well as its actual state and the next toggle state. For example, if a tag (e.g. Tag 2) is specified as the Feedback tag and its value equals the True Value as 6

specified in the Check Box s Object Properties, the next toggle state will be either the False value (when operating in a Normal mode) or the Tri-State state (when the Tri-State option check box is enabled). If the Tri-State option is enabled and the value of the Feedback tag (e.g. Tag 2) is equal to the Tri-State value, then the next toggle state will be the False state. If the Feedback tag does not equal either the True Value or the Tri-State value (if the Tri-State option is enabled), then the Check Box state is false and the next toggle state will be True. Note: If a tag is specified in the Feedback field, the value of this tag will determine the current state of the Check Box. If the Check Box is selected, the tag specified in the Tag field will be advanced to the next state. However, repeated selection of the same Check Box will not advance the Check Box state further. This can only be accomplished by changing the value of Feedback tag. A representative state table is below. Table of States for a Check Box with an Integer Tag & Tri-State Option Enabled Action True Value Tri-State Tag 1 Tag2 Displayed State Value (Tag) (Feedback) Initial settings 1 2 0 0 Unchecked Tag 2 set to 2 1 2 0 2 Grayed Out Check Box Selected 1 2 0 2 Grayed Out Check Box Selected again* 1 1 2 0 2 Grayed Out Tag 2 set to 0 1 2 0 0 Unchecked Check Box Selected 1 2 1 0 Unchecked Check Box Selected again* 1 1 2 1 0 Unchecked Tag 2 set to 1 1 2 1 1 Checked Check Box Selected 1 2 2 1 Checked Check Box Selected again* 1 1 2 2 1 Checked * 1 Has no result (i.e. does not change Tag1 (Tag) or displayed state of the Check Box). 7