Manual Gcode input

Post Reply
RMC
Posts: 25
Joined: Sun Sep 30, 2018 6:28 am

Manual Gcode input

Post by RMC » Mon Jan 21, 2019 10:42 pm

Hi there for some when i set the gcode input to G90 mode it refuses to change and stays in G91 even though I restarted it and i never changed it to G91
Also when the gcode finishes it wont stop the spindle the LED on the monitor goes away but it doesnt stop the spindle only sends it to a low rpm mode.

mycnc
Posts: 403
Joined: Thu May 10, 2018 2:42 pm

Re: Manual Gcode input

Post by mycnc » Tue Jan 22, 2019 6:51 pm

RMC wrote:
Mon Jan 21, 2019 10:42 pm
Hi there for some when i set the gcode input to G90 mode it refuses to change and stays in G91 even though I restarted it and i never changed it to G91
Single G90 is ignored by MDI.
If you enter a line with G90 and motion block like

Code: Select all

G90 G0 Z30 
It should switch to absolute coordinates and run G0 block.

Some macros and on-screen buttons may switch coordinates to G90 and G91.
Please add G90 (or G91) to MDI motion command after you use HMI buttons (like Set work coordinates, homing, surface measure etc)

RMC wrote:
Mon Jan 21, 2019 10:42 pm
Also when the gcode finishes it wont stop the spindle the LED on the monitor goes away but it doesn't stop the spindle only sends it to a low rpm mode.
Some customers do need spindle stays ON after g-code finished. They use it, for example, to probe material by sound.

There is M02 M-code at the end of g-code program usually (M02 is PLC procedure).
If you press "Stop" button again, OFF PLC procedure will be executed.

If you need to stop Spindle every time G-code is finished, just need to add spindle off code to these procedures.

Something like this

Code: Select all

#include pins.h
main()
{
  portclr(OUTPUT_MIST);
  portclr(OUTPUT_FLOOD);
  dac01=0x0;	//off DAC output
  portclr(OUTPUT_SPINDLE);
  portclr(OUTPUT_CCW_SPINDLE);
  exit(99);
};

mycnc
Posts: 403
Joined: Thu May 10, 2018 2:42 pm

Re: Manual Gcode input

Post by mycnc » Fri Feb 08, 2019 2:01 am

mycnc-gstate-001.png
Next release will have G-code state widget and accepts single G90 and G20 codes

VMC
Posts: 8
Joined: Thu Nov 22, 2018 5:09 am

Re: Manual Gcode input

Post by VMC » Sat Feb 09, 2019 7:52 pm

Thanks! Why do you have G18 etc. in there?

Could it be a graphical toggle switch between 90/91 and 20/21 to show abs/inc and inch/metric modes?. I don't think you need G0 and the others like G18. I want to be able to easily see (and modify through mdi or buttons) things with binary states like g20/g21, g90/g91, tool length comp on/off, and see the current WCS state - g54/g55/g56...etc. Personally I don't mind typing in the MDI "G90", but I'd like to a) have some feedback on the home screen listing what state it's currently in and b) be able to type or toggle G90 alone for instance and have it save that state until told otherwise. I'd rather have a) than b) both both would be ideal.

Image

Pathpilot lists all of the current modes ("status") via a text line in the bottom center for reference.


Thanks for the updates!

mycnc
Posts: 403
Joined: Thu May 10, 2018 2:42 pm

Re: Manual Gcode input

Post by mycnc » Sun Feb 10, 2019 2:41 am

G18 is a modal command (G7, G18, G19). JUst the same as other modal group commands G20/G21, G90/G91, G40/G41/G42 etc
I suppose G18 is used more often, than G98/G99.

Anyway, any of modal group can be shown anywhere on the screen.
G-code Status block programming is shown below, anything can be changed.

Code: Select all

<gitem where="x-gstate"  position="10;10" width="36" height="36" displayWidth="36"  fgColor="##b-display" 
bgColor="##f-display" prefix="G"  format="%d" type="display" deviation="0.1" fontSize="16" fontStyle="bold"
name="display-cnc-gvariable-4001"></gitem>

<gitem where="x-gstate"  position="50;10" width="36" height="36" displayWidth="36"  fgColor="##b-display" 
bgColor="##f-display" prefix="G"  format="%d" type="display" deviation="0.1" fontSize="16" fontStyle="bold"
name="display-cnc-gvariable-4002"></gitem>

<gitem where="x-gstate" position="10;50" width="36" height="36" displayWidth="36" fgColor="##b-display" 
bgColor="##f-display" prefix="G" format="%d" type="display" deviation="0.1" fontSize="16" fontStyle="bold"
name="display-cnc-gvariable-4003"></gitem>


<gitem where="x-gstate" position="50;50" width="36" height="36" displayWidth="36" fgColor="##b-display" 
bgColor="##f-display" prefix="G" format="%d" type="display" deviation="0.1" fontSize="16" fontStyle="bold"
name="display-cnc-gvariable-4006"></gitem>

<gitem where="x-gstate" position="10;90" width="36" height="36" displayWidth="36" fgColor="##b-display" 
bgColor="##f-display" prefix="G" format="%d" type="display" deviation="0.1" fontSize="16" fontStyle="bold" 
name="display-cnc-gvariable-4007"></gitem>

<gitem where="x-gstate" position="50;90" width="36" height="36" displayWidth="36" fgColor="##b-display" 
bgColor="##f-display" prefix="G" format="%d" type="display" deviation="0.1" fontSize="16" fontStyle="bold"
 name="display-cnc-gvariable-4008"></gitem>

Post Reply