CountPassFail
Counts and returns passes, failures and total events for a given referencedvalue.
CountPassFailInputs
Syntax: CountPassFail(Event,Value,CountWhen Offline,ResetEvents.Manual,ResetEvents.Online,ResetEvents.Job Load)
Parameter | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Specifies the event on which to incrementthe counter. This parameter must be a reference to one of the following:
|
|||||||||||||||||||
Specifies a required reference to the cell containing the source ofthe data stream to be counted.If no cell is referenced, the functionreturns a #ERR for all results.The counter that is incremented (Pass,Fail or #ERR) is based on the returned Value, as follows:
|
|||||||||||||||||||
Specifies whether the counters will be incrementedwhile the sensor is Offline.
|
|||||||||||||||||||
Forces the counters to reset depending onspecific events.
|
CountPassFailOutputs
Returns |
A Count data structure containingthe incremented counters or #ERR if any of the input parameters are invalid. |
When CountPassFailis initially inserted into a cell, a result table and a Reset button arecreated in the spreadsheet.When the Reset button is pressed, all counterswill be reset to zero. |
CountPassFailVision Data Access Functions
The following Vision Data Access functions are automatically inserted into the spreadsheet to create the result table. For more information, see Clocked Data Storage.
Passes |
GetPassCount(Count) |
The incremental count of passes.The counteris incremented when the returned Valueis greater than zero. |
Failures |
GetFailCount(Count) |
The incremental count of failures.The counteris incremented when the returned Value is equal to zero. |
Errors |
GetErrorCount(Count) |
The incremental count of errors.The counteris incremented when the returned Value is less than zero. |
Total |
GetTotalCount(Count) |
The total number of passes, failures anderrors. |