- Posts: 28
- Thank you received: 0
Following error due 2³¹ 2 147 483 648 jump to -2 147 483 648
10 months 5 days ago #340497
by ts
Following error due 2³¹ 2 147 483 648 jump to -2 147 483 648 was created by ts
Hi
I doing retrofit on machine, used etheecat delta.
i used in hal file scale parameter pos-scale to adjust lenght of movenent
today i catch an error, when linuxcnc receive value during moving equals +2^31 and became -2^31, system catch that prevous value pos of axis calculated in mm was 380mm, and after count +2^31 overflow became -67mm. So there an error.
I have no ideas, and stucked) How to solve this trouble?
thanks in advance!
I doing retrofit on machine, used etheecat delta.
i used in hal file scale parameter pos-scale to adjust lenght of movenent
today i catch an error, when linuxcnc receive value during moving equals +2^31 and became -2^31, system catch that prevous value pos of axis calculated in mm was 380mm, and after count +2^31 overflow became -67mm. So there an error.
I have no ideas, and stucked) How to solve this trouble?
thanks in advance!
Please Log in to join the conversation.
10 months 5 days ago #340503
by Hakan
Replied by Hakan on topic Following error due 2³¹ 2 147 483 648 jump to -2 147 483 648
Never seen a several km long axis so I am out of clues, sorry.
Please Log in to join the conversation.
10 months 5 days ago #340504
by endian
Replied by endian on topic Following error due 2³¹ 2 147 483 648 jump to -2 147 483 648
take a look at default resolution SDO .. it has to be something like 20 or 16 ... it is user resolution per revolution ... maybe it has some weird setup from factory ... you have maybe swapped bytes or something or wrong data type ....
you dont share anything ... maybe share more details for focused reply
you dont share anything ... maybe share more details for focused reply
Please Log in to join the conversation.
10 months 5 days ago #340514
by ts
Replied by ts on topic Following error due 2³¹ 2 147 483 648 jump to -2 147 483 648
Thanks for your replies.
in my case delta etheecat asda a3e give me resolution om the motor at output on ethercat. In asda soft avaible option mul/div parameters for recalculation encodee output, but every reboot servodrive thats parameters became to 1. So i calculated (all mechanical reduction and motors encoder resolution) scale-pos, it about 9 500 000 to receive correct move command execution.
Of cpurse, maybe right way is to put parameters asda delta div/mul to scaledown , but may be there are some other way?
in my case delta etheecat asda a3e give me resolution om the motor at output on ethercat. In asda soft avaible option mul/div parameters for recalculation encodee output, but every reboot servodrive thats parameters became to 1. So i calculated (all mechanical reduction and motors encoder resolution) scale-pos, it about 9 500 000 to receive correct move command execution.
Of cpurse, maybe right way is to put parameters asda delta div/mul to scaledown , but may be there are some other way?
Please Log in to join the conversation.
10 months 5 days ago #340521
by endian
Replied by endian on topic Following error due 2³¹ 2 147 483 648 jump to -2 147 483 648
you have to adjust the resolution over SDOs during start up and then to reduce it over float factor in the SMs ... if you are scaling 1 / something big it will just create you crazy numbers then ...
share config at first place ... then we can help you well
share config at first place ... then we can help you well
Please Log in to join the conversation.
7 months 6 days ago #344706
by ts
Replied by ts on topic Following error due 2³¹ 2 147 483 648 jump to -2 147 483 648
Thanks for your replyes. Yes, you right, i have to add this strings to xml config and every loading linuxcnc write electronic gear values to delta servo drive :
<slave idx="3" type="generic" vid="0x000001dd" pid="0x00006010" configPdos="true"> <!-- Axis Z -->
<sdoConfig idx="6093" subIdx="1">
<sdoDataRaw data="00 00 00 01"/> <!-- 01000000h= 16777216 P1.44-->
</sdoConfig>
<sdoConfig idx="6093" subIdx="2">
<sdoDataRaw data="d6 06"/>
</sdoConfig>
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>
<slave idx="3" type="generic" vid="0x000001dd" pid="0x00006010" configPdos="true"> <!-- Axis Z -->
<sdoConfig idx="6093" subIdx="1">
<sdoDataRaw data="00 00 00 01"/> <!-- 01000000h= 16777216 P1.44-->
</sdoConfig>
<sdoConfig idx="6093" subIdx="2">
<sdoDataRaw data="d6 06"/>
</sdoConfig>
<dcConf assignActivate="300" sync0Cycle="*1" sync0Shift="0"/>
Please Log in to join the conversation.
Time to create page: 0.575 seconds
