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.
 
 
 
 
 
 

30 lines
1.2 KiB

  1. # 1 "/home/admin/SimulationCore2/Equipments/RotaryTable/RTable_Outputs.f90"
  2. subroutine RTable_Outputs
  3. use CDrillingConsoleVariables
  4. use SimulationVariables
  5. use CDataDisplayConsole
  6. Use CSounds
  7. IMPLICIT NONE
  8. data%Equipments%DrillingConsole%RTBLWR = data%State%RTable%BLWR
  9. Call SetSoundBlowerRT(data%State%RTable%SoundBlower) !.true. or .false.
  10. Call SetSoundRT( data%State%RTable%SoundRPM ) ![RPM] , integer
  11. !data%State%RTable%Speed !to other modules
  12. Call Set_RotaryRPMGauge( sngl(1-data%State%RTable%RpmGaugeMalf)*real(data%State%RTable%RpmGaugeOutput,8) ) ![RPM]
  13. data%Equipments%DataDisplayConsole%RotaryTorqueGauge = data%State%RTable%TorqueGaugeOutput ![ft.lbf]
  14. data%Equipments%DrillingWatch%Torque = data%State%RTable%TorqueGaugeOutput
  15. Call Set_RotaryTorque(sngl(1-data%State%RTable%TorqueGaugeMalf)*real(data%State%RTable%TorqueGaugeOutput,8)) ![ft.lbf]
  16. !RT_RPMUnityOutput = sngl(data%State%RTable%Switch)*-1.d0*RotaryRPMGauge
  17. end subroutine RTable_Outputs