resolveAttribute
[ Function ]
public static resolveAttribute(
expression: string,
name: string,
callback?: (
(
this: void,
data: TcHmi.Symbol.IAttributeResultObject
) => void
)
): void;
Returns a specific attribute from the schema of the corresponding symbol.
This function can be used to obtain a specific attribute of a PLC symbol.
Parameter
Name | Type | Description |
---|---|---|
expression | Symbol expression | |
name | Name of the attribute | |
callback [ optional ] | ((this: void, data: TcHmi.Symbol.IAttributeResultObject) => void) | This is triggered when the result is available. |
Return value
Type | Description |
---|---|
void | No return value |
Available from version 1.12 |