# Python: module skeinforge_application.skeinforge_plugins.craft_plugins.limit

skeinforge_application.skeinforge_plugins.craft_plugins.limit ($Date: 2008/28/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/craft_plugins/limit.py

Previous / Next / Contents

`
Limit limts the feed rate of the tool head, so that the stepper motors are not driven too fast and skip steps.
Operation
Settings
Maximum Initial Feed Rate
Maximum Z Feed Rate
Examples
`

## Operation

The default 'Activate Limit' checkbox is on. When it is on, the functions described below will work, when it is off, the functions will not be called.

## Settings

### Maximum Initial Feed Rate

Default is one millimeter per second.
Defines the maximum speed of the inital tool head will move.

### Maximum Z Feed Rate

Default is one millimeter per second.
If your firmware limits the z feed rate, you do not need to set this setting.
Defines the maximum speed that the tool head will move in the z direction.

## Examples

The following examples limit the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and limit.py.
> python limit.py
This brings up the limit dialog.
> python limit.py Screw Holder Bottom.stl
The limit tool is parsing the file:
Screw Holder Bottom.stl
..
The limit tool has created the file:
.. Screw Holder Bottom_limit.gcode

Previous / Next / Contents

Modules

``

skeinforge_application.skeinforge_plugins.craft_plugins.__init__
fabmetheus_utilities.archive
fabmetheus_utilities.euclidean
fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret

fabmetheus_utilities.gcodec
fabmetheus_utilities.intercircle
math
os

fabmetheus_utilities.settings
skeinforge_application.skeinforge_utilities.skeinforge_craft
skeinforge_application.skeinforge_utilities.skeinforge_polyfile
skeinforge_application.skeinforge_utilities.skeinforge_profile

sys

Classes

``

LimitRepository
LimitSkein

class LimitRepository
`` | `A class to handle the limit settings.`

Methods defined here:

__init__(self)
  `Set the default settings, execute title & settings fileName.`

execute(self)
  `Limit button has been clicked.`

class LimitSkein
`` | `A class to limit a skein of extrusions.`

Methods defined here:

__init__(self)

getCraftedGcode(self, gcodeText, repository)
  `Parse gcode text and store the limit gcode.`

getLimitedInitialMovement(self, line, splitLine)
  `Get a limited linear movement.`

getZLimitedLine(self, deltaZ, distance, line, splitLine)
  `Get a replaced z limited gcode movement line.`

getZLimitedLineArc(self, line, splitLine)
  `Get a replaced z limited gcode arc movement line.`

getZLimitedLineLinear(self, line, location, splitLine)
  `Get a replaced z limited gcode linear movement line.`

parseInitialization(self)
  `Parse gcode initialization and store the parameters.`

parseLine(self, lineIndex)
  `Parse a gcode line and add it to the limit skein.`

Functions

``

getCraftedText(fileName, gcodeText='', repository=None)
  `Limit a gcode file or text.`

getCraftedTextFromText(gcodeText, repository=None)
  `Limit a gcode text.`

getNewRepository()
  `Get new repository.`

main()
  `Display the limit dialog.`

writeOutput(fileName, shouldAnalyze=True)
  `Limit a gcode file.`

Data
`` |  | __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/28/04 $' __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'

Author
`` |  | Enrique Perez (perez_enrique@yahoo.com)