AB&T
/
EasyCAT_LAB_very_simple
EasyCAT LAB - EtherCAT master very simple example
- 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.
- The EasyCAT LAB is provided as a kit by AB&T Tecnologie Informatiche, to allow everybody to have an educational EtherCAT® system up and running in a matter of minutes.
- It uses the SOEM (Simple Open EtherCAT® Master) library by rt-labs, that has been ported in the ecosystem by AB&T Tecnologie Informatiche.
- The slaves are based on the EasyCAT SHIELD and the Arduino UNO.
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 .
Diff: main.cpp
- 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