8-30 Trio BASIC Commands
Motion and Axis Commands
Trio Motion Technology
DEFPOS
Type:
Motion Command.
Syntax:
DEFPOS(pos1 [,pos2[, pos3[, pos4.....]]])
Alternate Format:
DP(pos1 [,pos2[, pos3[, pos4]]])
Description:
Defines the current position as a new absolute value. The command is typically used
after a
DATUM
sequence as these always set a datum of zero. It may however be
used at any time, even whilst a move is in progress.
Parameters:
Note:
As many parameters as axes on the system may be specified.
Example:
DATUM(5)
BASE(2)
DATUM(4)
BASE(1)
WAIT IDLE
DEFPOS(-1000,-3500)
The last line defines the current position, reset to (0,0) by the two
DATUM
state-
ments as (-1000,-3500) in user units.
Note:
See also
OFFPOS
which performs a relative adjustment of position.
Note 2:
Changes to the axis positions made via
DEFPOS
and
OFFPOS
are made on the next
servo update. This can potentially cause problems as the user program may con-
tinue to execute commands after the
DEFPOS
is complete, but before the next servo
update. For example, the following sequence could easily fail to move to the cor-
rect absolute position because the
DEFPOS
will not have been completed when the
MOVEABS
is loaded.
Example 2:
DEFPOS(100)
MOVEABS(0)' DEFPOS may not have occurred yet
DEFPOS
statements are internally converted into
OFFPOS
position offsets which pro-
vide an easy way to avoid the problem described:
DEFPOS(100)
WAIT UNTIL OFFPOS=0' Ensures DEFPOS is complete before next line
MOVEABS(0)
pos1:
Absolute position to set on current base axis in user units.
pos2:
Abs. position to set on the next axis in
BASE
array in user units.
pos3:
Abs. position to set on the next axis in
BASE
array in user units.
Содержание Motion Coordinator Euro 205
Страница 1: ...Trio Motion Technology Motion Coordinator Technical Reference Manual Sixth Edition 2004 Revision 4...
Страница 4: ......
Страница 11: ...C H A P T E R CHAPTER0INTRODUCTION...
Страница 12: ......
Страница 27: ...C H A P T E R CHAPTER0HARDWARE OVERVIEW...
Страница 28: ......
Страница 35: ...Motion Coordinator Technical Reference Manual Hardware Overview 2 9 Motion Coordinator MC202...
Страница 47: ...Motion Coordinator Technical Reference Manual Hardware Overview 2 21 Motion Coordinator Euro205 X...
Страница 75: ...C H A P T E R CHAPTER0INSTALLATION...
Страница 76: ......
Страница 88: ...3 14 Installation EMC Considerations Trio Motion Technology...
Страница 89: ...C H A P T E R CHAPTER0DAUGHTER BOARDS...
Страница 90: ......
Страница 126: ...4 38 Daughter Boards Profibus Daughter Board Trio Motion Technology...
Страница 127: ...C H A P T E R CHAPTER0EXPANSION MODULES...
Страница 128: ......
Страница 158: ...5 32 Expansion Modules Communications Adaptors Trio Motion Technology...
Страница 159: ...C H A P T E R CHAPTER0SYSTEM SETUP AND DIAGNOSTICS...
Страница 160: ......
Страница 173: ...C H A P T E R CHAPTER 0PROGRAMMING...
Страница 174: ...7 2 Programming Trio Motion Technology...
Страница 190: ...7 18 Programming Command Line Interface Trio Motion Technology...
Страница 191: ...C H A P T E R CHAPTER0TRIO BASIC COMMANDS...
Страница 192: ......
Страница 200: ...8 10 Trio BASIC Commands Trio Motion Technology VERIFY 8 178 VFF_GAIN 8 178 VP_SPEED 8 179...
Страница 254: ...8 64 Trio BASIC Commands Input Output Commands Trio Motion Technology...
Страница 372: ...8 182Trio BASIC Commands Axis Parameters Trio Motion Technology...
Страница 373: ...C H A P T E R CHAPTER 0PROGRAMMING EXAMPLES...
Страница 374: ......
Страница 389: ...C H A P T E R CHAPTER0SUPPORT SOFTWARE...
Страница 390: ......
Страница 443: ...Motion Coordinator Technical Reference Manual Support Software 10 55 Creating and Running a program...
Страница 472: ...10 84Support Software Project Autoloader Trio Motion Technology...
Страница 473: ...C H A P T E R CHAPTER0FIBRE OPTIC NETWORK...
Страница 474: ......
Страница 486: ...11 14Fibre Optic Network Network Specification Trio Motion Technology...
Страница 487: ...C H A P T E R CHAPTER0USING THE TRIO ACTIVEX CONTROL...
Страница 488: ......
Страница 518: ...12 32Using the Trio ActiveX Control Events Trio Motion Technology...
Страница 519: ...C H A P T E R CHAPTER0COMMUNICATIONS PROTOCOLS...
Страница 520: ......
Страница 551: ...A P P E N D I X CHAPTER 0REFERENCE...
Страница 552: ......