Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User Gcodes
#1
Which user Gcodes are allowed, and is there anything
you have to do to active them other than write then in the Gcode motion program?
Reply
#2
In Turbo PMAC Users Manual, page 329, we have some example G-codes.
Basically G-codes are implemented by user, and user can choose whatever function they want in a specific G-code.
Once you have you G-codes, you don't need to activate them.
They are automatically recognized in a motion program, and you can use them directly.
Reply
#3
If you are working within the PMAC NC PRO2 environment you must enable user g-codes through the Windows registry, otherwise the codes will not pass through the parser. Please refer to the "How to Add/Modify User G, M or T Code" in the PMAC NC Pro2 manual.
Reply
#4
(01-25-2016, 10:56 AM)vinceb Wrote: If you are working within the PMAC NC PRO2 environment you must enable user g-codes through the Windows registry, otherwise the codes will not pass through the parser. Please refer to the "How to Add/Modify User G, M or T Code" in the PMAC NC Pro2 manual.

I looked in the registry. I did not see the entries mentioned in the manual.
Do you have to add the entries?
see attached registry backup.


Attached Files
.txt   NCREGISTRY.txt (Size: 55.55 KB / Downloads: 24)
Reply
#5
It sounds like your registry was not setup correctly during the initial use of the NC Setup application. I can send you the proper default registry setup via email.
Reply
#6
(01-26-2016, 03:39 PM)vinceb Wrote: It sounds like your registry was not setup correctly during the initial use of the NC Setup application. I can send you the proper default registry setup via email.

Still having some issues. I'm tying to use G61.1 Xxxx Yxxx Zxxx Bxxx Dxxx Rxxx Fxxx
The code is running but the NC is not passing all the variables.
I copied all the passed vales for debugging.
I'm not getting X Y Z D R values.

Here is my code:

//--------------------G61.1----------------
; G61.1

N61100
@SET_ON(VS_GGROUP20_1_M,2)
READ(B,F,X,Y,Z,D,R)
VS_GGROUP9_1_M == 81
; check for X,Z,D,F is passed
;
;IF(Q100 & $2 > 0 AND Q100 & $8 >0 AND Q100 & $20 > 0 AND Q100 & $1000000 > 0 AND Q100 & $800000 > 0 AND Q100 & $2000000 > 0)
Bcalc = B_ARG_Q +90
Btemp = B_ARG_Q
Xtemp = X_ARG_Q
Ytemp = Y_ARG_Q
Ztemp = Z_ARG_Q
Rtemp = R_ARG_Q
Dtemp = D_ARG_Q
X_POS = X_ARG_Q - (SIN(Bcalc) * D_ARG_Q)
Z_POS = Z_ARG_Q - (D_ARG_Q - (COS(Bcalc) * D_ARG_Q))
IF(Q100 & $20000 > 0) ; R word passed a offset is used
P1722 = R_ARG_Q
X_POS = X_POS - ((SIN(Bcalc) * R_ARG_Q))
Z_POS = Z_POS + (COS(Bcalc) * R_ARG_Q)
ENDIF
F(F_ARG_Q)
GOSUB 1000
X(X_POS) Y(Y_POS) Z(Z_POS) B(B_POS)

;ENDIF
@SET_OFF(VS_GGROUP20_1_M,2)
RETURN
Reply
#7
The NC should pass all "known" axis addresses and all standard addresses, F, D, R ... .

You can see what has been passed in the executive window by typing "list rot".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)