using S7.Net;

namespace IOB_WIN
{
    /// <summary>
    /// Implementazione classe connessione SIEMENS con S7.net,
    /// comprensiva dei parametri delle aree di memoria
    /// </summary>
    public class connParamS7
    {
        #region Public Fields

        /// <summary>
        /// Indirizzo IP del PLC
        /// </summary>
        public string ipAdrr = "";

        /// <summary>
        /// Base area x lettura
        /// </summary>
        public string memAddrRead = "";

        /// <summary>
        /// Base area x scrittura
        /// </summary>
        public string memAddrWrite = "";

        /// <summary>
        /// Size memoria lettura
        /// </summary>
        public int memSizeRead = 0;

        /// <summary>
        /// Size memoria scrittura
        /// </summary>
        public int memSizeWrite = 0;

        /// <summary>
        /// Timeout ping
        /// </summary>
        public int pingMsTimeout = 250;

        /// <summary>
        /// Rack comunicazione
        /// </summary>
        public short rack = 0;

        /// <summary>
        /// Slot comunicazione
        /// </summary>
        public short slot = 0;

        /// <summary>
        /// Tipo CPU Siemens
        /// </summary>
        public CpuType tipoCpu = CpuType.S7300;

        #endregion Public Fields
    }
}