Simulation Core
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

53 satır
1.7 KiB

  1. # 1 "/home/admin/SimulationCore2/Equipments/DrillingConsole_ScrLEDs.f90"
  2. subroutine DrillingConsole_ScrLEDs
  3. use CDrillingConsoleVariables
  4. use SimulationVariables
  5. use SimulationVariables
  6. use SimulationVariables !@
  7. IMPLICIT NONE
  8. !===> Torque Limit
  9. 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 ??????
  10. if((any(data%Equipments%DrillingConsole%AssignmentSwitch==(/1,2,3,4,8,9,10,11/)))) then
  11. data%Equipments%DrillingConsole%SCR1LED=1
  12. data%Equipments%DrillingConsole%SCR2LED=1
  13. data%Equipments%DrillingConsole%SCR3LED=1
  14. data%Equipments%DrillingConsole%SCR4LED=1
  15. else if (data%Equipments%DrillingConsole%AssignmentSwitch == 5) then
  16. data%Equipments%DrillingConsole%SCR1LED=1
  17. data%Equipments%DrillingConsole%SCR2LED=1
  18. data%Equipments%DrillingConsole%SCR3LED=0
  19. data%Equipments%DrillingConsole%SCR4LED=1
  20. else if (data%Equipments%DrillingConsole%AssignmentSwitch == 7) then
  21. data%Equipments%DrillingConsole%SCR1LED=1
  22. data%Equipments%DrillingConsole%SCR2LED=1
  23. data%Equipments%DrillingConsole%SCR3LED=1
  24. data%Equipments%DrillingConsole%SCR4LED=0
  25. else
  26. data%Equipments%DrillingConsole%SCR1LED=0
  27. data%Equipments%DrillingConsole%SCR2LED=0
  28. data%Equipments%DrillingConsole%SCR3LED=0
  29. data%Equipments%DrillingConsole%SCR4LED=0
  30. end if
  31. end subroutine DrillingConsole_ScrLEDs