Event Notification Methods
Introduction | mpiObjectEventNotifyGet(...) | mpiObjectEventNotifySet(...)
mpiObjectEventNotifyReset(...) | Notification Process
The MPI EventMgr is responsible for the collection and distribution of host notifications of firmware events. An application often needs to be notified of events that take place on the motion controller. Events include normal motion completion, motion limits being reached, hardware failure, etc. The EventNotify methods enable your application to request host notification of certain types of events, while ignoring other types of events. Some events are latched, in which case your application must reset the event before the event can be triggered again.
| Method | Description |
| mpiObjectEventNotifyGet(...) | Get event mask used for host notification |
| mpiObjectEventNotifySet(...) | Set event mask to request host notification of events |
| mpiObjectEventNotifyReset(...) | Reset event notification |
Use EventNotifyGet to return an MPIEventMask, which has a bit set for each type of event that host notification has been requested for, by the object.

Use EventNotifySet to request host notification for each type of event specified in the MPIEventMask argument.

mpiObjectEventNotifyReset(...)
Use EventNotifyReset to reset each type of event specified in the MPIEventMask argument.
Events [that are requested by mpiObjectEventNotifySet(...)] move up through the firmware to the EventMgr.

To collect events, the EventMgr either polls the firmware (using mpiEventMgrService(...)) or is interrupted by the firmware. The EventMgr passes each event to its list of Notify objects, who further qualify events based on the event type and the source of the event, and generate signals and otherwise notify the host application of event occurrences.

Object Methods | Configuration Methods | Memory Methods | Status Methods
| Event Notification Methods | List Methods | Identity Methods
本文介绍了一种通过MPIEventMgr实现的运动控制器事件通知机制。该机制允许应用程序选择接收特定类型的事件通知,例如运动完成或达到运动限制等,并提供了设置、获取及重置事件通知的方法。
3055

被折叠的 条评论
为什么被折叠?



