EasyCAT LAB - EtherCAT master very simple example

Dependencies:   SOEM

  • This repository contains a very basic example for the EasyCAT LAB , a complete educational and experimental EtherCAT® system, composed of one master and two slaves.

Note

  • This example uses two LAB 2 slaves.

Note

  • In this example, to keep things as simple as possible, only two bytes of data are exchanged between the slaves and the TFT display is not used .
Revision:
2:368e7d4d8171
Parent:
1:971b4897a4c5
--- a/main.cpp	Fri May 07 10:19:40 2021 +0000
+++ b/main.cpp	Wed Oct 25 15:38:52 2023 +0000
@@ -254,11 +254,11 @@
                                                                     //----- slaves  data management -----------            
                                                                 
                                                                                                                                                                                       
-        out_LAB_2_1->Segments = in_LAB_2_2->Buttons;                // send to the slave LAB_2_1 the buttons status
+        out_LAB_1->Segments = in_LAB_2->Buttons;                    // send to the slave LAB_2_1 the buttons status
                                                                     // from the slave LAB_2_2    
                                                                     
                                                                                   
-        out_LAB_2_2->Segments = in_LAB_2_1->Buttons;                // send to the slave LAB_2_2 the buttons status
+        out_LAB_2->Segments = in_LAB_1->Buttons;                    // send to the slave LAB_2_2 the buttons status
                                                                     // from the slave LAB_2_1