CNC Lathe Simulation using pure JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
.gitignore
LICENSE
README
test

README

-----------------------------------------
Supported Address Codes:
-----------------------------------------
O    :   PROGRAM NUMBER
N    :   LINE NUMBER
G    :   PREPRATORY COMMAND
X    :   ABSOLUTE X OR DWELL TIME IN SECONDS
P    :   DWELL TIME IN MILLI-SECONDS
U    :   INCREMENTAL DISTANCE X
Z    :   ABSOLUTE Z
I    :   ARC CENTER X
J    :   ARC CENTER Y
R    :   RADIUS
W    :   INCREMENTAL DISTANCE Z
F    :   FEED RATE
M    :   MISCELLANEOUS FUNCTION
S    :   SPINDLE SPEED
T    :   TOOL MANAGEMENT

-----------------------------------------
Supported G-codes:
-----------------------------------------
G00  -   RAPID TRAVERSE
G01  -   LINEAR TRAVERSE
G02  -   CLOCKWISE CIRCULAR INTERPOLATION
G03  -   COUNTER CLOCKWISE CIRCULAR INTERPOLATION
G04  -   DWELL
G21  -   FEED INPUT IN MM
G28  -   RETURN TO REFERENCE
G70  -   FINISHING CYCLE
G71  -   MULTIPLE TURNING CYCLE
G72  -   MULTIPLE FACING CYCLE
G75  -   PECK DRILLING CYCLE
G76  -   THREADING CUTTING CYCLE
G90  -   FIXED CYCLE
G98  -   FEED PER MINUTE

-----------------------------------------
Supported M-codes:
-----------------------------------------
M03  -   CLOCKWISE SPINDLE ROTATION
M04  -   COUNTER CLOCKWISE SPINDLE ROTATION
M05  -   STOP SPINDLE
M06  -   TOOL CHANGE
M08  -   COOLANT ON
M09  -   COOLANT OFF
M30  -   PROGRAM STOP

**Usage Instructions

1. Install required software and download the project code:
	sudo apt-get install git nodejs npm
	git clone https://github.com/VijayKumarHackr/TurningCenterSimulation.git
	cd TurningCenterSimulation/src/js/node/		#important
	npm install express ffi pako ref

2. Since the project is in JavaScript, there's no need to compile.
Just execute the script to launch the server:
	node turningNode.js

3. Run the examples:
Open src/index.html in any modern web browser
Click on "Browse G-code file" button.
Open the TurningCenterSimulation/examples folder and select a file.