﻿<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1">
  <DUT Name="ConfigSpool" Id="{9497bb1a-bccc-05c8-1de3-5a0079b7f0e4}">
    <Declaration><![CDATA[TYPE ConfigSpool :
	STRUCT
		name							: p6com.P6IdName;		// Name for spooling unit. Its a function for HMI
		option_Enable					: BOOL := TRUE;	 		// Used for enable or disable spooling. will work in mauual regardless
		ErrorMax						: LREAL := 1E6;					// alarm limit for PID error
		PID				 				: p6com.ConfigPID; 				// PID for threaded spooling
		PIDFollowUp 					: p6com.ConfigPID; 				// PID for follow up spooling
		followUpSensorCenter			: LREAL; 						// Raw value in center for the followup lin sensor
		followUpSensorMaxMotorEnd		: LREAL; 						// Raw value for max deflection motor end (negative)
		followUpSensorMaxBearingEnd		: LREAL; 						// Raw value for max deflection bearing end (positive)
		followUpSensorDeadband			: LREAL := 0.05; 				// How much off center before spooling starts (0-1)
		spoolType						: SpoolingType := SpoolingType.SINGLE_THREAD;
		speedManual 					: LREAL := 500.0; 				// [RPM]
		torqueRel						: LREAL := 1.0; 				// Torque of the motor 
		torqueRelManual 				: LREAL := 0.2; 				// Torque of the motor in manual mode
		screwPitch						: LREAL := 0.08; 				// Pitch in m per rev
		activityTime					: TIME 	:= T#30S;				// Activity time after a stop command
		
	END_STRUCT
END_TYPE


]]></Declaration>
  </DUT>
</TcPlcObject>