TB_TPmeasure_Init

Representation in FBD

General Information

This module initializes the required parameters for the TB_TPmeasure measurement module. The operating mode, encoder input and touch probe input are specified for this purpose.

The touch probe function in the controller is initialized using the specified parameters.

i_OpMode=0: Measurement of the distances between LH edges.
i_OpMode=1: Measurement of the distances between HL edges.
i_OpMode=2: Measurement of the distances between LH edges
and the distances between LH and HL edges.
i_OpMode=3: Measurement of the distances between HL edges
and the distances between HL and LH edges.

Input 1 or 2 can be used as the input for the touch probe. If using the BM4400, an FIO module must be plugged in slot D.

Either Encoder 1 or Encoder 2 can be used.

Note:This Technology block is just possible to use for the BM4400 or BM5000 Series.

Recommended task: Cyclic
Libraries used: MOTION_CONTROL_xxbd00 or higher
TECH_TYPES_xxbd05 or higher

InOut Parameter

Marking: Data type: Description:
_PMdata PM_Type Data for the TB_TPmeasure measurement module.
_Axis AXIS_REF Motion Control axis used.

Input Parameter

Marking: Data type: Description:
x_Execute BOOL TRUE = Edge-sensitive execution, initialisation of the input parameters.
FALSE = Not executed or reset of the FB outputs.
i_Mode INT Operating mode
i_DigIn INT Digital input used for the sensor. An FIO module must be used in slot D (bmaXX 4000)
If the FB is executed when i_DigIn = 0, then the configuration of the probe inputs is reset.
i_Encoder INT Encoder used. The corresponding encoder must have been previously activated via Winbass!

Output Parameter

Marking: Data type: Description:
x_Ok BOOL TRUE: Initialization was successful.
x_Error BOOL TRUE: Error detected. See error table.
i_Error INT Error number. See error table.
s_ErrTxt STRING Error number. See error table.
i_Error i_ErrTxt Description:
-1 Error: Invalid Mode Operating mode 0 to 3 possible
-2 Error: Invalid DigIn Digin 1 or 2 possible
-3 Error: Invalid Encoder Encoder 1 or 2 possible
-4 Error: Invalid CanOpen mode Only operating modes 1 and 2 are possible with a CanOpen axis
-5 Error: Read parameter Error when reading demand data
-6 Error: Write parameter Error when writing demand data
-7 Error: Wrong bmaxx Drive connected Wrong bmaXX drive connected (BM4400 and BM5000 series are just allowed)
-8 Error:Wrong MC State Execution in wrong Motion Control state (Execution just in "Standstill" allowed)
-999 No Technology License No technology license. Use PLC with technology license.