Re: [Machinekit] Re: hal_init() failed: -12

2017-04-04 Thread 'Marco Negrini' via Machinekit
Thanks for the tip, http://www.machinekit.io/docs/gcode/m-code/#sec:M62-M65 here is said to use it using P-number of the digital output number... if i want to call it on, for example, halui.home-all, what should i do? Il giorno martedì 4 aprile 2017 17:12:59 UTC+2, Alexander Rössler ha

Re: [Machinekit] Re: hal_init() failed: -12

2017-04-04 Thread Alexander Rössler
If you can don't write M codes as batch scripts as they break the motion queue. Best use the Analog Input and output MCodes inside a GCode subroutine remap as done with the fdm GCode for example. 'Marco Negrini' via Machinekit writes: > when making M codes, should i use the "halcmd" commands?

Re: [Machinekit] Re: hal_init() failed: -12

2017-04-04 Thread schoone...@btinternet.com
The problem with halcmd only occurs when doing thousands of commands in a loop. Just don't set a command to repeat for an unknown frequency until a condition is met. You will have to experiment with what commands work, mode cannot be changed if some factors

Re: [Machinekit] Re: hal_init() failed: -12

2017-04-01 Thread schoone...@btinternet.com
I suspect this is another instance of the problem here https://github.com/machinekit/machinekit/issues/1123#issuecomment-283058440 If you call halcmd 10 times a second, after about 5 minutes there are memory allocation issues and it fails. This is still unresolved.