Storages
In Iotellect Monitoring MES, storage zones and warehouses are managed through the Storage Zone (users.%.models.storageZone) and Storage Unit (users.%.models.storageUnit) Instantiable Models. Both models are part of Iotellect Monitoring MES Core.
Instances of Storage Zones are available from instances of Production Entities (areas, cells, and units). Instances of Storage Units (or storage cells) are available from instances of storage zones. Storage zones have no functional variables of their own. The core logic responsible for storing resources belongs to storage units (cells).
Storage Unit Variables
Variable: Storage Unit Properties
The Storage Unit Properties variable (storageUnitProperties) of the Storage Unit model (users.%.models.storageUnit) defines the fundamental properties of a storage cell.
Field | Type | Description |
|---|---|---|
storageUnitType | String | Type of storage cell:
|
storedProductForm | String | Form of stored products (see Product Forms model). This property applies only to simple storage cells |
maxCapacity | Double | Maximum capacity of the storage unitz |
measurementUnit | String | Measurement unit for the storage capacity (see Measurement Units model) |
Variable: Storage Unit Type
Field | Type | Description |
|---|---|---|
storageUnitType | String | Context of the relative model that defines the type of storage cell |
By default, the Storage Unit Type uses the relative model Default Storage Unit Type (users.%.models.defaultStorageUnitTypeModel), which inherits from the absolute model Base Storage Unit Type (users.%.models.baseStorageUnitTypeModel). This model attaches to all storage cells that specify it as their type.
The Default Storage Unit Type model serves as a template for creating additional user-defined models describing custom characteristics of similar storage units.
Variable: Storage
The Storage variable (storage) describes the current state of the storage unit — its contents, represented as a list of stored product lots.
Field | Type | Description | ||
|---|---|---|---|---|
ID | String | Lot ID | ||
product | String | Product | ||
quantity | Double | Quantity of product in the lot | ||
measurementUnit | String | Measurement unit of the lot | ||
deliveryDateTime | Date | Date when the lot was delivered to the storage cell | ||
reserved | String | ID of the work order for which the lot is reserved. If this field is empty, the product is available for any work order. | ||
type | String | Lot type:
| ||
creationDateTime | Date | Date when the product lot was created | ||
from | String | ID of the work order under which the lot was produced | ||
removalDateTime | Date | Expected date of withdrawal of the reserved lot from the storage cell | ||
parentLots | Data Table | Data about parent lots | ||
Field | Type | Description | ||
ID | String | Parent lot ID | ||
percent | Double | Fraction of the parent lot. Knowing the percentage of the parent lot included in the current lot and the corresponding product quantity allows restoring the original volume of the parent lot | ||
quantity | Double | Quantity of the parent lot included in the current lot. The quantity is given in the measurement units of the current lot | ||
Storage Unit Functions
Function: Get Storage
The function returns the list of lots recorded in a storage unit, excluding zero lots — lots whose product quantity equals zero.
Such lots are used only to maintain the integrity of the traceability graph.
Function: | getStorage | ||
Permissions: | Available at the Observer permission level | ||
Input records: | 0 | ||
Input format: | |||
Output records: | 0...unlimited | ||
Output format: | Field | Type | Description |
ID | String | Lot ID | |
product | String | Product | |
quantity | Double | Quantity of product in the lot | |
measurementUnit | String | Measurement unit of the lot | |
deliveryDateTime | Date | Date when the lot was delivered to the storage cell | |
reserved | String | ID of the work order for which the lot is reserved. If this field is empty, the product is available for any work order. | |
type | String | Lot type | |
creationDateTime | Date | Date when the product lot was created | |
from | String | ID of the work order under which the lot was produced | |
removalDateTime | Date | Expected date of withdrawal of the reserved lot from the storage cell | |
parentLots | Data Table | Data about parent lots | |
Function: Set Storage
he function sets the lots contained in a storage unit. If the storage content changes significantly, the function triggers the Storage Updated event.
Function: | setStorage | ||
Permissions: | Available at the Observer permission level | ||
Input records: | 1 | ||
Input format: | Field | Type | Description |
lots | Data Table | Lots | |
includeOldZeroLots | Boolean | Include old zero lots | |
Output records: | 0 | ||
Output format: | |||
Storage Unit Events
Event: Storage Updated
Field | Type | Description |
|---|---|---|
storageUnit | String | Context of the storage unit |
dateTime | Date | Date and time of the update |
changedLots | Data Table | Changed lots |
addedLots | Data Table | Added lots |
removedLots | Data Table | Removed lots |
Was this page helpful?