knitout_to_dat_python.dat_file_structure.raster_carriage_passes.Outhook_Raster module
Module for the Outhook_Raster_Pass class.
This module provides the Outhook_Raster_Pass class, which creates a specialized soft-miss carriage pass specifically designed for outhook operations. It extends the Soft_Miss_Raster_Pass to handle yarn carrier outhook functionality.
- class Outhook_Raster_Pass(carrier_position, carrier_id, machine_specification, min_knitting_slot, max_knitting_slot, stitch_number=5, speed_number=0, presser_setting=Off, pause=False)[source]
Bases:
Soft_Miss_Raster_PassUsed to create a soft-miss carriage pass to outhook a carrier.
This class creates a specialized raster pass for outhook operations, which are used to release yarn carriers from the knitting machine’s yarn-inserting hook. The pass is implemented as a soft-miss operation with specific hook operation settings and always moves in the rightward direction.
- __init__(carrier_position, carrier_id, machine_specification, min_knitting_slot, max_knitting_slot, stitch_number=5, speed_number=0, presser_setting=Off, pause=False)[source]
Initialize an Outhook_Raster_Pass.
Creates a raster pass that performs an outhook operation for a specific yarn carrier. The operation is implemented as a rightward-moving kickback instruction with outhook hook operation settings.
- Parameters:
carrier_position (
int) – The position of the carrier to be outhooked.carrier_id (
int) – The ID of the carrier to be outhooked.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.