Torna al Thread
while (true)
{
string uscitedigitali = DO8.ToString() + DO7.ToString() + DO6.ToString() + DO5.ToString() + DO4.ToString() + DO3.ToString() + DO2.ToString() + DO1.ToString();
try
{
hex = uscitedigitali;
ODhex = String.Format("{0:X2}", Convert.ToInt32(hex, 2));
}
catch { }
// protocollo scrittura
protscritt = (">" + indasc + "w" + "FF" + "00" + "00" + ODhex + CheckSum(">" + indasc + "w" + "FF" + "00" + "00" + ODhex) + "!");
}