| Posted: 08:14am 18 Apr 2026 |
Copy link to clipboard |
 Print this post |
|
G'day Bryan, Sounds like we are having a similar week, every 5 min job ends up becoming a marathon... Doesn't help when the ToDo list is a couple of toilet rolls long and ever growing
As Phil says, the ON ERROR SKIP must be in the right place
' prog to test stepper functions
Option default integer
SetTick 200,Show_Pos
ON ERROR SKIP ' this will skip one error only on the next line STEPPER CLOSE ' this will not cause an error due to the line above
Stepper init Stepper axis x,gp0,gp1,,,200,400,50,5 Stepper axis y,gp2,gp3,,,400,600,100,5 Stepper position home Stepper run Stepper gc g1 x100 y80 f500 Stepper gc g0 x0 y0
etc etc...
This can also be achieved with
If peek(stepper active)>=0 Then Stepper Close
You may be able to connect the output of the PicoMite to the DM556, the input is a optocoupler with a 270R resistor in series. Hook up 3v3 and measure current, anything more than 2mA should be ok.

$134 a litre.... Highway robbery, and they wonder why we resort to "alternative arrangements"
Happy to help mate, you have me thinking about automating the surface grinder here, another one day project
Regards, Lyle. |