private byte[] SetHalfWordSuperCommand(ushort value, uint memoryAddress)
{
byte[] stuff = new byte[12];
for (int i = 0; i < 2; i++)
{
stuff[i * 6] = 0x2E;
for (int j = 0; j < 4; j++)
{
stuff[((i * 6) + 1) + j] = Byte.Parse(ToDecimal("0x" + (memoryAddress + i).ToString("X8").Substring(8 - ((j * 2) + 2), 2)));
}
stuff[(i * 6) + 5] = Byte.Parse(ToDecimal("0x" + value.ToString("X4").Substring(4 - ((i * 2) + 2), 2)));
}
return stuff;
}