Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

CAM in FS

Toshimichi_OdaToshimichi_Oda OS Professional Posts: 53 PRO
Feature Script で CAM を作りました。

I have made CAM in Feature Script.




Tagged:

Comments

  • fer_fer_fer_fer_ Member Posts: 6 ✭✭
    I wanted to thank you for sharing your FS ncout functionality. In high school I found it very useful.

    If at any time you consider it opportune to improve it, I would suggest a couple of changes.
    The option that you can suppress the header of the G code with a simple Boolean

    ----^O100.nc
    %
    (O100)
    G90 G00 X0 Y0 Z100,000

    The option that you can suppress the end of the G code with a simple Boolean

    M05
    M30
    %

  • Toshimichi_OdaToshimichi_Oda OS Professional Posts: 53 PRO
    @fer_fer, Thank you for using a lot.

    Generally, CAM uses a post-processor to output the NC code you want for your the cutting machine.
    Tab 'standardNc.fs' acts as a post-processor in the current version of 'ncout'.

    You can output your favorite code by the following:

    1. Copy document 'ncout' and name it 'My ncout'.

    2. Copy(duplicate) Tab 'standardNc.fs' and name it 'MyNc.fs' in 'My ncout'.

    3. Edit 'MyNc.fs.' For Example:

     Change  (line36):  nc += ["%\n",oName,"G90 G00 X0 Y0",{z:definition.retractZ}];
      To                nc += ["%\n",{z:definition.retractZ}];

    4. Click 'Commit' in 'MyNc.fs'

    5. Edit 'ncout.fs'

      Delete (line4):  import(path : "standardNc.fs", version : "...");
      click 'Import' (left button of 'Commit').
      click 'Feature Studio' in Import dialog.
      click 'MyNc.fs'. Then insert a line 'Import(path : "MyNc.fs", ....)'
      close Import Dialog by clicking 'x'

    6. Click 'Commit' in 'ncout.fs'

    7. Change tab 'sampleA'.

      You can see a line 'G90 G00 X0 Y0' is omitted in FeatureScript notices.

    refer.
    https://cad.onshape.com/documents/4de789cbd2134a0300ee5cfe/w/7fc4e8264cb15a37a173fc47/e/6c153c0aa3871cc23c3e84d3

    I know it is better that 'ncout' will support PostProcessor functions such as 'MyNc.fs' for many machines and switch them easily.
    But I will not release an improved version because only a few people around me  use it and Onshape will release CAM this year as all know.




Sign In or Register to comment.