- Posts: 12160
- Thank you received: 0
attempt to divide by zero
7 years 8 months ago #125948
by rodw
Replied by rodw on topic attempt to divide by zero
Just to clarify in the gcode you uploaded I see:
not
Sometimes the browser adds an encoding error to text when you cut and paste.
Code:
#2 = #<_ hal [pyvcp.diviseur]>
Code:
#2 = #<_hal[pyvcp.diviseur]>
Sometimes the browser adds an encoding error to text when you cut and paste.
Please Log in to join the conversation.
7 years 8 months ago #126006
by jefsaro
Replied by jefsaro on topic attempt to divide by zero
hello ,
after many hours and test , it' s same result ,I do not know what to try
regards
jd
after many hours and test , it' s same result ,I do not know what to try
regards
jd
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
Less
More
- Posts: 4739
- Thank you received: 2
7 years 8 months ago #126009
by Todd Zuercher
Replied by Todd Zuercher on topic attempt to divide by zero
Did you try the modified code I posted (it seemed to work in my simulation.)
Please Log in to join the conversation.
7 years 8 months ago #126160
by jefsaro
Replied by jefsaro on topic attempt to divide by zero
yes but is not ok , i make a another gcode.
thanks
thanks
Please Log in to join the conversation.
7 years 8 months ago #126414
by andypugh
Replied by andypugh on topic attempt to divide by zero
I think that the G-code test is the way to go.
G-code access to HAL pins is slightly unreliable if the value changes after the G-code starts to run.
I probably wouldn't send an error message for [divisions LE 0], I think I would just default to 6 or some other sensible number.
G-code access to HAL pins is slightly unreliable if the value changes after the G-code starts to run.
I probably wouldn't send an error message for [divisions LE 0], I think I would just default to 6 or some other sensible number.
Please Log in to join the conversation.
Time to create page: 0.047 seconds
