Esempio n. 1
0
 /// <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)));
 }
Esempio n. 2
0
 /// <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));
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 /// <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);
 }
Esempio n. 5
0
 /// <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));
 }
Esempio n. 6
0
 /// <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));
 }
Esempio n. 7
0
 /// <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));
 }
Esempio n. 8
0
 /// <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);
 }
Esempio n. 9
0
 /// <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);
 }
Esempio n. 10
0
 /// <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));
 }
Esempio n. 11
0
 /// <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);
 }
Esempio n. 12
0
 /// <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));
 }