Upload
javier-saenz
View
194
Download
3
Tags:
Embed Size (px)
Citation preview
CncSimulator
Introduction Welcome to the CncSimulator help system. Here you will find explanations of the functions, menus and dialogs of the program. The CncSimulator is used to simulate CNC code for mills and lathes. Thanks to its flexible open architecture it is possible to customise the behavior of the simulation to suit a wide variety of CNC machines. This help file will concentrate on describing the CncSimulator with its default settings. On startup you will se the program window divided in several panes. These are: 1. Simulation panes, these show the tool movements in 2D, 3D and block graphics. 2. Status pane, this pane shows the current tool, tool position, rotation etc. 3. Editor pane, (blue background) In this pane, you edit the cnc code and it also shows the
current cnc block during simulation. You can resize the windows by “dragging” their edges and borders to new positions. There is also a full screen mode where one of the three simulation windows is maximized to cover the entire screen.
Read more about:
Menus and toolbars Screen layout G and M codes for simulation
On the net:
Hope page of the CncSimulator: www.cncsimulator.com
Find more help on the net:
CncSimulator FAQ: www.cncsimulator.com/support.shtml Also note, you can visit the "user forum" to ask questions to fellow CncSimulator users: www.cncsimulator.com/forums/
Page 1 of 1Introduction
03/10/2010mk:@MSITStore:C:\Archivos%20de%20programa\CncSimulator\Help\CncSimulator.ch...
Menus and toolbars
At the top of the screen are a number of menus and toolbars that are used to access the different functions of the program. To the right side of the editor window is a toolbar that allows the user to step through different text buffers and delete them.
Menu functions:
File Edit Simulate Screen Settings Help
Standard Toolbar:
Create a new NC-program.
Deletes the current text buffer. If the NC program has not been saved you will first be asked if you wish to save it.
Open an existing NC-program.
Brings up the file selector dialogue allowing you to choose a file to load.
Saves the NC program.
Saves the NC program under its current name.
Cut
Cuts out the selected text and places it in the clipboard.
Copy
Copies the selected text to the clipboard.
Paste
Pastes in text from the clipboard at the current cursor position.
Undo
Takes back the last change in the NC program.
Printing Nc programs.
Prints out the active NC program.
Help
Shows this help file.
XY-view and XZ-view
Milling mode: XY, shows the workpiece as seen from above.
Page 1 of 3Menus and toolbars
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh5AB0.htm
Turning mode: XZ, shows the workpiece from the side. First click on the window you wish to change and then on this button.
YZ-view
Milling mode: YZ, shows the workpiece as seen from the left side. Click the window you wish to change, then press this button. Turning mode: This function is not available in turning mode.
XZ-view
Milling mode: XZ, shows the workpiece as seen from the front. First click on the window you wish to change and then on this button. Turning mode: This function is unavailable in turning mode.
Plot
Milling mode: “Plot”, shows the toolpath. First click on the window you wish to change and then on this button. Turning mode: “Plot”, shows the toolpath (the tip of the tool).
3D-view
Milling mode: This view shows a 3D wire model of the simulation. Use the scroll bars to rotate the graphics around the X-, Y- and Z-axis and to control the distance to the part. Turning mode: This view shows the tool paths in 2D.
Block graphics
Milling mode: Block graphics, shows the workpiece in solid 3D. First click on the window you wish to change and then on this button. Turning mode: Block graphics, shows the workpiece in solid 3D.
Full screen view
Milling mode: Shows the active view in full screen mode. First click on the window you wish to change and then on this button. To return to the normal mode, press ESC. Turning mode: Shows the active view in full screen mode.
Editor toolbar:
Buffer list
Shows a list of the text buffer maintained by the CncSimulator.
Previous buffer
Switches to the previous text buffer.
Next buffer
Switches to the next text buffer.
Close Buffer
Page 2 of 3Menus and toolbars
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh5AB0.htm
Closes the current text buffer. If the NC program has not been saved the CncSimulator will first ask whether the program should be saved or not.
Page 3 of 3Menus and toolbars
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh5AB0.htm
Screen layout
The screen is composed of the following elements:
Toolbars Editor window Status window
It also includes three windows where the workpiece can be viewed from different angles: XY, XZ, YZ, 3D wire frame and 3D block or plot views. Not all of these views are supported in turning mode. You have possibilities to customize the screen layout. Simply “drag” the frame of the window to make it larger or smaller to have any combination you wish. To change the view, simply click on one of the three simulation windows and then choose from the different types of view listed above. See: menus and toolbars. The toolbars and the status bar can be deactivated to make more room for the simulation windows. You can also drag the toolbars out of the main window so they are “floating”. To see a simulation window in full screen mode, click on the button on the toolbar. Press “Esc” when you wish to return to the normal screen layout.
Page 1 of 1Screen layout
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hhDBA7.htm
Codes that are simulated
Codes for milling: G-codes M-codes Other codes Codes for turning: G-codes M-codes Other codes The CncSimulator comes with two files called STOLK.TLK and FTOLK.TLK. These files are used by the interpreters. They contain strings which the CncSimulator uses to parse the NC program. Making changes to these files affects the way the CncSimulator interprets NC code. If this is the case the following explanations may not be valid.
G-codes for milling
The standard interpreter understands the following G- codes.
G0 or G00 Rapid movement
G1 or G01 or L Linear interpolation
G2 or G02 or DR- Clockwise interpolation
G3 or G03 or DR+ Anti-clockwise interpolation
G40 Turns off cutter compensation
G41 Cutter compensation to the left
G42 Cutter compensation to the right
G92 Zero point displacement
G87 Rectangular pocket milling
G81, G82, G83, G84
Drill cycle
G90 Absolute programming
G91 Incremental programming
G94 Feed rate in mm/min
G95 Feed rate in mm/revolution
G54 Zero point 1
G55 Zero point 2
G56 Zero point 3
G57 Zero point 4
G58 Zero point 5
G59 Zero point 6
Page 1 of 4Codes that are simulated
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh13E4.htm
M-codes for milling
The standard interpreter understands the following M- codes.
Other codes for milling
The standard interpreter understands the following codes.
G53 No zero point displacement
M0 or M00 Program stop
M3 or M03 Spindle start clockwise
M4 or M04 Spindle start anti-clockwise
M5 or M05 Spindle stop
M8 or M08 Coolant on
M9 or M09 Coolant off
M17 Return from subprogram
M30 or M02 or M2 Program end
F Feed rate
S Spindle speed
N Block number
T or TOOL CALL
Tool
X Code for the X-axis
Y Code for the Y-axis
Z Code for the Z-axis
I Incremental distance to the center in the X-axis
J Incremental distance to the center in the Y-axis
K Incremental distance to the center in the Z-axis
R or Z Arc <180 degrees
R- or Z- Arc >180 degrees
P Overlapping in pocket milling
L Subprogram block number
U Subprogram repetitions
Page 2 of 4Codes that are simulated
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh13E4.htm
G-codes for turning
The standard interpreter understands the following G- codes.
M-codes for turning
The standard interpreter understands the following M- codes.
G0 or G00 Rapid movement
G1 or G01 Linear interpolation
G2 or G02 Clockwise interpolation
G3 or G03 Anti-clockwise interpolation
G25 Subprogram call
G26 Separate subprograms (disk)
G83 Threading cycle
G84 Rough machining cycle
G53 No zero point displacement
G54 Zero point 1
G55 Zero point 2
G56 Zero point 3
G57 Zero point 4
G58 Zero point 5
G59 Zero point 6
G90 Absolute programming
G91 Incremental programming
G92 Zero point displacement
G94 Specify feed rate in mm/min
G95 Specify feed rate in mm/revolution
M0 or M00 Program stop
M3 or M03 Spindle start clockwise
M4 or M04 Spindle start anti-clockwise
M5 or M05 Spindle stop
M8 or M08 Coolant on
M9 or M09 Coolant off
Page 3 of 4Codes that are simulated
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh13E4.htm
Other codes for turning
The standard interpreter understands the following codes.
M17 Return from subprogram
M30 Program end
F Feed rate
S Spindle speed
N Block number
T Tool
X Code for the X-axis
Z Code for the Z-axis
I Incremental distance to the center in the X-axis
K Incremental distance to the center in the Z-axis
R or Z Arc <180 grader
R- or Z- Arc >180 grader
L Threading cycle parameter diam/radius, point A
D Threading cycle depth mm/cut
H Threading cycle total thread depth
U Sub program amount of repetitions
Page 4 of 4Codes that are simulated
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh13E4.htm
File Menu
New
Create a new NC-program. Deletes the current text buffer. If the NC program has not been saved you will first be asked if you wish to save it
Open
Brings up the file selector dialogue allowing you to choose a file to load.
Save
Saves the NC program under its current name.
Save as
Brings up the file selector dialogue where you can type in the name the file will be given.
Prints out the active NC program.
Send to CNC
Sends the active NC program to the CNC machine. You should prepare the CNC machine for receiving data before you choose this. You must have the correct communications parameters set for this to work correctly. You can read more about communication in the help file accessible from the communications dialogue.
Receive from CNC
Receives data from the CNC machine. You should choose this function before going to the machine and starting the data transmission. You must have the correct communications parameters set for this to work correctly. You can read more about communication in the help file accessible from the communications dialogue.
Load machine settings
Here you can load previous machine settings. You can have several files with different settings for different machines. The saved settings include communication and various file settings. These files are saved with the extension *.PRF. When the CncSimulator is started the file cnc.prf is loaded automatically.
Save machine settings
Here you can save your machine settings. You can have several files with different settings for different machines. The saved settings include communication and various file settings. These files are saved with the extension *.PRF. When the CncSimulator is started the file cnc.prf is loaded automatically. Important: Your settings will not be saved automatically. You need to go to ”Save Machine Settings” under the file menu, this saves the communication parameters, settings for interpreter files, folders etc. If not, the settings will be restored to the default settings when you
Page 1 of 2File Menu
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hhE894.htm
start the CncSimulator next time. To save your settings use “Save Machine Settings” and name the file after the machine the settings are made for. If you have common settings for all machines or just one machine you should save the settings under the name “cnc”. This is the default file name of the machine settings file and it will be automatically loaded when the program starts. Also note that this file must be saved in the program folder of the CncSimulator. If you give your machine file settings file another name, like “mymachine”, you will have to go to File – "Load Machine Settings" and select the file mymachine to load your settings. If you have several machines/ controllers you can create machine settings for each one and give them names that will be easy to remember. These can also be placed in different folders along with CNC code etc.
Load detail settings
Here you can load your detail settings. You can save the size of your workpiece and the mode (milling or turning) in a detail setting file (*.SET). Normally the file name is the same as the NC program it is associated with, except that it receives the extension *.SET.
Save detail settings
Here you can save your detail settings. You can save the size of your workpiece and the mode (milling or turning) in a detail setting file (*.SET). Normally the file name is the same as the NC program it is associated with, except that it receives the extension *.SET.
Exit
Exits the CncSimulator.
Page 2 of 2File Menu
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hhE894.htm
Edit Menu
Undo
Takes back the last change in the NC program.
Renumber
Renumbers the NC program. Type in the start and increase (step) values for the block numbers.
Automatic line numbering
Activates automatic block numbering. A dialogue will appear where you type in the start and increase (step) numbers. Every time you press “Enter” the CncSimulator will generate a new block number. The results may be confusing if you are not at the and of the NC program when you activate this feature.
Program statistics
Shows a window containing various statistics for the current NC program.
Check code
Checks the NC program for any illegal characters, changes lower case letters to upper case and inserts spaces into the NC program between G and M codes etc. You can specify what actions this function performs under the settings menu.
Compress
Removes all spaces in the NC program. This can be useful if the CNC machine you are using has limited memory.
Search
Shows the search dialogue.
Replace
Shows the search and replace dialogue.
Cut
Cuts out the selected text and places it in the clipboard.
Copy
Copies the selected text to the clipboard.
Paste
Pastes in text from the clipboard at the current cursor position.
Delete
Deletes the selected text.
New Buffer
Creates a new text buffer.
Page 1 of 2Edit Menu
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh2FCF.htm
Close Buffer
Closes the current text buffer. If the NC program has not been saved the CncSimulator will first ask whether the program should be saved.
Calculate
This function allows you to perform calculations. You can use addition, subtraction, division and multiplication as well as the functions shown below:
The answer is inserted at the current cursor position in the editor view.
Maximize editor
Maximizes the editor so that it takes up the whole of the CncSimulator window. To resize the editor either drag the left corner with the mouse or hold down the left mouse button and the click with the right mouse button and release both buttons.
sin(x) The sine of the angle x in degrees
cos(x) The cosine of the angle x in degrees
tan(x) The tangent of the angle x in degrees
asin(x) The inverse sine of the angle x in degrees
acos(x) The inverse cosine of the angle x in degrees
atan(x) The inverse tangent of the angle x in degrees
pow(x) x squared
sqr(x) The square root of x
Page 2 of 2Edit Menu
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh2FCF.htm
Simulate Menu
Edit Tools
Milling mode: Here you can fill in the tool number, diameter, length, feed data, spindle and the name of each tool. Turning mode: Here you can see the contour of the tool. You can fill in the name, cutting data and tool number of each tool.
Detail settings
This is used to set the size of the workpiece as well as the color scale if the CncSimulator is in the milling mode. Type in the X, Y and Z-size of the workpiece and in certain cases the zero point and color scale. You can choose to show a RIT-file (MicroTech CamModul) as background instead of a rectangular workpiece if you prefer. By clicking the “Milling depth” button you can decide which colors represent different depths.
Zero point register
Here you can edit the zero points that are called by G54-G59.
Load tools
Here you can load a different tool file in milling mode. You can have separate tool files for different machines, for example.
Save tools
Here you can save the active tool file.
Lathe tool path
Here you can specify which path the CncSimulator will look in for its tools in turning mode. You can have different paths for different machines, for example.
Page 1 of 1Simulate Menu
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh8D31.htm
Screen Menu
Standard
Turns on/off the standard toolbar.
Status
Turns on/off the status line.
Milling
Sets the CncSimulator in milling mode.
Turning
Sets the CncSimulator in turning mode.
Gas
Sets the CncSimulator in gas cutting mode.
Page 1 of 1Screen Menu
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hhDECC.htm
Setting Menu
Login
To log in you must type in the password. Only after typing in the correct password will you be able to access the other functions of the settings menu. The default password is “login”. If you wish to prevent others from changing the settings we recommend that you change this password.
Lock menu
After logging in to the menu the functions are accessible until you lock the menu again. After locking the menu you will have to log in again to access the other functions.
Change password
Here you can specify a new password. You must type it in twice to make sure there are no typing mistakes. This password will be used to access the settings menu.
Simulation settings
Here you can set whether the program should be interpreted with millimeter or inch co-ordinates, if crash checking should be active, if the mill should be shown in the wire frame view and whether the CncSimulator should erase material which has been cut off when turning.
File settings
Here you can set the default file extensions your NC programs will be saved as and the default path etc. Window commands: Show files of type: decides which files are shown when you open an NC file. Save with extension: decides the default extension the file name will receive unless you explicitly type in an extension. Interpreter mill: decides which interpreter will be used for milling. Tokenfile mill: decides which tokenkfile the interpreter for milling will use. Interpreter lathe: decides which interpreter will be used for turning. Tokenfile lathe: decides which tokenfile the interpreter for turning will use. Cycle prefix mill/lathe: decides the prefix for interpreter cycles (small programs that simulate machine cycles). Path NC-files: decides the default path where NC files will be saved. Always load workpiece options: decides whether the CncSimulator should automatically load .SET files when loading an NC program. Always save workpiece options: decides whether .SET files should be created automatically when saving NC programs.
Check NC Code
Here you can set which characters should be allowed and not allowed when you choose the function “Check code” from the edit menu. You can also decide whether the CncSimulator should insert spaces between ISO codes or not.
Machine time settings
These settings are used for controlling the calculation of real-time cutting information.
Page 1 of 2Setting Menu
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh1A5E.htm
Communication settings
These are advanced settings that should only be used by people familiar with serial communications between computers and CNC machines. The communication part has its own help system which can be accessed by clicking on the “help” button.
Syntax check
Here you can specify certain things the CncSimulator should check for while simulating NC code, for example you can make the CncSimulator generate a warning if there is no spindle start before a G01.
Important:
Your settings will not be saved automatically. You need to go to ”Save Machine Settings” under the file menu, this saves the communication parameters, settings for interpreter files, folders etc. If not, the settings will be restored to the default settings when you start the CncSimulator next time. To save your settings use “Save Machine Settings” and name the file after the machine the settings are made for. If you have common settings for all machines or just one machine you should save the settings under the name “cnc”. This is the default file name of the machine settings file and it will be automatically loaded when the program starts. Also note that this file must be saved in the program folder of the CncSimulator. If you give your machine file settings file another name, like “mymachine”, you will have to go to File – "Load Machine Settings" and select the file mymachine to load your settings. If you have several machines/ controllers you can create machine settings for each one and give them names that will be easy to remember. These can also be placed in different folders along with CNC code etc.
Page 2 of 2Setting Menu
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh1A5E.htm
Help Menu
About CncSimulator
Shows the program version number and to whom it is registered. Help
Shows this help file.
Page 1 of 1Help Menu
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh59B8.htm
Plugin
In this menu you will see the plugins you choose to install in the CncSimulator plugins folder. Plugins can be downloaded from www.cncsimulator.com.
Page 1 of 1Plugin
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh2F58.htm
Download a new petrol-file
After using CncSimulator for 90 days, you have to download your first petrol-file. The petrol-file will let you run the CncSimulator completely free of charge until the next expire date. This is how you do it: If this page was automatically shown during a start attempt you have also got the Download petrol message.
1. Click OK and the Out of fuel dialog appears.
2. Click the button marked www.cncsimulator.com, that will start your default browser and
take you to the CncSimulator web page. 3. Click the link Petrol Station. 4. Click the button Copy to clipboard in the Out of fuel dialog. 5. Click in the Fuel code edit box on the web page, right-click on the mouse and select paste. 6. If the fuel code have not been copied to the edit box, type in the number manually. 7. Type your email address in the Email edit box. It is important that the email address is
correct as the petrol-file will be sent to this address.
Page 1 of 2Download a new petrol-file
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh6ABB.htm
8. Click the Full tank button. A link to where you can dowload a new petrol-file have now been
emailed to your address. 9. Copy the file to the directory where you have installed CncSimulator (default
C:\Program\CncSimulator). 10. Close the Out of fuel dialog and restart the program.
Page 2 of 2Download a new petrol-file
03/10/2010file://C:\Documents and Settings\ANGEL\Configuración local\Temp\~hh6ABB.htm