Пример #1
0
 public void ResetFault()
 {
     BroadcastData.UpdateData(0, 2);
     //WriteUpdate(0, 0, new ushort[] { 2 });
     //mOutputData[0] = 2;
     //Frequency(100);
 }
Пример #2
0
        public void On(bool isBroadcast)
        {
            //if (Status == EngineStatus.Stopped)
            {
                //mOutputData[0] = 1;
                //WriteUpdate((byte)(isBroadcast ? 0 : mModbusId), 0, new ushort[] { 1 });

                if (isBroadcast)
                {
                    BroadcastData.UpdateData(0, 1);
                }
                else
                {
                    /*
                     * if (Engine.Mode == EngineMode.Conveyor)
                     * {
                     *  UnicastData.UpdateData(0, 1);
                     * }
                     * else
                     *  mJournal.Debug("Cann't switch-on single invertor at non-Conveyor mode", MessageLevel.System);
                     */
                    //UnicastData.UpdateData(0, 1);
                }
            }
        }