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.
 
 
 
 
 
 

49 rivejä
931 B

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