Simulation Core
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

51 righe
1.7 KiB

  1. subroutine DrillingConsole_ScrLEDs
  2. use CDrillingConsoleVariables
  3. use SimulationVariables
  4. use SimulationVariables
  5. use SimulationVariables !@
  6. IMPLICIT NONE
  7. !===> Torque Limit
  8. data%Equipments%DrillingConsole%RTTorqueLimitGauge = sngl(1-data%State%RTable%TorqueLimitGaugeMalf)*(data%Equipments%DrillingConsole%RTTorqueLimitKnob/10.d0)*7000.d0 !tabdile bazeye 0-10 be 0-7000 taghribi anjam shode, baadan eslah shavad ??????
  9. if((any(data%Equipments%DrillingConsole%AssignmentSwitch==(/1,2,3,4,8,9,10,11/)))) then
  10. data%Equipments%DrillingConsole%SCR1LED=1
  11. data%Equipments%DrillingConsole%SCR2LED=1
  12. data%Equipments%DrillingConsole%SCR3LED=1
  13. data%Equipments%DrillingConsole%SCR4LED=1
  14. else if (data%Equipments%DrillingConsole%AssignmentSwitch == 5) then
  15. data%Equipments%DrillingConsole%SCR1LED=1
  16. data%Equipments%DrillingConsole%SCR2LED=1
  17. data%Equipments%DrillingConsole%SCR3LED=0
  18. data%Equipments%DrillingConsole%SCR4LED=1
  19. else if (data%Equipments%DrillingConsole%AssignmentSwitch == 7) then
  20. data%Equipments%DrillingConsole%SCR1LED=1
  21. data%Equipments%DrillingConsole%SCR2LED=1
  22. data%Equipments%DrillingConsole%SCR3LED=1
  23. data%Equipments%DrillingConsole%SCR4LED=0
  24. else
  25. data%Equipments%DrillingConsole%SCR1LED=0
  26. data%Equipments%DrillingConsole%SCR2LED=0
  27. data%Equipments%DrillingConsole%SCR3LED=0
  28. data%Equipments%DrillingConsole%SCR4LED=0
  29. end if
  30. end subroutine DrillingConsole_ScrLEDs