From 05adc1a98f7c15afc3b485c5071b30e4fbdebfdf Mon Sep 17 00:00:00 2001 From: Nicolas Hiillos Date: Thu, 17 Aug 2023 16:45:59 +0300 Subject: [PATCH] Fix --- source/ec_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source/ec_test.cpp b/source/ec_test.cpp index a0098ee..4a7ea6f 100644 --- a/source/ec_test.cpp +++ b/source/ec_test.cpp @@ -189,6 +189,12 @@ int main_loop() return -1; } + if (!(sc = ecrt_master_slave_config( + master, DigOutSlavePos, Beckhoff_EL2008))) { + fprintf(stderr, "Failed to get slave configuration.\n"); + return -1; + } + if (ecrt_slave_config_pdos(sc, EC_END, el2008_syncs)) { fprintf(stderr, "Failed to configure PDOs.\n"); return -1;