Hardware Limit Switches and Reference Switches

General notes on the use of digital hardware I/O

For axes groups, the hardware limit switches are typically connected to the ACS axes assigned to the axes group. The possible implementations are described below as Option 1 and Option 2.

The hardware limit switches are typically digital hardware switches that are read via the controller’s I/O modules.

In special cases, e.g., when using light curtains, these can additionally be configured as hardware limit switches for the WCS axes.

When referencing the axes group or an individual ACS axis using the hardware limit switches, the limit switches must be configured on the ACS axes.

The positive hardware limit position xLimitSwitchPos is always in the positive direction of motion of the AxisRef, regardless of the physical direction of rotation of the motor (inverted mounting direction or inverting gearbox). The same applies to the negative hardware limit position xLimitSwitchNeg.

Example and consequences of an incorrect configuration

In a gantry system, the A1 axis is referenced in CcwLimitSwitch mode. The limit switches are connected to the WCS axis x. In this case, no reference is set when the limit position is reached. Instead, the x-axis (and subsequently the axes group) switches to ErrorStop.

Connection of the hardware limit switches

Note!

The function of the hardware limit switches must be verified during commissioning after configuration. An example of a manual test procedure is linked in the description of the function block L_MC1P_HWLimitSwitchInterface.

Version Note!

Up to and including version 3.31.x of the L_MC1P_MotionControlBasic library, only the hardware limit switches of the instance (technology module or single-axis function block) last called with the respective AxisRef in the application cycle are evaluated.

Starting with version 3.32.0, the hardware limit switches of all instances of the respective AxisRef called in the application are evaluated.

Option 1: Single-axis function block L_MC1P_HWLimitSwitchInterface

A separate function block can be used for each ACS axis.

The function block provides the interface for the hardware limit switches and evaluates them for homing and limit switch monitoring.

The signals for the positive and negative limit switches are connected via the inputs xLimitSwitchPos and xLimitSwitchNeg.

Example:

fbHWLimitSwitchInterfaceA1(
Axis := A1,
xLimitSwitchPos := xDI_HWLimPos,
xLimitSwitchNeg := xDI_HWLimNeg);

Do the same for the other axes A2, A3, ...

Option 2: Using a Robotics Technology Module

If the connection is made via a robotics technology module, e.g., L_TX2P_PickAndPlaceBase, the hardware limit positions are set at the TM input using the following structure variables:

tmPnPBase.ascCtrlBasicMotion[7..12].xHWLimitPos := xDI_HWLimPos[i];
tmPnPBase.ascCtrlBasicMotion[7..12].xHWLimitNeg := xDI_HWLimNeg[i];

The indices [7..12] correspond to the ACS axes A1 through A6.

Example: 2D portal

For a 2D portal with three inductive proximity sensors on each axis, the axes are configured as follows:

Axis A1: HomingMode: CcwLimitSwitchCwTP(1)

Axis A2: HomingMode: CwLimitSwitchCcwTP(2)

Touch probe configuration:

MC_TRIGGER_REF.TouchProbeSource := 3; // Digital input ExternalTPDigIn
MC_TRIGGER_REF.TouchProbeEdge := 1; // Positive edge
MC_TRIGGER_REF.ExternalTPDigIn := ADR(RefSwitch); // Pointer to boolean signal

Schematic representation of a 2dof portal axes group with hardware limit switches and reference switches.