Simulation Core
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

DrillingConsole_ScrLEDs.i90 1.7 KiB

1 ano atrás
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