Can you create an integer and assign it the error code like:
INT iError;
iError = TrnPlot(blah blah);
Then check the value of iError.
Also it looks like maybe you have an extra argument in your function call.
TrnPlot("\\wagausprint01\Follow Me Printing", 20, Time, 10, "Bed 1 Steam Chart", "Saw1_transfer_raised", "Bed3Zone2", "", "", "", "", "", "", 0, 1, "Bed 1 Curing Trend", 0, 50, 0, 50);
Should be:
TrnPlot("\\wagausprint01\Follow Me Printing", 20, Time, 10, "Bed 1 Steam Chart", "Saw1_transfer_raised", "Bed3Zone2", "", "", "", "", "", "", 0, "Bed 1 Curing Trend", 0, 50, 0, 50);
For black and white or
TrnPlot("\\wagausprint01\Follow Me Printing", 20, Time, 10, "Bed 1 Steam Chart", "Saw1_transfer_raised", "Bed3Zone2", "", "", "", "", "", "", 1, "Bed 1 Curing Trend", 0, 50, 0, 50);
For colour