Mitsubishi MR-EM340GF User Manual page 147

Simple motion board
Table of Contents

Advertisement

Name
Description
MC_ReadStatus
Returns the detailed state of the state diagram of the
specified axis.
MC_ReadAxisInfo
Reads the axis information of the specified axis.
MC_ReadAxisError
Reads the error No. of the specified axis.
MCv_ReadServoParameter
Reads the parameter value of the servo parameter No.
of the specified axis.
MCv_WriteServoParameter
Changes the parameter value of the servo parameter
No. of the specified axis.
Point
• When executing a function block again, set the execution command (Execute, Enable) to OFF, and execute after calling the
Update method.
• When using multiple function blocks and starting them all on the same axis simultaneously, operation will be abnormal.
• Operations are not guaranteed when using axis class methods such as PositioningStart method together with function
blocks simultaneously.
• A MCv class name indicates a function block for vendor specifications.
• Function blocks use axis information classes (AXIS_REF class).
• The slave stations that can be controlled are 1 to 16 stations (axes) in the motion mode and 1 to 120 stations in the I/O
mode. Set the station No. of the servo amplifier within the setting range.
• For the function block class, if a value is not set to the input variable, the default value (0) is applied.
• When turning OFF the function block execution command (Execute) after turning it ON, be sure to turn it OFF after it is in
an executing state (BUSY).
• Do not overwrite the output variable by user program. If overwritten, it may not operate normally.
• In this section, the bool values of the function block I/O are written as ON/OFF. According to the programming language,
read them as follows.
• C++
ON: true
OFF: false
<I/O mode>
• This class accesses the servo parameter groups PA, PD, and PT. Before using function blocks, set the servo parameter
"Parameter writing inhibit (PA19)" to "00ABH".
• This class accesses link devices. Before accessing the link devices with user programs, turn ON LinkDeviceUse of the
AXIS_REF class and check that LinkDeviceAccessible turns ON.
• The servo amplifier operates with the point table No. input method.
Motion
I/O mode Reference
mode
Page 179 MC_ReadStatus class
Page 181 MC_ReadAxisInfo class
Page 183 MC_ReadAxisError class
Page 185
MCv_ReadServoParameter class
Page 187
MCv_WriteServoParameter class
5 API LIBRARY DETAILS (FUNCTION BLOCK)
5.1 MC_FunctionBlock Class
5
145

Advertisement

Table of Contents
loading

Table of Contents