

_estopStatus = ReadWriteRegister(27, 0, false) = 0 ? false : true _linkLiveEnabled = ReadWriteRegister(25, 0, false) _safeState = ReadWriteRegister(26, 0, false) _becVoltage = ReadWriteRegister(7, 0, false) / 2042 / 0.25

_ampHours += ((TimeSpan)(DateTime.Now - _lastReading)).TotalHours * _current If (!_lastReading.Equals(DateTime.MinValue)) _rippleVoltage = ReadWriteRegister(1, 0, false) / 2042 / 0.25 ReadWriteRegister(128, _throttleOut, true) //_throttleOut is 0 to 65535 This code snippit will get and convert all the data (Call continuously) How do I convert it to Arduino? I’m mainly troubled by the serial parts - converting byte command = new byte etc…Īny help would be appreciated. Hi, I’ve got the code below which is in C++.
