Inside the post processor look for a section that looks like this :
function onOpen() {
if (true) {
var aAxis = createAxis({coordinate:0, table:true, axis:[-1, 0, 0], cyclic:true});
var bAxis = createAxis({coordinate:1, table:true, axis:[0, 0, -1], cyclic:true});
machineConfiguration = new MachineConfiguration(aAxis,bAxis);
setMachineConfiguration(machineConfiguration);
optimizeMachineAngles2(1); // map tip mode
}
Yours probably starts with if (false) change it to true whivh will enable the code in between the { }.
Now you can define the rotary axis for your machine. Here is a description of the parameters:
The supported specifiers are:
1.actuator: Specifies that the actuator type (ie. either "linear" or "rotational"). The default is "rotational".
2.table: Specifies that the axis is located in the table or the head. The default is true for table.
3.axis: Specifies the axis vector as a 3-element array (e.g. "[0, 0, 1]"). This specifier is required.
4.offset: Specifies the axis offset as a 3-element array (e.g. "[0, 0, 25]"). The default is [0, 0, 0].
5.coordinate: Specifies the coordinate used in the ABC vectors (ie. "X", "Y", or "Z"). This specifier is required.
6.cyclic: Specifies that the axis is cyclic. Only supported for rotational axes. Only used when a range is specified. The default is false.
7.range: Specifies the angular range for the axis in degrees as a 2-element array (e.g. "[-120, 120]"). You can also specify a single number to create an axis for an aggregate. The default is unbound.
8.preference: Specifies the preferred angles (-1:negative angles, 0:don't care, and 1:positive angles). The default is don't care.
9.resolution: Specifies the resolution. In degrees for rotational actuator. The default is 0.
Parameters
specifiers The axis specifiers.
Example:
var bAxis = createAxis({coordinate:1, table:true, axis:[0, 1, 0], range:[-120,120], preference:1});
var cAxis = createAxis({coordinate:2, table:true, axis:[0, 0, 1], range:[-999.999,999.999]});
Andrew W. Software engineer (CAM Post Processors)