Mint NextMove PCI Manual de usuario Pagina 26

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 70
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 25
5-6 Advanced Features
5.1.2 Controlling event generation
There are various functions that can be used to control event generation. The bit pattern accepted by
these functions is as follows:
Bit Event
0
Reserved
1 Error
2 CAN 1 (CANOpen)
3 CAN 2 (Baldor CAN)
4 Stop switch
5 Fast position latch
6 Timer
7 Digital input
8 Comms event from PC to controller (PC updated comms location)
9 Comms event from controller to PC (controller updated comms location)
10 DPR event from PC to controller
11 DPR event from controller to PC
12
Reserved
13 Move buffer low
14 Axis idle
The user can read which events are currently active using the function getEventActive.
Any currently pending events can be cleared selectively using the functions getEventPending and
setEventPending. Clearing a set bit will clear the pending flag for that event. Passing a value of zero
will clear all pending interrupts.
Once a handler has been installed the event generation can be disabled by using the function
setEventDisable. Setting a bit will disable the generation of that type of event. Setting this to zero will
enable all events which have a handler installed.
The function getEventDisable will return a bit pattern of any currently disabled interrupts. By default all
digital inputs will generate events when they become active. These digital inputs can be masked so that
they do not generate events using the function setIMask. This accepts a bank number and a bit pattern
of inputs. Bit 0 corresponds to input 0; if the bit is set then the digital input will generate an event when it
becomes active.
The user can interrupt an embedded application using the function doDPREvent. This will interrupt the
controller and pass a 16-bit code to the DPR event handler on the controller.
Vista de pagina 25
1 2 ... 21 22 23 24 25 26 27 28 29 30 31 ... 69 70

Comentarios a estos manuales

Sin comentarios