Promotic
WikipediaLinkedInYoutubeTwitterFacebook

GetProtParam - method of object PmComm

Description:
Detects some values defined in configurators on page PmComm > Parameters.
Syntax:
GetProtParam(sParam As String) As Variant
Calling:
val = oComm.GetProtParam(sParam)
Parameters:
sParam(String) Name of the parameter.
"EthIPAddr" - Ethernet IP address. The value is of type String.

The value can be set by method OpenPort or in configurator "PmComm > Settings of the Ethernet parameters > Network address".

This value cannot be set by method SetProtParam.

"EthPort" - TCP/UDP port number. The value is of type Integer.

The value can be set by method OpenPort or in configurator "PmComm > Settings of the Ethernet parameters > TCP/UDP port number".

This value cannot be set by method SetProtParam.

"SerPort" - Serial port. The value is of type String.

The value can be set by method OpenPort or in configurator "PmComm > Settings of the serial link parameters > Serial port".

This value cannot be set by method SetProtParam.

"ProtType" - The value is of type String.

This parameter can be used for the driver PmSNMP: Defines the version of SNMP and additional parameters. See Changing SNMP protocol parameters.

Return Values:
The value of the sParam parameter.
Example1:
Detects Ethernet communication parameters:
sVal1 = oComm.GetProtParam("EthIPAddr")
sVal2 = oComm.GetProtParam("EthPort")
In variable sVal1 there will be string, e.g. "192.168.1.2"
In variablesVal2 there will be number, e.g. 161
Example2:
Detects values of parameters of protocol driver PmSNMP:
sVal = oComm.GetProtParam("ProtType")
In variable sVal there will be string, e.g. "snmpVer:1;commRO:public;commRW:private;"
PROMOTIC 8.3.19 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