RFID Reader Interface Reference
3.4 IRfReaderApi
Mobile Readers
70
Function Manual, 12/2010, J31069-D0198-U001-A2-7618
3.4.26
SubscribeForAlarms
SubscribeForAlarms(alarmChannel : string,
isFilter : bool) : bool
Parameters
● alarmChannel
The name of an alarm channel that asynchronously provides alarms.
RfReaderApi.AC_ALL
This is a shortcut for all possible alarm channels. The current
version of the API does only support the default alarm channel
RfReaderApi.AC_DEFAULT
This is the name of the default alarm channel available in every
configuration.
● isFilter
Reserved for future use. Must be false in this version of the API. A value of true leads to a
not implemented exception.
Return value(s)
A boolean value telling whether the subscription succeeded (true) or failed (false).
Exceptions
RfReaderApiException
Error while communicating with the reader service.
Check the Error member for more information.
Note
This function registers for asynchronous notifications of RFID alarms. Users have to either
specify the name of the alarm channel (which depends on the underlying configuration) or
use an empty string or "ALL" in order to subscribe to all available alarm channels.
Notifications from the underlying reader service are delivered via the Alarms event.
Users should always subscribe for alarms both when working RF-MANAGER integrated or
standalone. The ReaderService uses the alarm channel to notify clients about the end of its
startup or restart phase by sending a “Reconfiguration” alarm. Only after receiving this alarm,
the RFID interface is fully initialized and able to support all features.
Limitations
RF-MANAGER mode only.
If there is no configuration data available or the contained alarm channels do not match in
name, calls to SubscribeForAlarms will fail.
Version information
Supported in RFID Reader Interface: since V1.1
Содержание SIMATIC RF610M
Страница 2: ......
Страница 8: ...Introduction Mobile Readers 8 Function Manual 12 2010 J31069 D0198 U001 A2 7618 ...
Страница 79: ......