public LightToMachineMapConfiguration(MachineConfiguration Machine, StackLight5Lights.LightNumber LightNumberFromTop, StackLightConfiguration StackLight)
 {
     this.Machine            = Machine;
     this.LightNumberFromTop = LightNumberFromTop;
     this.StackLight         = StackLight;
 }
Пример #2
0
 /// <summary>
 /// Add/Define Light assignment for the Machine/Press
 /// </summary>
 /// <param name="Machine">Should be Variable returned from AddMachine</param>
 /// <param name="LightNumberFromTop"> Light Number On the stack light for the machine to use. Light0-Light4</param>
 /// <param name="StackLightIPAddress"></param>
 /// <example>
 /// This sample shows how to call the <see cref="AddLightToMachineMap"/> method.
 /// <code>
 /// var Z11 = AddMachine("Z-1-1","Press", "FF-FF-FF-FF-FF-FF");
 /// var Row1StackLight = "192.168.1.100"
 /// AddLightToMachineMap(Z11, StackLight5Lights.LightNumber.Light0, Row1StackLight);
 /// </code>
 /// </example>
 protected void AddLightToMachineMap(MachineConfiguration Machine, StackLight5Lights.LightNumber LightNumberFromTop, StackLightConfiguration StackLight)
 {
     LightToMachineMapConfigs.Add(new LightToMachineMapConfiguration(Machine, LightNumberFromTop, StackLight));
 }