![](https://csdnimg.cn/release/download_crawler_static/10645388/bg13.jpg)
Page 19
CWA 15748-15:2008
4.3 WFS_INF_CIM_CASH_UNIT_INFO
Description This command is used to obtain information about the status and contents of the cash-in units and
recycle units in the CIM.
Where a logical cash-in unit or recycle unit is configured but there is no corresponding physical
cash unit currently present in the device, information about the missing cash-in unit or recycle
unit will still be returned in the lppCashIn field of the output parameter. The status of the cash-in
unit or recycle unit will be reported as WFS_CIM_STATCUMISSING.
It is possible that one logical cash-in unit or recycle unit may be associated with more than one
physical cash unit. In this case, the number of cash unit structures returned in lpCashInfo will
reflect the number of logical cash-in units or recycle units in the CIM. That is, if a system
contains four physical cash-in units but two of these are treated as one logical cash-in unit,
lpCashInfo will contain information about the three logical cash-in units and a usCount of 3.
Information about the physical cash-in unit(s) or recycle unit(s) associated with a logical cash-in
unit or recycle unit is contained in the WFSCIMCASHUNIT structure representing the logical
cash-in unit or recycle unit.
It is also possible that multiple logical cash-in units or recycle units may be associated with one
physical cash unit. This should only occur if the physical cash unit is capable of handling this
situation, i.e. if it can store multiple denominations and report meaningful count and
replenishment information for each denomination. In this case the information returned in
lpCashInfo will again reflect the number of logical cash-in units or recycle units in the CIM.
Counts
Item counts are typically based on software counts and therefore may not represent the actual
number of items in the cash unit.
Persistent values are maintained through power failures, open sessions, close session and system
resets.
If a cash unit is shared between the CDM and CIM device class, then CDM operations will result
in count changes in the CIM cash unit structure and vice versa. All counts are reported
consistently on both interfaces at all times.
Threshold Events
The threshold event, WFS_USRE_CIM_CASHUNITTHRESHOLD
(WFS_CIM_STATCUHIGH), can be triggered either by hardware sensors in the device or by the
ulCount reaching the ulMaximum value.
The application can check if the device has this capability by querying the bHardwareSensors
field of the physical cash unit structure. If any of the physical cash units associated with the
logical cash unit have this capability, then threshold events based on hardware sensors may be
triggered.
In the situation where the cash unit is associated with multiple physical cash units.
WFS_SRVE_CIM_CASHUNITINFOCHANGED can be generated when each of the physical
cash units reaches the threshold. When the final physical cash unit reaches the threshold, the
WFS_USRE_CIM_CASHUNITTHRESHOLD (WFS_CIM_STATCUHIGH), event will be
generated.
Exchanges
If a physical cash unit is inserted (including removal followed by a reinsertion) when the device is
not in the exchange state the usPStatus of the physical cash unit will be set to
WFS_CIM_STATCUMANIP and the values of the physical cash unit prior to its’ removal will be
returned in any subsequent WFS_INF_CIM_CASH_UNIT_INFO command. The physical cash
unit will not be used in any operation. The application must perform an exchange operation
specifying the new values for the physical cash unit in order to recover the situation.
On recycling and retract units the counts and status reflect the physical status of the cassette and
therefore are consistently reported on both the CDM and CIM interfaces. When a value is
changed through an exchange on one interface it is also changed on the other.
Recyclers
The CIM interface reports all cash units including cash-out only cash units. The CDM interface
does not report cash-in only cash units but does report cash units used on both interfaces, i.e.