Download MES User Manual - Inductive Automation

Transcript
OEE Downtime
200
system.production.setLineProductCode(projectName, linePath, productCode)
Set the current product code for a line. If the line is currently in a production run, it will have to be ended
before setting a new product code. The product code must exist in the production code table and the line
must be enabled to run it.
parameters
projectName
The project name that contains the specified line path.
Data Type
String
linePath
The line path of the production line that this component is
associated with. This is the full path name of the line
starting with the project name.
For example: "OEEDemo\Your Enterprise\Your Site\Your
Area\Line 1"
Data Type
String
productCode
The new product code for the line to run next.
Data Type
String
successful
Returns true if the project name, line path and product code
are valid and the new product code has been set.
Data Type
Boolean
returns
system.production.startLineProductCode(projectName, linePath, productCode)
Set the current product code for a line and immediately starts it running. If the line is currently in a
production run, it will have to be ended before setting a new product code. The product code must exist in
the production code table and the line must be enabled to run it.
parameters
projectName
The project name that contains the specified line path.
Data Type
String
linePath
The line path of the production line that this component is
associated with. This is the full path name of the line
starting with the project name.
For example: "OEEDemo\Your Enterprise\Your Site\Your
Area\Line 1"
Data Type
String
productCode
The new product code for the line to run next.
Data Type
String
successful
Returns true if the project name, line path and product code
are valid and the new product code has been set.
Data Type
Boolean
returns
© Inductive Automation