SetActualSpecValue(Int32,String,String,String,String,Nullable<Int32>) Method
- Last UpdatedNov 06, 2025
- 2 minute read
The SetActualSpecValue() method saves an actual value for a specific spec parameter for a job, given the entity on which the job is running but not the actual job details.
This overload of the method uses the entity name and site name to specify the entity.
public static void SetActualSpecValue(
int sessionId,
string entName,
string siteName,
string specId,
string actSpecValue,
Nullable<int> jobPos
)
Parameters
- sessionId
- Required. Holds the ID of the client session from which the request is being made.
- entName
- Required. Holds the name of the entity.
- siteName
- Optional. Holds the site name of the entity.
- specId
- Required. Holds the ID of the spec parameter whose actual value is being set.
- actSpecValue
- Required. Holds the actual spec value to be saved.
- jobPos
- Optional. Holds the job position. If greater than 1, jobs are running on this entity
This method facilitates capturing actual spec data values from a PLC even if the job currently running on the entity is not known. If this spec_id is defined only once for this job (not repeated for different steps) then the method will update it irrespective of which steps are running. If the same spec_id is defined for multiple steps in this job then it will only update the actual spec value for currently running step(s).