Event Notification Methods
Introduction
The MPI Control Event Service 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 Event 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.
MPI control Event Service负责host固件事件确认的收集和分配。一个应用经常需要确认控制器发生的事件。事件包括通常的运动完成、运动限位、硬件失败等。事件方法使你的应用能够请求host确认特定的事件,忽略其他类型的事件。
Method | Description |
mpiObjectEventNotifyGet(...) | Get event mask used for host notification 获得event mask |
mpiObjectEventNotifySet(...) | Set event mask to request host notification of events 设置event mask以请求host确认事件 |
mpiObjectEventNotifyReset(...) | Reset event notification 重置事件确认 |
mpiObjectEventNotifyGet(...)
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.
使用EventNotifyGet返回一个MPIEventMask,这个MPIEventMask是一个比特集。
mpiObjectEventNotifySet(...)
Use EventNotifySet to request host notification for each type of event specified in the MPIEventMask argument.
使用EventNotifySet请求host确认,确认由MPIEventMask定义的事件。
mpiObjectEventNotifyReset(...)
Use EventNotifyReset to reset each type of event specified in the MPIEventMask argument.
重置eventmask,里面每个事件的类型重置掉。