The translate and rotate tplang commands don't seem to be implemented on the controller even though they work correctly in CAMotics. The following program is an example:
var dxf = require('dxf');
var layers = dxf.open('back.dxf');
var zSafe = 0;
var cutDepth = 0;
units(METRIC); // This must match the units of the DXF file
feed(1600);
speed(768);
tool(1);
for(i = 0; i < 3;i++) {
translate(70.5 + i * 75,0,0);
rotate(Math.PI/2,0,0,1);
rapid({z: zSafe});
rapid(0,0);
dxf.arc_error = 0.1; // This error gets multipled by the scaling factor
dxf.cut_layer_offset(layers.DB15, 0., zSafe, cutDepth);
dxf.cut_layer_offset(layers.DRILL, 0., zSafe, cutDepth);
dxf.cut_layer_offset(layers.CUTOUT, 0., zSafe, cutDepth);
dxf.cut_layer_offset(layers.OUTLINE, 0., zSafe, cutDepth);
loadIdentity();
rapid({z: zSafe});
};
speed(0);
It correctly rotates the cut and makes three copies in a row in CAMotics, but does not rotate the image and writes three copies in the same place in the BB Controller.
The translate and rotate tplang commands don't seem to be implemented on the controller even though they work correctly in CAMotics. The following program is an example:
It correctly rotates the cut and makes three copies in a row in CAMotics, but does not rotate the image and writes three copies in the same place in the BB Controller.