Function block MCV_Axis
The data of an AXIS_REF structure is updated by the MCV_Axis FB that, as an input/output variable, has an AXIS_REF structure. This FB also performs the following tasks:
- Logging an axis onto the MCE via the HLI. This is done by setting the "plc_present_w" flag in the axis-specific HLI area
- Logging on the PLC via the HLI that the PLC can command spindle reset, controller enabling, feed enabling and drive ON for a specific axis to the MCE.
- During initialization, the HLI's consistency is verified by checking the version identifier and the size of the HLI.
- Acceptance of the error messages reported by the MCE for each axis
In every PLC application that uses the functionality of the ISG-MCP PLCopen function blocks, one instance of this FB must be created for each axis used and an AXIS_REF structure must be assigned to it as a VAR_IN_OUT parameter in the form g_array_axis_ref[i].
To ensure this, the ISG-MCP contains the MCV_P1_PLATFORM program (see Section Function block MCV_P1_PLATFORM), which must be instanced in the tasks of a PLC application. This ensures that the working data of one axis is updated in every PLC cycle.

Programming example
Declaration in ST:
cam_in_1 : MC_CamIn;
Call in ST:
cam_in_1 (master:= fb_ax[0].axis_ref, slave := b_ax[1].axis_ref);