Exemplo 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)));
 }
Exemplo 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));
 }
Exemplo 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);
 }
Exemplo 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);
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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);
 }
Exemplo 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);
 }
Exemplo 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));
 }
Exemplo 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);
 }
Exemplo 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));
 }