Peripheral Devices
546
9836 3521 01
8.14.1
Subscriptions
This function requires API version 10.1.0 or later and TC software version 7.2.3 or later.
Process data can be fetched by cyclically calling read functions. It is also possible to set up subscriptions
that will automatically call application functions when new data has arrived. This will make the response
fast without increasing the load.
To handle subscriptions the application should define specific ActiveX event functions. When new data
arrives the API will raise an ActiveX event which calls these functions. Inside these functions the
application can take care of the received data.
The parameters of the ActiveX event functions vary depending on type of subscribed data.
Subscribed Data
Parameters
Cycle Data
Station, Id
Event
EventData object
Trace
Station, Bolt, Spindle, ID, Status
Station Status
Station, Station status, Mode, Workpiece ID, Number of bolts, Bolt status
The application should call subscribe methods to switch subscriptions on or off.
Note! The event functions are called on the API communication thread. This will not continue execution
until the event function is finished. Therefore, do not do any lengthy handling inside the event function.
Also beware that the GUI is executed on a different thread. Trying to update any GUI control directly from
within the event function can cause unpredictable results.
Summary of Contents for PowerMACS 4000
Page 2: ......
Page 46: ...System Architecture 46 9836 3521 01...
Page 267: ...Tightening 9836 3521 01 267...
Page 400: ...Tightening 400 9836 3521 01...
Page 486: ...Peripheral Devices 486 9836 3521 01...
Page 622: ...Peripheral Devices 622 9836 3521 01...
Page 664: ...References 664 9836 3521 01...
Page 668: ...9836 3521 01 2010 11 Edition 10 3 0 www atlascopco com...