16
px-tcp1/ProtosXExercise/ChannelHandling.cs
Normal file
16
px-tcp1/ProtosXExercise/ChannelHandling.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace ProtosXdigitalDemo
|
||||
{
|
||||
internal static class ChannelCache
|
||||
{
|
||||
public static ushort DigitalInputCount { get; private set; }
|
||||
public static ushort DigitalOutputCount { get; private set; }
|
||||
public static ushort AnalogInputCount { get; private set; }
|
||||
|
||||
public static void Initialize()
|
||||
{
|
||||
DigitalInputCount = (ushort)Data.MachineState.digitalInputChannels.Length;
|
||||
DigitalOutputCount = (ushort)Data.MachineState.digitalOutputChannels.Length;
|
||||
AnalogInputCount = (ushort)Data.MachineState.analogInputChannels.Length;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user