L_MK1P_RemoveAxisFromKinematic
This FB can be used to disconnect the connection of an axis within a single-axis kinematic. The input wIdentInKinematic can be used to select the point in the kinematics at which the link is to be removed. For the gantry axis, this is possible as a main axis (wIdentInKinematic = 1) and following axis (wIdentInKinematic = 2). The function block is executed via a positive edge at xExecute.
|
|
|
|
L_MK1P_RemoveAxisFromKinematic |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
L_MK1P_IConfigureKinematicAxis |
- |
|
Kinematic |
xDone |
|
- |
BOOL |
|
BOOL |
- |
|
xExecute |
xBusy |
|
- |
BOOL |
|
WORD |
- |
|
wIdentInKinematic |
xError |
|
- |
BOOL |
|
|
|
|
|
eErrorID |
|
- |
L_IE1P_Error |
Inputs
|
Name Data type |
Description |
|
|---|---|---|
|
xExecute BOOL |
Execution of the FB |
|
|
Kinematic L_MK1P_IConfigureKinematicAxis |
Interface to the kinematic in which the link is to be disconnected (e.g. gantry L_MK1P_Gantry) |
|
|
wIdentInKinematic WORD/ L_MK1P_IdentInKinematics |
Assignment of which link in the kinematics is to be removed. Example gantry: 1: Main axis 2: following axis |
|
Outputs
|
Name Data type |
Value/meaning |
|
|---|---|---|
|
xDone BOOL |
Connection is removed |
|
|
xBusy BOOL |
Processing is running. |
|
|
xError BOOL |
An error has occurred |
|
|
eErrorId L_IE1P_Error |
Error ID |
|
Example call
---------------------------------------------------------------
//Declaration
VAR
RemoveAxis: L_MK1P_RemoveAxisFromKinematic;
xRemoveAxis: BOOL;
END_VAR
---------------------------------------------------------------
//Instance call (here removing the main axis from the "Gantry" kinematic)
AddAxis1(Kinematic := Gantry, wIdentInKinematic := 1, xExecute := xRemoveAxis);
---------------------------------------------------------------