广告
广告
34 JavaScript
Parameter me eventInfo
Description
Object triggering the event
Details of triggered event function Project1_onMouseWheelClock(me, eventInfo) {
//do something…
}
Objects
PB610 Panel Builder 600 uses JavaScript objects to access the elements of the page. Each object is composed of properties and methods that are used to define the operation and appearance of the page element. The following objects are used to interact with elements of the HMI device page:
Object
Widget
Page
Group
Project
State
Description
This is the base class for all elements on the page including the page element
This object references the current HMI device page.
The page is the top-level object of the screen.
This object associates a set of tags to allow uniform operation on a set of logically connected tags
This object defines the project widget. The project widget is used to retrieve data about the project such as tags, alarms, recipes, schedules, tags and so on.
There is only one widget for the project and it can be referenced through the project variable.
This object is the class holding the state of a variable acquired from the controlled environment.
Beside the value itself, it contains the timestamp indicating when the value was collected and flags marking the quality of the value.
Widget class objects
The Widget class is the base class for all the elements on a page including the page element.
Widget, in this case, is not used to indicate a specific screen object but a JavaScript class.
Changing widget properties with JavaScript
If you want to change the properties of widgets with JavaScript set the widget property Static Optimization to Dynamic.
Copyright © 2011-2016 ABB. All rights reserved. Documentation Revision 2.00 - Date of issue: 2016-07-19
285
广告