Synchronization codes that are associated with an operation must be output at the beginning of the operation. FeatureCAM allows up to five synchronization codes to be associated with a single operation. The following lines must appear in the Program Start, Tool Change, Segment Start and Program End program formats:
{M<SYNC-NUM1>}<EOB>
{M<SYNC-NUM2>}<EOB>
{M<SYNC-NUM3>}<EOB>
{M<SYNC-NUM4>}<EOB>
{M<SYNC-NUM5>}<EOB>
Theses variable are specially programmed so that they are not output if the variable is blank.
For Okuma lathes, the Program Start, Tool Change, and Segment Start programs must output a special synch code along with a change in spindle speeds. A sample from a Segment Start format for an Okuma post is shown below.
<IF><CSS-ON><THEN
G96 S<CSS-SPEED><32>
<ENDIF>
<IFNOT><CSS-ON><THEN>
G97 S<CALC-SPEED><32>
<ENDIF>
<SPINDLE> <COOLANT>{ P<SYNC-SPEED>}<EOB>
<MOTION> X<X-COORD> Z<Z-COORD><EOB>
<ENDIF>
For pinch and follow turning, the Linear program format and Canned Cycle formats must be altered. To support inserting wait codes at every scan line, you must output the synch code in the Linear program format as follows.
<IF><TCAN-START><THEN>
Z<Z-COORD> F<PRO-FEED>{M<SYNC-NUM1>} <EOB>
<ENDIF>
To support the output of synch codes at the start of the canned cycle the synch code must be output in the Canned Cycle Start as shown below for a Mori Seiki with a Mitsubishi control:
<IFNOT><FACE-BFACE><THEN>
{M<SYNC-NUM1>}<EOB>
G71 U<DEPTH> R<RTR-LENGTH><EOB>
G71 P<SEQ-START> Q<SEQ-END> U<X-ALLOW> W<Z-ALLOW>
{F<FEED>}<EOB>
<ENDIF>
The Canned Cycle Start format must be altered to support outputting a synchronization code at the beginning of the canned cycle as shown below. Only one synchronization code is possible, so you need to only print out a single wait code.
{M<SYNC-NUM1> }<EOB>
G70 P<SEQ-START> Q<SEQ-END><EOB>