Panasonic HMWIN User Manual page 273

Touch
Hide thumbs Also See for HMWIN:
Table of Contents

Advertisement

project.showMessage("Hi This is test message");
getGroup
number getGroup( groupName, groupInstance, [callback] )
Fast read method; this gets the values of all tags in a group.
Parameters
groupName
groupInstance
callback
A string containing the name of the function to be called when the group is ready.
Return value
A number value that is the status: 1 for success, 0 for fail.
var group = new Group();
var status = project.getGroup ("enginesettings", group);
if (status == 1) {
var value = group.getTag("Tag1");
if (value!=undefined) {
// do something with the value
}
}
var g = new Group();
var status = project.getGroup ("enginesettings", g, "fnGroupReady");
function fnGroupReady(groupName, group) {
var val = group.getTag("Tag1");
if (val!=undefined) {
// do something with the value
}
}
getTag
object getTag( tagName, state, index, forceRefresh)
void getTag( tagName, state, index, callback, forceRefresh)
It returns the tag value or the complete array if index value is -1 of the given tagName.
Parameters
tagName
A string of the tag name.
state
The state element to be filled.
index
An index if the tag is array type. -1 returns the complete array. Default is 0.
Function name if an asynchronous read is required. Default = "".
callback
forceRefresh Optional parameter (false as default) that force runtime to read tag value directly from
device (and not from cache).
Return value
Tags value is returned. If tag is array type and index = -1 then the complete array is returned.
Remarks
For non-array tags provide index as 0.
Follow some additional details related to the use of getTag function with forceRefresh parameter. If:
ACGM0195V1EN
HMWIN Studio User Manual
A string containing the name of the group.
The group element to be filled.
273

Advertisement

Table of Contents
loading

Table of Contents