コード例 #1
0
 /// <summary>
 /// Set local value Float
 /// </summary>
 /// <param name="value"></param>
 /// <param name="offset"></param>
 public void SetFloat64(double value, int offset = 0)
 {
     NativeLibrary.plc_tag_set_float64(_tag.Handle, offset, value);
 }
コード例 #2
0
 public static string DecodeError(int code)
 {
     return(Marshal.PtrToStringAnsi(NativeLibrary.plc_tag_decode_error(code)));
 }
コード例 #3
0
 /// <summary>
 /// Get local value Float32
 /// </summary>
 /// <param name="offset"></param>
 /// <returns></returns>
 public float GetFloat32(int offset = 0)
 {
     return(NativeLibrary.plc_tag_get_float32(_tag.Handle, offset));
 }
コード例 #4
0
 /// <summary>
 /// Get local value Float
 /// </summary>
 /// <param name="offset"></param>
 /// <returns></returns>
 public double GetFloat64(int offset = 0)
 {
     return(NativeLibrary.plc_tag_get_float64(_tag.Handle, offset));
 }
コード例 #5
0
 /// <summary>
 /// Set local value Int64
 /// </summary>
 /// <param name="value"></param>
 /// <param name="offset"></param>
 public void SetInt64(Int64 value, int offset = 0)
 {
     NativeLibrary.plc_tag_set_int64(_tag.Handle, offset, value);
 }
コード例 #6
0
 /// <summary>
 /// Get local value Int64
 /// </summary>
 /// <param name="offset"></param>
 /// <returns></returns>
 public Int64 GetInt64(int offset = 0)
 {
     return(NativeLibrary.plc_tag_get_int64(_tag.Handle, offset));
 }
コード例 #7
0
 /// <summary>
 /// Set local value UInt32
 /// </summary>
 /// <param name="value"></param>
 /// <param name="offset"></param>
 public void SetUInt32(UInt32 value, int offset = 0)
 {
     NativeLibrary.plc_tag_set_uint32(_tag.Handle, offset, value);
 }
コード例 #8
0
 /// <summary>
 /// Get local value UInt32
 /// </summary>
 /// <param name="offset"></param>
 /// <returns></returns>
 public UInt32 GetUInt32(int offset = 0)
 {
     return(NativeLibrary.plc_tag_get_uint32(_tag.Handle, offset));
 }
コード例 #9
0
 /// <summary>
 /// Get local value Int8
 /// </summary>
 /// <param name="offset"></param>
 /// <returns></returns>
 public sbyte GetInt8(int offset = 0)
 {
     return(NativeLibrary.plc_tag_get_int8(_tag.Handle, offset));
 }