using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GcDevicePc.GCBuffer
{
    class HMIBuffer
    {
        public struct hmiinfo
        {
            /// <summary>
            /// 方法相关
            /// </summary>
            public ushort batno;
            public ushort batruncount;
            public ushort oneruntime;
            public ushort singlerun;
            public ushort batrun;
            public ushort methodstatus;
            public ushort waitstart;
            public ushort hmistatus;
            public ushort runtime;

            /// <summary>
            /// 10路继电器
            /// </summary>
            public byte[] TenRelay; 
        }

        public hmiinfo gcinfo = new hmiinfo();

        public HMIBuffer()
        {
            gcinfo.batno = 0;
            gcinfo.batruncount = 0;
            gcinfo.oneruntime = 0;
            gcinfo.singlerun = 0;
            gcinfo.methodstatus = 0;
            gcinfo.waitstart = 0;
            gcinfo.hmistatus = 0;
            gcinfo.runtime = 0;
            gcinfo.TenRelay = new byte[10];
        }

        ~HMIBuffer()
        {

        }

    }
}
