From b87a5762396e8b1c9c0e81abf9304a9f9d47f227 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 21 Feb 2026 14:06:33 +0000 Subject: [PATCH 1/2] Initial plan From 7ecb5f0c5856a4311b8d02fc8f6036d2c12c9de1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 21 Feb 2026 14:09:07 +0000 Subject: [PATCH 2/2] Fix Direction.Output -> Direction.Input for max parameter in InRangeCall and OutRangeCall Co-authored-by: jogibear9988 <364896+jogibear9988@users.noreply.github.com> --- TiaCodegen/Commands/Comparisons/InRangeCall.cs | 2 +- TiaCodegen/Commands/Comparisons/OutRangeCall.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TiaCodegen/Commands/Comparisons/InRangeCall.cs b/TiaCodegen/Commands/Comparisons/InRangeCall.cs index 5f4ae01..cd15239 100644 --- a/TiaCodegen/Commands/Comparisons/InRangeCall.cs +++ b/TiaCodegen/Commands/Comparisons/InRangeCall.cs @@ -17,7 +17,7 @@ public InRangeCall( DisableEno = false; Interface["min"] = new IOperationOrSignalDirectionWrapper(min, Direction.Input); Interface["in"] = new IOperationOrSignalDirectionWrapper(@in, Direction.Input); - Interface["max"] = new IOperationOrSignalDirectionWrapper(max, Direction.Output); + Interface["max"] = new IOperationOrSignalDirectionWrapper(max, Direction.Input); Interface["out"] = new IOperationOrSignalDirectionWrapper(@out, Direction.Output); Children.AddRange(Interface.Values.Where(x => x.OperationOrSignal != null).Select(x => x.OperationOrSignal)); diff --git a/TiaCodegen/Commands/Comparisons/OutRangeCall.cs b/TiaCodegen/Commands/Comparisons/OutRangeCall.cs index 51fb5ec..a50f984 100644 --- a/TiaCodegen/Commands/Comparisons/OutRangeCall.cs +++ b/TiaCodegen/Commands/Comparisons/OutRangeCall.cs @@ -17,7 +17,7 @@ public OutRangeCall( DisableEno = false; Interface["min"] = new IOperationOrSignalDirectionWrapper(min, Direction.Input); Interface["in"] = new IOperationOrSignalDirectionWrapper(@in, Direction.Input); - Interface["max"] = new IOperationOrSignalDirectionWrapper(max, Direction.Output); + Interface["max"] = new IOperationOrSignalDirectionWrapper(max, Direction.Input); Interface["out"] = new IOperationOrSignalDirectionWrapper(@out, Direction.Output); Children.AddRange(Interface.Values.Where(x => x.OperationOrSignal != null).Select(x => x.OperationOrSignal));