T Codes    <<--BACK          HOME            UP --^            NEXT-->>   Demo-2
side4linux, a simple integrated development environment!

ANCA Demo-1 -- Load, Compile and use Bmach2d to simulate the 'Sample' project.


Purpose:  To provide a basic introduction to ANCA style G-code programming in 'side4linux' and to run the simulation of the 'command file' in the simulator provided (Bmach2d). Please note that Bmach2d only simulates vertical 3 axis milling machines at the moment.

Requirements: Make sure that the 'ANCA' 'compileanca' compiler the 'B2raw' assembler and the 'Bmach2d' simulator are all installed correctly by doing this Demo. If needed you should be able to open each of the Tool's Projects and 'Autogen & BuildClean' them after intitial installation, if not then read 'setup C build environment.txt' and also  'setup GNOME build environment.txt'.
  1. Open 'side4linux' and click on Project>Open Project in the Main Menue.
  2. Double click on the 'DEMOS' Product Area,
  3. Double click on the 'SIDEdemos' Product,
  4. In the file dialog double click the  'ANCA' folder, this takes you to where ANCA style G-code projects are kept for this Product.
  5. Double click on 'Sample', this opens the 'Sample' project folder.
  6. Notice that project names are set to be an upper case letter followed by lower case letters (easier on the IDE's Project management routines).
  7. Double click on 'sample.prf', this opens the 'Sample' project file.
  8. Notice that the left bottom status bar window says 'Project: Sample' which is the Project Name
  9. Notice that the next window says 'Ptype: ANCA' which is the Project Type.
  10. Try clicking on 'Project' on the Main Menue, you will notice that 'Close Project' is now active.
  11. Click on the 'Open' toolbar button, observe the files 'SAMPLE.ANC', 'SAMPLE.OVL'
  12. and double click on 'SAMPLE.ANC'. This opens the sample G-code file provided.
  13. Notice that the 'Save' and 'Save All' buttons are now active.
  14. Notice the highlighted file text in the tabbed file 'Notebook'.
  15. Click on the 'Open' toolbar button again and open the  'SAMPLE.OVL' file also, this provides an overlay drawing to see what shape to cut.
  16. Notice that by clicking on the 'tabs' you can change from one file to another.
  17. Keep in mind that these are only copies of the files on disk, if you make changes then you must 'Save' them.
  18. Make sure that you change back to the  'SAMPLE.ANC' file, this is different to other projects as many 'ANC' files can be in one G-code project.
  19. Now click on the 'Build" toolbar button to build the  'SAMPLE.ANC' file and you should see something like this in the following screenshot,
Screenshot-1

From the screenshot above you can see that the 'Output window' has the output from the ANCA compiler or B2raw if you got that far and the 'Status bar' says 'Build Success' !

Now let us simulate the 'SAMPLE.ANC' file by opening the
raw step command 'CMD' file in the 'Bmach' machine simulator as follows,

From the Main Menue click on Tools>ANCA>BMACH and once the simulator has launched then try File>Load Overlay File and select from the dialog "SAMPLE.OVL" it should now say 'Overlay File Loaded'  in the  bottom status bar window.

Now try File>Run Overlay File which should draw a square (in purple) to the left side of center and should look something like the following screenshot,


Screenshot-2

Now we are ready to try running our recently compiled
raw step command 'CMD' file  so try File>Run CMD which should fast move up and to the right (red line) and then machine a square groove (in blue) with a 3mm cutter. This should look something like the following screen shot,

Screenshot-3

Now close Bmach which will return you to the IDE.
Click on Project>Close Project from the Main Menue and now close down the IDE by clicking the 'X' in the top right corner.



In Demo-2 we will introduce the Bdesign3d three dimensional design tool.

We will provide other demos as 'side4linux' develops to cover G-code programming and integration into a real world machine controller.