Unsolicited Data Collection Examples
Previous Topic  Next Topic 


Overview


Unsolicited data, or data that is sent to DataXchange without DataXchange first requesting it, is received by the Data Listener Communication Sources.  The Data Listener variables, in conjunction with other variables are a very powerful and flexible tool when working with data that has been received. 


Data Listener Source Variables


When data is received into a Data Listener from a device such as a barcode scanner the content of the Data Listener can be compared to the status identifiers and data listener variables can be used to determine if the data is valid and the type of activity that needs to take place.


For example:


([Listener.data] = [PCSDB.SI_PDTS]{identifier.any})


This portion of an expression will check to see if the data received in the Data Listener starts with the Status Identifier for Planned Downtime Start and that the specific identifier is a valid specific Planned Downtime identifier.  If the identifier received is not a valid Planned Downtime identifier the data will not be processed.


([Listener.data] = [PCSDB.SI_UPDTS]{identifier.group{Quality}})


This portion of an expression will check to see if the data received in the Data Listener starts with the Status Identifier for Unplanned Downtime Start and that the specific identifier is a valid specific Unplanned Downtime identifier contained within the Quality Equipment Status Group.


Data Listener Target Variables


Data Listener variables can also be used for the target. 


Let's say we have the following expression:


([PCSDB.general_equipment_status] != [PCSDB.Planned_Downtime]) AND ([Listener.data = PCSDB.SI_Planned_DT_Start]{identifier.any})


When the current status in the PCS database is not equal to planned downtime, and the data received by the data listener is the identifier for a planned downtime start with a valid specific planned downtime identifier this expression will be true.  When this occurs the specific status identifier received needs to be entered into the PCS database.


The following target can be used to accomplish this:


PCSDB.send_planned_DT_start[Listener.data]{identifier.specific}}


Equipment Status Groups are explained on the Manage Equipment Status Group page.

The Data Listener variables are defined on the Data Listener Variables page.