I am new to B&R automation and I am wondering if there is a way to dynamically change a motor parameter that exists in the Physical View of Automation Studio.
I have an ACOPOSmicro drive and a Maxon_ECX-TORQUE22L_24V motor to it. Our application is designed to switch to a different motor (same model) when doing a tool changeover. I am curious to know whether it is possible to read the current value of a motor parameter (like the ‘Rotoroffset of encoder’ in the picture) and write a new value to it before calling motion command. Any guidance would be appreciated. Thanks!
You can read/write many parameters using the MC_BR_ProcessPadID function block.
You will need to know the ID of the parameter which can be found in the Help.
I’m having an issue with the filter on the linked page, it might be an issue with our online Help but if you find the same page on your locally installed Help file you can use the filter to easily track down ParIDs.
I believe the Rotoroffset of encoder you mentioned is parID 63.
Not all parameters are read/write, the Help will detail access rights to each one.
If you would prefer to make a more permanent change to the configuration you would need to use MC_BR_ProcessConfig but I think that goes beyond what you are asking for.
The rotor offset is a dynamic value when the encoder of the motor is incremental.
So when the encoder is incremental a phasing command is needed to determine the rotor offset.