Controller.ControllerEvent
This event is raised whenever an object on the controller raises an event.
Controller-based events include normal motion completion, motor limits, fault conditions, network node faults, and many other events. See Mpx.EventType for a full list.
NOTE: Recorder events related to the processing of recorder buffers are handled by a different event handler: RecorderBufferEvent.
Version History
Introduced in MPX 2.0.
Result
Void
Arguments
|
Argument |
Type |
Description |
eventType |
Mpx.EventType |
The type of event generated by the controller. |
number |
Int32 |
The number of the object that generated the event. This number usually corresponds to the MPX Object.Number property. |
int32Info |
Array of Int32 |
Additional information about the event in the form of 32-bit integers. |
int64Info |
Array of Int64 |
Additional information about the event in the form of 64-bit integers.
|
|
Visual Basic
Syntax
Event ControllerEvent(
eventType As Mpx.EventType,
number As Integer,
int32Info() As Integer,
int64Info() As Long
)
Sample Code
|
Dim controller As Mpx.Controller
controller = New Mpx.Controller(0)
AddHandler controller.ControllerEvent, _
AddressOf controllerEventHandler
|
Sample Application
C#
Syntax
delegate void ControllerEventHandler(
Mpx.EventType eventType,
int number,
int[] int32Info,
long[] int64Info
)
event Controller.ControllerEventHandler ControllerEvent;
Sample Code
|
Mpx.Controller controller = new Mpx.Controller(0)
controller.ControllerEvent += controllerEventHandler;
|
See Also
RecorderBufferEvent
Enumerations
EventType
Overviews
Handling Events
Axis Tolerances and Related Events
Error Limit and Limit Switch Errors
|