Add circle set any machining options required SelectAllVisibleGeometry Convert to polylines ActiveView The gui operation runs in a worker process, so wait for the thinking message to disapear CurrentEditMode is not None: app. VBScript version Python Script: mop-automate. These scripts demonstrate: opening a CAD file. But the HA/INI file should probably have at least 8 digits for non-integer scales.This script will automate the process of opening a source file, insert machining operations, set various properties and produce g-code. For any plausible length of thread you would not see the rounding errors. The calculations are done in double-precision floating-point, with at least 15 digits of precision. In practice it wouldn't matter except, possibly for gear hobbing.įor threading the encoder is zeroed at the start of each pass. I don't know enough about LinucCNC to know if this is a potential problem or not A 1.25 radio (20:16) would give 5 P/R for an even pulse spacing. This gives 4.444 P/R at the spindle which gives one uneven pulse using a Z on the spindle. Anything non-integer would require a separate index from a sensor on the spindle. Running at half-speed would be OK, as the index would still happen at a consistent angle, you might just have to wait longer for one. How would slowing, or speeding, the sensor shaft help? For a spindle, the P/R of standard encoders seems in the ball park. I don't know enough about LinucCNC to know if this is a potential problem or not.
As an extreme example consider a speed ratio of 1.111 (20:18 gears) and a 4 P/R encoder. You'd want a constant pulse stream so consider this when picking a gear ratio. One could put a hall effect or optical sensor directly on the spindle for a Z pulse. How would slowing, or speeding, the sensor shaft help? I always think of gears as introducing backlash, but for a spindle only rotating one direction it wouldn't matter.
The problem would be to find one that was exactly 1:1, but the dissimilar sizes of driver and driven might be useful. I have wondered if a speedometer drive would work: Please Log in or Create an account to join the conversation. Great instructions and I haven't even gotten to the Linuxcnc configuration yet. Should be OK as long as the two pulleys are the same diameter / # teeth. Worse comes to worse I'll order two pulleys and a belt from SPD/SI. That's the plan but haven't looked at sizes yet.
Likely just use a set screw on the encoder pulley and screw the spindle pulley to the Sherline pulley using a bolt circle. I have some XL pinion stock what I plan to cut the pulleys from. I want to see the encoder before going too far with the mounting design. Iron-Man: As I said, I ordered the e-Bay encoder from China. I think it should be OK to directly connect the encoder or slotted optical switches, both open collector, directly to the G540. Open voltage is 11 V and the shorted current is 7 mA. I have a G540 so I measured an input pin to ground. limit switches) directly switching the input pins to ground.
The manual shows the G540 input switches (i.e. I emailed Gecko but they haven't gotten back to me. The Gecko G540 is doing some interfacing and I'm not sure, from the manual, just what. I've been thinking of the interface to a parallel port, but that is not the case. It should be on the slow boat from China soon. Andy: I ordered the Omron E6C2-CWZ6C 60P/R encoder.