77 lines
2.1 KiB
C#
77 lines
2.1 KiB
C#
using Aurora;
|
|
using AuroraIO;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ILSOS_PrismaticScanner.Device.IO
|
|
{
|
|
public class PAIX_PrismaticScanner : IODevice
|
|
{
|
|
public PAIX_PrismaticScanner(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);
|
|
|
|
public enum ePrismaticDIAddress
|
|
{
|
|
CCCAPASSYLaserMC1ON,
|
|
CCCAPASSYLaserMC2ON,
|
|
|
|
BOXTempAlarm = 5,
|
|
TrumpLaserProgCompleted,
|
|
TrumpLaserReady,
|
|
TrumpLaserProgActive,
|
|
TrumpLaserPilotLaserIsOn,
|
|
TrumpLaserWarningLampIsOn,
|
|
|
|
OutputVisionReady = 12,
|
|
Judge,
|
|
SpareVision3,
|
|
SpareVision4,
|
|
CCCAPChillerLeakSensor,
|
|
AirKnifeDigitalGauge,
|
|
|
|
LaserIoInput1 = 22,
|
|
LaserIoInput2,
|
|
LaserIoInput3,
|
|
LaserIoInput4,
|
|
FanAlarm1,
|
|
FanAlarm2,
|
|
FanAlarm3,
|
|
FanAlarm4,
|
|
FanAlarm5,
|
|
FanAlarm6,
|
|
}
|
|
public enum ePrismaticDOAddress
|
|
{
|
|
TrumpfLaserEXTActivation,
|
|
TrumpfLaserProgNo0,
|
|
TrumpfLaserProgNo1,
|
|
TrumpfLaserProgNo2,
|
|
TrumpfLaserPstartStatical,
|
|
TrumpfLaserProgNo3,
|
|
TrumpfLaserProgNo4,
|
|
TrumpfLaserPilotLaserOn,
|
|
TrumpfLaserFaultEXT,
|
|
TrumpfLaserProgNo5,
|
|
TrumpfLaserProgNo6,
|
|
|
|
InputPLCReady = 12,
|
|
InputWeldingTrigger,
|
|
InputWeldingStop,
|
|
InputJudgeACK,
|
|
CCCAPLaserOnLampOn,
|
|
AirKnifeRegulator,
|
|
|
|
LaserIOOutput1 = 22,
|
|
LaserIOOutput2,
|
|
LaserIOOutput3,
|
|
LaserIOOutput4
|
|
}
|
|
}
|
|
}
|