PLC API
TS5066
13
Version: 1.0
fTaskCycleTime: LREAL;
eFilterMode: E_Sync_FilterMode;
stAxisSyncParameters: ST_AxisSyncParameters;
END_VAR
bEnable
: The FB is activated through a rising edge. If
bEnable
=FALSE, the input axis structure
AxisIn
is
copied unmodified to output
AxisOut
.
iCycleIndex
: Counter, which is incremented by 1 and transferred whenever axis structure
AxisIn
is
transferred. It is used for determining the beat frequency and for identifying fluctuations.
fTaskCycleTime
: Zykluszeit [s].By default it is assumed that both sender and receiver are operated with
cycle time
fTaskCycleTime
. In the event of different cycle times
fTaskCycleTime
corresponds to the receiver
time,
stAxisSyncParameters.stTimeSyncParameters.fDataCycleTime
corresponds to the sender time.
eFilterMode
:The
for calculating the corrected axis set values can be chosen irrespective of
the state of the synchronization (displayed through via output
bSynced
). This does not affect automatic
.eFallBackMode
), which is activated if the distance between the
calculated and the original position exceeds a certain value. Automatic mode is activated by default, which
means that
1. a) The selected mode (ST_AxisSyncParameters
.eStartUpMode
) is used during initialization. Time
mode is used by default, i.e. a cycle time is calculated in order to prevent fluctuations.
2. b) As soon a sufficient number (
stAxisSyncParameters.stTimeSyncParameters.iNoOfPeriodsForMe-
anDrift
+1) of beat effects were detected, the system switches to sync mode, and the set values are
extrapolated with the correction time.
3. c) If synchronization is lost for some reason, the system switches to PT1 mode. In this mode the trans-
ferred positions are filtered before being transferred to the output.
stAxisSyncParameters
: Structure for detailed configuration of the FB. The default values should be
adequate in most cases.
VAR_OUTPUT
VAR_OUTPUT
bSynced : BOOL;
bError : BOOL;
iErrorId : DINT := 0;
eFilterState : E_Sync_FilterState;
stAxisSyncDiagnostic : ST_AxisSyncDiagnostic;
END_VAR
bSynced
: TRUE if the receiver is synchronized with the sender, otherwise FALSE.
bError
: TRUE in the event of a fault
iErrorId
eFilterState
was used for determining the set values returned in AxisOut.
The following options are available:
• Bypass : The values supplied in AxisIn are transferred
unmodified
to AxisOut.
• PT1 : The input values were smoothed with the aid of a PT1 filter.
• Sync : The output values were determined from the input variables via the correction time.
• Time : The time correction is calculated such that any beat effects and fluctuations are compensated.
Further information can be found in the documentation for function block
.
stAxisSyncDiagnostic
VAR_IN_OUT
VAR_IN_OUT
AxisIn : NCTOPLC_AXLESTRUCT;
AxisOut : NCTOPLC_AXLESTRUCT;
END_VAR
AxisIn : Input axis structure of the sender.
Содержание TS5066
Страница 1: ...Manual EN TS5066 TwinCAT 2 PLC Remote Synchronisation 2021 10 13 Version 1 0 ...
Страница 2: ......
Страница 4: ...Table of contents TS5066 4 Version 1 0 ...
Страница 30: ......