Object Generation Functions; Mmfcreatefunctionblock - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

5.6

Object Generation Functions

MmfCreateFunctionBlock

Generates function block class objects.
unsigned long MmfCreateFunctionBlock(
unsigned long fbID,
MC_FunctionBlock **functionBlock
);
Detailed description
■Parameter
Argument
fbID [in]
functionBlock [out]
*1 Specify the following values for function block ID.
Value
MMC_FBID_MC_Power
MMC_FBID_MCv_Home
MMC_FBID_MC_Stop
MMC_FBID_MC_MoveAbsolute
MMC_FBID_MC_MoveRelative
MMC_FBID_MC_Reset
MMC_FBID_MC_MoveAdditive
MMC_FBID_MC_MoveVelocity
MMC_FBID_MC_TorqueControl
MMC_FBID_MC_SetPosition
MMC_FBID_MC_SetOverride
MMC_FBID_MC_ReadActualPosition
MMC_FBID_MC_ReadStatus
MMC_FBID_MC_ReadAxisInfo
MMC_FBID_MC_ReadAxisError
MMC_FBID_MCv_ReadServoParameter
MMC_FBID_MCv_WriteServoParameter
■Return value
Value
MMC_OK
MMERR_ARGUMENT_0
=1 to 9: Argument location
MMERR_CREATE_OBJECT
■Point
• Specify the ID of the generated function block to the function block ID.
• For objects generated using this function, delete them with the Delete method.
■Supported version
API version
1.00
■Reference
None.
Description
*1
Function block ID
Pointer to the function block class object pointer.
Description
MC_Power
MCv_Home
MC_Stop
MC_MoveAbsolute
MC_MoveRelative
MC_Reset
MC_MoveAdditive
MC_MoveVelocity
MC_TorqueControl
MC_SetPosition
MC_SetOverride
MC_ReadActualPosition
MC_ReadStatus
MC_ReadAxisInfo
MC_ReadAxisError
MCv_ReadServoParameter
MCv_WriteServoParameter
Description
Function succeeded
The argument is outside the set range.
Failed to generate object.
Software version
01
5 API LIBRARY DETAILS (FUNCTION BLOCK)
5.6 Object Generation Functions
5
195

Advertisement

Table of Contents
loading

Table of Contents