attempt to divide by zero

More
07 Feb 2019 19:56 #125948 by rodw
Replied by rodw on topic attempt to divide by zero
Just to clarify in the gcode you uploaded I see:
#2 = #<_ hal [pyvcp.diviseur]>
not
#2 = #<_hal[pyvcp.diviseur]>

Sometimes the browser adds an encoding error to text when you cut and paste.

Please Log in or Create an account to join the conversation.

More
08 Feb 2019 16:16 #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
Attachments:

Please Log in or Create an account to join the conversation.

More
08 Feb 2019 16:48 #126009 by Todd Zuercher
Did you try the modified code I posted (it seemed to work in my simulation.)

Please Log in or Create an account to join the conversation.

More
10 Feb 2019 16:59 #126160 by jefsaro
Replied by jefsaro on topic attempt to divide by zero
yes but is not ok , i make a another gcode.
thanks

Please Log in or Create an account to join the conversation.

More
13 Feb 2019 23:06 #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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.076 seconds
Powered by Kunena Forum