Skip to content

Scripting XL 050

GitHub Action edited this page May 16, 2023 · 3 revisions

Scripting options for the selected printer:

A::

  • GetPosFloat() - Reports current position in mm.
  • SetStall(bool) - Sets the stallguard value as specified.
  • ToggleStall() - Toggles the stallguard value.
  • WaitUntilInsideZoneMM(float, float) - Wait until the axis reaches the requested absolute position +/- margin (mm,mm).
  • WaitUntilOutsideZoneMM(float, float) - Wait until the axis moves away from the requested absolute position +/- margin (mm,mm).

B::

  • GetPosFloat() - Reports current position in mm.
  • SetStall(bool) - Sets the stallguard value as specified.
  • ToggleStall() - Toggles the stallguard value.
  • WaitUntilInsideZoneMM(float, float) - Wait until the axis reaches the requested absolute position +/- margin (mm,mm).
  • WaitUntilOutsideZoneMM(float, float) - Wait until the axis moves away from the requested absolute position +/- margin (mm,mm).

KeyCtl::

  • Key(string) - Simulates a keypress

ScriptHost::

  • Log(string) - Print the std::string to stdout
  • SetQuitOnTimeout(bool) - If 1, quits when a timeout occurs. Exit code will be non-zero.
  • SetTimeoutMs(int) - Sets a timeout for actions that wait for an event
  • WaitMs(int) - Wait the specified number of milliseconds. (10 ms resolution)

Z::

  • GetPosFloat() - Reports current position in mm.
  • SetStall(bool) - Sets the stallguard value as specified.
  • ToggleStall() - Toggles the stallguard value.
  • WaitUntilInsideZoneMM(float, float) - Wait until the axis reaches the requested absolute position +/- margin (mm,mm).
  • WaitUntilOutsideZoneMM(float, float) - Wait until the axis moves away from the requested absolute position +/- margin (mm,mm).

cs30bl::

  • SetA(float) - Sets the voltage readout to a given value.

encoder-input::

  • Push() - Presses the encoder
  • Reset() - Resets the printer
  • Twist(int) - Twists the encoder up(1)/down(-1)

fan::

  • GetRPM() - Reports the current RPM
  • Resume() - Resumes a stalled fan.
  • Stall() - Stalls the fan tachometer

fan1::

  • GetRPM() - Reports the current RPM
  • Resume() - Resumes a stalled fan.
  • Stall() - Stalls the fan tachometer

generic-spi-display::

  • Screenshot(string) - Takes a screenshot to the specified file.

hall-sensor::

  • Set(int) - Sets the hall sensor to the given value
  • Toggle() - Toggles hall filament sensor enum state

hall-sensor1::

  • Set(int) - Sets the hall sensor to the given value
  • Toggle() - Toggles hall filament sensor enum state

hall-sensor2::

  • Set(int) - Sets the hall sensor to the given value
  • Toggle() - Toggles hall filament sensor enum state

hall-sensor3::

  • Set(int) - Sets the hall sensor to the given value
  • Toggle() - Toggles hall filament sensor enum state

hall-sensor4::

  • Set(int) - Sets the hall sensor to the given value
  • Toggle() - Toggles hall filament sensor enum state

hall-sensor5::

  • Set(int) - Sets the hall sensor to the given value
  • Toggle() - Toggles hall filament sensor enum state

hx717::

  • Set(int) - Sets the load cell output to the given value

ir-sensor::

  • Set(bool) - Sets the IR sensor to the given value
  • Toggle() - Toggles IR sensor state

loadcell::

oc-latch::

  • Set() - Sets the overcurrent line to fault
  • Toggle() - Clears the overcurrent fault line

oc-latch1::

  • Set() - Sets the overcurrent line to fault
  • Toggle() - Clears the overcurrent fault line

oc-latch2::

  • Set() - Sets the overcurrent line to fault
  • Toggle() - Clears the overcurrent fault line

oc-latch3::

  • Set() - Sets the overcurrent line to fault
  • Toggle() - Clears the overcurrent fault line

oc-latch4::

  • Set() - Sets the overcurrent line to fault
  • Toggle() - Clears the overcurrent fault line

powersource::

  • SetPanic() - Trips the Power Panic line
  • SetV(float) - Sets the voltage readout to a given value.

powersource1::

  • SetPanic() - Trips the Power Panic line
  • SetV(float) - Sets the voltage readout to a given value.

thermistor::

  • Disconnect() - Disconnects the thermistor
  • GetTemp() - Prints the current temperature
  • Restore() - Restores the thermistor to normal (unshorted, heater-operated) state
  • Set(float) - Sets the temperature to a given value.
  • Short() - Shorts the thermistor

thermistor1::

  • Disconnect() - Disconnects the thermistor
  • GetTemp() - Prints the current temperature
  • Restore() - Restores the thermistor to normal (unshorted, heater-operated) state
  • Set(float) - Sets the temperature to a given value.
  • Short() - Shorts the thermistor

thermistor2::

  • Disconnect() - Disconnects the thermistor
  • GetTemp() - Prints the current temperature
  • Restore() - Restores the thermistor to normal (unshorted, heater-operated) state
  • Set(float) - Sets the temperature to a given value.
  • Short() - Shorts the thermistor

thermistor3::

  • Disconnect() - Disconnects the thermistor
  • GetTemp() - Prints the current temperature
  • Restore() - Restores the thermistor to normal (unshorted, heater-operated) state
  • Set(float) - Sets the temperature to a given value.
  • Short() - Shorts the thermistor

thermistor4::

  • Disconnect() - Disconnects the thermistor
  • GetTemp() - Prints the current temperature
  • Restore() - Restores the thermistor to normal (unshorted, heater-operated) state
  • Set(float) - Sets the temperature to a given value.
  • Short() - Shorts the thermistor End Scripting options