TB_MechActPos

Representation in FBD

General Information

Generates the actual mechanical position of a Motion Control axis in user units from the axis.

When x_Enable = TRUE, the module is activated. Successful activation is signaled with TRUE at the x_Active output. From this point, the positional changes of the connected axis are detected, converted into user units, output at di_Vel and added to the position variable connected to di_Pos. The position should be set once by the user.

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

InOut Parameter

none

Input Parameter

Marking: Data type: Default: Data range: Description:
x_Enable BOOL ... ... TRUE: Enabling of the module. The position is changed based on the velocity of the connected axis. Setting of the position does not occur, however.
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).
i_T_Cycle INT ... ... Configured cycle time of setpoint event task in ms. 1, 2, 4 or 8 ms is possible.
di_Pos DINT ... ... Mechanical position of the axis in user units.
_Axis AXIS_REF ... ... The Motion Control axis is connected to _Axis.

Output Parameter

Marking: Data type: Description:
x_Active BOOL TRUE: Module active; positional changes of master axis cause positional changes at di_MasterPos.
di_Vel DINT Output of the current master velocity in user units/Ts. Ts is the configured cycle time of the setpoint event task.
di_Pos DINT Position of the axis in user units
_Axis AXIS_REF Motion Control axis