- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Following error due 2³¹ 2 147 483 648 jump to -2 147 483 648
Following error due 2³¹ 2 147 483 648 jump to -2 147 483 648
- ts
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 2
25 Dec 2025 14:48 - 25 Dec 2025 16:58 #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!
Last edit: 25 Dec 2025 16:58 by ts.
Please Log in or Create an account to join the conversation.
- Hakan
- Offline
- Platinum Member
-
Less
More
- Posts: 1134
- Thank you received: 399
25 Dec 2025 19:21 #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 or Create an account to join the conversation.
- endian
-
- Offline
- Elite Member
-
Less
More
- Posts: 286
- Thank you received: 94
25 Dec 2025 20:26 #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 or Create an account to join the conversation.
- ts
- Offline
- New Member
-
Less
More
- Posts: 18
- Thank you received: 2
26 Dec 2025 03:28 #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 or Create an account to join the conversation.
- endian
-
- Offline
- Elite Member
-
Less
More
- Posts: 286
- Thank you received: 94
26 Dec 2025 12:44 #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
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Advanced Configuration
- EtherCAT
- Following error due 2³¹ 2 147 483 648 jump to -2 147 483 648
Time to create page: 0.141 seconds