private void CreateObjects() { _force = _memory.CreateIntMemory(0x166 + (_offsetPolisher * 64) + _offsetHead); _pressure = _memory.CreateDoubleMemory(0x173 + (_offsetPolisher * 64) + _offsetHead, 3); _backpressure = _memory.CreateDoubleMemory(0x177 + (_offsetPolisher * 64) + _offsetHead, 2); _rpm = _memory.CreateIntMemory(0x17C + (_offsetPolisher * 64) + _offsetHead); _loadCurrent = _memory.CreateDoubleMemory(0x181 + (_offsetPolisher * 64) + _offsetHead, 1); }
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)); }