=pod

=head1 NAME

gpx - G-code to X3G converter

=head1 SYNOPSIS

=over

=item gpx [F<-CFdgilpqrstvw>] [F<-b BAUDRATE>] [F<-c CONFIG>] [F<-e EEPROM>] [F<-f DIAMETER>] [F<-m MACHINE>] [F<-N h|t|ht>] [F<-n SCALE>] [F<-x X>] [F<-y Y>] [F<-z Z>] F<IN> [F<OUT>]

=back

=head1 OPTIONS

=over

=item B<-C>

Create temporary file with a copy of the machine configuration

=item B<-C>

Create temporary file with a copy of the machine configuration

=item B<-F>

write X3G on-wire framing data to output file

=item B<-N> F<h|t|ht>

Disable writing of the X3G header (start build notice), tail (end build notice), or both

=item B<-d>

simulated ditto printing

=item B<-g>

Makerbot/ReplicatorG GCODE flavor

=item B<-i>

enable stdin and stdout support for command line pipes

=item B<-l>

log to file

=item B<-p>

override build percentage

=item B<-q>

quiet mode

=item B<-r>

Reprap GCODE flavor

=item B<-s>

enable USB serial I/O and send x3G output to 3D printer

=item B<-t>

truncate filename (DOS 8.3 format)

=item B<-v>

verose mode

=item B<-w>

rewrite 5d extrusion values

=item B<-b> F<BAUDRATE>

Set F<BAUDRATE> for serial I/O. Default is 115200.

=item B<-c> F<CONFIG>

F<CONFIG> is the filename of a custom machine definition (ini file).

=item B<-e> F<EEPROM>

F<EEPROM> is the filename of an eeprom settings definition (ini file).

=item B<-f> F<DIAMETER>

F<DIAMETER> is the actual filament diameter in the printer.

=item B<-m> F<MACHINE>

F<MACHINE> is the predefined machine type. Available configurations are:

=over

=item c3

= Cupcake Gen3 XYZ, Mk5/6 + Gen4 Extruder

=item c4

= Cupcake Gen4 XYZ, Mk5/6 + Gen4 Extruder

=item cp4

= Cupcake Pololu XYZ, Mk5/6 + Gen4 Extruder

=item cpp

= Cupcake Pololu XYZ, Mk5/6 + Pololu Extruder

=item cxy

= Core-XY with HBP - single extruder

=item cxysz

= Core-XY with HBP - single extruder, slow Z

=item cr1

= Clone R1 Single with HBP

=item cr1d

= Clone R1 Dual with HBP

=item r1

= Replicator 1 - single extruder

=item r1d

= Replicator 1 - dual extruder

=item r2

= Replicator 2 (default)

=item r2h

= Replicator 2 with HBP

=item r2x

= Replicator 2X

=item t6

= TOM Mk6 - single extruder

=item t7

= TOM Mk7 - single extruder

=item t7d

= TOM Mk7 - dual extruder

=item z

= ZYYX - single extruder

=item zd

= ZYYX - dual extruder

=back

=item B<-n> F<SCALE>

F<SCALE> is the coordinate system scale for the conversion (ABS = 1.0035)

=item B<-x> F<X>, B<-y> F<Y>, B<-z> F<Y>

F<X> = the x axis offset

F<Y> = the y axis offset

F<Z> = the z axis offset

=back

=head1 EXAMPLES

=over

=item	gpx -p -m r2 my-sliced-model.gcode

=item	gpx -c custom-tom.ini example.gcode /volumes/things/example.x3g

=item	gpx -x 3 -y -3 offset-model.gcode

=item	gpx -m c4 -s sio-example.gcode /dev/tty.usbmodem

=back

=cut
