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.

DrillingConsole_ScrLEDs.i90 1.7 KiB

1 vuosi sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # 1 "/mnt/c/Projects/VSIM/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