60 lines
1.5 KiB
C#
60 lines
1.5 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_PrismaticCleaner : IODevice
|
|
{
|
|
public PAIX_PrismaticCleaner(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
|
|
{
|
|
AirKnifeDigitalGage,
|
|
empty_1,
|
|
empty_2,
|
|
LaserInterface_in1,
|
|
LaserInterface_in2,
|
|
LaserInterface_in3,
|
|
LaserInterface_in4,
|
|
empty_7,
|
|
empty_8,
|
|
empty_9,
|
|
empty_10,
|
|
LaserDeactivated,
|
|
LaserEmissionWarning,
|
|
LaserIsOn,
|
|
empty_14,
|
|
empty_15
|
|
}
|
|
public enum ePrismaticDOAddress
|
|
{
|
|
LaserOnLamp,
|
|
AirKnife,
|
|
empty_2,
|
|
LaserInterface_out1,
|
|
LaserInterface_out2,
|
|
LaserInterface_out3,
|
|
LaserInterface_out4,
|
|
empty_7,
|
|
empty_8,
|
|
empty_9,
|
|
empty_10,
|
|
PilotLaserEnable,
|
|
LaserEnable,
|
|
LaserDisable,
|
|
LaserPulseCW,
|
|
empty_15
|
|
}
|
|
}
|
|
}
|