Example of commissioning a gantry axis
The following example shows the steps required for commissioning a gantry axis.
1) Add a gantry node in the device tree
a. Right-click on Kinematics
b. Add device...
c. Select "Gantry"
Figure 1: Device tree with gantry node
2) Commissioning the single axes
The first step in setting up the axes for the gantry is similar to commissioning a single axis. This includes the parameterization of
-
Motor, encoder, brake, ...
-
Gear ratio, feed constant, ...
-
Basic settings
-
Referencing mode
-
...
However, it is not necessary to auto-tune the individual axes. This is done later in coupled state of the gantry.
Figure 2 Commissioning the gantry node via LES dialogs
3) Commissioning the gantry node
The following steps are necessary to combine the axes into a gantry axis
a) Coupling the single axes (subindex 30 and 31)
-
Via the LES dialog
-
Via the function module L_MK1P_AddAxisToKinematic
b) Select coupling mode (subindex 35)
-
The axes can be coupled by position (absolute or relative) or as torque support or torque controller.
c) Set automatic alignment
-
For absolute position coupling, the gantry axis must be aligned, for which the gantry node offers two setting options. This can be done automatically (after controller enable) or manually (with the FB GantryManualControl).
1. automatically after controller enable
2. manually via the GantryManualControl FB
-
The function can be parameterized via subindices 50-54 or via the LES dialog.
d) Set monitoring functions
-
To prevent damage to the axis, the misalignment and the tensioning of the gantry axis can be monitored
e) Setting the homing sequence
-
The sequence of the reference runs can also be set via the gantry node. The referencing modes set in the subordinate individual axes are decisive for this! The following settings are possible for referencing in the gantry node:
i. The order in which the axes perform the reference runs. Example: First main axis, then following axis
ii. The setting of a position offset if the axes cannot be referenced to the identical position. The offset can be compensated with the position offset (subindex 36).
iii. activation/deactivation of automatic alignment after referencing.
Figure 3: Setting the homing of the gantry axis via LES dialog
4) Commissioning and diagnostics using GantryManualControl
The FB L_MK1P_GantryManualControl ( see Figure 4) can be used for commissioning and diagnosis of the gantry axis.
a) Service mode
-
Once the axes are coupled in the gantry node, the axes can only be moved separately from each other in service mode. This can be set via the FB L_MK1P_GantryManualControl by activating xEnableServiceMode. The function block can then be used to jog the main and slave axes. In the visualization, the control of the respective axes can be accessed via scControlMainAxis and scControlFollowingAxis.
b) Manual alignment of the axes
-
The FB can be used to manually align the gantry axis. To do this, the controller must be enabled if the coupling is present (kinematics status: WaitForSyncIn). The axes can then be automatically aligned using xExecuteSyncIn.
c) Diagnosis
-
The status of the gantry kinematics and possible errors are displayed
-
The current position and speed as well as the most important states and status messages are displayed at a glance for the main and slave axes (as soon as they are connected to the gantry)
Figure 4: Overview of the GantryManualControl function block
5) Using the gantry axis
After commissioning, the gantry axis is used like a single axis with the corresponding modules of the L_MC1P. Only the main axis is used, the slave axis follows the movement of the main axis automatically.
For example, the FB L_MC1P_AxisBasicControl can be used, which is connected to the main axis:
a) When homing is started in the main axis, the entire homing sequence - as set in the gantry kinematics - is executed.
b) The movement of the gantry kinematics is programmed in the same way as a single-axis movement in the main axis.