Mmc_Label Class - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

3.5

MMC_Label Class

This class provides a function for accessing the buffer memory of the Simple Motion board.
The buffer memory of the Simple Motion board is given a name for each item which is registered as a label. By using labels,
the buffer memory can be accessed in a way like using variables. Refer to the label list for the labels of each class. (Page
203 LABEL LIST)
class MMC_Label
Member
■Public method
Category
Name
Wait method
Wait
■Public data member
There is no public data member.
Point
• When labels are array variables, do not access the elements outside the range.
• When specifying an argument of a function that outputs format strings such as the print function, cast them in label type.
• The buffer memory values cannot be referenced directly or edited by using Watch of the Visual Studio
variables before referencing or editing them.
Example
void LabelSample(MMC_Axis *axis)
{
/* Refer to "[Pr.1] Unit setting" */
unsigned short unit = Axis->AxPrm.Unit;
/* Display "[Pr.1] Unit setting" */
printf( "%x", static_cast<unsigned short>(Axis->AxPrm.Unit) );
/* Set "[Pr.1] Unit setting" */
Axis->AxPrm.Unit = 0x0003;
}
Inheritance hierarchy
MMC_Label
Description
Waits by polling until the value of the label satisfies
the specified conditions.
Reference
Page 90 Wait
3 API LIBRARY DETAILS (BASIC FUNCTIONS)
3.5 MMC_Label Class
3
. Store the values to
89

Advertisement

Table of Contents
loading

Table of Contents