L_MK1P_GantryManualControl

This FB can be used for the diagnosis and commissioning of single-axis kinematics.

The FB provides functions for

  • Error reset

  • Activation of manual alignment (in coupling mode "absolute position")

  • Activating the service mode of the kinematic and jogging the single axes separately.

  • Connecting hardware signals of the following axis

  • The display of status signals of the main and following axis as well as the single-axis kinematics

L_MK1P_GantryManualControl

L_MK1P_Gantry_int

-

Kinematic

xInternalControlActive

-

BOOL

BOOL

-

xEnableServiceMode

eKinType

-

L_MK1P_KinematicType

BOOL

-

xResetError

eKinState

-

L_MK1P_KinematicState

BOOL

-

xExecuteSyncIn

eActCouplingMode

-

L_MK1P_KinCouplingMode

L_MC1P_ControlAxis

-

scControlMainAxis

scStatusMainAxis

-

L_MC1P_StatusAxis

L_MC1P_ControlAxis

-

scControlFollowingAxis

scStatusFollowingAxis

-

L_MCIP_StatusAxis

L_MC1P_HardwareInputs

-

scHWInputsFollowingAxis

xServiceModeActive

-

BOOL

xReadyforMotion

-

BOOL

xKinWarning

-

BOOL

xKinError

-

BOOL

eKinErrorID

-

L_IEIP_Error

xKinHomed

-

BOOL

xSyncronized

-

BOOL

xSyncInBusy

-

BOOL

xWaitForSyncIn

-

BOOL

xInsidePosWindow

-

BOOL

lrActSkewness

-

LREAL

lrActTension

-

LREAL

VAR_IN_OUT

Identifier

Data type

Description

Kinematic

L_MK1P_Gantry_int

Connection of the gantry instance

inputs

Name

Data type

Info/setting options

xEnableServiceMode

BOOL

TRUE: Activate service mode

  • Activation only possible with locked axes

  • In setup mode, the main and following axis can be enabled and moved separately

xResetError

BOOL

FALSE ä TRUE

Reset error of kinematics, main and following axis

xExecuteSyncIn

BOOL

FALSE ä TRUE

Activate manual alignment, i.e. the following axis is positioned to the set position of the main axis

  • The kinematics must not be in service mode

  • The kinematics must be in the "WaitForSyncIn" state.

  • The coupling mode "Position-absolute"cmust be activated

  • Both main and secondary axes must be homed.

scControlMainAxis

L_MC1P_ControlAxis

Structure with control information of the main axis

  • Control commands are only evaluated in service mode

  • See structure description

scControlFollowingAxis

L_MC1P_ControlAxis

Structure with control information of the following axis

  • Control commands are only evaluated in service mode

  • See structure description

scHWInputs

L_MC1P_HardwareInputs

Connection of HW signals of the following axis:

  • HW limit Pos

  • HW limit Neg

  • HomeAbsSwitch

The HW signals of the main axis are linked via the TM.

Outputs

Name

Data type

Value/meaning

xInternalControlActive

BOOL

TRUE:

Control of the FB via the visualization is activated

eKinType

L_MK1P_KinematicType

Type of kinematic

eKinState

L_MK1P_KinematicState

State of the kinematic

eActCouplingMode

L_MK1P_KinCouplingMode

Actual coupling mode

scStatusMainAxis

L_MC1P_StatusAxis

Detailed status information of the main axis

scStatusFollowingAxis

L_MC1P_StatusAxis

Detailed status information of the minor axis

xServiceModeActive

BOOL

TRUE:

Seervice mode is activated. The axes can be enabled and moved separately from each other

xReadyforMotion

BOOL

TRUE:

The kinematic is in the Synchronized state and can be moved via the main axis.

xKinWarning

BOOL

TRUE:

Warning active in the kinematic

xKinError

BOOL

TRUE:

Error in the kinematic active

eKinErrorID

L_IE1P_Error

Error number of the currently pending error or warning

xKinHomed

BOOL

TRUE:

Both axes of the kinematic are referenced

xSynchronized

BOOL

TRUE:

The axes are aligned.

xSyncInBusy

BOOL

TRUE:

Alignment is active.

xWaitForSyncIn

BOOL

TRUE:

The gantry kinematic is waiting for manual alignment.

xInsidePosWindwow

BOOL

TRUE:

The position of the main and secondary axes are within the parameterized position window in "Absolute position" coupling mode.

With a coupling mode <> absolute position, xInsidePosWindow is always TRUE.

lrActSkewness

LREAL

Actual skewness of the two axes in relation to each other.

- If both axes are referenced, the difference between the two actual positions is displayed.

- If at least one of the two axes is not referenced, the position difference is latched once when the two axes are enabled and calculated as an offset. The offset is updated each time the controller is enabled again.

lrActTension

LREAL

Actual tension

Commissioning and diagnostics using GantryManualControl

The FB L_MK1P_GantryManualControl can be used for commissioning and diagnostics of the gantry axis.

a) Service mode

  1. Once the axes are coupled in the gantry axis, the axes can only be moved separately from each other in service mode. This can be set using the FB L_MK1P_GantryManualControl by activating xEnableServiceMode. The function block can then be used to jog the main and following axis. In the visualization, the control of the respective axis can be accessed via scControlMainAxis and scControlFollowingAxis.

b) Manual alignment of the axes

  • The FB can be used to manually align the gantry axis. The controller must be enabled for this if coupling is present. The kinematic is in the WaitForSyncIn state. The axes can then be manually aligned using xExecuteSyncIn.

c) Diagnostics

  • The status of the gantry axis 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)