TB_SyncLin_Init

Representation in FBD

General Information

The parameters created for the TB_SyncLin technology module are checked, converted and stored in the _SyncDat structure variable.

Note:
The data points of the laws of motion are loaded the first time the module is called. Thus the processing time is greater for the first call.

It is possible to change the parameters at any time during operation, i.e. even while the _SyncLin function module is active and is generating setpoint values. The new parameters are accepted at the beginning of a new cycle (after a rising edge at x_SEP).

Recommended task: Cyclic
Libraries used: TECH_TYPES_xxbd05 or higher

InOut Parameter

Marking: Data type: Description:
_SyncDat TB_SYNC_TYPE Internal parameters for the TB_SyncRot technology module.

Input Parameter

Marking: Data type: Description:
x_Enable BOOL TRUE: Enabling of the module.
di_X_Sync DINT Position of the master axis in user units at which the axis is in sync regarding angle and velocity.
di_Y_Sync DINT Position of the axis in user units at which the angle and velocity of the axis are in sync with the master axis.
di_Y_Stop DINT Position of the axis in user units that is approached after the last cycle (x_Start = FALSE).
di_Y_Min DINT ...Position of the axis in user units that is approached after the last cycle (x_Start = FALSE).
di_Y_Max DINT ...Position of the axis in user units that is approached after the last cycle (x_Start = FALSE).
di_X_Sensor DINT Position of a (optional) sensor in user master units. The first positive edge at the x_Start input sets the master position di_xPos to di_X_Sensor.If no sensors are present, the position di_xPos so is determined in such a way that the axis syncs up immediately. For this the parameter must be set to DINT#16#8000_0000.Then the function block calculates the shortest possible sensor distance.The shortest sensor distance depends on the x_Sync, y_Sync and y_Stop (after restarting this is the start position) settings (and the actual position values y_pos and x_Pos of the TB_SyncRot).
di_SX_MinStart DINT Minimum distance of the master axis in user units before the sync-up may occur. >=0: The X_SENSOR position is repeatedly shifted by MAP in the X_SYNC direction until the distance is less than SX_MinStart + MAP. -1: Function inactive. This function serves to reduce the amount of waste. If it can be determined that material is already found in the machine and the product lengths are constant, it makes sense to use this. If X_SENSOR is 1.5 m from the knife, for example, and this function is not being used, 1.5 m of the material is traversed until synchronization occurs precisely at the mark di_SX_MinStart can be used to avoid this waste.
di_SX_Start DINT Path of the master axis in user units while the axis syncs up. If the input remains open, the sync-up occurs with minimum acceleration. The greater the distance of the axis to the synchronization position di_Y_Sync, the longer the master path.
ui_SX_Sync UINT Synchronization path of axis in user units. If the axis is in sync, it covers ui_SY_Sync, while the master axis covers ui_SX_Sync.
ui_SY_Sync UINT Synchronization path of master axis in user units. If the axis is in sync, it covers ui_SY_Sync, while the master axis covers ui_SX_Sync.
us_k_Sync USINT Synchronization correction in percent. 100% = in sync (ui_SY_Sync/ui_SX_Sync), > 100%: axis moving faster, < 100%: axis moving slower. Note: Changes are accepted at the Synchronous End Point (SEP) and take effect immediately. This could lead to an impact.
i_T_Cycle INT Cycle time of setpoint event task in ms. 1, 2, 4 and 8 ms are possible here.

Output Parameter

Marking: Data type: Description:
x_Ok BOOL TRUE: Valid initialization values present in _SyncDat.
x_Error BOOL TRUE: The module has identified an error. See i_Result and s_ResTxt.
i_Result INT Message number of the module. Values < 0 are errors (x_Error = TRUE).
s_ResTxt STRING Plain text output of the message number.
i_Result s_ResTxt Description:
0 TB_SyncRot_Init: Not Active Module not active (x_Enable = FALSE).
0 TB_SyncRot_Init ok Module executed (x_Enable = TRUE).
Execution of the module occurs in a cycle.
1 Warning: Y_Stop < Y_Min! A rest position outside the specified traversal range is used
2 Warning: Y_Stop > Y_Max! A rest position outside the specified traversal range is used
3 Warning: SX_MinStart < SX_Start The specified minimum start path is too small.
-10 Error: Y_Sync >Y_Max! The synchronization position may not lie outside the selected traversal range.
-11 Error: Y_Sync < Y_Min! The synchronization position may not lie outside the selected traversal range.
-12 Error: Y_Max <= Y_Min! The upper traversal range limit must be greater than the lower one.
-13 Error: SY_SYNC <= 0! The synchronization scale of the following axis may not be zero.
-14 Error: SX_SYNC <= 0! The synchronization scale of the master axis may not be zero.
-15 Error: T_CYCLE <= 0! The cycle time may not be = 0. It must match the configured cycle time.
-17 Error: K_SYNC <= 0! The synchronization correction may not be 0.
-20 Range error: X_SYNC X_SYNC outside the valid position range.
-21 Range error: SX_START SX_START outside the valid position range.
-22 Range Error Y_Min Y_MIN outside the valid position range
-23 Range Error Y_Max Y_MAX outside the valid position range
-24 Range error: Y_SYNC Y_SYNC outside the valid position range.
-25 Range error: X_SENSOR X_Sensor outside the valid position range.
-26 Range error: Y_STOP Y_Stop outside the valid position range.
-27 Range error: SX_MINSTART SX_MinStart outside the valid position range.
-28 Range error: SX_STOP SX_STOP outside the valid position range.
-30 Parameter not set: X_SYNC X_Sync must be specified.
-34 Parameter not set: Y_SYNC X_Sync must be specified.
-36 Parameter not set: Y_STOP Y_Stop must be specified.
-999 No Technology License No technology license. Use PLC with technology license.