2. window1(2).grp 파일 생성시 임시(.temp) 파일에 생성 후 원본을 덮어쓰기 함 (window 파일 손상시 프로그램에 치명적이므로 임시파일로 처리)
39 lines
878 B
C#
39 lines
878 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.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");
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
}
|