public CTempLevelsData_SOLD(int NumLevels)
 {
     LevelsOnOff      = OnOff._OFF;
     LevelsTempSelect = (ToolTemperatureLevels)0;
     LevelsTemp       = new CTemperature[NumLevels - 1 + 1];
     LevelsTempOnOff  = new OnOff[NumLevels - 1 + 1];
     for (int index = 0; index <= NumLevels - 1; index++)
     {
         LevelsTemp[index]      = new CTemperature();
         LevelsTempOnOff[index] = OnOff._OFF;
     }
 }
Beispiel #2
0
        public CTemperature GetPortToolTempLevel(Port port, GenericStationTools tool,
                                                 ToolTemperatureLevels level)
        {
            int index = getToolIndex(tool);

            if (index > -1 && level != ToolTemperatureLevels.NO_LEVELS)
            {
                return(new CTemperature(stack.Info_Port[(int)port].ToolSettings[index].Levels.LevelsTemp[(int)level].UTI));
            }
            else
            {
                return(new CTemperature(0));
            }
        }
Beispiel #3
0
 public async Task SetPortToolLevelsAsync(Port port, GenericStationTools tool, OnOff LevelsOnOff, ToolTemperatureLevels LevelSelected, OnOff Level1OnOff, CTemperature Level1Temp, int Level1Flow, CTemperature Level1ExtTemp, OnOff Level2OnOff, CTemperature Level2Temp, int Level2Flow, CTemperature Level2ExtTemp, OnOff Level3OnOff, CTemperature Level3Temp, int Level3Flow, CTemperature Level3ExtTemp)
 {
     await stack.WriteLevelsTempsAsync(port, tool, LevelsOnOff, LevelSelected, Level1OnOff, new CTemperature(Level1Temp.UTI), Level1Flow, new CTemperature(Level1ExtTemp.UTI), Level2OnOff, new CTemperature(Level2Temp.UTI), Level2Flow, new CTemperature(Level2ExtTemp.UTI), Level3OnOff, new CTemperature(Level3Temp.UTI), Level3Flow, new CTemperature(Level3ExtTemp.UTI));
 }
Beispiel #4
0
 public async Task SetPortToolTempLevelEnabledAsync(Port port, GenericStationTools tool, ToolTemperatureLevels level, OnOff onoff)
 {
     await stack.WriteLevelTempEnabledAsync(port, tool, level, onoff);
 }
Beispiel #5
0
 public async Task SetPortToolTempLevelAsync(Port port, GenericStationTools tool,
                                             ToolTemperatureLevels level, CTemperature temperature)
 {
     await stack.WriteLevelTempAsync(port, tool, level, new CTemperature(temperature.UTI));
 }
Beispiel #6
0
        public OnOff GetPortToolTempLevelEnabled(Port port, GenericStationTools tool, ToolTemperatureLevels level)
        {
            int index = getToolIndex(tool);

            if (index > -1 && level != ToolTemperatureLevels.NO_LEVELS)
            {
                return((OnOff)(stack.Info_Port[(int)port].ToolSettings[index].Levels.LevelsTempOnOff[(int)level]));
            }
            return(OnOff._OFF);
        }
Beispiel #7
0
 public async Task SetPortToolSelectedTempLevelsAsync(Port port, GenericStationTools tool,
                                                      ToolTemperatureLevels level)
 {
     await stack.WriteSelectedLevelAsync(port, tool, level);
 }