
MCO 305 Design Guide
__ Software Reference __
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
161
Syntax Example
SYNCP
/* normal synchronization of the position */
CVEL 50
/* achieve velocity before synchronization */
CSTART
WAITT 500
SYNCP
SYNCSTAT
Summary
Flag to query synchronization status.
Syntax
res = SYNCSTAT
Return Value
res = synchronization status with the following meaning:
Value
Bit
Par. 33-25 SYNCREADY
1
0
Par. 33-24 SYNCFAULT
2
1
Par. 33-13 SYNCACCURACY
4
2
SYNCMMHIT 8
3
SYNCSMHIT 16
4
SYNCMMERR 32
5
SYNCSMERR 64
6
Description
The following flags are defined and can be queried with SYNCSTAT: READY, FAULT,
ACCURACY and MHIT and MERR for both the master and the slave.
SYNCACCURACY
The controller checks whether SYNCERR < par. 33-13 SYNCACCURACY is true
every ms. If this is true, then SYNCACCURACY is set, otherwise the flag is deleted.
This check is made for both SYNCP and SYNCM.
This flag is not used with SYNCV.
When executing a SYNCP or SYNCM command the flag is deleted.
SYNCFAULT /
SYNCREADY
For every SYNCP or SYNCM command these flags are deleted. Subsequently the
program checks whether SYNCACCURACY is set or not at every marker pulse of the
slave (SYNCP) or when a marker pulse of the master and a marker pulse of the
slave exist (SYNCM).
If it is set the ready counter is increased and the fault counter is set to 0,
otherwise the fault counter is increased and the ready counter set to 0.
If the ready counter is greater than the value determined by the par. 33-25
SYNCREADY, then the flag SYNCREADY is set. Otherwise it is deleted.
If the fault counter is greater that the value determined by the par. 33-24
SYNCFAULT then the flag SYNCFAULT is set. Otherwise it is deleted.
SYNCMMHIT /
SYNCSMHIT
SYNCMMHIT and SYNCSMHIT are set, if the master marker or the slave marker is
occurred. These flags are deleted for every SYNCM command. Subsequently the
flag SYNCMMHIT is set after the first occurrence of a master marker pulse or after
the n-th marker pulse (par. 33-15
Marker Number for Master
).
The same is true for SYNCSMHIT with the slave.
NB!:
This flag is no longer deleted unless SYNCM is started again or explicitly deleted
with SYNCSTATCLR.
SYNCMMERR /
SYNCSMERR
If in the
Marker Windows
par. 33-21 SYNCMWINM or par. 33-22 SYNCMWINS a
tolerance range is defined, then SYNCMMERR or SYNCSMERR are set as soon as
the maximum distance allowed has been achieved and no marker was identified.
Summary of Contents for MCO 305
Page 4: ......