Contact me Chris Morley c/o the EMC users maillist-I'll try to help |
Contact me Chris Morley c/o the LinuxCNC users maillist-I'll try to help |
These last two rungs work together. The job of the seventh rung is to either terminate the tool change (if homed) or terminate the test move (if homing). First check that stepgen has been sent a command (B0 set), then that the tool is in position (I2 set), and IF homed (B1 set) then tell EMC that the tool chang is done (Q0) and also reset the flag that indecates tool change is still in progress (B2). Note that if the first two checks pass (B0 and I2), then B0 is reset deactivating this whole rung. This brings us to B3, which involves the last rung. |
These last two rungs work together. The job of the seventh rung is to either terminate the tool change (if homed) or terminate the test move (if homing). First check that stepgen has been sent a command (B0 set), then that the tool is in position (I2 set), and IF homed (B1 set) then tell EMC that the tool change is done (Q0) and also reset the flag that indicates tool change is still in progress (B2). Note that if the first two checks pass (B0 and I2), then B0 is reset deactivating this whole rung. This brings us to B3, which involves the last rung. |
The job of the eigth and final rung is to lock the turret at each tool position tried while homing. This rung only comes into play when homing, after that it is not used again. So, if stepgen has finished (B0 reset), and if NOT homed (B1 reset), then trip a timer that brings B3 TRUE long enough for the turret to lock. B3 is then used in several rungs to put a hold on things while the index mark is checked. Going back up the rungs, in rung seven B3 is used to disable stepgen by dropping out Q3 (stepgen.2.enable), in rung six it disables the whole rung, in rung one it deactivates the drive amp and locks the turret. |
The job of the eighth and final rung is to lock the turret at each tool position tried while homing. This rung only comes into play when homing, after that it is not used again. So, if stepgen has finished (B0 reset), and if NOT homed (B1 reset), then trip a timer that brings B3 TRUE long enough for the turret to lock. B3 is then used in several rungs to put a hold on things while the index mark is checked. Going back up the rungs, in rung seven B3 is used to disable stepgen by dropping out Q3 (stepgen.2.enable), in rung six it disables the whole rung, in rung one it deactivates the drive amp and locks the turret. |
If you are using Linuxcnc 2.5 or better use the command G10 L20 P0 Z.250 P0 means use the current coordinate system |
If you are using LinuxCNC 2.5 or better use the command G10 L20 P0 Z.250 P0 means use the current coordinate system |