Skip to main content
Version: V3 (Ignition 8.3)

system.mes.oee.exportOeeConfigurationsToCsv

Description​

Exports OEE Configuration records to CSV format. You can export all configurations or filter by specific locations using the optional locationIdOrPaths parameter.

Permissions​

This method requires the OEE.READ.GET permission.

Syntax​

# Export all OEE configurations
system.mes.oee.exportOeeConfigurationsToCsv()

# Export configurations for specific locations (filtering)
system.mes.oee.exportOeeConfigurationsToCsv(locationIdOrPaths)

Parameters​

ParameterTypeNullableDescription
locationIdOrPathsString[]Yes(Optional) Array of location IDs or paths to export. When omitted, all configurations are exported.

Returns​

Returns a byte array containing the CSV data of the exported OEE configurations. If locationIdOrPaths is provided, only configurations for those locations are included.

Code Examples​

Perspective​

# Export all OEE configurations
csvBytes = system.mes.oee.exportOeeConfigurationsToCsv()
system.perspective.download("oee_configurations.csv", csvBytes)

# Export configurations for specific locations
locationPaths = ["Enterprise/Site/Area/Line1", "Enterprise/Site/Area/Line2"]
csvBytesFiltered = system.mes.oee.exportOeeConfigurationsToCsv(locationPaths)
system.perspective.download("oee_configurations_filtered.csv", csvBytesFiltered)

Script Console​

# Export all OEE configurations
csvBytes = system.mes.oee.exportOeeConfigurationsToCsv()
path = system.file.saveFile("oee_configurations.csv")
if path is not None:
system.file.writeFile(path, csvBytes)

# Export configurations for specific locations
locationPaths = ["Enterprise/Site/Area/Line1", "Enterprise/Site/Area/Line2"]
csvBytesFiltered = system.mes.oee.exportOeeConfigurationsToCsv(locationPaths)
pathFiltered = system.file.saveFile("oee_configurations_filtered.csv")
if pathFiltered is not None:
system.file.writeFile(pathFiltered, csvBytesFiltered)