ECATWCStatus
Function A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Returns the current number of working counter errors for the Sync unit.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
SyncUnit |
INT |
0 (zero) |
N/A |
No default |
Sync Unit Index For future compatibility with multiple frames. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
Count |
UDINT |
No range |
N/A |
Working Counter error. |
Remarks
- The working counter errors are cleared to zero when the EtherCAT ***EtherCAT is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT was to apply Ethernet to automation applications which require short data update times (also called cycle times) with low communication jitter (for synchronization purposes) and low hardware costs network is taken from Init to OP state.
- Value 0 (zero)means no working counter errors.
- When the value is non zero, the master automatically reduces the count by 1 for every thousand good frames received.
- When the working counter error exceeds the Working Counter Error Limit, the EtherCAT network is stopped.
-
- See Check for Working Counter Errors in Example: EtherCAT Communication Diagnosis Steps for an example of implementing this function.
Figure 6-78: ECATWCStatus
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
(********************************************************)
(* read Ethercat Working counter value *)
(********************************************************)
wcErrorCounter := ECATWCStatus( 0 );
See Also