레이저 발진기 교체(임시 Core/Ring 2대 -> 본 레이저 Max MFMC-2000/2000M 1대)에 따른 IO 재정의. 현장 적용 후 정상 동작 확인. - ePrismaticDIAddress / ePrismaticDOAddress 를 본 레이저 38핀 커넥터 매뉴얼 기준으로 재정의. 상태 신호 8개 -> 4개. 도면(엑셀) 라벨 오기도 함께 정정 (Laser_FIRE -> Laser_MAIN_PWR_STATE) - PAIX_PTOP / SeqAutoRunPTOP 의 중복 enum 정의 제거. WeldingCommon 의 PAIX_PrismaticScanner 를 IO 채널 번호의 단일 소스로 통일 - 발진 게이트를 Core/Ring_Control 2발 -> Laser_REMOTE 1발로 변경 (ExecuteWelding ON/OFF, 정지 시 해제) - DO 8 충돌 제거: Auto 시작 시 PCLBADReadyStatus(=8) write 삭제. 본 레이저 배선에서 DO 8 = Laser_AC_KEY 라 그대로 두면 Auto 시작이 레이저 AC KEY 릴레이를 켠다. LBAD 는 미등록 디바이스라 무의미 - GetLaserReady() 를 Laser_READY 단독 판정으로 변경 - 가이드빔 DO 를 EX_Red_Control -> Laser_GUIDE_BEAM_CONTROL 로 전환 - IO Board 에 설정 화면(UCIOInterfaceView) 연결 - IsLaserReady 표시를 DO Laser_REMOTE 되읽기로 확정 (260826 협의, 현장 미검증) 원복: 각 파일의 "260824 이전 원본" region 을 살리고 아래 블록을 제거하면 된다.
45 lines
1.6 KiB
C#
45 lines
1.6 KiB
C#
using Aurora;
|
|
using AuroraIO;
|
|
using static WeldingCommon.Devices.Laser.PAIX_PrismaticScanner; // 260824 IO 채널 enum 단일화
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ILSOS_PrismaticRD_PTOP.Device.IO
|
|
{
|
|
public class PAIX_PTOP : IODevice
|
|
{
|
|
public PAIX_PTOP(IAuroraEnvironment auroraEnv, string deviceId, bool isSimul) : base(auroraEnv, deviceId, isSimul)
|
|
{
|
|
}
|
|
public int WriteDoBit(ePrismaticDOAddress index, bool bit) => _iOUnit.WriteDoBit((int)index, bit);
|
|
public bool ReadDiBit(ePrismaticDIAddress index) => _iOUnit.ReadDiBit((int)index);
|
|
|
|
#region 260824 이전 원본 (중복 정의 — WeldingCommon 의 PAIX_PrismaticScanner 로 단일화)
|
|
// ↑ using static WeldingCommon.Devices.Laser.PAIX_PrismaticScanner 로 대체.
|
|
// 원복 시 아래 블록을 살리고 상단 using static 을 제거한다.
|
|
//public enum ePrismaticDIAddress
|
|
//{
|
|
// CoreLaser_Laser_Ready = 9,
|
|
// CoreLaser_Error_State,
|
|
// CoreLaser_Laser_Output_State,
|
|
// CoreLaser_Control_Status,
|
|
// RingLaser_Laser_Ready,
|
|
// RingLaser_Error_State,
|
|
// RingLaser_Laser_Output_State,
|
|
// RingLaser_Control_Status = 23,
|
|
//}
|
|
//public enum ePrismaticDOAddress
|
|
//{
|
|
// CoreLaser_Control = 9,
|
|
// CoreLaser_ErrorClearing,
|
|
// RingLaser_Control = 13,
|
|
// RingLaser_ErrorClearing,
|
|
// EX_Red_Control = 17,
|
|
//}
|
|
#endregion
|
|
}
|
|
}
|