Advanced Search

Search Results (Searched for: )

  • BigJohnT
  • BigJohnT's Avatar
04 Mar 2011 19:35
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

The only way that I know of to get that error is the file is not where you said it is. Look on line 2 to see the path that ngcgui is looking for the file in. I can duplicate that exact error just by renaming one of my subroutines.

John
  • Pilotltd
  • Pilotltd
04 Mar 2011 18:35
Replied by Pilotltd on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

BigJohnT wrote:

Did you copy/create each one and put it in the directory you specified in your ini file?

John


Yep - it shows the ngc file in the gcode window but wont run it. It just stops with the near line 26 error :(

Steve
  • BigJohnT
  • BigJohnT's Avatar
04 Mar 2011 16:50
Replied by BigJohnT on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

Did you copy/create each one and put it in the directory you specified in your ini file?

John
  • Pilotltd
  • Pilotltd
04 Mar 2011 15:53
Replied by Pilotltd on topic Subroutine GUI

Subroutine GUI

Category: O Codes (subroutines) and NGCGUI

Hi John - been having a look at this today, can get the gui tabs to show but on finalize I get the error

Near line 26 of home/steve/emc2/configs/sb-lathe1/auto.ngc :

Unable to open file <od>

or id or taper-od depending on which tab I selected.

Any ideas?

Steve
  • lbaroudi
  • lbaroudi
04 Mar 2011 14:51 - 04 Mar 2011 15:00
Replied by lbaroudi on topic CNC4PC Electronics with EMC2

CNC4PC Electronics with EMC2

Category: General LinuxCNC Questions



Now i got almost major parts connected and i need to test and see motors rotating
i wish to find shortcut for setting it with EMC please help

also attached image file for the connection between major parts and yet reset to come
  • andypugh
  • andypugh's Avatar
03 Mar 2011 15:31
Replied by andypugh on topic External subroutine with parameter doen't work

External subroutine with parameter doen't work

Category: G&M Codes

ioiotutu wrote:

Another question, can i see in a external soubroutine a global variable?

Yes.
www.linuxcnc.org/docview/devel/html//gco...sub:Named-Parameters
(precede the variable name with an underscore)
  • ioiotutu
  • ioiotutu
03 Mar 2011 15:30
Replied by ioiotutu on topic External subroutine with parameter doen't work

External subroutine with parameter doen't work

Category: G&M Codes

Hi,
in this moment i am understanding the origin of all my problems!!!!!!

At the biginning I created a file named "posi" for my external soubroutine and the O<posi> call had a problem to open the file because it search for "posi.ngc".
After this i created "posi.ngc" and all worked fine. In a second moment i modified "posi" file instead "posi.ngc" and this confused me.

The right call for an external sabroutine is:

o<FILE_NAME> call

This istruction search the file on hard disk path named "FILE_NAME.ngc"

It works also with global variable.

Tested on EMC 2.4.6

Thanks.
Michele
  • ioiotutu
  • ioiotutu
03 Mar 2011 15:05
Replied by ioiotutu on topic External subroutine with parameter doen't work

External subroutine with parameter doen't work

Category: G&M Codes

Thanks, you are right! I didn't see the stop because the two point are on the same line. I changed axis movement and all work fine.

Another question, can i see in a external soubroutine a global variable?

example:

main program:

G90 G0 X0
#102=1000
O<posi> call [20]
M02


file posi (external soubroutine):
O<posi> sub
G0 X#1
G0 Y100
G0 Y#102
O<posi> endsub
M02

Thanks.
  • andypugh
  • andypugh's Avatar
02 Mar 2011 12:37
Replied by andypugh on topic External subroutine with parameter doen't work

External subroutine with parameter doen't work

Category: G&M Codes

BigJohnT wrote:

You would have to put a G4P1 between the moves to see the first one or move a different axis.

To elaborate: G-code specifies a path, and EMC2 won't stop at a point on the path unless told to do so. In your example the X=20 point is on the path from X=0 to X=100, so EMC2 carries on through it without stopping.

If the X100 were changed to X10 (for example) you ought to see the move to 20 first.
  • BigJohnT
  • BigJohnT's Avatar
02 Mar 2011 12:10
Replied by BigJohnT on topic External subroutine with parameter doen't work

External subroutine with parameter doen't work

Category: G&M Codes

You would have to put a G4P1 between the moves to see the first one or move a different axis.

John
  • ioiotutu
  • ioiotutu
02 Mar 2011 11:02

External subroutine with parameter doen't work

Category: G&M Codes

Hi,
i got this problem.

main program:

G90 G0 X0
O<posi> call [20]
M02


file posi (external soubroutine):
O<posi> sub
G0 X#1
G0 X100
O<posi> endsub
M02


The main program call the subroutine, the X axis move to 100 but doen't move before to 20.
I think that the external subroutine doesn't read the parameter. Is there a mistake?
any suggestions?

Thanks
  • bvandiepenbos
  • bvandiepenbos
28 Feb 2011 04:20
Replied by bvandiepenbos on topic Re:Dahlgren Engraver Z axis air actuation

Re:Dahlgren Engraver Z axis air actuation

Category: CNC Machines

I like this idea, seems clever and workable... but I am not sure where to start since my knowledge of electronics is limited.

~*Brian
  • andypugh
  • andypugh's Avatar
27 Feb 2011 16:56
Replied by andypugh on topic Re:Dahlgren Engraver Z axis air actuation

Re:Dahlgren Engraver Z axis air actuation

Category: CNC Machines

You might be able to use the Z -stepper output.

If you have a suitable Z-scale and no microstepping you could potentially use a 2-pole relay controlled from a stepper phase with one relay pole controlling pneumatics and the other acting as a limit-switch. Then by careful choice of the home-switch location in the iNI it might be possible to have the axis home to Z=0 (relay open) in such a way that Z=1 is a position with the relay closed. Then the G-code would simply need to contain Z0 and Z1 commands to open and close the relay.
  • Rick G
  • Rick G's Avatar
27 Feb 2011 16:53
Replied by Rick G on topic Re:Dahlgren Engraver Z axis air actuation

Re:Dahlgren Engraver Z axis air actuation

Category: CNC Machines

Good point John.

John of course is right you do not need the extra relay.
I suggested it as I thought from the post it was already part of the machine.
Lets us know how it all works out.

Rick G
  • BigJohnT
  • BigJohnT's Avatar
27 Feb 2011 11:29
Replied by BigJohnT on topic CNC4PC Electronics with EMC2

CNC4PC Electronics with EMC2

Category: General LinuxCNC Questions

Just in case no one has the exact hardware as you and has not taken the time to create a tutorial on assembling it you might start by asking a specific question at some point as you assemble your project. Try to include as much detail about what you have done and what your unsure about when you ask the question.

John
Displaying 280546 - 280560 out of 281528 results.
Time to create page: 5.230 seconds
Powered by Kunena Forum