[etherlab-users] how to get slave count from userspace ?

2014-07-25 Thread Sebastien Blanchet
Hi, I would like to know which is the right way to get the number of slaves on the EtherCAT bus in a usespace program. I have tried 3 ways: // way #1: ec_master_info_t masterInfo; ec_master_t* master = ecrt_request_master(0); ec_master( master, &masterInfo ); // the answer sh

Re: [etherlab-users] how to preserve nvram writing cycles when SDO settings are needed at startup ?

2014-07-25 Thread ronaldo.mercado
Hello Sebastien, Version 1.5 of the API has ecrt_master_sdo_upload and ecrt_master_sdo_download. I haven't looked to see if the implementation is the same as the tool for upload/download but I don't see the limitation to only using ecrt_slave_config_sdoXX. Your second option is thus flexible

[etherlab-users] how to preserve nvram writing cycles when SDO settings are needed at startup ?

2014-07-25 Thread Sebastien Blanchet
Hi, How to preserve NVRAM writing cycles when SDO settings are needed at startup? Context: I have an encoder interface (Beckhoff EL5021), and I have to change the setting for the parameter "Analog Resolution" @ 0x8001:11 This parameter is stored in a NVRAM, that supports about 100,000 writing cy