internal override void ConvertData(IEECmdConverters protConverters) { // Build following measurand codes int idx = 1; foreach (MVCode mvc in _assignedMeasurands) { byte byValue; if (_mvCodesNumberTranslationNeeded) { byValue = protConverters.MVCodeToEE31MVIndex(mvc); } else { if (MVCode.INVALID == mvc) { byValue = 0xFF; } else { byValue = (byte)mvc; } } base.CmdData[idx++] = byValue; } }
internal override void ConvertData(IEECmdConverters protConverters) { if (_noConversion) { return; } // Translate MVCode to index if neccessary for (int i = 0; i < base.CmdData.Length; i += 2) { base.CmdData[i] = protConverters.MVCodeToEE31MVIndex((MVCode)base.CmdData[i]); } }
internal override void ConvertData(IEECmdConverters protConverters) { // Translate MVCode to index if neccessary base.CmdData[0] = protConverters.MVCodeToEE31MVIndex((MVCode)base.CmdData[0]); base.CmdData[1] = protConverters.MVCodeToEE31MVIndex((MVCode)base.CmdData[1]); }