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:

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.

Function block MCV_Axis 1:
Figure 1-4: Provision of AXIS_REF via the "MCV_Axis" FB

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);