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 |
-32768 to +32767 |
N/A |
No default |
Sync Unit Index Zero pulse (zero signal) of a hardware pin such as digital input or feedback pin. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
UDINT |
No range |
N/A |
Working Counter error. |
Remarks
- The working counter errors are cleared to zero when the EtherCAT Ethernet ofr Control Automation Technology. EtherCAT® is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT is 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 In networking dialect, a message is called a frame. 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 1: 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