SetActualSpecValue(Int32,Int32,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 ID to specify the entity.
'Declaration
Public Overloads Shared Sub SetActualSpecValue( _
ByVal sessionId As Integer, _
ByVal entId As Integer, _
ByVal specId As String, _
ByVal actSpecValue As String, _
ByVal jobPos As Nullable(Of Integer) _
)
public static void SetActualSpecValue(
int sessionId,
int entId,
string specId,
string actSpecValue,
Nullable<int> jobPos
)
Parameters
- sessionId
- Required. Holds the ID of the client session from which the request is being made.
- entId
- Required. Holds the ID 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 the specId is defined only once for this job (not repeated for different steps), then the method will update it regardless of which steps are running. If the same specId is defined for multiple steps in this job, then it will only update the actual spec value for currently running step(s).