dpGetName()
Returns the datapoint name for the passed datapoint ID and element ID.
Synopsis
string dpGetName(uint dpId, int elId[, int sysnum = ownSystem]);
Parameters
| Parameter | Description |
|---|---|
| dpId | Datapoint ID. |
| elId | Datapoint element ID. |
| sysnum |
Optional parameter. System number. Default: Own system. |
Return Value
Datapoint name. Empty string in case of an error.
Description
Returns the datapoint name for the passed datapoint ID and element ID.
Example
main()
{
uint dpID;
int elID;
string dpName;
dpGetId("System1:ExampleDP_Arg1.", dpID, elID);
dpName = dpGetName(dpID, elID);
DebugN("DP ID: ", dpID, "DPE ID: ", elID);
DebugN("DP Name: ", dpName);
}
Assignment
Datapoint function
Availability
CTRL