24.01.2015 Views

PLC Programming

  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Sampling Trace<br />

'Load Values'<br />

Be aware, that here you save the traced values as well as the trace configuration, whereas Save<br />

trace in the configuration dialog only concerns the configuration data.<br />

The saved Sampling Trace can be loaded again with 'Extras' 'Load Trace'.<br />

With this command a saved Sampling Trace (traced values + configuration data) can be reloaded.<br />

The dialog box for opening a file is opened. Select the desired file with the "*.trc" extension.<br />

With 'Extras' 'Save Values' you can save a Sampling Trace.<br />

'Trace in ASCII-File'<br />

With this command you can save a Sampling Trace in an ASCII-file. The dialog box for saving a file is<br />

opened. The file name receives the extension "*.txt". The values are deposited in the file according to<br />

the following scheme:<br />

CODESYS Trace<br />

D:\CODESYS\PROJECTS\TRAFFICSIGNAL.PRO<br />

Cycle <strong>PLC</strong>_PRG.COUNTER <strong>PLC</strong>_PRG.LIGHT1<br />

0 2 1<br />

1 2 1<br />

2 2 1<br />

.....<br />

If no frequency scan was set in the trace configuration, then the cycle is located in the first column;<br />

that means one value per cycle has been recorded at any given time. In the other respects, the entry<br />

here is for the point in time in ms at which the values of the variables have been saved since the<br />

Sampling Trace has been run.<br />

In the subsequent columns, the corresponding values of the trace variables are saved. At any given<br />

time the values are separated from one another by a blank space.<br />

The appertaining variable names are displayed next to one another in the third line, according to the<br />

sequence (<strong>PLC</strong>_PRG.COUNTER, <strong>PLC</strong>_PRG.LIGHT1).<br />

6.9.3 'Extras' 'External Trace Configurations'<br />

'Save to file'<br />

'Load from file'<br />

Use the commands of this menu to save or reload traces (configuration + trace values) in files resp.<br />

from files, to load a trace from the controller to the project or to set a certain trace as that which should<br />

be used in the project.<br />

Note: Regard the alternative way of storing and reloading traces by using the commands of menu 'Extras' 'Save<br />

Trace' (Projektformat, *.trc-Datei, ASCII) !<br />

With this command a trace (configuration + values) can be saved in a file in XML format. For this<br />

purpose the standard dialog for saving a file opens. Automatically the file extension *.mon will be<br />

used.<br />

A *.mon-file can be reloaded to a project with command 'Load from file'.<br />

With this command a trace (configuration + values), which is available in a file in XML format (*.mon,<br />

can be loaded into the project. The dialog for opening a file will open and you can browse for files with<br />

extension *.mon. The loaded trace will be displayed and added to the selection list in field 'Trace in the<br />

configuration dialog. If you want to set it as currently used project trace configuration, use command<br />

'Set as project configuration'.<br />

6-48 CoDeSys V2.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!