Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

CNC program fails at LIN moment Vel = 0.0 m/s dispite $Vel_CP = 0.005 m/s

#1
My .scr files fail because when the g-code points are joined together with LIN movements the LIN commands have Vel=0 m/s .  These lines of LIN commands are proceeded by a %Vel.CP = 0.00500 line but the system complains about the vel = 0 m/p parameter.

$VEL.CP = 0.00500
;FOLD LIN P3 CONT Vel=0 m/s CPDAT3 Tool[1] Base[1];%{PE}%R 8.3.42,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:P3, 3:C_DIS, 5:0, 7:CPDAT3
$BWDSTART=FALSE
LDAT_ACT=LCPDAT3
FDAT_ACT=FP3
BAS(#CP_PARAMS,0)
LIN XP3 C_DIS
;ENDFOLD
;FOLD LIN P4 CONT Vel=0 m/s CPDAT4 Tool[1] Base[1];%{PE}%R 8.3.42,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:P4, 3:C_DIS, 5:0, 7:CPDAT4
$BWDSTART=FALSE
LDAT_ACT=LCPDAT4
FDAT_ACT=FP4
BAS(#CP_PARAMS,0)
LIN XP4 C_DIS


The g-code contains a G1Z-0.079F11.8 line near the top.  F11.8 in/min converts to 0.005 m/s I guess this is where the $Vel.CP = 0.00500 get this value from.

Should the LIN movements not have Vel = 0.005 m/s values or should these be over-ridden by the %Vel = 0.00500 command?

Also, these LIN movements are CONT with C_DIS = 1mm For CNC machining should we be using approximate paths?

Thanks,
Almost there,
Jeff
#2
Hi Jeff,

The following link shows how you can select and modify a post processor for a specific purpose:
https://robodk.com/doc/en/Post-Processor...SelectPost

If you want to have 3 decimal values for the speed in your FOLD section:
  1. Locate your post file. Example: C:/RoboDK/Posts/KUKA_KRC4_DAT.py
  2. Look for the section where you output a linear or joint moves (search FOLD LIN for example)
  3. You'll see the formatting string and you can set it to 3 decimal values. Example:
Code:
;FOLD LIN P%s %sVel=%.3f m/s

Albert
  




Users browsing this thread:
1 Guest(s)