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.
 
 
 
 
 
 

51 rivejä
1.8 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%EquipmentControl%DrillingConsole%RTTorqueLimitGauge = sngl(1-data%State%RTable%TorqueLimitGaugeMalf)*(data%EquipmentControl%DrillingConsole%RTTorqueLimitKnob/10.d0)*7000.d0 !tabdile bazeye 0-10 be 0-7000 taghribi anjam shode, baadan eslah shavad ??????
  9. if((any(data%EquipmentControl%DrillingConsole%AssignmentSwitch==(/1,2,3,4,8,9,10,11/)))) then
  10. data%EquipmentControl%DrillingConsole%SCR1LED=1
  11. data%EquipmentControl%DrillingConsole%SCR2LED=1
  12. data%EquipmentControl%DrillingConsole%SCR3LED=1
  13. data%EquipmentControl%DrillingConsole%SCR4LED=1
  14. else if (data%EquipmentControl%DrillingConsole%AssignmentSwitch == 5) then
  15. data%EquipmentControl%DrillingConsole%SCR1LED=1
  16. data%EquipmentControl%DrillingConsole%SCR2LED=1
  17. data%EquipmentControl%DrillingConsole%SCR3LED=0
  18. data%EquipmentControl%DrillingConsole%SCR4LED=1
  19. else if (data%EquipmentControl%DrillingConsole%AssignmentSwitch == 7) then
  20. data%EquipmentControl%DrillingConsole%SCR1LED=1
  21. data%EquipmentControl%DrillingConsole%SCR2LED=1
  22. data%EquipmentControl%DrillingConsole%SCR3LED=1
  23. data%EquipmentControl%DrillingConsole%SCR4LED=0
  24. else
  25. data%EquipmentControl%DrillingConsole%SCR1LED=0
  26. data%EquipmentControl%DrillingConsole%SCR2LED=0
  27. data%EquipmentControl%DrillingConsole%SCR3LED=0
  28. data%EquipmentControl%DrillingConsole%SCR4LED=0
  29. end if
  30. end subroutine DrillingConsole_ScrLEDs