/// <summary> /// Decode error. /// </summary> /// <param name="code">Error code</param> /// <returns></returns> public static string DecodeError(int code) { return(Marshal.PtrToStringAnsi(NativeMethod.plc_tag_decode_error(code))); }
/// <summary> /// Get local value Float /// </summary> /// <param name="offset"></param> /// <returns></returns> public double GetFloat64(int offset = 0) { return(NativeMethod.plc_tag_get_float64(_tag.Handle, offset)); }
/// <summary> /// Set local value Float /// </summary> /// <param name="value"></param> /// <param name="offset"></param> public void SetFloat64(double value, int offset = 0) { NativeMethod.plc_tag_set_float64(_tag.Handle, offset, value); }
/// <summary> /// Set local value Int64 /// </summary> /// <param name="value"></param> /// <param name="offset"></param> public void SetInt64(long value, int offset = 0) { NativeMethod.plc_tag_set_int64(_tag.Handle, offset, value); }
/// <summary> /// Get local value Float32 /// </summary> /// <param name="offset"></param> /// <returns></returns> public float GetFloat32(int offset = 0) { return(NativeMethod.plc_tag_get_float32(_tag.Handle, offset)); }
/// <summary> /// Get local value Int32 /// </summary> /// <param name="offset"></param> /// <returns></returns> public int GetInt32(int offset = 0) { return(NativeMethod.plc_tag_get_int32(_tag.Handle, offset)); }
/// <summary> /// Get local value Int64 /// </summary> /// <param name="offset"></param> /// <returns></returns> public long GetInt64(int offset = 0) { return(NativeMethod.plc_tag_get_int64(_tag.Handle, offset)); }
/// <summary> /// Set local value UInt32 /// </summary> /// <param name="value"></param> /// <param name="offset"></param> public void SetUInt32(uint value, int offset = 0) { NativeMethod.plc_tag_set_uint32(_tag.Handle, offset, value); }
/// <summary> /// Set local value Int8 /// </summary> /// <param name="value"></param> /// <param name="offset"></param> public void SetInt8(sbyte value, int offset = 0) { NativeMethod.plc_tag_set_int8(_tag.Handle, offset, value); }
/// <summary> /// Get local value Int8 /// </summary> /// <param name="offset"></param> /// <returns></returns> public sbyte GetInt8(int offset = 0) { return(NativeMethod.plc_tag_get_int8(_tag.Handle, offset)); }
/// <summary> /// Set local value Int16 /// </summary> /// <param name="value"></param> /// <param name="offset"></param> public void SetInt16(short value, int offset = 0) { NativeMethod.plc_tag_set_int16(_tag.Handle, offset, value); }
/// <summary> /// Get local value Int16 /// </summary> /// <param name="offset"></param> /// <returns></returns> public short GetInt16(int offset = 0) { return(NativeMethod.plc_tag_get_int16(_tag.Handle, offset)); }