Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SetPmComm - method of object PmModem

Description:
The dynamic assignment of the PmComm object (statically can be also set by the PmComm object configurator). The assignment by this method allows to change dynamically the communication protocol.
Syntax:
SetPmComm(Path As String) As Boolean
Calling:
oModem.SetPmComm path
Parameters:
Path(String) Path to the PmComm object in the application tree
Return Values:
true - If the assignment performed successfully
false - otherwise
Example:
Dialing various numbers and communication other protocols depended on the nProtocol variable.
Dim bOk
If nProtocol = 1 Then
  oModem.SetPmComm "\PLC1"
  bOk = oModem.Call("356 871", 30)
Else
  oModem.SetPmComm "\PLC2"
  bOk = oModem.Call("444 555", 40)
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice