Mc_Readactualposition Class - Mitsubishi MR-EM340GF User Manual

Simple motion board
Table of Contents

Advertisement

MC_ReadActualPosition class

Reads the current position of the specified axis.
class MC_ReadActualPosition : public MC_FunctionBlock
Member
■Input
Name
Variable name
Axis information
Axis
Enable
Enable
■Output
Name
Variable name
Output value valid
Valid
Error
Error
Error code
ErrorID
Feed current value/
Position
Command position
Machine feed value
MachinePosition
Current position
RealPosition
Data type
Fetch
Valid range Description
AXIS_REF*
bool
Startup only
ON/OFF
Data type
Initial value
bool
OFF
bool
OFF
unsigned short
0
double
0
double
0
double
0
Specifies the pointer to the axis information class object.
Executes the function block when ON.
Description
While this device is ON, this indicates that the output value is
valid.
When ON, this indicates an error occurrence in the function
block.
Returns the error code of the error that occurred in the function
block.
<Motion mode>
Returns the feed current value of the selected axis.
<I/O mode>
Returns the command position of the selected axis.
<Motion mode>
Returns the machine feed value of the selected axis.
<I/O mode>
Always outputs "0".
<Motion mode>
Returns the real current value of the selected axis.
<I/O mode>
Returns the current position of the selected axis.
5 API LIBRARY DETAILS (FUNCTION BLOCK)
5.1 MC_FunctionBlock Class
5
177

Advertisement

Table of Contents
loading

Table of Contents