replicatorg/motherboardv1.2 gcode parsing December 18, 2010 05:27PM |
Registered: 13 years ago Posts: 8 |
Re: replicatorg/motherboardv1.2 gcode parsing December 18, 2010 10:28PM |
Registered: 13 years ago Posts: 188 |
case 127: ex[extruder_in_use]->valveSet(false, (int)(gc.P + 0.5)); break;After "break;", add something like this:
case 18: //You are adding M18, just use the numbers as the case since we already ran code to find the "M" //your code here break;
#define Z_STEP_PIN (byte)19 #define Z_DIR_PIN (byte)18 #define Z_MIN_PIN (byte)17 #define Z_MAX_PIN (byte)16
#elif MOTHERBOARD == 3 //You have to find this line, the number must match your motherboard type //other pins defined here #define MY_NEW_PIN (byte)8 //"8" is the number of the pin you want to control //Other motherboard types #endif
case 18: digitalWrite(MY_NEW_PIN, HIGH); //turn on the pin digitalWrite(MY_NEW_PIN, LOW); //turn off the pin //NOTE: Using both in the same Gcode without a pause in between will //cause it to switch so fast you probably won't see it, this is just an example. //PWM (analog) pins use a different command and can have states that are not fully on //This is useful for keeping heaters warm but not overheating, for example //While digitalWrite works on any pin, analogWrite only works on PWM enabled pins analogWrite(MY_NEW_PIN, 0); //fully off analogWrite(MY_NEW_PIN, 255); //fully on analogWrite(MY_NEW_PIN, 25); //Not quite off break;
Re: replicatorg/motherboardv1.2 gcode parsing December 18, 2010 11:25PM |
Registered: 13 years ago Posts: 8 |
[20:20:31] Loading machine: Cupcake CNC [20:20:31] Loading simulator. [20:20:31] Loading driver: replicatorg.drivers.gen3.Sanguino3GDriver [20:20:39] Read timed out. [20:20:39] Read timed out; giving up on query. [20:20:46] Read timed out. [20:20:46] Read timed out; giving up on query. [20:20:46] No connection; trying to pulse RTS to reset device. [20:20:53] Read timed out. [20:20:54] Read timed out; giving up on query. [20:20:54] Unable to connect to firmware.
WARNING: RXTX Version mismatch Jar version = RXTX-2.2pre1 native lib Version = RXTX-2.2pre2
Re: replicatorg/motherboardv1.2 gcode parsing December 19, 2010 01:02AM |
Registered: 13 years ago Posts: 188 |
Re: replicatorg/motherboardv1.2 gcode parsing December 19, 2010 01:44AM |
Registered: 13 years ago Posts: 8 |
Re: replicatorg/motherboardv1.2 gcode parsing December 19, 2010 05:02AM |
Admin Registered: 17 years ago Posts: 7,879 |
Re: replicatorg/motherboardv1.2 gcode parsing December 19, 2010 10:23PM |
Registered: 13 years ago Posts: 103 |
Re: replicatorg/motherboardv1.2 gcode parsing November 13, 2011 08:32PM |