Page 123
Appendix |EtherCAT Documentation
confocalDT 24x1
A 6.1.5 EtherCAT State Machine
The EtherCAT® state machine is implemented in each EtherCAT®. Directly after switch-
ing on the confocalDT 24x1, the state machine is in the “Initialization“ state. In this state,
the master has access to the DLL information register of the slave hardware. The mailbox
is not yet initialized, i.e. communication with the application (sensor software) is not yet
possible. During the transition to the pre-operational state, the Sync Manager channels
are configured for the mailbox communication. In the „Pre-Operational“ state, communi-
cation via the mailbox is possible, and it can access the object directory and its objects.
In this state, no process data communication occurs. During the transition to the „Safe-
Operational“ state, the process-data mapping, the Sync Manager channel of the process
inputs and the corresponding FMMU are configured by the master. Mailbox communica-
tion continues to be possible in the „Safe-Operational“ state. The process data commu-
nication runs for the inputs. The outputs are in the „safe“ state. In the „Operational“ state,
process data communication runs for the inputs as well as the outputs.
Initialization
Pre-Operational
Operational
Safe-Operational
Fig. 83 EtherCAT State Machine
A 6.1.6 CANopen over EtherCAT
The application level communication protocol in EtherCAT is based on the communica-
tion profile CANopen DS 301 and is designated either as “CANopen over EtherCAT” or
CoE. The protocol specifies the object directory in the sensor, as well as the communi-
cation objects for the exchange of process data and acyclic messages. The sensor uses
the following message types:
-
Process Data Object (PDO). The PDO is used for the cyclic I/O communication, there-
fore for process data.
-
Service Data Object (SDO). The SDO is used for acyclic data transmission.
The object directory is described in the chapter CoE Object Directory.
A 6.1.7 Process Data PDO Mapping
Process Data Objects (PDOs) are used for the exchange of time-critical process data be-
tween master and slaves. Tx PDOs are used for the transmission of data from the slaves
to the master (inputs), Rx PDOs are used to transmit data from the master to the slaves
(outputs); not used in the confocalDT 24x1. The PDO mapping defines which application
objects (measurement data) are transmitted into a PDO. The confocalDT 24x1 has a Tx
PDO for the measuring data. The following measurements are available as process data:
-
Distance 1 Ethernet/EtherCAT (default)
Distance 1
-
Distance 1 Ethernet/EtherCAT
Distance 2
-
Difference 1-2 Ethernet/EtherCAT
Difference 1-2 (Thickness)
-
Intensity 1 Ethernet/EtherCAT
Intensity 1
-
Intensity 1 Ethernet/EtherCAT
Intensity 2
-
Shutter time Ethernet/EtherCAT
Exposure time (32 bit)
-
Encoder 1 Ethernet/EtherCAT
Encoder 1 (32 bit)
-
Encoder 2 Ethernet/EtherCAT
Encoder 2 (32 bit)
-
Encoder 3 Ethernet/EtherCAT
Encoder 3 (32 bit)
-
Value counter Ethernet/EtherCAT
Measured value counter (32 bit)
-
Timestamp Ethernet/EtherCAT
Timestamp (32 bit)
-
Error state Ethernet/EtherCAT
Error Feld
-
Statistic minimum value Ethernet/EtherCAT
Statistical value (minimum)