16 lines
612 B
C#
16 lines
612 B
C#
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;
|
|
}
|
|
}
|
|
} |