
MCO 305 Design Guide
__ Software Reference __
106
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
DEF ORIGIN
Summary
Sets the current position as zero point
Syntax
DEF
ORIGIN
Description
With the DEF ORIGIN command the current position is set as the zero point. All
absolute positioning commands (POSA) then refer to this zero point.
The actual position reached in a positioning command is the Target position plus
some error which is not compensated automatically while using a DEF ORIGIN.
NB!:
The command DEFMORIGIN can not be used with absolute encoders (see par. 32-
00
Incremental Signal Type
).
Command Group
INI
Cross Index
POSA
Syntax Example
POSA 80000
/* Absolute positioning */
DEF ORIGIN
/* define actual position as zero point */
Sample
POSA 2000
PRINT "Position before new origin", APOS
DEF ORIGIN
PRINT "Position after defining new origin",
APOS
Output
Position before new origin 2000,
Position after defining new origin 0
Initial
0
175MD515
After Execution
(After DEF ORIGIN)
0
175MD518
Program Sample
DORIG_01.M,
ORIG_01.M
DEF SYNCORIGIN
Summary
Defines master-slave relation for the next SYNCP or SYNCM command
Syntax
DEFSYNCORIGIN master slave
Parameter
master = reference position in qc
slave = reference position
Description
This command defines how much distance ahead or behind should the slave be in
relation to the master position. It allows defining the relation between master and
slave for the next SYNCP or SYNCM command. It sets the internal slave command
position to the slave value.
The master value is used for an internal MOVESYNCORIGIN. For that reason, a
MOVESYNCORIGN will be overwritten by this command. Both actions are done at
the moment, when the SYNC command is activated.
So it is guaranteed, that master and
slave will be synchronized at the
above master-slave position.
Command Group
SYN
Cross Index
MOVESYNCORIGIN
Sample
Here when the master is in 2000 qc
the slave should be in 4000 qc, i.e.,
slave should be ahead of master by
2000 qc.
Also when the master is in 3000 qc
the slave should be in 5000 qc.
Summary of Contents for MCO 305
Page 4: ......