Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Jasond0530

Verified Members
  • Posts

    98
  • Joined

  • Last visited

Posts posted by Jasond0530

  1.  

    So try #103=#3012 and then use #103 in your evaluation

     

    This is what I figured, referencing something that is changing every second wont help!

     

    The variables in the #500+ range are better suited to your application (persistent part count across shifts) since they will survive a power cycle.

     

    I don't see a path to N1 or N2 in your program. What are they for?

     

     

     

    The #500 are better, just got to work out which ones the Renishaw probe are not using. The N1and N2 were from earlier attempts.

     

    Now have it working, with a few extra bits that should store the previous shifts count in another variable and reset the new shifts count.

     

     

    %

    O9007(COUNTER)

     

    #105=#3012

    #106=#3011

     

    N100

    IF[[#105GT060000]AND[#105LT180000]]THENGOTO3

     

    IF[#105LT055959]GOTO4

     

    IF[#105GT180000]GOTO4

     

    GOTO300

     

    N3

    #100=#100+1(DAY COUNTER)

     

    IF[#101EQ0.0]GOTO6

    #103=#101

    #101=0.0

     

    N6

     

    GOTO300

     

    N4

    #101=#101+1(NIGHT COUNTER)

    IF[#100EQ0.0]GOTO7

    #102=#100

    #100=0.0

     

    N7

    N300

    M30

    %

     

    I have also added this to the M30 call set in the M/c parameters, i.e M30 will call and run this protected sub and then end and rewind after it is read.

    • Like 1
  2. I'm trying to make a macro counter that will count parts using #100 between 06.00 in the morning and 18.00 in the evening and #101 for counting nightshift parts between 18.01pm and 05.59am.

    think I have the dayshift sorted but getting hung up on the nightshift counter!!

     

    O7999(COUNTER)

    (#3012 SYSTEM CLOCK)

    N100
    IF[[#3012GT060000]AND[#3012LT180000]]THENGOTO3
     
    IF[[#3012LT060000]AND[#3012GT180000]]THENGOTO4
    N200
     
    N1
    IF[#3012LT055959]GOTO4
     
    N2
    IF[#3012LT180000]GOTO3
     
    GOTO300
     
    N3
    #100=#100+1(DAY COUNTER)
     
    GOTO300
     
    N4
    #101=#101+1(NIGHT COUNTER)
     
    N300
    M99
     

     

    can anybody see where I'm going wrong or even point me in the right direction

    TIA

  3. I have this in my Mori NH post, and set with a misc interger

     

    O0000(T)

    (DRAWING NUMBER : )

    (ISSUE/REV NUMBER : )

    (MCX FILE - )

    (NC FILE - T.NC)

    (30-01-15 10:05)

     

    G0G90G80G40G94G49G17G21

     

    G10G90L2P1X-365.Y0.Z0.B0.

     

    /M93(BUZZER & LIGHT ON)

    M1(OPTIONAL STOP-NOT ALARM)

    M94(BUZZER & LIGHT OFF)

     

    M161(PALLET 1)

    IF[#147NE1]THEN#3000=123(PALLET ERROR)

     

    N1T15M6(8MM ALLY CARB )

     

    G0G90G54X212.5Y-70.3S10000M3

    M11

    B0.0(MCX B OUTPUT = B0.)

    M10

    G17T15

    G43Z50.H15M8

    G8 P1

    Z6.

    G1Z5.F200.

    G41D15X217.55F800.

    G3Z4.25I-5.05J0.

    Z3.5I-5.05J0.

    Z2.75I-5.05J0.

    Z2.I-5.05J0.

    Z1.25I-5.05J0.

    Z.5I-5.05J0.

    Z-.25I-5.05J0.

    Z-1.I-5.05J0.

    Z-1.75I-5.05J0.

    Z-2.5I-5.05J0.

    Z-3.25I-5.05J0.

    Z-4.I-5.05J0.

    Z-4.75I-5.05J0.

    Z-5.5I-5.05J0.

    Z-6.25I-5.05J0.

    Z-7.I-5.05J0.

    Z-7.75I-5.05J0.

    Z-8.5I-5.05J0.

    Z-9.25I-5.05J0.

    Z-10.I-5.05J0.

    Z-10.75I-5.05J0.

    Z-11.5I-5.05J0.

    I-5.05J0.

    G1G40X212.5

    G0Z25.

    Z50.

    G8 P0

    M9

    M5

    G30G91Z0.0

     

    M162(PALLET 2)

    IF[#147NE2]THEN#3000=123(PALLET ERROR)

  4. Do you have some sample G-code of what you are wanting the post to output.

    The code is just two positions repeated in 8 different work offsets!

     

    G0G90G54X39.162Y#1S4000M3

    M11

    B0.

    M10

    G17T5

    G43Z50.H10M8

    G98G81Z-15.05R2.0F200.

    Y#2

    G80

    G0Z100.0

     

    The code is just a repeat of this!

    The variables are set in a slave program.

  5. Had a search on forums, no joy in finding anything! I have to post a drilling op( 2 holes, 2 operations) and need the positions posted as variables due to main program being in data server, and the need to fine tune from the machine(plunging end mill into material to achieve slot length on y axis)

    Is this possible?

  6. The best way I learnt the new tool paths was to go with what I knew(legacy)! As I am my own programmer/setter and operator(sometimes!)

    I would get machine set, go back to the pc and play with the new ones while it was running, once I thought it looked good on screen and time permitting actually run the the new tool paths on part that had already been cut, without coolant! If it looked good run the next one with new paths!

    Only problem was having te repost prog with much higher feedrates and shorter cycle times! :thumbsup:

  7. Did a full scan with MS last week, first time run a full scan on a 6 month old pc and it sort of killed the file open x style option!!!

    If I open a file in X style I get slow load times and when I try to edit m/c deff I get no response for a few minutes! Tool paths are fine!All files are on the c drive.

    Changed it to windows style and all is ok! Thinking of going back to avg free : :thumbsup:

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...