GetSpecParam - method of the PmaCommGroup object
Syntax:
Variant GetSpecParam(String sParam)
Parameters:
sParam | (String) The parametr name.
"SlaveAddr" - Default device address. The parameter value is the PLC device number (meter, device, …).
This parameter can be used for the following drivers: PmModbusMr, PmMBus, PmSBUS and PmFatek. |
---|
Return value:
The value of the sParam parameter.
Example:
Detects the PLC address:
JavaScriptVBScriptSelect and copy to clipboard
var oCommGroup = pMe.Pm("/Comm/Group1");
var val = oCommGroup.GetSpecParam("SlaveAddr");
Dim oCommGroup
Set oCommGroup = pMe.Pm("/Comm/Group1")
Dim val
val = oCommGroup.GetSpecParam("SlaveAddr")