.

Controller.Port

Specifies the TCP port to be used when connecting to a remote server.

NOTE: The Init method must be called to connect to a motion controller after the properties Address, Number, Port, and/or Type have been changed.

Port is used with the Address and Number properties when the Type property is set to ControlTypeRemote.

This property cannot be saved to flash memory.

Version History

Introduced in MPX 2.0.

Units

Seconds

Type

Int32

Default

0.0

Visual Basic

Syntax

Property Port As Int32

Sample Code

 
Mpx.Controller controller = new Mpx.Controller();

With controller
    .Type = Mpx.ControllerType.Remote;
    .Port = 3310;
    .Location = "192.168.1.74";
    .Connect(); 
End With
 


Sample Application

 

C#

Syntax

int Port;

Sample Code

 
Mpx.Controller controller = new Mpx.Controller();

controller.Type = Mpx.ControllerType.Remote;
controller.Port = 3310;
controller.Location = "192.168.1.74";
controller.Connect(); 
 

 

 

See Also

Type
Location
Number

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering