MaterialLotQuantity Property
General info
Label |
Quantity |
Description |
The quantity of the material lot. |
Data type |
UInt32 |
Type |
Regular |
Code |
750 |
Symbolic name |
MODEL_PROP_MATERIALLOTQUANTITY |
Lua access code |
syslib.model.properties.MaterialLotQuantity |
Available since |
1.0 |
- Parent classes
Attributes
| Name | Tooltip |
|---|---|
| PROP_CONFIGURABLE | The property is configurable and can be changed with DataStudio and the various inmation APIs. |
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
Examples
Read from or write to the MaterialLotQuantity property.
-- Read from the MaterialLotQuantity
syslib.getvalue("<OBJECT FULL PATH>.MaterialLotQuantity")
-- Write to the MaterialLotQuantity
syslib.setvalue("<OBJECT FULL PATH>.MaterialLotQuantity", VALUE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the MaterialLotQuantity
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.MaterialLotQuantity"));
// Write to the MaterialLotQuantity
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.MaterialLotQuantity"));