Trigger specification commands
- Last UpdatedDec 03, 2024
- 3 minute read
You can trigger specification run-time commands to perform the following:
-
Load job specifications.
-
Download specification values from working attributes to target attributes, and subsequently update "Target.InputOutput.Reference" System Platform attributes if configured.
-
Upload values of "Target.SpecValueActual.InputSource" attribute to update working attributes.
-
Save actual values of specifications.
-
Reset any errors.

At run time, the specifications primitive supports the following commands:
Load Job Specs Command (corresponding attribute: Specs.LoadJobSpecsCmd)
The following attributes are used to specify job information and load the required specifications from the database:
-
Specs.WorkOrder
-
Specs.SequenceNumber
-
Specs.Operation
-
Specs.StepNumber
At run time, specifications data corresponding to the specified job (from the Job_Spec table) to be run on a parent entity of an OCO instance is retrieved.

Load Running Job Specs Command (corresponding attribute: Specs.LoadRunningJobSpecsCmd)
You must specify the job position to retrieve the specification data for a job running on a parent entity of an OCO instance at the specified job position.
At run time, the Spec.JobPosition attribute is used to specify the job position.
Additionally, you can specify a job step number to retrieve specification data for the specific job step. At run time, the Spec.StepNumber is used to retrieve the specification data.
The value 1 for this attribute indicates no specification data is retrieved for the job step.

Load Download Job Specs Command (corresponding attribute: Specs. LoadDownloadJobSpecsCmd)
This command is the combined action of executing the Load Job Specs command and Download command.
Load Download Running Job Specs Command (corresponding attribute: Specs. LoadDownloadRunningJob SpecsCmd)
This command is the combined action of executing the Load Running Job Specs command and Download command.
Save Command (corresponding attribute: Specs.SaveCmd)
This command is used to write the actual value of Specs.<SpecAlias>.Working.SpecValueActual for each specification to the MES database. You can change the value of the Specs.<SpecAlias>.Working.SpecValueActual attribute before triggering the Save command.

Download Command (corresponding attribute: Specs.DownloadCmd)
This command is used to copy the values of working attributes to target attributes while applying the Scaling Factor DB To IO attribute value for each specification.
When inputoutput.reference is configured for target attributes, the values of downloadable specification properties are written to the System Platform attributes that are specified by the inputoutput.reference.
You can change the specification values that are loaded from the database before triggering the Download command.

Upload Command (corresponding attribute: Specs.UploadCmd)
This command is used to read the InputSource value that is configured for the SpecValueActual attribute and update the target attribute (Specs.<SpecAlias>.Target.SpecValueActual) at run time.
The target attribute value is written to the working attribute (Specs.<SpecAlias>.Working.SpecValueActual) while applying the scaling factor (Specs.<SpecAlias>.ScalingFactorIOToDB).

Reset Command
This command is used to clear the status attributes if any errors that occur while executing specification commands.