Time Calculations

Machine time calculations can be done in conjunction with NC output formatting.    Machine time is calculated in units determined by the feed rate.    If the feed rate is in IPM and the distances are in inches then the machine time will be in minutes.    If the feed rate is in MMPM and the distances are in metric then the machine time is also in minutes.

Machining time calculations are not performed for templates.

In canned cycles the standard machine time is calculated as if the canned cycle were a drilling canned cycle.    Since TurboPost has no information on the motions actually generated by the machine canned cycle it cannot accurately deal with time for these cycles.    Corrective factors may be added to canned cycles.    A time multiplication factor may be built into the time calculations for each canned cycle.    In addition a corrective additive factor can be added to each canned cycle.

For example, a boring cycle may have a motion sequence which consists of a feed_in-dwell-feed_out.    The machining time for this cycle is twice the time for a simple drill cycle plus the added dwell time.    If the boring canned cycle is defined as follows:


BORE(G85): gcode= 85 canned std blk= N*G*X*Y|R|Z*F
tmult= 2 tadd= .015


The tmult=2 will multiply the standard block time by a factor of two and the tadd = .015 will add .015 minutes for each canned boring cycle for the dwell time.

The Time variable is accessible from the command file.    Time factors such as tool change time, loading time etc. can be accounted for by adding to this variable in macros which call these features.

For example, if the tool change sequence is defined as a macro in the macro a line:


ASSIGN: Machine_time= Machine_time+ Tool_change_time;


will add the constant variable Tool_change_time to the current machining time.    Tool_change_time must be a pre-defined User Variable.