Hi,
I would like to be able to change all the scaling parameter of my softmotion drive in my Codesys project (in running mode, and not only config one).
not only the inc/motor turns object, but also the gear ratio.
I have an application where the same motor could be used on different station with different scaling.
I looked into the axis structure parameter and I only found the MSC_Changegearinratio block.
Does someone know how to do this?
Thanks by advance
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi thanks for the answer, but I already tried and it changed only a few parts of the config.
Nominator is a dword and denominator a int!
I need more.
As you can see on the image of my first post, I would like it I change the values in the red square!
Does someone know how to perform this?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Axis.iRatioTechUnitsNum := Direction (+/-1) * motor turns * gear output turns (all left side) * units in application (all right side)
Axis.iRatioTechUnitsDenom := increments * motor turns * gear output turns (all left side)
Note: These two values are mathematically reduced, e.g. if iRatoTechUnitsNum=10000 and dwRatioTechUnitsDenom = 200000, it will beβ¦
iRationTechUnitsNum=1 and dwRatiTechUnitsDenom=20
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Edwin
Could you show me the result of Read Actual Axis.iRatioTechUnitsNum and Axis.dwRatioTechUnitsDenom on my project?
Because I try to calculate with the same as your method but the result doesn't correct.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I would like to be able to change all the scaling parameter of my softmotion drive in my Codesys project (in running mode, and not only config one).
not only the inc/motor turns object, but also the gear ratio.
I have an application where the same motor could be used on different station with different scaling.
I looked into the axis structure parameter and I only found the MSC_Changegearinratio block.
Does someone know how to do this?
Thanks by advance
Hi,
use SMC_ChangeGearingRatio
and after that a SMC3_ReinitDrive...
BR
Edwin
Hi thanks for the answer, but I already tried and it changed only a few parts of the config.
Nominator is a dword and denominator a int!
I need more.
As you can see on the image of my first post, I would like it I change the values in the red square!
Does someone know how to perform this?
Example:
Axis.iRatioTechUnitsNum := Direction (+/-1) * motor turns * gear output turns (all left side) * units in application (all right side)
Axis.iRatioTechUnitsDenom := increments * motor turns * gear output turns (all left side)
Note: These two values are mathematically reduced, e.g. if iRatoTechUnitsNum=10000 and dwRatioTechUnitsDenom = 200000, it will beβ¦
iRationTechUnitsNum=1 and dwRatiTechUnitsDenom=20
BR
Edwin
Hi,
Edwin
Could you show me the result of Read Actual Axis.iRatioTechUnitsNum and Axis.dwRatioTechUnitsDenom on my project?
Because I try to calculate with the same as your method but the result doesn't correct.
iRatioTechUnitsNum := -1 * 1 * 2 * 360 = 720
dwRatioTechUnitsDenom := 262144 * 243 * 1 = 63700992
iRatioTechUnitsNum = 5
dwRatioTechUnitsDenom = 442368
BR
Edwin