47 lines
1.1 KiB
C#
47 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Project
|
|
{
|
|
public partial class FMain
|
|
{
|
|
/// <summary>
|
|
/// 프로그램을 닫을때 1회 실행되는 함수
|
|
/// </summary>
|
|
private void _Close_Start()
|
|
{
|
|
//연결체크용 쓰레드 종료
|
|
bRunConnection = false;
|
|
this.thConnection.Abort();
|
|
|
|
|
|
//Light off 220714
|
|
DIO.SetRoomLight(false, true);
|
|
|
|
//Pub.dio.SetOutput((int)eDOName.ABRUN, false); //stop mgz loader a/c motor
|
|
PUB.log.Add("Program Close");
|
|
PUB.LogFlush();
|
|
|
|
//키엔트추가 210114
|
|
|
|
if(PUB.keyenceF != null)
|
|
{
|
|
PUB.keyenceF.ExecCommand("QUIT");
|
|
PUB.keyenceF.Dispose();
|
|
}
|
|
if(PUB.keyenceR != null)
|
|
{
|
|
PUB.keyenceR.ExecCommand("QUIT");
|
|
PUB.keyenceR.Dispose();
|
|
}
|
|
|
|
PUB.dio.StopMonitor();
|
|
PUB.mot.StopMonitor();
|
|
PUB.sm.Stop();
|
|
}
|
|
}
|
|
}
|