Assign an action to an ActiveX event
In the ActiveX Control Events dialog box you can view the events associated with the selected ActiveX object, assign a command or macro to an event, and attach a tag to an event’s parameter. When you select an event, its parameters are displayed in the Event Parameter list. You can attach an HMI tag to any of these parameters. At runtime, when the event occurs, the value of the parameter is sent to the tag.
TIP:
Note:
- The property type and description are provided by the ActiveX object. They are for display only.
- Click ? to get more information about the object and its events.
- You can copy information from the Methods help and paste it elsewhere, such as in the ActiveX Control Events dialog box.
- Select an event and then click Clear to detach a command or macro from an event, or to detach a tag from an event parameter.
To view the events that are assigned to an ActiveX object:
- In a graphic display, right-click anActiveX object.
- In the context menu clickActiveX Events.
- In theActiveX Control Eventsdialog box, the events associated with the selected ActiveX control are displayed in theSelect an ActiveX eventlist.
To assign a command or macro to an event:
- In theSelect an ActiveX eventlist, click the event you intend to assign a command or macro to.
- In theAttach a command or macro to an eventfield, type the command and its parameters, or click the browse button (...) beside it to open theCommandwizard and create a command string in it.
To attach a tag to an event parameter:
- In theSelect an ActiveX eventlist, click the event you intend to assign a command or macro to.
- In theEvent Parameter, click the event parameter you intend to attach a tag to.
- In theTagfield, type the tag name, or click the browse button(...)to open the tag browser and select a tag.
To log an event to the Diagnostics log file:
- In theSelect an ActiveX eventlist, click the event you intend to log in the Diagnostics log file.
- Select the check box besideLog event to Diagnostics Log.
Provide Feedback