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.

RTable_Outputs.f90 1.3 KiB

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