MPI Event Notification Methods

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

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Event Notification Methods

Introduction | mpiObjectEventNotifyGet(...) | mpiObjectEventNotifySet(...) 
mpiObjectEventNotifyReset(...) | Notification Process

Introduction

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.

MethodDescription
mpiObjectEventNotifyGet(...)Get event mask used for host notification
mpiObjectEventNotifySet(...)Set event mask to request host notification of events
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.

 

mpiObjectEventNotifySet(...)

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.

 

Notification Process

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 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值