Step by step programm executing

More
03 Jul 2011 03:59 #11086 by aike
Hi!
Help me to create hal file to execute programm in G-code step by step. It is suitable for debug mode.
I need to create 2 button
1. Switch to STEP mode (or BLOCK in Hitachi for example)
2. Step button to execute only one instruction.
I prepared this buttons as external and I need only the understandinf how to write in HAL this feature.

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

More
03 Jul 2011 12:40 #11094 by BigJohnT
Look in the HAL Examples section of the forum.

John

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

More
03 Jul 2011 16:23 #11100 by aike
Hi!
Thank you for reference.
I write this hal function.
It's OK. BUT!!!
I need to execute only ONE instruction (string in G-code programm).
After the executing instruction, the EMC has to be in paused state and wait foe the next button press.
How can I do it?

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

More
03 Jul 2011 17:47 #11104 by BigJohnT
Look at the halui.program pins... and you will have to do a bit of logic to make sure that EMC is in a state that the pin will work. Also keep in the back of your head that single step means execute up to the next line that causes movement.

John

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

Time to create page: 0.121 seconds
Powered by Kunena Forum