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.
 
 
 
 
 
 

28 lines
1.1 KiB

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