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.

Drawworks_Outputs.i90 1.5 KiB

1 year ago
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # 1 "/mnt/c/Projects/VSIM/SimulationCore2/Equipments/Drawworks/Drawworks_Outputs.f90"
  2. subroutine Drawworks_Outputs
  3. Use CSounds
  4. use CHook
  5. use SimulationVariables
  6. use CWarnings
  7. use SimulationVariables !@
  8. use CDrillingConsoleVariables
  9. use SimulationVariables
  10. use SimulationVariables
  11. IMPLICIT NONE
  12. data%Equipments%DrillingConsole%DWBLWR = data%State%Drawworks%BLWR
  13. Call SetSoundBlowerDW( data%State%Drawworks%SoundBlower ) !.true. or .false.
  14. Call SetSoundDwRev( data%State%Drawworks%SoundRev ) ![rpm] ??? or rad/s, Integer
  15. Call SetSoundDwFw( data%State%Drawworks%SoundFw ) ![rpm] , Integer
  16. Call SetSoundCrownCollision( data%State%Drawworks%SoundCrownCollision ) !.true. or .false.
  17. Call SetSoundFloorCollision( data%State%Drawworks%SoundFloorCollision ) !.true. or .false.
  18. if (data%State%Drawworks%CrownCollision==1) then
  19. Call Activate_CrownCollision()
  20. end if
  21. if (data%State%Drawworks%FloorCollision==1) then
  22. Call Activate_FloorCollision()
  23. end if
  24. Call Set_HookHeight( real(data%State%Drawworks%Hook_Height_final) ) ![ft]
  25. data%State%Drawworks%TDHookHeight = data%State%Drawworks%Hook_Height_final ![ft]
  26. !!data%State%Drawworks%HookHeight_graph_output
  27. !data%Equipments%DrillingConsole%ParkingBrakeLed = 0 ! in Drawworks_Inputs
  28. end subroutine Drawworks_Outputs