Here's my ExecCommand call: int opcode = 6001; int value = 0; // Restore Defaults; string inXML = "" + $"{ScannerID}" + "" + $"{value}" + "" + ""; cCoreScannerClass.ExecCommand(opcode, inXML, out outXML, out _status); my "inXML" after formatting: 30