The following code is what enables the rotary table in this post.
if(true) {
var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[0,360], preference:0});
machineConfiguration = new MachineConfiguration(aAxis);
setMachineConfiguration(machineConfiguration);
optimizeMachineAngles2(0);
}
You will notice that the range of the axis is set to 0,360. This means that a contouring toolpath that moves the table more than 360 degrees will require the A-axis to rewind. A simple fix would be to make this a cyclic axis so that it does not have limits. Leaving the range as it is now (0,360) will output values between 0-360 degrees without a directional sign (-+). If your machine expects unlimited A-axis values (-999999, 999999), then remove the range property from the definition.
var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], range:[0,360], cyclic:true, preference:0}); // <<< ADD 'cyclic:true'
or
var aAxis = createAxis({coordinate:0, table:true, axis:[1, 0, 0], preference:0}); // <<< REMOVE THE range FOR A LINEAR SCALE
I would suggest that you move this code into the current library version of the post, since the one you downloaded is quite old. You will probably have issues with feedrates also, since this post just outputs the programmed feedrate and does not support DPM/Inverse-time feedrates.
You can look at the RS-274 Multi-axis post to see the recommended code for implementing rotary axis support in a post processor and refer to Chapter 7 Multi-Axis Post Processors in the Post Processor Training Guide for documentation on the various aspects of supporting multi-axis machines in the post processor.

Bob Schultz
Sr. Post Processor Developer