subroutine DrillingConsole_ScrLEDs use CDrillingConsoleVariables use SimulationVariables use SimulationVariables use SimulationVariables !@ IMPLICIT NONE !===> Torque Limit 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 ?????? if((any(data%EquipmentControl%DrillingConsole%AssignmentSwitch==(/1,2,3,4,8,9,10,11/)))) then data%EquipmentControl%DrillingConsole%SCR1LED=1 data%EquipmentControl%DrillingConsole%SCR2LED=1 data%EquipmentControl%DrillingConsole%SCR3LED=1 data%EquipmentControl%DrillingConsole%SCR4LED=1 else if (data%EquipmentControl%DrillingConsole%AssignmentSwitch == 5) then data%EquipmentControl%DrillingConsole%SCR1LED=1 data%EquipmentControl%DrillingConsole%SCR2LED=1 data%EquipmentControl%DrillingConsole%SCR3LED=0 data%EquipmentControl%DrillingConsole%SCR4LED=1 else if (data%EquipmentControl%DrillingConsole%AssignmentSwitch == 7) then data%EquipmentControl%DrillingConsole%SCR1LED=1 data%EquipmentControl%DrillingConsole%SCR2LED=1 data%EquipmentControl%DrillingConsole%SCR3LED=1 data%EquipmentControl%DrillingConsole%SCR4LED=0 else data%EquipmentControl%DrillingConsole%SCR1LED=0 data%EquipmentControl%DrillingConsole%SCR2LED=0 data%EquipmentControl%DrillingConsole%SCR3LED=0 data%EquipmentControl%DrillingConsole%SCR4LED=0 end if end subroutine DrillingConsole_ScrLEDs