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.

DrillingConsole_ScrLEDs.f90 1.8 KiB

1 anno fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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