
BASIC commands
PROGRAMMING MANUAL
116
Revi
si
on 3.0
3.2.182 MPOS
/i
3.2.183 MSPEED
/i
3.2.184 MTYPE
/i
/i
Type
Axis parameter (read-only)
Syntax
MPOS
Description
The
MPOS
parameter is the measured position of the axis in user units as
derived from the encoder. This parameter can be set using the
DEFPOS
command. The
OFFPOS
axis parameter can also be used to shift the origin
point.
MPOS
is reset to 0 at start-up.
The range of the measured position is controlled with the
REP_DIST
and
REP_OPTION
axis parameters.
Arguments
N/A
Example
WAIT UNTIL MPOS >= 1250
SPEED = 2.5
See also
UNITS
,
AXIS
,
DEFPOS
,
ENCODER
,
FE
,
OFFPOS
,
REP_DIST
,
REP_OPTION
,
UNITS
.
Type
Axis parameter (read-only)
Syntax
MSPEED
Description
The
MSPEED
parameter contains the measured speed in units/s. It is calcu-
lated by taking the change in the measured position in user units in the last
servo period and divide it by the servo period (in seconds). The servo period is
set with the
SERVO_PERIOD
parameter.
MSPEED
represents a snapshot of the speed and significant fluctuations,
which can occur, particularly at low speeds. It can be worthwhile to average
several readings if a stable value is required at low speeds.
Arguments
N/A
Example
No example.
See also
AXIS
,
SERVO_PERIOD
,
VP_SPEED
,
UNITS
.
Type
Axis parameter (read-only)
Syntax
MTYPE
Description
The
MTYPE
parameter contains the type of move currently being executed.
The possible values are given in the table below.
MTYPE
can be used to determine whether a move has finished or if a transi-
tion from one move type to another has taken place.
A non-idle move type does not necessarily mean that the axis is actually
moving. It can be at 0 speed part way along a move or interpolating with
another axis without moving itself.
Arguments
N/A
Example
No example.
See also
AXIS
,
NTYPE
.
Move number
Move type
0
IDLE
(no move)
1
MOVE
2
MOVEABS
3
MHELICAL
4
MOVECIRC
5
MOVEMODIFY
10
FORWARD
11
REVERSE
12
DATUM
13
CAM
14
JOG_FORWARD refer to
FWD_JOG
15
JOG_REVERSE refer to
REV_JOG
20
CAMBOX
I52E-EN-03.book Seite 116 Freitag, 29. Juni 2007 11:55 11