Functional Description
Purpose
This function reads the Tag table (F4160) and counts the total number of tags for each status for all 
branch/plants or one particular branch/plant.
Setup Notes and Prerequisites
The Tag Status (TST) and Branch/Plant (MCU) are required input parameters.  If the Branch/Plant field 
is blank 
Technical Specification
If the Branch parameter is blank, the number of tags are counted for each individual status.  If the 
Branch parameter is not blank, the function counts only the number of tags for each individual status 
for the specified Branch.
^
D4100780D - F4160 Count Tag Status
Data Item Data Structure DescriptionI/ORequired
TSTS        Tag Status             I  Y
MCU        Branch/Plant             I  Y
MATH80  Number of Tags             O
^
| Parameter Name | Data Item | Data Type | Req/Opt | I/O/Both | 
|---|---|---|---|---|
| szTagStatus | TSTS | char | NONE | NONE | 
The code (UDC table 41/TS) for the status of a tag in the tag inventory count process.  | ||||
| szBranchPlant | MCU | char | NONE | NONE | 
If blank, count all number of items for all  statuses.ab 
  | ||||
| mnNumberOfTags | MATH08 | MATH_NUMERIC | NONE | NONE | 
Event point for Math Numeric.  | ||||
| None | 
| F4160 Tag Inventory File |