Representation in FBD

General Information

Links a technology function to a Motion Control axis. For this purpose, the setpoint value specified from the technology function is transformed with the specified ratio and transmitted to the axis as a position setpoint value.

The TB_DriveEncoder function module can only be used in conjunction with Motion Control. Can only be used in a synchronized setpoint event task.

When x_Enable = TRUE, the module is activated. Successful activation is signaled with TRUE at the x_Active output. From this point, the planned velocity (in 1/100th user units/Ts) is converted with the gear ratio ud_Units/u_Revolution and output to the connected axis.

Example for determining the ratio: Spindle with slope 12.5mm/R on a gear with i = 4. 1/1,000th mm is the desired user unit. The ratio is yielded as 12.5 mm/R * 1,000 Units/mm = 12,500 Units/R. Thus ud_Units = 12,500 and u_Revolution = 4.

Recommended task: EVENT
Libraries used: ARITHMETIC_30bd00 or greater
MOTION_CONTROL_xxbd00 or greater
MOTION_MULTI_AXIS_xxbd00 or greater
TECH_TYPES_30bd06 or greater
TECH_TOOLS_30bd00 or greater
MOTION_TYPES_xxbd07 or greater
Additional data type definitions: ...
Use of Static-Variables: ...

InOut Parameter


Input Parameter

Marking: Data type: Default: Data range: Description:
x_Enable BOOL ... ... TRUE: Enabling of the module.
di_Vel DINT ... ... Setpoint velocity in 1/100th user units/Ts. Ts is the configured cycle time of the setpoint event task.
ud_Units UDINT ... ... Number of user units for the specified motor revolutions (u_Revolution).
u_Revolution UINT ... ... Number of motor revolutions for the specified user units (ud_Units).
_Axis AXIS_REF ... ... The Motion Control axis is connected to _Axis.

Output Parameter

Marking: Data type: Description:
x_Active BOOL TRUE: Module is active, and the specified setpoint velocity is converted and output to di_Vel.
x_Error BOOL TRUE: Movement execution is started. The axis is coupled to the master value.
w_Error WORD Error number of the detected error. See Motion Control ErrorId error list.
_Axis AXIS_REF Motion Control axis.