ST_MotionJob

 

ST_MotionJob - General Information

Overview

Type:

Data structure

Available as of:

V1.0.0.0

Inherits from:

-

Description

Data structure for parameterization of motion jobs. The substructures contain specific parameters for job groups and have only to be parameterized if a job belongs to the corresponding group.

Caution_Color.gifCAUTION

INVALID DATA

Do not perform an online change while a job of type ET_MotionJobType.MultiCam is in the job buffer list or active in FB_SoMotionGenerator.

Failure to follow these instructions can result in injury or equipment damage.

Motion jobs of type ET_MotionJobType.MultiCam need additional data from a PDL.ST_MultiCam structure. The motion job has therefore a reference (pointer) to PDL.ST_Multicam in ST_MotionJob.ST_Cam.rstMultiCam. When the job is commanded to FB_SoMotionGenerator via the TakeJob method, the job parameters are copied into the internal job buffer (including the reference to ST_MultiCam). The reference to the ST_MultiCam data is not updated during the online change.

Structure Elements

Variable

Data type

Description

etJobType

ET_MotionJobType

Type of the positioning job to be assigned

diJobId

DINT

Identification number of the motion job. Serves for checking which positioning job is active. diJobId can either be defined manually by the user or automatically by FB_SoMotionGenerator. In this case, diJobId := -1 must be set.

xTerminateCurrentJob

BOOL

TRUE := If this job is the first in the job queue, the currently active job is canceled and replaced by this job.

xClearBufferedJobs

BOOL

TRUE := Deletes all jobs in the job queue (except for the currently active job).

etSetposMode

ET_SetPosMode

Defines the SetPos type to be executed onto the axis i_ifDrive. The SetPos is executed upon activation of the motion job.

lrSetposValue

LREAL

Position (difference) of the SetPos to be executed

stPositioning

ST_Positioning

Substructure for parameterization of positioning jobs

stCam

ST_Cam

Substructure for parameterization of cam jobs