Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetSpecParam - method of object PmCommData

Description:
The method allows to modify some values that are set in the PmCommData > Parameters > Special Parameters configurator.
Syntax:
SetSpecParam(sParam As String, Value As Variant) As Boolean
Calling:
oCommData.SetSpecParam sParam, Value
Parameters:
sParam(String) Name of the parameter.
"SlaveAddr" - Default PLC address. The parameter value represents 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
Example:
Changes the PLC address to 5
oCommData.SetSpecParam "SlaveAddr", 5
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice