CycleTurnThread
Function — TURNING CYCLES
Status — ACTIVE
Inputs —
Text: Not Used
Value: 1 = execute only the final thread pass with retract and return to the threading start point
2 = execute only the final thread pass and suppress retract and return to the threading start point (Activates turning thread cycle mode, which is cancelled via any other G-Code) (See: CycleTurnThreadOff)
4 = same as 1 except the thread cycle parameters via the associated CycleTurn* macros stay modal
Anything else = execute all threading passes with retracts and returns to threading start point.
This macros sets the turning cycle type to threading. The current position is used as the threading start point. When X and/or Z words are included on the block they define the endpoint of the thread. When U and/or W words are included on the block, the associated U-W values are interpreted as signed incremental values from the start point to the end point. The XaxisIncreMotion and ZaxisIncreMotion macros must be called when U and W are used to define the thread endpoint.
Right-hand or left-hand threads are programmed by specifying the direction of spindle rotation via the ActiveSpindleDir macro, typically via M03/M04.
The CycleTurnThread macro and the associated CycleTurn* macros are non-modal except as noted below.
The CycleTurnThread macro is modal with value = 2, or 4, until canceled by one of the following macros: MotionRapid, MotionLinear, MotionCW, MotionCCW, MotionNurbs, MotionPoly, or Motion3DCircle
No value = execute all threading passes with retracts and returns to threading start point. This type of threading pass is sometimes called a multiple pass box threading cycle.
Example: (Fanuc, fan15t.ctl)
G0 X0.95 Z0.2 S700 M3
G76 X0.6874 Z:0.275 K0.0313 D0.01 F0.05
G0 X6. Z7.55
Value = 1, execute only the final thread pass with retract and return to the threading start point. This type of threading pass is sometimes called a single box threading cycle.
A G92 word address is required to call the CycleTurnThread macro.
Example: (Fanuc, fan15t.ctl)
G0Z10.X22.M8
Z3.
G92X24.5Z-24.F2. (I word for tapered thread)
G0Z10.M9
Value = 2, execute only the final thread pass and suppress retract and return to the threading start point. This type of threading pass is sometimes called a single block thread motion. Similar to a single block G01 linear motion, but with controlled feed/lead/pitch to create a thread.
Requires a G32 or G33 word address to call the CycleTurnThread macro.
The associated CycleTurn* macros must be called again for each thread cycle block.
Example: (Siemens, sin840d.ctl)
X-20.872 F3.
G33 Z-3.12 K.25
G0 X-20.456
...
G1 X-20.456 Z-2.7963 F3.
G33 X-20.8642 Z-2.8491 K.25
Z-3.0773 K.25
G0 X-20.456
Value = 4, same as value = 1, except the thread cycle parameters via the associated CycleTurn* macros stay modal. This override causes the G92, or G33, threading cycle to remain active allowing additional blocks of the G92, or G33, cycle to be simulated until canceled by another G-Code.
A G92, or G33, word address is required to call the CycleTurnThread macro.
The associated CycleTurn* macros DO NOT have to be called for each block.
Example:
G0Z10.X22.M8
Z3.
G92X24.5Z-24.F2.
X25.
X25.2
...
X26.
G0Z10.M9
Also see: "Notes about simulating lathe threading" in the Notes about Special Topics section, in the CGTech Help Library.