private void CreateObjects()
        {
            _state = _memory.CreateIntMemory(0x143 + _polisherNumber);

            _magazineId = _memory.CreateStringMemory(0x150 + ((_polisherNumber) * 64), 4);
            _plates = new List<PolisherPlateSimulator>();
            _plates.Add(new PolisherPlateSimulator(_memory, _polisherNumber, 0));
            _plates.Add(new PolisherPlateSimulator(_memory, _polisherNumber, 1));
            _plates.Add(new PolisherPlateSimulator(_memory, _polisherNumber, 2));
            _plates.Add(new PolisherPlateSimulator(_memory, _polisherNumber, 3));

            _highPressureGlobal = _memory.CreateBoolMemory(0x140 + _polisherNumber, 1);
            _highPressure = _memory.CreateBoolMemory(0x164 + (_polisherNumber * 64), 1);
            _highPressureDuration = _memory.CreateIntMemory(0x165 + (_polisherNumber * 64));
            _liquid = new PolisherLiquidSimulator(_memory, _polisherNumber);

            _heads = new List<PolisherHeadSimulator>();
            _heads.Add(new PolisherHeadSimulator(_memory, _polisherNumber, 0));
            _heads.Add(new PolisherHeadSimulator(_memory, _polisherNumber, 1));
            _heads.Add(new PolisherHeadSimulator(_memory, _polisherNumber, 2));
            _heads.Add(new PolisherHeadSimulator(_memory, _polisherNumber, 3));

            _plateRpm = _memory.CreateIntMemory(0x17B + (_polisherNumber * 64));
            _plateLoadCurrent = _memory.CreateDoubleMemory(0x180 + (_polisherNumber * 64), 1);

            _padUsedTime = _memory.CreateIntMemory(0x185 + (_polisherNumber * 64));
            _padUsedCount = _memory.CreateIntMemory(0x186 + (_polisherNumber * 64));
        }
Example #2
0
 public static PolisherLiquidSimulator_Accessor GetPolisherLiquidSimulator(PlcMemory memory, int polisherNumber,
     double padTemp, double coolingWaterInTemp, double coolingWaterOutTemp, double slurryInTemp, double slurryOutTemp,
     double rinseTemp, double collingWafetAmount, double slurryAmount, double rinseAmount)
 {
     PolisherLiquidSimulator privateTarget = new PolisherLiquidSimulator(memory, polisherNumber)
     {
         PadTemp = padTemp,
         CoolingWaterInTemp = coolingWaterInTemp,
         CoolingWaterOutTemp = coolingWaterOutTemp,
         SlurryInTemp = slurryInTemp,
         SlurryOutTemp = slurryOutTemp,
         RinseTemp = rinseTemp,
         CoolingWaterAmount = collingWafetAmount,
         SlurryAmount = slurryAmount,
         RinseAmount = rinseAmount
     };
     return new PolisherLiquidSimulator_Accessor(new PrivateObject(privateTarget, new PrivateType(typeof(PolisherLiquidSimulator))));
 }