4th axis rotary in eding.cps

4th axis rotary in eding.cps

andrefc101v88
Contributor Contributor
2,122 Views
6 Replies
Message 1 of 7

4th axis rotary in eding.cps

andrefc101v88
Contributor
Contributor

Hello,

I want to use a 4th rotary (A) axis on my vertical mill, but the pp I use will not support this. 

Is it possible to add this option in the postprocessor (Eding.cps) I use?

Thanks for your assistance.

 

André

0 Likes
Accepted solutions (1)
2,123 Views
6 Replies
Replies (6)
Message 2 of 7

George-Roberts
Collaborator
Collaborator

The best option would be to speak with a local reseller as they should be able to assist in the modification of the post processor. 
 
It would be possible to add this functionality, but we would need more information about your machine. Firstly, do you have a sample program that uses the rotary axis? If so, could you post it on here? 
 
What is the make / model of your machine? 
 
Would you be looking for the PP to be set up so the A axis is just used for positioning?

Message 3 of 7

andrefc101v88
Contributor
Contributor

Hello George,

 

My milling machine is a standard vertical mill (x, y, z axis) with EdingCNC CPU 5b controller and EdingCNC software. The 4th axis is a rotary A-axis with stepper motor, also connected to the  EdingCNC controller. When using the A-axis, the table only movers in Y direction, Z direction (mill), and rotary A (degrees) direction.

Part of a g-code can be:

 

......

M3 S10.000

G0 X 100.00

G0 Z 5.00

G0 A0

G1 Z-1 F300

G1 A360 F300 ; milling a path around a pipe

G0 Z5.00

M5

........

 

I hope this give you the info you need.

 

Thanks, André

0 Likes
Message 4 of 7

AchimN
Community Manager
Community Manager
Accepted solution

You have to add a machine config into the beginning of onOpen() like this:

 

  if (true) {
    var aAxis = createAxis({coordinate:0, table:true, axis:[-1, 0, 0], cyclic:true, preference:1});
    machineConfiguration = new MachineConfiguration(aAxis);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // map tip mode
  }


Achim.N
Principal Technology Consultant
0 Likes
Message 5 of 7

ferranti_boy
Enthusiast
Enthusiast

hello

 

i have inserted the above code into the postprocessor file (edingkopie.cps)

sample cad/cam file (test4de-as.f3d)

when i post the g-code for Adaptive1 i get good g-code with a-axis output line 22 (N55 G0 A0.)

when i post the g-code for Adaptive5 or Setup1 i get error output (test4de-as.cnc.failed)

 

have i made a mistake somewhere or is there something wrong with the code above

 

regards

carlo

 

 

 

0 Likes
Message 6 of 7

AchimN
Community Manager
Community Manager

Carlo,

 

this is because you changed the tool list and you maybe deleted too much code out of the original code.

 

search for this into your post:
var comment = "Diepte :" + xyzFormat.format(zRanges[tool.number].getMinimum());

 

and modify it to this:

if (zRanges[tool.number]) {
   var comment = "Diepte :" + xyzFormat.format(zRanges[tool.number].getMinimum());
}



Achim.N
Principal Technology Consultant
0 Likes
Message 7 of 7

ferranti_boy
Enthusiast
Enthusiast

hello AchimN

 

thanks for the anwser but it won't work

i went back to the original eding.cps

i have put in the code for activating the 4th-axis and this is giving wrong z-axis value's

the first operation is good all z value's where positif

the second operation give's negatief z value's and that's wrong

i found a solution in a other posting

the solution for acitvating the 4th-axis in edingcnc is that you most also set var tcp from true to false

now i get always z value's that are positief

 

it seems also that if i make g-code for 4th-axis miling the z-min value is missing

in a normal workpiece i can get the value with "operation:bottomHeight_value"

i like to see this value because i working self made machine and i want to avoid collisions

 

regards

carlo

0 Likes