2356
« on: December 20, 2013, 10:26:34 AM »
The G91.1 in the safety b;lock of the program is to make SURE that inc IJs are set correctly. IF the last program you ran set it to ABS then it wouls still be active as ABS mach3 does NOT change it back for you at end of program. When programming you should ALWAYS have ALL the safety code in the block in order to makes SURE Mach3 is set correctly and there are NO surprises when it runs. Failing to do this is MOST of the problem one sees with crashes "Improper modes still set".
G20 is a habit and is more common than G70.
N30 is to establish a point of origin for setup propose. Not required but sdoes give one a point of reference to align the machine to the part to be cut. NOT required.
T#1 is just a number I picked based on what I see you had programmed. Normally one would leave some wiggle room for changing out to a different tool diam if needed. IF your approach is too close then you cannot go larger on tool sizes.
Also you have to program the tool radius so that it does not go larger that the smallest inside radius of the part or else it will GOUGE and normally mach3 would not let it run. It would error on loading the program.
The D parameter sets the OFFSET based on Tool #. In this case Tool#1 AND the tool MUST be setup in the tool table. The P value wouls set the tool radius based on a number value P0.125 would mean a .125" tool .
IF you leave those parameters off then Mach3 will use the LAST known tool # call.
Rule of reason says don't take the chance that something is wrong just use the parameter calls with G42/3 SAME with G43 use the H call.
All parameters SHOULD be used at the time of the G42/G41/G43 calls G41 D14 , G43 H3 etc
Overveiw,
D paramter sets the TC based on the Tool# D1 = Tool #1
P parameter stes the TC based on the value of P P.0125 = Tool value of 0.125"
NONE = Uses the last known Tool# values
H sets the Height based on the Tool #
The feedrate change came after a calculation that it would take all day to review that code running at such a slow feedrate (;-)
(;-) TP