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;