Mint NextMove PCI Bedienungsanleitung Seite 22

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 70
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 21
5-2 Advanced Features
Priority Event Supported By
11 Axis Idle NextMove PCI
12: Lowest Unknown NextMove PCI
The Reset event only available on NextMove PCI. It is not generated by the controller but by the device
driver and is not subject to the priority scheme.
In order for the user to be informed of an event, a handler must be installed. Event handlers may be
installed in applications running on the controller (MintMT) and applications running on the PC. If both an
embedded handler (MintMT or an embedded application) and a PC handler are installed then only the
handler on the controller (MintMT or embedded) will be called.
When an event occurs and the appropriate handler is installed the handler is called. A higher priority event
will interrupt a lower priority event. If multiple events occur within 2ms, then the above priority system will
be used to decide which event to call.
5.1.1 Installing ActiveX event handlers
The events listed above will appear as part of the MintMT Controller object when the MintMT ActiveX
control has been included in the project. Within the development environment being used, code can be
added to an event handler. This code will be called when the controller generates an event of a specific
type.
In order for the ActiveX control to receive events both the device driver and the controller must be told for
which events handlers exist. This is done using an installXXXXhandler function. These functions are
passed a boolean value, either true to install the event handler or false to uninstall the event handler.
Once the handler has been installed the event will get generated by the controller, this will interrupt the
PC. The device driver will catch the interrupt and set an event in the ActiveX control. This event will then
call the event handler code in the PC application.
Serial Receive
To install a serial receive event handler the function installSerialReceiveEventHandler must be
called to install the event handler with the device driver and the controller. This function accepts a single
boolean parameter. Passing true will register the event handler and allow error events to be received.
Passing false will uninstall the event handler and prevent error events being generated or received.
When a character is transmitted from the controller to the PC a serial receive interrupt is generated. This
event is used by the output window in WorkBench v5. Installing a serial receive event handler in another
PC application will disable the output window in WorkBench v5.
Error event
To install an error event handler the function installErrorEventHandler must be called to install the
event handler with the device driver and the controller. This function accepts a single boolean parameter.
Passing true will install the event handler and allow error events to be received. Passing false will
uninstall the event handler and prevent error events being generated or received.
Seitenansicht 21
1 2 ... 17 18 19 20 21 22 23 24 25 26 27 ... 69 70

Kommentare zu diesen Handbüchern

Keine Kommentare