Update cookies preferences
Promotic

SetSpecParam - method of the PmaCommGroup object

Description:
The method allows to modify some values that are set in the "PmaCommGroup > Parameters > Special Parameters" configurator.
Syntax:
Boolean SetSpecParam(String sParam, Variant Value)
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.
Value(Variant) Parameter value.
Return value:
true - on success
false - on error
See also:
Example:
Changes the PLC address to 5
JavaScriptVBScriptSelect and copy to clipboard

var oCommGroup = pMe.Pm("/Comm/Group1");
oCommGroup.SetSpecParam("SlaveAddr", 5);

History:
Pm8.02.01: Created
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.