Mint NextMove PCI Manual de usuario Pagina 11

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 70
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 10
Using the MintMT ActiveX Control 4-1
4 Using the MintMT ActiveX Control
4.1 Overview
Using the Mint Motion Library (MML) function set, the MintMT ActiveX control provides all of the
functionality that is available in the MintMT programming language. In addition to the MML functions the
MintMT ActiveX control has extra functionality to allow the initialization of controllers. This includes
updating firmware, downloading MintMT programs and running MintMT programs.
This allows the MintMT ActiveX control to be used for complete machine control.
4.2 Communicating with controllers
In order to use the MintMT ActiveX control to communicate with a MintMT controller the MintMT ActiveX
control must be included in the application. Before any communication to the controller can take place a
handle to the controller must be created. This tells the MintMT ActiveX control what type of controller is
connected and the physical medium to use to communicate with the controller.
For example:
NextMove PCI, Card number, Node number
MintDrive
II
, COM port, Baud rate, Node number.
Once this has been done then any MintMT ActiveX control function can be called.
Below are examples of creating handles to various controllers. Where MintController is the name of the
MintMT ActiveX control in the project.
The following examples are in Microsoft Visual Basic.
NextMove PCI
MintController.setNextMovePCI1Link 0, 0
Creates a handle to a NextMove PCI controller which is card number 0 and node number 0.
NextMove BX
MintController.setNextMoveBXLink 0, 1, 57600, True
Creates a handle to a NextMove BX controller which is node number 0 connected via com port 1 at a baud
rate of 57600. The final True parameter specifies that the port should be opened for use.
Usin
g
the MintMT ActiveX Control
4
Vista de pagina 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 69 70

Comentarios a estos manuales

Sin comentarios