.

Controller.Type

Specifies whether the motion controller card is in the local computer or a remote computer.

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.

 
  •   ControllerTypeLocal - The controller is in the local computer
  •   ControllerTypeRemote - The controller is in a remote computer

The following table shows which other properties are required for each of the controller types.

 
Type Number Address Port
ControllerTypeLocal Required Ignored Ignored
ControllerTypeRemote Required Required Required

This property cannot be saved to flash memory.

Version History

Introduced in MPX 2.0.

Type

Mpx.ControllerType

Default

0.0

Visual Basic

Syntax

Property Type As Mpx.ControllerType

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

Mpx.ControllerType Type;

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

Number
Location
Port

 

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