Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0 Additions for Solder Print #218

Merged
merged 6 commits into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CFX/Production/Processing/UnitsProcessed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,9 @@ namespace CFX.Production.Processing
/// "OffsetY": 0.5,
/// "OffsetTheta": 2.5,
/// "FirstPrintDirection": "FrontToRear",
/// "CycleTime": "00:00:00"
/// "CycleTime": "00:00:00",
/// "PrePrintStretch":1,
/// "PostPrintStretch":1
/// },
/// "UnitProcessData": []
/// }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Newtonsoft.Json;
using CFX;
using CFX.Structures;
using static CFX.Structures.PCBInspection.Feature;

namespace CFX.Structures.SolderPastePrinting
{
Expand Down Expand Up @@ -57,6 +58,27 @@ public SolderPastePrintingPCBProcessData()
/// Cycle time for the Printing process, in the format hh:mm:ss.fffffff
/// </summary>
public TimeSpan CycleTime { get; set; }
/// <summary>
/// <para>** NOTE: ADDED in CFX 2.0 **</para>
/// Relative stretch ratio of the panel before printing:
/// value = 1 no stretch / no shrinkage
/// value between 0 and 1: shrinkage
/// value above 1: stretch
/// value null: not possible to send this information
/// </summary>
[CFX.Utilities.CreatedVersion("2.0")]
public double? PrePrintStretch { get; set; }

/// <summary>
/// <para>** NOTE: ADDED in CFX 2.0 **</para>
/// Relative stretch ratio of the panel after printing:
/// value = 1 no stretch / no shrinkage
/// value between 0 and 1: shrinkage
/// value above 1: stretch
/// value null: not possible to send this information
/// </summary>
[CFX.Utilities.CreatedVersion("2.0")]
public double? PostPrintStretch { get; set; }

}
}
4 changes: 3 additions & 1 deletion CFXExampleEndpoint/CFXExampleGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3821,7 +3821,9 @@ public string GenerateProduction()
FirstPrintDirection = "FrontToRear",
OffsetX= 1.5,
OffsetY= 0.5,
OffsetTheta= 2.5
OffsetTheta= 2.5,
PrePrintStretch = 1,
PostPrintStretch = 1
},
};

Expand Down