All BASIC commands
Section 4-2
204
/i
4-2-161 MPOS
/i
Example
A satellite receiver sits on top of a van. It must align correctly to the sat-
ellite from data processed in a computer. This information is sent to the
controller through the serial link and sets VR(0) and VR(1). This infor-
mation is used to control the two axes.
MOVEMODIFY
is used so that the position can be continuously
changed even if the previous set position is not achieved.
bearing=0 'set lables for VRs
elevation=1
UNITS AXIS(0)=360/counts_per_rev0
UNITS AXIS(1)=360/counts_per_rev1
WHILE IN(2)=ON
MOVEMODIFY(VR(bearing))AXIS(0) 'adjust bearing to match VR0
MOVEMODIFY(VR(elevation))AXIS(1)'adjust elevation to match
VR1
WA(250)
WEND
RAPIDSTOP 'stop movement
WAIT IDLE AXIS(0)
MOVEABS(0) AXIS(0) 'return to transport position
WAIT IDLE AXIS(1)
MOVEABS(0) AXIS (1)
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 or after the controller
has been reset.
The range of the measured position is controlled with the
REP_DIST
and
REP_OPTION
axis parameters.
Arguments
N/A
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...