Function block MCV_P1_PLATFORM

The following has been defined for instancing and calling up the PLCopen FB:

Notice

MCV_P1_PLATFORM operation criteria

Folgen

  • The generic MCV_Axis of the PLCopen axes are instanced and called up in the ISG-MCP. The relevant code is implemented in the MCV_P1_PLATFORM FB.
  • Each PLC application using function blocks of PLCopen specification Part 1 and 2, must call the only one instance of function block MCV_P1_PLATFORM in the project, before other function blocks for motion control are called. This ensures that one instance of the generic MCV_Axis FB is computed in each PLC cycle for each axis.
  • Application programmers must ensure instancing and calling up of all PLCopen FBs serving programming of the application (e.g. motion sequence) in one application program.
  • Before we call the function blocks for motion control the first time the HLI (interface to the MC) must be initialized, and the only one instance of MCV_PlatformBase in the PLC project must notify the successful initialization of MCP.
Function block MCV_P1_PLATFORM 1:
Figure 1-5: Application frame for motion applications

On initialization in FB MCV_P1_PLATFORM an AXIS_REF structure is assigned to each axis, available as elements of the globally defined g_array_axis_ref array.