MCV_ManMode

This FB acts on an axis group (NC channel) when it is in manual mode. (See FB MCV_GrpOperationMode)

For every axis in the axis group, it defines

and what the parameters of the selected manual mode are.

Block diagram

FB parameters

VAR_IN_OUT

Variable name

Data type

Description

AxesGroup

AXES_GROUP_REF

Axis group reference

VAR_INPUT

Variable name

Data type

Description

Enable

BOOL

If the input is TRUE, the commands applied to the inputs are commanded for each of the axis groups (NC channel) if they are in manual mode.

AxSel

MCV_AY_MM_AX_SEL

This input enables axes for manual mode and connects to an operating element (key pair or handwheel).

This is an array containing elements of the data structure MCV_MM_AX_SEL. Every array element corresponds with the axis which is sorted by the same index in the sequence of the axes in the axis group.

StepSel

MCV_AY_MM_STEP_SEL

Several parameter data records can be configured for each axis for each manual mode. This input is used to select the parameter data records to be applied in the current manual mode situation.

This input defines which parameter records are to be applied by specifying the index under which the parameter data record is entered in the axis parameter list.

Reference to AXIS (internal

ContJog

BOOL

Selects continuous jog mode on a rising edge. Deselects by selecting IncrJog or Hwheel.

IncrJog

BOOL

Selects incremental jog mode on a rising edge. Deselects by selecting ContJog or Hwheel.

Hwheel

BOOL

Selects handwheel mode on a rising edge. Deselects by selecting ContJog or IncrJog.

VAR_OUTPUT

Variable name

Data type

Description

Valid

BOOL

TRUE when the inputs are evaluated.

Error

BOOL

Indicates TRUE when an error occurs.

ErrorID

WORD

Error identifier

AxSelState

MCV_AY_MM_AX_SEL_STATE

This output indicates the current situation, which axes are enabled for manual mode and the operating element they are connected to.

This is an array containing elements of the data structure MCV_MM_AX_STATE. Every array element corresponds to the axis which is sorted by the same index in the sequence of the axes in the axis group.

StepSelState

MCV_AY_MM_STEP_SEL_STATE

This output indicates whether each selectable parameter data record was enabled or is ready to be enabled.

This is an array containing elements of the data structure MCV_MM_STEP_SEL_STATE

ContJog_Act

BOOL

Continuous jog mode is activated.

IncrJog_Act

BOOL

Incremental jog mode is activated

Hwheel_Act

BOOL

Handwheel mode is activated.

ContJog_Avail

BOOL

Continuous jog mode is ready.

IncrJog_Avail

BOOL

Incremental jog mode is ready.

Hwheel_Avail

BOOL

Handwheel mode is ready.

Data structure MCV_MM_AX_SEL

Before an axis can move in manual mode, it must be enabled for manual mode and be connected to an operating element. The structure variables are used as follows:

Data structure MCV_MM_AX_SEL_STATE

This data structure indicates the current state of an axis relating to manual mode. The structure variable

Data structure MCV_MM_STEP_SEL_STATE

This data structure indicates which of the parameter data records defined in the axis parameter list was enabled for the currently selected manual mode type.

This data structure indicates the currently selected manual mode type for the parameter data records configured in the axis parameter list, whether the single parameter data record was enabled or is ready to enable.

Notice

notice

The elements StepAct and StepAvail in a parameter data record may never be TRUE simultaneously.