35 lines
948 B
C#
35 lines
948 B
C#
using Aurora.Api.Manager;
|
|
using Aurora.Api;
|
|
using Aurora;
|
|
using AuroraIO;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using static AuroraIO.IODevice;
|
|
using WeldingCommon.Devices;
|
|
using WeldingCommon;
|
|
|
|
namespace ILSOS_ACW_H52A.Device
|
|
{
|
|
internal partial class IOController_ACW_H52A : IOController
|
|
{
|
|
private PLCController _Plc;
|
|
public IOController_ACW_H52A(IAuroraEnvironment auroraEnv, string deviceId) : base(auroraEnv, deviceId)
|
|
{
|
|
_Plc = auroraEnv.DeviceManager[CommonDeviceIds.PLCDevice] as PLCController;
|
|
}
|
|
|
|
public override void MonitorIOInterfaceMap()
|
|
{
|
|
if (_iOUnit.ReadDiBit(Convert.ToInt32(eADIAddress.LaserOn))) {
|
|
_Plc.WriteBit(_Plc.PC_LASER_ONAddr, true);
|
|
} else {
|
|
_Plc.WriteBit(_Plc.PC_LASER_ONAddr, false);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|