SWANSOFT CNC SIMULATOR
SSCNC Turning Tutorials
1
NANJING SWANSOFT TECHNOLOGY COMPANY
Table of Contents
Tutorial 1 – Running an existing program................................................................................................................................ 3
Start the software ................................................................................................................................................................................ 4
Move the axes to the machine origin................................................................................................................................................. 4
Select an NC program from the Directory ........................................................................................................................................ 5
Define the raw material ...................................................................................................................................................................... 5
Mount tools on the turret .................................................................................................................................................................... 6
Set the workpiece origin..................................................................................................................................................................... 6
Execute the NC program .................................................................................................................................................................. 10
Measure the Workpiece.................................................................................................................................................................... 10
Tutorial 2 – Importing a program........................................................................................................................................................ 11
Start a new CNC program ................................................................................................................................................................ 12
Create a text file with the NC program ........................................................................................................................................... 12
Import the NC program and run it ................................................................................................................................................... 14
Tutorial 3 – Entering a program at the operating panel .................................................................................................. 15
Enter the NC program ...................................................................................................................................................................... 16
Tutorial 4 – Changing the tool library ...................................................................................................................................... 17
Adding a new tool............................................................................................................................................................................. 17
2
SWANSOFT CNC SIMULATOR
Tutorial 1 – Running an existing program
This tutorial shows
Simulating an existing NC program
Part drawing
Blank dimension Dia. 70 x 150mm
3
NANJING SWANSOFT TECHNOLOGY COMPANY
Start the software
Select Network on the left.
Select Fanuc 0iT for the CNC system.
Enter your user name and password.
Enter the IP address of server.
Click on Run.
Move the axes to the machine origin
Release the Emergency stop by pressing on it.
Unlock the Edit lock by moving the cursor to the key and
pressing on it.
Press the X button to move the X axis to the origin.
Press the Z button to move the Z axis to the origin.
4
SWANSOFT CNC SIMULATOR
Select an NC program from the Directory
Switch to the Edit mode by pressing on the Edit mode button
Press the Program mode key , then press the DIR soft key to
see the directory (list) of NC programs in the machine.
Type O0002 by pressing the keys in order, then press to
make this the active program.
Define the raw material
Select Workpiece - Stock Size
Enter the following data and click on OK:
For Workpiece material, select '08F Low carbon steel'.
For Length, enter 150
For Diameter, enter 70
5
SWANSOFT CNC SIMULATOR
Mount tools on the turret
Select Machine Operation - Tool Management
Drag the first tool (001) in the list of tools to row 01 in the Tool
magazine list.
Click on Mount Tool
Click OK.
Set the workpiece origin
Setting work offset- X0
Start the spindle in the MDI (manual data input) mode.
To do this, press MDI mode , then type S300 M03 ,
then press cycle start to start the spindle.
6
SWANSOFT CNC SIMULATOR
Do a skin cut on the diameter for setting X0.
Move the tool to the appropriate position for doing a light cut on
the diameter.
If the tool is far away from the part, press on Jog mode and
then on . Press on or to select the axis of
motion, and then on or to select the direction of
motion.
When the tool is closer to the part, switch to 1 mm. steps. Select
and (1000 microns or 1 mm).
Once the tool is at the required diameter, press on Z and keep
pressing on - to do the skin cut.
Back off the tool along +Z.
Stop the spindle by pressing on .
Select Measure - Feature Line to measure the outer diameter.
Measure the diameter by pressing over it and note the value.
7
SWANSOFT CNC SIMULATOR
Select Measure → Exit Measure.
Press on the Offset setting mode .
Press on the soft key under Offset, then the one under Geom.
Select the G001 line with the help of arrow keys on the control panel.
Type the measured diameter value on the address line.
E.g., : X69.118
Press on the MEASUR softkey.
This sets the coordinate of the tool position. The controller
determines the X0 using this.
Setting work offset – Z0
Press on to start spindle rotation in the anti-clockwise
direction.
Do a facing cut for setting Z0.
8
SWANSOFT CNC SIMULATOR
Move the tool to the appropriate position for doing a light cut on the
face.
If the tool is far away from the part, press on Jog mode and
then on . Press on or to select the axis of
motion, and then on or to select the direction of
motion.
When the tool is closer to the part, switch to 1 mm. steps. Select
and .
Once the tool is at the required Z position to do the face cut, press
on X and keep pressing on - to do the skin cut.
After the facing, press on OFFSET SETTING mode
Press on OFFSET - GEOM input Z0 then press MEASUR.
Press on Reference mode then press to and
send the axes to their home positions.
9
SWANSOFT CNC SIMULATOR
Execute the NC program
Never run a machine with the door open. It can lead to a serious or even fatal accident.
Press on the Auto mode
Close the machine door by pressing Close Machine Door
button on on the left side of the screen.
Press Cycle start button to start machining.
Measure the Workpiece
Select Measure - Feature Line
Click on any point at which you want the dimension.
If the part diameter is less than 36 mm. the measuring instrument automatically changes to a micrometer. For bores
the instrument changes to a bore gauge.
10
SWANSOFT CNC SIMULATOR
Tutorial 2 – Importing a program
This tutorial shows
Importing an NC program from a text file and running it.
Part drawing
Blank dimension Dia. 80 x 100mm
11
SWANSOFT CNC SIMULATOR
Start a new CNC program
Select Edit mode
Switch to the Program mode. Press the button and press
DIR to see the programs already in use.
Start a new program number 1111. To do this, press O1111, then
Create a text file with the NC program
Open Notepad and copy the NC program listed here into it. NC program
O1111
Save the program under the file name 1111.txt.
T0101
G50 S3500
G96 S240 M4
G00 X82. Z0.
G01 X-2. F0.15 M7
G00 Z2.
G00 X71.
G01 Z-47.8 F0.3
G01 X74. Z-49.8
G01 X77.
G01 X81. Z-53.
G00 Z2.
G00 X60.
G01 Z-19.8
G01 X65.
G01 X72. Z-24.
G00 Z2.
G00 X51.
G01 Z-16.8
G01 X57. Z-19.8
G01 X65.
12
SWANSOFT CNC SIMULATOR
G00 Z2.
G00 X37.
G01 X52. Z-6.
G00 X150. Z100.
M5
M9
M30
13
SWANSOFT CNC SIMULATOR
Import the NC program and run it
Press the File Open button , select the file 1111.txt that you
just saved. Then select Open.
Define the raw material.
Workpiece material – 08F Low carbon steel
Length= 100
Diameter= 80
Mount the tool on the turret.
Set the workpiece origin.
Execute the program.
14
SWANSOFT CNC SIMULATOR
Tutorial 3 – Entering a program at the operating panel
This tutorial shows
Manual input of NC program through the operation panel.
Part drawing
Blank dimension Dia.100 x 107mm
15
SWANSOFT CNC SIMULATOR
Enter the NC program
NC program
Switch to the Edit mode, enter a new program number 2222. O2222
T0101
Press on the down arrow key to move to the next block. G50 S3000
Enter the program listed here. G96 S139 M04
X105. Z4. M08
X104.
To do this, press T0101 . G72 W3. R0.5
G72 P25 Q40 U0. W0.2 F0.3
N25 G0 Z0.
Press G50 S3000 . N30 G01 X100. Z0.
N35 X-1.
etc. N40 Z2.
G0 X105.
continue this till the last block (this is the name for a line of
Z2.2
NC program).
X104.
G71 U3. R0.5
G71 P45 Q120 U0. W0. F0.3
N45 G00 X20.
N50 G01 X20. Z0.2
N55 Z0.
N60 G03 X30. Z-5. I0. K-5.
N65 G01 Z-26.
N70 G02 X38. Z-30. I4. K0.
N75 G01 X44.
N80 X50. Z-33.
N85 Z-47.
N90 G02 X56. Z-50. I3. K0.
N95 G01 X60. Z-52.
N100 Z-67.
N105 G02 X66. Z-70. I3. K0.
N110 G01 X88.
N115 X100. Z-76.
N120 X104. Z-76.
G0 X105.
M09
M05
X200. Z100.
M30
16
SWANSOFT CNC SIMULATOR
Define the raw material.
Workpiece material – 08F Low carbon steel
Length= 107
Diameter= 100
Mount the tool on the turret.
Set the workpiece origin.
Execute the program.
Tutorial 4 – Changing the tool library
This tutorial shows
Entering a new tool in the list of tools.
Adding a new tool
Select Machine Operation → Tool Management
17
SWANSOFT CNC SIMULATOR
Click on Add , select the first External turning tool and enter the
following data.
Tool – 01
Insert Type – 35° VNMG
Shank – 150
Shank width – 25 mm
Insert length – 12
Insert thickness – 3.0
Nose radius - 0.4 mm
Click on OK.
18