Promotic
WikipediaLinkedInYoutubeTwitterFacebook

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 name of the parameter.
"SlaveAddr" - Default PLC address. The parameter value is the PLC number (meter, device, ...)
This parameter can be used for the following drivers: PmModbusMr, PmMBus, PmSBUS and PmFatek.
Value(Variant) Parameter value.
Return values:
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.16 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice