FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
05-06-2024 09:41 AM - edited 05-06-2024 11:53 AM
Hello Everybody,
I would write a "generic" software PLC code to automate axis configuration (parking) without "manual" intervention on the code.
Starting from ctrlX-PLC Rexroth template I would like to get the axis ethercat address (ECAT_ETHERCAT_ADDRESS) starting from axis name (MB_AXISIF_REF) to work with "IL_ECATSoeCommand".
Are there function to get ethercat axis address starting from it's name?
Thank you in advance
Solved! Go to Solution.
05-06-2024 03:13 PM
You can get the list of avaiable ethercat adresses with IL_ECATGetConfigEthercatAddrList
https://docs.automation.boschrexroth.com/doc/2240960790/il-ecatgetconfigethercataddrlist/latest/en/
And then you can call IL_ECATGetSlaveConfigInfo for each slave, and in the SlaveConfig output there is a SlaveName property.
https://docs.automation.boschrexroth.com/doc/1999814701/il-ecatgetslaveconfiginfo/latest/en/