Script Objects
Script Objects
PowerScene Script is based on object-oriented design, consisting of pre-defined objects and member functions of the objects, depending on the functionality of the system.
In web programming, you can access pre-defined objects in PowerScene with a Python script, as well as you would access the objects like Screen, Document in a web browser with javascript.
PowerScene script provides the following objects.
PowerScene Script Objects
Model Name |
Description |
Support Program |
Used to read or write the value of analog points and status points. |
PowerScene Studio, Data Explorer |
|
It provides the application program functions used by PowerScene. Main functions are program termination, executing external programs, playing sound, and printing messages. |
PowerScene Studio, Data Explorer |
|
canvasManager object is an administrator that manages canvases. Main functions are searching for active canvases, opening canvases, and closing canvases. |
PowerScene Studio |
|
canvas object represents a canvas. canvas object provides canvas functions. Main functions are obtaining a graphical item on the canvas, executing timer, executing animation, fitting in canvas screen, and maximizing/minimizing canvases. |
PowerScene Studio |
|
remote object is used to send commands to a communication driver. User can control the device with remote object. |
PowerScene Studio, Data Explorer |
|
logAnalog object is used to read the historical data for analog points or history data groups. Available values are the moment, maximum, minimum, average, variation values in hourly, daily, monthly, and cumulated period. |
PowerScene Studio, Data Explorer |
|
logStatus object is used to read the historical data for status points or history data groups. Available values are the On / Off count, total cumulative and hourly, daily, monthly, and annual On / Off values. |
PowerScene Studio, Data Explorer |
|
logTrand object provides the ability to acquire information about trend groups stored as historical data. Available values are periodical trend group information and the data from a particular time zone. |
PowerScene Studio, Data Explorer |
|
PowerShape object refers to objects drawn on the canvas. Each object has a name. |
PowerScene Studio |
|
analogData is the value through the function getStatusData in SCADA. The data includes various information such as the state of analog points, the last data, maximum / minimum / average values, maximum / mimimum time, tag, limit, and quality. It has built-in functions that allow you to recall various values. |
PowerScene Studio, Data Explorer |
|
statusData is the value through the function getStatusData in SCADA. The data includes various information such as the state of status points, the last data, On / Off time, On / Off count, tag, limit, and quality. It has built-in functions that allow you to recall various values. |
PowerScene Studio, Data Explorer |
|
excel object is used to read or save the value of excel files. Users can save operational values or other information as an excel file, and read the value stored in excel files. |
PowerScene Studio, Data Explorer |
|
Used to query, insert, delete, and update the data in the database. dbm object allows to the user executing a query and creating new tables or set the value in the database. |
PowerScene Studio, Data Explorer |