TB_Init

Darstellung in FBD

General Information

Specification of the basic mechanical parameters of an axis for use in the axis module.

The parameters specified in user units are checked, converted to the units required for Motion Control and stored in the _StdPar structure. They are then available for other AX modules.

Recommended Task: Cyclic
Libraries used: ARITHMETIC_xxbd00 or higher
TECH_TYPES_xxbd05 or higher

InOut Parameter

Marking: Data type: Description:
_StdPar StdParType Internal default parameters of the axis.

Input Parameter

Marking: Data type: Description:
x_Enable BOOL TRUE: Enabling of the module.
i_T_Cycle INT Cycle time of setpoint event task in ms. 1, 2, 4 or 8 ms can be selected.
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).
ud_Periode UDINT With round axes: period of the axis in user units. Positions are then output between zero and ud_Periode. If the position exceeds ud_Periode, ud_Periode is deducted. If it undershoots zero, ud_Periode is added. If zero is specified, the period is inactive.
ud_StopDec UDINT Stop ramp in user units/s2. Note: Used in axis module of Motion Control module MC_Stop.
di_LimitPosMax DINT With linear axes: positive traversal range limit in user units. The position is calculated in increments and written to the structure variable _StdPar.di_LimitMaxINCS. It is thus available for standard Motion Control commands.
di_LimitPosMin DINT With linear axes: negative traversal range limit in user units. The position is calculated in increments and written to the structure variable _StdPar.di_LimitMinINCS. It is thus available for standard Motion Control commands.

Output Parameter

Marking: Data type: Description:
x_OK BOOL TRUE: Parameter calculated and accepted in _StdPar
i_Result INT Message number of the module. See table below.
i_Results Description:
0 No errors active.
-109 Period too large! Max. period = 8,000,000 user units.
-110 Cycle time invalid (1, 2, 4, 8 ms are permissible).
-113 Reference deceleration is zero!
-999 No technology license. Use PLC with technology license.