Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
G-code
#1
I have a x-y table that a use for woodworking a PMAC PC card and everthing is working with simple programs that I write myself.
To use G-code (CAM program)with my card a need to translate it to pmac code.
Is it necessery to add the "translation" for every program ?
as far as I understand G03 jumps to program 1000 where stands do "linear "
But it are always the same "translations" so can I store them on the card or so.?
peter
Reply
#2
All PMAC's have the capability to run g-code style programs. You must first build up a set of sub-programs to handle your particular g-codes. The PMAC User's manual explains this in detail and gives examples. There is example code in the Technical Notes section of the website.

http://www.deltatau.com/Common/technotes...xample.pdf
Reply
#3
Thanks ,so for the same machine it is always the same set of sub- programs ? sorry it is all new for me.
So the code of the Cam program I put after the sub programs ?
peter
Reply
#4
Basically, you can define for your particular system what each G-Code does by writing them into PROG 1000. Label the G-Code with the line label syntax "N" (no quotes).

For example, G01 should have line label N1000. Then you put your motion commands and a RETURN at the end, and that section of code will run when you call G01 from the calling program.
Reply
#5
You write your subprograms to implement whatever "dialect" of G-codes you want. In most cases these subprograms are permanently saved on the PMAC. Then each part program is loaded as needed and calls the routines in the subprograms through its G-codes, M-codes, etc.

If you have to support several different dialects on your machine, there are a couple of ways of doing this. First, you could load in different subprograms when you change dialects. Second, you could have logical branches in the subprogram that perform different tasks for the same code based on a global variable that specifies the dialect being used at the time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)