BatchMLProductionRecordElement Property

General info

Label

BPR Element

Tooltip

Defines the The Batch Production Record Element the batch data will be assigned to

Data type

Int32

Default value

0 (inmation.model.codes.S88ProductionRecordEntryType.ET_DEFAULT)

Type

CodingGroup

Code

5255

Symbolic name

MODEL_PROP_BATCHMLPRODUCTIONRECORDELEMENT

Available since

1.46.3.6448

Parent properties

BatchCharacteristics

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
PROP_HAS_DEFAULT The property has a default value as standard

Codings

Examples

Read from or write to the BatchMLProductionRecordElement property.

  • Lua

  • C#

-- Read from the BatchMLProductionRecordElement
inmation.getvalue("/System/Core/obj.BatchCharacteristics.BatchMLProductionRecordElement")

-- Write to the BatchMLProductionRecordElement
inmation.setvalue("/System/Core/obj.BatchCharacteristics.BatchMLProductionRecordElement",
    inmation.model.codes.S88ProductionRecordEntryType.ET_DEFAULT)
string path = "/System/Core/obj.BatchCharacteristics.BatchMLProductionRecordElement";
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "so", Password = "inmation" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the BatchMLProductionRecordElement
Result result = sli.ReadValue(sc, new ReadItem(path));
// Write to the BatchMLProductionRecordElement
Result result = sli.WriteValue(sc, new WriteItem(S88ProductionRecordEntryType.ET_DEFAULT, path));

A switch-like function of the codings.

function get_coding_name(code)
    local spret = inmation.model.codes.S88ProductionRecordEntryType
    if spret.ET_DEFAULT==code then return 'ET_DEFAULT'
    elseif spret.ET_EVENT==code then return 'ET_EVENT'
    elseif spret.ET_DATASET==code then return 'ET_DATASET'
    elseif spret.ET_COMMENT==code then return 'ET_COMMENT'
    elseif spret.ET_CHANGE==code then return 'ET_CHANGE'
    elseif spret.ET_PERSONNELIDENTIFICATIONMANIFEST==code then return 'ET_PERSONNELIDENTIFICATIONMANIFEST'
    elseif spret.ET_SAMPLE==code then return 'ET_SAMPLE'
    elseif spret.ET_RESOURCEQUALIFICATIONMANIFEST==code then return 'ET_RESOURCEQUALIFICATIONMANIFEST'
    elseif spret.ET_MASTERRECIPE==code then return 'ET_MASTERRECIPE'
    elseif spret.ET_RECIPEELEMENT==code then return 'ET_RECIPEELEMENT'
    elseif spret.ET_CONTROLRECIPE==code then return 'ET_CONTROLRECIPE'
    elseif spret.ET_PRODUCTDEFINITION==code then return 'ET_PRODUCTDEFINITION'
    elseif spret.ET_BATCHPRODUCTIONRECORD==code then return 'ET_BATCHPRODUCTIONRECORD'
    elseif spret.ET_PRODUCTIONRESPONSE==code then return 'ET_PRODUCTIONRESPONSE'
    elseif spret.ET_PRODUCTIONREQUEST==code then return 'ET_PRODUCTIONREQUEST'
    elseif spret.ET_SAMPLETEST==code then return 'ET_SAMPLETEST'
    elseif spret.ET_SAMPLETESTRESULT==code then return 'ET_SAMPLETESTRESULT'
    elseif spret.ET_OTHER==code then return 'ET_OTHER'
    end
end
return get_coding_name(inmation.model.codes.S88ProductionRecordEntryType.ET_DEFAULT)