Need Help! My School Project


Results 1 to 3 of 3

Thread: My School Project

  1. #1
    Registered mackopp's Avatar
    Join Date
    Jun 2018
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default My School Project

    Hi There, I am new to CNC and Gcode, i get a project at school and i need to make a project in simulator. I have a 2D sketch, and i wrote a code in the simulator for a task without Diametar Compensation(G41 and G42), and i need it for comensation( with G41 and G42), can someone help me?
    Screenshot_1 <-- Link to the photo with 2D sketch.
    N01 T1 G28 G90 M03
    N02 G17 G40 S300 F300 M08
    N03 G01 X140 Y0
    N04 G01 X140 Y10
    N05 G01 X110 Y25
    N06 G02 X110 Y45 R11
    N07 G03 X125 Y60 R20
    N08 G02 X140 Y75 R20
    N09 G01 X140 Y90
    N10 G01 X0 Y90
    N11 G01 X0 Y75
    N12 G02 X15 Y60 R20
    N13 G03 X30 Y45 R20
    N14 G02 X30 Y25 R11
    N15 G01 X0 Y10
    N16 G01 X0 Y0
    N17 G00 X75 Y10
    N18 G01 X80 Y65
    N19 G03 X60 Y65 R-10
    N20 G01 X65 Y10
    N21 G03 X75 Y10 R-5
    N22 M09 M02
    And here it is the code for the one task without using G41 and G42(My professor says it is also wrong), can someone help me?
    Thank you

    Similar Threads:


  2. #2
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4131
    Downloads
    0
    Uploads
    0

    Default Re: My School Project

    hi, inside your image, there are 3 blue geometries; pls specify for which one do you need the code ? left, right, middle, all off them, etc

    pls specify if you have a preference about the starting point among the toolpath, and also about the way the tool will walk on the toolpath ( conventional / climbing, or trigonometric / clockwise )

    pls specify tool diameter

    pls specify the machine that you wish the code for : i guess is a nice VMC

    also, each toolpath has lines and arches, connected at joint_points : please put the coordinates on the drawing for each joint_point, and also for each arch_center all these coordinates should be relative to a unique xoy system : try the midle of the drawing, or left_low corner, etc ( maybe it is possible to determine them from your drawing, but i don't have time for that )

    do all those above, and i may give you a code / kindly


    ps : are you a nice talented guy in 4th grade? or a 70yo guy in 10th grade ? just kidding ...

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  3. #3
    Registered mackopp's Avatar
    Join Date
    Jun 2018
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default Re: My School Project

    Hi, I need a code for all of the geometry, just if it is possible with G41 and G42.
    It should be anticlockwise. The tool diameter is 4,
    it is a Simulator, to be precise, CAMotics..N01 T1 G28 G90 M03
    N02 G17 G40 S300 F300 M08
    N03 G01 X140 Y0
    N04 G01 X140 Y10
    N05 G01 X110 Y25
    N06 G02 X110 Y45 R11
    N07 G03 X125 Y60 R20
    N08 G02 X140 Y75 R20
    N09 G01 X140 Y90
    N10 G01 X0 Y90
    N11 G01 X0 Y75
    N12 G02 X15 Y60 R20
    N13 G03 X30 Y45 R20
    N14 G02 X30 Y25 R11
    N15 G01 X0 Y10
    N16 G01 X0 Y0
    N17 G00 X75 Y10
    N18 G01 X80 Y65
    N19 G03 X60 Y65 R-10
    N20 G01 X65 Y10
    N21 G03 X75 Y10 R-5
    N22 M09 M02
    Here, these are not the right coordinants? they are the same as from the picture.



  4. #4
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4131
    Downloads
    0
    Uploads
    0

    Default Re: My School Project

    even if the coords are the same, there is no clearance move among Z axis, thus the tool will go from one toolpath to the next right through the part

    if you search "z" on this page, you will find more "zets" into cnc-zone, than in your code

    i can extract the coords from your program, but i still need to verify those with the image, and divide them for each toolpath, and shift-phase them, so to match whatever start-point

    ... so pls, simply put the coords directly in the image; please ? if you do this, i may avoid extracting and verifing the coordinates, and simply start from the skecth : is faster for me, and i use as input only the image, not also your code when it comes to programing, codes are based on the images/scetckes/drawings, and not vice-versa considering your request, i can fully help you if i begin with a nice smoothy image

    is faster for me to deliver from scratch, rather than checking if something is wrong ... is it ok ? does it makes sense to you ?

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  5. #5
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4131
    Downloads
    0
    Uploads
    0

    Default Re: My School Project

    It should be anticlockwise

    pls be aware, cutting like this has a big chance to generate cutting forces that will have the tendency to send the nut in front of the screwball, forcing the control to generate negative diff, and increasing cnc wear


    using anticlock as default requires skils that are not required for the clock sense ... is a thing is not viral, only a #machinist_thing, sorry



    okey, pls check the 2 codes below and attached image

    i have a better idea : print them; no, e-mail them to your teacher, and write him that you have self-evaluated your (home)work, and it deserves a 9, but you are satisfiedd with no more then 7 will you ? it takes 1 minute ... or give him the link 2 this page

    pls tell him that the 3rd shape is very similar to the 1st one, so you wish to skip it, because time is important and repetitive tasks are for only for slaves & red tractors ( just kidding )

    kindly

    Code:
    ( this code hits only 2 out of those 3 shapes ) 
    
        preparatory codes , defaults loaded, etc
        fixture origin
        tool origin or corection
        G00 Z25 ( safe plane, with clearance over the fixture )
        coolant
        rpm gear sense
    
    
        G00 X = s0.x         Y = s0.y G41 F G95 (*3)
            Z0
        G01 X = a1.x         Y = a1.y
        G03 X = a2.x         Y = a2.y R10
        G02 X = a3.x         Y = a3.y R15
        G03 X = a4.x         Y = a4.y R15
        G01 X = a4.x-[5+4/2]                G91 (*1)
        G00 Z25                       G40   G90
            X = s1.x         Y = s1.y G41 F G95 (*3)
        G03 X = b0.x         Y = b0.y R04.5
        G01 X = b1.x         Y = b1.y
        G03 X = b2.x         Y = b2.y R?
        G01 X = b3.x         Y = b3.y
        G03 X = b4.x         Y = b4.y R?
        G01 X = b5.x         Y = b5.y
        G03 X = s2.x         Y = s2.y R04.5
        G01 X = s3.x         Y = s3.y           (*2)
        G00 Z25                       G40
    
    
    
    
    (*1 : current position - clearance_5 - tool_dia/2 )
    (*2 : auxiliary liniar movement, because it may be possible that )
    (the control won't handle comp-out code=G40 after the G02 or G03 )
    (*3 : comp started within the safe_plane )


    check this code:
    Code:
     
        CALL OS01             ( shape 1 )
        CALL OS02             ( shape 2 )
        CALL OS01 + mirror on ( shape 3 )


    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  6. #6
    Member
    Join Date
    Mar 2017
    Location
    United States
    Posts
    314
    Downloads
    0
    Uploads
    0

    Default Re: My School Project

    no decimal points. That can bite you.



  7. #7
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4131
    Downloads
    0
    Uploads
    0

    Default Re: My School Project

    no decimal points. That can bite you
    oooh, no worries / the only thing that may bite arround here are mackopp's cheerleaders

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


Tags for this Thread

Posting Permissions

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


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

My School Project

My School Project