public void Write16(int Address, int Data) { try { if (!m_Adapter.Connected) { throw new InvalidOperationException("No connection to device"); } m_Adapter.Write16((ushort)NodeID, (ushort)Address, (ushort)Data); } catch (Exception e) { Console.WriteLine(e.Message); throw; } }
internal void Write16(ushort Node, ushort Address, ushort Value) { if (m_IsAdapterEmulation) { return; } try { m_Adapter.Write16(Node, Address, Value); } catch (Exception ex) { throw new Exception(string.Format(Resources.Error_IOAdapter_Operation_Node_Address_Value_Message, Node, Address, Value, ex.Message, @"@Write16")); } }