GithubHelp home page GithubHelp logo

grandopenauto / simturn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nvjkmr/simturn

0.0 0.0 0.0 542 KB

CNC Lathe Simulation using pure JavaScript

License: GNU General Public License v3.0

HTML 3.37% JavaScript 96.63%

simturn's Introduction

-----------------------------------------
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.

simturn's People

Contributors

ajay-anand avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.