603,409 active members*
3,349 visitors online*
Register for free
Login
IndustryArena Forum > CAM Software > Mastercam > Post Processors for MC > Adding a manual gear change call
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2004
    Posts
    93

    Adding a manual gear change call

    Yes i am trying to add a call for a manual gear change to my
    centriod post mc8. something like an if statment.
    If speed is < than 2500 post comment
    "M0 (CHANGE TO LOW GEAR)"
    IF speed is > than 2500 post comment
    " M0(CHANGE TO HIGH GEAR)"

    I am runnuing a BP series 2 with inverter and a manual switch to change from high to low which changes the spindle direction ,but would like a statement with a M0 to make the changes

    Thanks Brad
    IF ITS NOT BROKE YOUR NOT TRYING HARD ENOUGH

    Ashes to ashes , dust to dust , If it wasnt for Harleys the fast lane would rust.

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  2. #2
    Join Date
    Dec 2003
    Posts
    24260
    If your conditional statements (if speed etc) work on the Centroid (or should it be 'if S' ?) and anything between the " " is a comment then I would say that the M0 has to be outside of the comment string to work.
    Al
    CNC, Mechatronics Integration and Custom Machine Design

    “Logic will get you from A to B. Imagination will take you everywhere.”
    Albert E.

  3. #3
    Join Date
    Jul 2004
    Posts
    93
    Al thats what i dont know how to write
    it should work ,and I can put the M0 just before after it?
    this is the post ihave been messing with
    *progno, e
    "(PROGRAM NAME - ", progname, ")", e
    "(DATE=DD-MM-YY - ", date, " TIME=HH:MM - ", time, ")", e

    psof0 # Start of file for tool zero
    psof

    psof # Start of file for non-zero tool number
    pinit
    !opcode
    n, "G17 G40 ; Setup for XY plane, no cutter comp,"
    n, "G20 ; inch measurements"
    n, "G80 ; cancel canned cycles,"
    n, "G90 ; absolute positioning,"
    n, "M25 G49 ; Goto Z home, cancel tool length offset"

    n, pinc, *sg28ref, "X0.", "Y0.", e
    n, "M0"
    n, *t, "(CHANGE TOOL)"
    ptoolcomment
    pcomment
    n, "(CHECK GEAR)" would like to put the if statment here
    n, speed, *spdlon
    pcan
    pcan1, n, pasb, "G00", pwcs, *xr, *yr, strcantext
    pcan2
    n, ptllncomp, *zr
    pcoolon
    any ideas?
    IF ITS NOT BROKE YOUR NOT TRYING HARD ENOUGH

    Ashes to ashes , dust to dust , If it wasnt for Harleys the fast lane would rust.

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  4. #4
    Join Date
    Dec 2004
    Posts
    44
    pcomment
    if speed <= 2500, n, "M0 (CHANGE TO LOW GEAR)", e
    if speed > 2500, n, " M0(CHANGE TO HIGH GEAR)", e
    n, speed, *spdlon

    I think if you add 2 lines it will work as you wish

  5. #5
    Join Date
    Nov 2004
    Posts
    21
    I think what you want to do to compare the next spindle speed with the current spindle speed and if a high/low range is required, then output your M0 and comment. Otherwise you are going to get a "spindle speed high/low" at each speed change when you don't require a range-change.

  6. #6
    Join Date
    Mar 2004
    Posts
    21
    Put this in ptlchg before the spindle output
    "Tested in version 9"

    if speed >= 2500,
    [
    if prv_speed < 2500, "M00", "(CHANGE TO HIGH GEAR)", E
    ]
    if speed < 2500,
    [
    if prv_speed > 2500, "M00", "(CHANGE TO LOW GEAR)", E
    ]

Similar Threads

  1. Basic Bevel Gear - Milling a valley for gear teeth
    By ngr1 in forum Uncategorised CAM Discussion
    Replies: 10
    Last Post: 04-05-2012, 03:55 PM
  2. Manual Automatic Tool Change
    By ynneb in forum DIY CNC Router Table Machines
    Replies: 2
    Last Post: 09-29-2004, 06:21 PM
  3. Metric Change Gear Combinations by J.W. Early Excel Spreadsheet
    By cncadmin in forum DNC Problems and Solutions
    Replies: 0
    Last Post: 05-26-2003, 09:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •