Simulation Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
1.3 KiB

  1. MODULE TopDrive_VARIABLES
  2. IMPLICIT NONE
  3. PUBLIC
  4. REAL, PARAMETER :: pi=3.14159265d0
  5. !****************************************************************************************************
  6. !**************** Define Top Drive Array ****************************************************
  7. TYPE, PUBLIC :: TDS_Var
  8. !***** TopDrive_VARIABLES *************************
  9. INTEGER :: MotorFaileMalf , OverideTorqueLimitMalf , PowerState , OldPowerMode , DrillTorqueState
  10. REAL :: Speed, Inertia_Moment, Torque, RpmKnob, TorqueLimitKnob
  11. REAL :: Conv_Ratio, High_Conv_Ratio, Low_Conv_Ratio, RateChange, N_new, N_old, N_ref, TDS_wOld ! N[rpm] , w[rad/s]
  12. REAL :: RpmGaugeOutput, RPMUnityOutput, TorqueGaugeOutput, MaxRPM, MaxTorque
  13. REAL :: String_Torque, String_JCoef, J_coef
  14. REAL :: time_step
  15. INTEGER :: PowerLed ! 1=On , 0=Off
  16. INTEGER :: OperationFaultLed
  17. !************* Sound_VARIABLES **********************
  18. INTEGER :: SoundRPM
  19. Logical :: SoundBlower
  20. END TYPE TDS_Var
  21. TYPE(TDS_Var) :: TDS
  22. !***********************************************************************************************
  23. !****************************************************************************************************
  24. END MODULE