Difference between revisions of "Modern Printer Command Set"

From Cartesian Co. Wiki
Jump to: navigation, search
(Created page with "'''c - Calibrate''' Begin the calibration procedure. This first checks if any limit switches are depressed. If they are, it attempts to free them by moving each motor a fixed...")
 
 
(3 intermediate revisions by 3 users not shown)
Line 46: Line 46:
 
Disable both stepper motors
 
Disable both stepper motors
  
'''l - Toggle Rollers'''
+
'''l x - Command Rollers'''
  
Toggles the current status of the rollers (deployed/retracted)
+
Where x is one of:
  
'''servo - Set the roller servo position'''
+
    + move up by 1 degree.
 +
    - move down by 1 degree.
 +
    E enable
 +
    e disable
 +
    r retract
 +
    d deploy
 +
    g get current servo angle.
 +
    R Set retract position to current possition. Do not move.
 +
    D Set Deploy position to current position. Do not move.
 +
    n where 0 < n <= 180 is an integer number to set the servo angle to.
  
servo position
 
 
Set the roller servo to <position>
 
  
 
'''p - Print'''
 
'''p - Print'''
Line 118: Line 124:
 
'''pwm'''
 
'''pwm'''
  
pwm pin 0..255
+
pwm pin [0..255]
  
 
Sets the respective PWM pin to the supplied pwm value.
 
Sets the respective PWM pin to the supplied pwm value.
 
Permitted pins: 7, 8, and 9.
 
Permitted pins: 7, 8, and 9.
  
Note: Pin 8 corresponds to the white LEDs in the print area.
+
These pins connect to the General 12V Outputs on the upper-left of the motherboard:
 +
{| class="wikitable"
 +
|Pin 8
 +
|controls the FET2 header, connected to the white LEDs in the print area.
 +
|-
 +
|Pin 9
 +
|controls the FET3 header, connected to the fan at the rear right of the unit.
 +
|-
 +
|Pin 7
 +
|controls the FET1 header, connected to the fan at the rear left of the unit.
 +
|}
 +
 
 +
If fans don't start spinning when turned on (set to 255), the fan blades may need a manual push to get them moving.
  
 
'''volt - Read the cartridge voltage supply'''
 
'''volt - Read the cartridge voltage supply'''
Line 132: Line 150:
  
 
Prints the help listing, as seen on initial boot. Includes a listing of all installed command functions.
 
Prints the help listing, as seen on initial boot. Includes a listing of all installed command functions.
 +
 +
[[Category:Software]]

Latest revision as of 19:15, 30 December 2014

c - Calibrate Begin the calibration procedure.

This first checks if any limit switches are depressed. If they are, it attempts to free them by moving each motor a fixed number of steps in both directions. If this movement results in a change on the limit switches, we now have at least one mapping of axis to motor.

Movement

m, M - Move

m axis steps

0 - Zero

Move to the zero position

) - Set Zero

Set the zero position

pos - Current Carriage Position

Prints the current carriage position

h - Home

Returns the printer to the front left corner

b - Back

Moves the printer to the rear right corner

stest - Stepper Test Function

Puts the printer into a stepper self-test mode. Both axes move back and forth.

s - Speed

s axis speed (mm per minute)

+ - Motors On Command

Enable both stepper motors

- - Motors Off Command

Disable both stepper motors

l x - Command Rollers

Where x is one of:

   + move up by 1 degree.
   - move down by 1 degree.
   E enable
   e disable
   r retract
   d deploy
   g get current servo angle.
   R Set retract position to current possition. Do not move.
   D Set Deploy position to current position. Do not move.
   n where 0 < n <= 180 is an integer number to set the servo angle to.


p - Print

p [filename]

Execute print file specified by filename. If no filename is provided, the default of ‘output.hex’ is used

P - Pause

Pauses the current print job. Has no effect if we’re not currently executing a print file.

R - Resume

Resumes the current print job. Has no effect if we’re not currently paused, and executing a print file.

? - Print Current Settings

Prints the current printer settings from memory (RAM)

?eeprom - Print Saved Settings

Prints the current printer settings from EEPROM, these are what are loaded on boot

!write - Write the current settings to eeprom

Persist the current printer settings to EEPROM

defaults - Reset the current settings to factory defaults

Resets the current RAM settings to factory defaults (Note: does not inherently persist to EEPROM!)

lim - Limit Switch Status

Prints the current status of the limit switches. If they’re found to be in an invalid state, the logic is inverted in software (i.e. NC vs NO)

ram - Current RAM Consumption

Print the current RAM consumption of the firmware

digital - Issue a generic digital IO command

digital pin status

analog - Issue a generic analog command

analog pin value

sd - (Re)Initialise the SD Card

Useful when you swap the SD card without resetting the printer. Will refresh the file list.

ls - List SD Print Files

Lists all the Argentum print files on the SD card.

red / green / blue

e.g. red [0..255]

Sets that colour LEDs to the supplied PWM value.

pwm

pwm pin [0..255]

Sets the respective PWM pin to the supplied pwm value. Permitted pins: 7, 8, and 9.

These pins connect to the General 12V Outputs on the upper-left of the motherboard:

Pin 8 controls the FET2 header, connected to the white LEDs in the print area.
Pin 9 controls the FET3 header, connected to the fan at the rear right of the unit.
Pin 7 controls the FET1 header, connected to the fan at the rear left of the unit.

If fans don't start spinning when turned on (set to 255), the fan blades may need a manual push to get them moving.

volt - Read the cartridge voltage supply

Prints the current value of the cartridge voltage.

help - Print help listing

Prints the help listing, as seen on initial boot. Includes a listing of all installed command functions.