Re: [etherlab-users] Problems with Pdo entry with index 0x0000

2013-11-08 Thread Jordi Blanch
Dear Richard, yes, we were confusing configuration and mapping. Thank you very much for your explanation, now I think it's clear for us. Best regards. On Fri, 08 Nov 2013 12:31:59 +0100, Richard Hacker wrote: > You have to add the gaps to the configuration but you cannot map them > to a variabl

Re: [etherlab-users] Problems with Pdo entry with index 0x0000

2013-11-08 Thread Richard Hacker
You have to add the gaps to the configuration but you cannot map them to a variable! I think you are confusing configuration and mapping. Configuration is done using ecrt_slave_config_pdos() to inform the master how the slave PDO is constructed. This configuration may include gaps which are us

Re: [etherlab-users] Problems with Pdo entry with index 0x0000

2013-11-06 Thread Jordi Blanch
Hello, we thought that it was necessary to add GAPs entries to the list, otherwise the master couldn't calculate the bit offset of the data received from ethercat frames because every ec_pdo_entry_reg_t relates it's data position to the previous ec_pdo_entry_reg_t item, isn't it? Also, I think I r

Re: [etherlab-users] Problems with Pdo entry with index 0x0000

2013-11-05 Thread Florian Pose
Hello, On Mon, Nov 04, 2013 at 05:40:52PM +, Thomas Bitsky Jr wrote: > // Register startup configuration for the hardware > // > > ecrt_slave_config_sdo8( sg->sc, 0x1C12, 0, 0 ); /* clear sm pdo 0x1c12 */ > ecrt_slave_config_sdo8( sg->sc, 0x1C13, 0, 0 ); /* clear sm pdo 0x1c12 */

Re: [etherlab-users] Problems with Pdo entry with index 0x0000

2013-11-05 Thread Florian Pose
Hello, On Tue, Nov 05, 2013 at 04:36:26PM +0100, Richard Hacker wrote: > I understand your problem when registering gaps. Actually the code > in the ethercat master does not do the right thing by testing on > index. Actually it should be testing for reg->bit_position instead. > I will communicate

Re: [etherlab-users] Problems with Pdo entry with index 0x0000

2013-11-05 Thread Jordi Blanch
kl3356_pdo_entries + 18}, /* RMB TxPDO-Map Value (REAL32) */ >> }; >> >> static ec_sync_info_t kl3356_syncs[] = { >> {0, EC_DIR_OUTPUT, 0, NULL, EC_WD_DISABLE}, >> {1, EC_DIR_INPUT, 0, NULL, EC_WD_DISABLE}, >> {2, EC_DIR_OUTPUT, 1, kl3356_pd

Re: [etherlab-users] Problems with Pdo entry with index 0x0000

2013-11-05 Thread Richard Hacker
56_pdos + 1, EC_WD_DISABLE}, {0xff} }; Thanks! -Original Message- From: etherlab-users-boun...@etherlab.org [mailto:etherlab-users-boun...@etherlab.org] On Behalf Of Jordi Blanch Sent: Wednesday, October 30, 2013 9:37 AM To: etherlab-users@etherlab.org Subject: [etherlab-users] Problems wi

Re: [etherlab-users] Problems with Pdo entry with index 0x0000

2013-11-05 Thread Jordi Blanch
EC_DIR_INPUT, 0, NULL, EC_WD_DISABLE}, > {2, EC_DIR_OUTPUT, 1, kl3356_pdos + 0, EC_WD_DISABLE}, > {3, EC_DIR_INPUT, 2, kl3356_pdos + 1, EC_WD_DISABLE}, > {0xff} > }; > > > Thanks! > > -Original Message- > From: etherlab-users-boun...@etherlab.org >

Re: [etherlab-users] Problems with Pdo entry with index 0x0000

2013-11-04 Thread Thomas Bitsky Jr
, EC_DIR_INPUT, 2, kl3356_pdos + 1, EC_WD_DISABLE}, {0xff} }; Thanks! -Original Message- From: etherlab-users-boun...@etherlab.org [mailto:etherlab-users-boun...@etherlab.org] On Behalf Of Jordi Blanch Sent: Wednesday, October 30, 2013 9:37 AM To: etherlab-users@etherlab.org Subje

[etherlab-users] Problems with Pdo entry with index 0x0000

2013-11-04 Thread Jordi Blanch
Hello, I was trying to configure a Beckhoff module (EL3356-0010) for load cell, and part of the configuration XML I get is this: #x1600 RMB RxPDO-Map Control #x7000 5 1 BOOL