Files
vms2016_kadisp/cVMS.NET_CS/RunCode/_95_SPS.cs
chiDT f480b508b7 1. 환경설정에 window 파일 저장 주기 추가(단위:분)
2. window1(2).grp 파일 생성시 임시(.temp) 파일에 생성 후 원본을 덮어쓰기 함 (window 파일 손상시 프로그램에 치명적이므로 임시파일로 처리)
2025-07-01 22:30:18 +09:00

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");
}
}
}
}