does anyone have experience with “MpAxisBasicConfig” block? I noticed that the structure “Features” in “MpAxisBasicConfigType” is not updated when reading the configuration? All the other data is updated as expected. Am I doing something wrong? Does anyone know if the function is implemented yet? The B&R help does not say anything about it, and none of the examples is about reading/writing axis features.
You wrote “when reading” i assume you did use CmdEnum “Read”.
“Read/Write” is internaly probably based on MC_BR_ProcessParam
“Load/Save” is internaly probably based on MC_BR_ProcessConfig
“Create/Delete” is internaly probably based on MC_BR_ProcessConfig
Can you make a short test with mcAXIS_BASIC_CFG_LOAD?
thanks for your reply. I already tried LOAD and SAVE, same behavior. I have not tested CREATE though, maybe it is only for this mode. But it is not very well documented.
Hi @dominik.lehnberg ,
Just out of curiosity: Do you need to change the axis feature or may be channel feature on the fly? A few weeks ago, our team tried to change the ACOPOS parameter tables on the fly because the customer has different options for the same machine that require different motors. We used MC_BR_ProcessConfig, but we initially used the axis feature instead of the channel feature, and it didn’t work.
Here are a few points I have learned about MpAxisBasicConfig:
First, when trying to do something with MpAxisBasicConfig, I normally run a test at a lower level with MC_BR_ProcessPar and MC_BR_ProcessConfig. Because MpAxisBasicConfig calls them internally, a low-level issue guarantees an upper-level issue. Second, MpAxisBasicConfig doesn’t cover all combinations offered by MC_BR_ProcessPar and MC_BR_ProcessConfig, but you can integrate what is missing with additional low-level calls. Third, regarding the documentation, there is definitely room for improvement. That’s why we have reported it in a CASE so R&D can work on it.
===============
I did quick test where I have configure one axis feature and one channel feature and it works well:
thanks for your tests. I was not aware of the option “mcAXB_CFG_SEC_ALL_WITH_FEAT”. I thought “mcAXB_CFG_SEC_ALL” as the name suggests would already read everything including features.