knitout_to_dat_python.dat_file_structure.raster_carriage_passes.Releasehook_Raster module

Module containing the Releasehook Raster Pass Class.

This module provides the Releasehook_Raster_Pass class, which extends the Soft_Miss_Raster_Pass to create specialized carriage passes for releasehook operations. These passes are used to release yarn carriers from the knitting machine’s yarn-inserting hook system.

class Releasehook_Raster_Pass(carrier_position: int, machine_specification: Knitting_Machine_Specification, min_knitting_slot: int, max_knitting_slot: int, stitch_number: int = 5, speed_number: int = 0, presser_setting: Presser_Setting_Color = Presser_Setting_Color.Off, pause: bool = False)[source]

Bases: Soft_Miss_Raster_Pass

Extension of Soft_Miss_Raster_Pass class for kickbacks for releasehook operations.

This class creates specialized raster passes for releasehook operations, which are used to release yarn carriers from the knitting machine’s yarn-inserting hook. All releasehook operations must move in the leftward direction and use specific hook operation settings.

Parameters:
  • carrier_position (int)

  • machine_specification (Knitting_Machine_Specification)

  • min_knitting_slot (int)

  • max_knitting_slot (int)

  • stitch_number (int, default: 5)

  • speed_number (int, default: 0)

  • presser_setting (Presser_Setting_Color, default: Presser_Setting_Color.Off)

  • pause (bool, default: False)

__init__(carrier_position: int, machine_specification: Knitting_Machine_Specification, min_knitting_slot: int, max_knitting_slot: int, stitch_number: int = 5, speed_number: int = 0, presser_setting: Presser_Setting_Color = Presser_Setting_Color.Off, pause: bool = False)[source]

Initialize a Releasehook_Raster_Pass.

Creates a raster pass that performs a releasehook operation at the specified carrier position. The operation is implemented as a leftward-moving kickback instruction with releasehook hook operation settings.

Parameters:
  • carrier_position (int) – The position of the carrier to be released from the hook.

  • machine_specification (Knitting_Machine_Specification) – The machine specification for the knitout file specified in the knitout header.

  • min_knitting_slot (int) – The minimum slot of knitting operations in this file.

  • max_knitting_slot (int) – The maximum slot of knitting operations in this file.

  • stitch_number (int, optional) – Current stitch setting. Defaults to 5.

  • speed_number (int, optional) – Current speed setting. Defaults to 0.

  • presser_setting (Presser_Setting_Color, optional) – Current presser mode setting. Defaults to Presser_Setting_Color.Off.

  • pause (bool, optional) – Whether this pass should pause. Defaults to False.

Note

All releasehook operations must be in a leftward direction.

carrier_position: int

The position of the carrier being released from the hook.

Type:

int