| 123456789101112131415161718192021222324252627282930313233 |
- using Prism.Mvvm;
- using System;
- namespace TeamAAS_VP.Models
- {
- /// <summary>
- /// Represent a PLC address entry mapping a variable name to its node/address string and type.
- /// </summary>
- public class PlcAddress : BindableBase
- {
- private int _PlcNo;
- /// <summary>
- /// PLC number used in system (int)
- /// </summary>
- public int PlcNo { get => _PlcNo; set => SetProperty(ref _PlcNo, value); }
- private string _Address;
- /// <summary>
- /// Address or node string used to access PLC (e.g. OP-UA node id or Modbus address)
- /// </summary>
- public string Address { get => _Address; set => SetProperty(ref _Address, value); }
- private string _DataType;
- /// <summary>
- /// Data type string (e.g. "Bool","Int32","Float","String")
- /// </summary>
- public string DataType { get => _DataType; set => SetProperty(ref _DataType, value); }
- private string _Description;
- public string Description { get => _Description; set => SetProperty(ref _Description, value); }
- }
- }
|