Simulation Core
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

DrillingConsole_ScrLEDs.f90 1.2 KiB

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