39 lines
926 B
C#
39 lines
926 B
C#
using System;
|
|
using System.Linq;
|
|
using AR;
|
|
using COMM;
|
|
|
|
namespace vmsnet
|
|
{
|
|
public partial class FMain
|
|
{
|
|
private void SPS_250ms()
|
|
{
|
|
if (VAR.isInit)
|
|
{
|
|
VAR.STR[EVarString.MCStatus] = PUB.sm.Step.ToString();
|
|
}
|
|
|
|
//셀정보자동저장
|
|
if (PUB.sm != null && PUB.sm.Step == ESMStep.RUN && PUB.CONFIG.savetermcellinfo > 0)
|
|
{
|
|
var ts_saveCellinfo = DateTime.Now - PUB.LastWindowCellinfoSaved;
|
|
if (ts_saveCellinfo.TotalMinutes > PUB.CONFIG.savetermcellinfo)
|
|
PUB.RaiseRemoteCommandEvent(rCommand.SaveGroupClass);
|
|
}
|
|
}
|
|
|
|
private void SPS_Max()
|
|
{
|
|
|
|
//상태머신의 가동상태
|
|
if (VAR.isInit)
|
|
{
|
|
VAR.BOOL.Set(EVarBool.SMRUN, PUB.sm.isRunning, "SPS");
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|