SoMachine v.4.3.
I have an interesting question, hoping someone here as some advice.
My customer has a Lexium 32 servo drive. We are reading the absolute position of the motor encoder into a variable in codesys, using the MC_ReadActualPosition_LXM function block.
All that aside, the customer is asking for another variable that works independently from the current_absolute_position. For example, he wants to be able to zero this 2nd variable at any given place and get a readout position readout +/- of the place he zeroed it. This variable is okay to zero when we HOME, but we must be able to zero it whenever we want without homing the servo.
I was thinking of implementing some logic that would increment/decrement the 2nd value when the current_absolute_position goes up or down, but I wasn't sure that was the best way.
Any thoughts on the best way to do this?
I have an interesting question, hoping someone here as some advice.
My customer has a Lexium 32 servo drive. We are reading the absolute position of the motor encoder into a variable in codesys, using the MC_ReadActualPosition_LXM function block.
All that aside, the customer is asking for another variable that works independently from the current_absolute_position. For example, he wants to be able to zero this 2nd variable at any given place and get a readout position readout +/- of the place he zeroed it. This variable is okay to zero when we HOME, but we must be able to zero it whenever we want without homing the servo.
I was thinking of implementing some logic that would increment/decrement the 2nd value when the current_absolute_position goes up or down, but I wasn't sure that was the best way.
Any thoughts on the best way to do this?