From 8d0f7f94db80066267f2840d11ebf1bf8029a164 Mon Sep 17 00:00:00 2001 From: Nicolas Hiillos Date: Thu, 17 Aug 2023 16:25:12 +0300 Subject: [PATCH] Attempt fix --- source/ec_test.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/ec_test.cpp b/source/ec_test.cpp index 7e51940..a0098ee 100644 --- a/source/ec_test.cpp +++ b/source/ec_test.cpp @@ -43,19 +43,17 @@ static ec_domain_state_t domain1_state = {}; // process data static uint8_t *domain1_pd = NULL; -#define BusCouplerPos 0, 0 +#define BusCouplerPos 0, 1 #define DigOutSlavePos 0, 2 -#define AnaInSlavePos 0, 3 -#define AnaOutSlavePos 0, 4 #define Beckhoff_EK1100 0x00000002, 0x044c2c52 -#define Beckhoff_EL2008 0x00000002, 0x07d43052 +#define Beckhoff_EL2008 0x00000002, 0x07d83052 // offsets for PDO entries static unsigned int off_dig_out; const static ec_pdo_entry_reg_t domain1_regs[] = { - {DigOutSlavePos, Beckhoff_EL2008, 0x3001, 1, &off_dig_out}, + {DigOutSlavePos, Beckhoff_EL2008, 0x7000, 1, &off_dig_out}, {} };