‘File’ ‘Printer setup’

With this command you can determine the layout of the printed pages. The following dialog box is now opened:

../_images/2a3f0645a7e0af630a317d3135ba82d0

In the field File you can enter the name of the file with the extension “.dfr” in which the page layout should be saved. The default destination for the settings is the file DEFAULT.DFR.

If you would like to change an existing layout, then browse through the directory tree to find the desired file with the button ‘Browse’.

You can also choose whether to begin a new page for each object and for each subobject. Use the ‘Printer Setup’ button to open the printer configuration.

If you click on the ‘Edit’ button, then the frame for setting up the page layout appears. Here you can determine the page numbers, date, filename and POU name, and also place graphics on the page and the text area in which the documentation should be printed.

../_images/5b304945a7e0d27c0a317d313802a170

With the menu item ‘Insert’ ‘Placeholder’ and subsequent selection among the five placeholders (Page, POU name, File name, Date, and Content), insert into the layout a so-called placeholder by dragging a rectangle the layout while pressing the left mouse button. In the printout they are replaced as follows:

Command Placeholder Effect
Page {Page} Here the current page number appears in the printout.
POU name {POU Name} Here the current name of the POU appears.
File name {File Name} Here the name of the project appears.
Date {Date} Here the current date appears.
Contents {Contents} Here the contents of the POU appear.

In addition, with ‘Insert’ ‘Bitmap’ you can insert a bitmap graphic (e.g. a company logo) in the page. After selecting the graphic, a rectangle should also be drawn here on the layout using the mouse. Other visualization elements can be inserted (see Visualizations).

If the template was changed, then CoDeSys asks when the window is closed if these changes should be saved or not.

Note

In order to be aware of the page format which will be valid for printouts, define the layout as described above and additionally activate option ‘Show print area margins’ in the project options, category Desktop.