/// <summary> /// Add/Define a Machine/Press /// </summary> /// <param name="line">Name Of Production Line</param> /// <param name="name">Name Of Machine in the Production Line</param> /// <param name="mac">MAC Address for the Adam Module</param> /// <example> /// This sample shows how to call the <see cref="AddMachine"/> method. /// <code> /// var Z11 = AddMachine("Z-1-1","Press", "FF-FF-FF-FF-FF-FF"); /// </code> /// </example> /// <returns name="MachineConfig"> /// For use in other Configuration Types /// </returns> protected MachineConfiguration AddMachine(string line, string name, string mac, string department = null) { if (department is null) { department = _defaultDepartment; } var machineConfig = new MachineConfiguration(line, name, mac, department); MachineConfigs.Add(machineConfig); return(machineConfig); }
public LightToMachineMapConfiguration(MachineConfiguration Machine, StackLight5Lights.LightNumber LightNumberFromTop, StackLightConfiguration StackLight) { this.Machine = Machine; this.LightNumberFromTop = LightNumberFromTop; this.StackLight = StackLight; }
/// <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)); }