![Danfoss VLT5000 SyncPos Скачать руководство пользователя страница 155](http://html.mh-extra.com/html/danfoss/vlt5000-syncpos/vlt5000-syncpos_operating-instructions-manual_4121908155.webp)
Programmable SyncPos motion controller
MG.10.J8.02 – VLT is a registered Danfoss trade mark
154
■
■
■
■
■
SYNCSTAT
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.
Summary
Flag to query synchronization status
Syntax
res = SYNCSTAT
Return value
res = synchronization status with the following
meaning:
Value Bit
SYNCREADY
1
0
SYNCFAULT
2
1
SYNCACCURACY
4
2
SYN CM M H IT
8
3
SYNCSM H IT
16
4
SYNCMMERR
32
5
SYNCSME RR
64
6
SYNCACCURACY
The controller checks whether SYNCERR <
SYNCACCURACY (55) 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 mar-
ker 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 parameter SYNCREADY (56),
then the flag SYNCREADY is set. Otherwise it is
deleted.
If the fault counter is greater that the value deter-
mined by the parameter SYNCFAULT (57) then the
flag SYNCFAULT is set. Otherwise it is deleted.
SYNCMMHIT / SYNCSMHIT
SYNCMMHIT and SYNCSMHIT are set, when the
master marker resp. 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 (parameters SYNCMARKM
52).
The same is true for SYNCSMHIT with the slave.
SYN CMM E RR / SYNCSM E R R
If in the
marker window
marker window
marker window
marker window
marker window
SYNCMWINM (68) or
SYNCMWINS (69) 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.
Example:
Distance between two master markers
SYNCMPULSM (58) = 30000
Marker Window SYNCMWINM (68) = 1000
The flag is set at 31000 if no marker is
identified.
These flags are deleted for every SYNCM command.
If the
marker window
marker window
marker window
marker window
marker window
is 0 and thus no tolerance range
is defined, the program checks every marker pulse (or
after every n-th pulse) whether the distance between
the two last markers registered is less than 1.8 times
the value defined by the parameter SYNCMPULSM
(58). If not the corresponding flag is set.
The same applies analogously for SYNCSMERR in
the slave.
NB!
These flags are automatically reset: during
the next successful marker correction and in
the event of a new start of SYNCM or through the
command SYNCSTATCLR.
Command group
SYN
Cross Index
SYNCSTATCLR
Syntax-Example
IF (SYNCSTAT & 4) THEN OUT 1 1
/* If ACCURACY then set output */
E N DI F
Software Reference